linux sqlplus 远程连接数据库 | 您所在的位置:网站首页 › linux远程oracle数据库 › linux sqlplus 远程连接数据库 |
1.依赖包下载,按版本下载
2.unzip -d 解压到目录
命令实示例:unzip *.zip -d file path 3.配置本用户环境变量 【LD_LIBRARY_PATH】 # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions PATH=$PATH:$HOME/bin export PATH LD_LIBRARY_PATH=/home/www/oracle_client_linux export LD_LIBRARY_PATH 4.source ~/.bashrc 生效 5.使用sqlplus连接数据库命令:/data/ora_cli/instantclient_12_2/sqlplus u s e r / user/ user/passwd@ h o s t : host: host:port/$service name 6.使用sqlplus查询数据库数据,(sql语句)参考: |
CopyRight 2018-2019 实验室设备网 版权所有 |