sqlplus安装

1. 这个是oracle客户端的首页https://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.htmlhtml

2. 在这里能够选择看到大概的介绍,而后点击页面上的download按钮进入下载页。linux

3. 选择须要下载的操做系统类型:sql

4. 选择版本下载版本。对于单纯安装sqlplus的用户,能够在选定版本后只下载basic包和sqlplus包。数据库

instantclient-basic-linux.x64-11.2.0.4.0.ziporacle

instantclient-sqlplus-linux.x64-11.2.0.4.0.zip操作系统

5. 解压以上两个包,并配置环境变量。htm

export LD_LIBRARY_PATH=/u01/sqlplus/instantclient_11_2blog

若是遇到输出内容不支持中文,能够加上环境变量设置export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK,具体字符集请查看数据库设置。ip

6. 进入/u01/sqlplus/instantclient_11_2目录,而后执行sqlplus命令链接远程数据库:变量

./sqlplus username/password@//host:port/sid

相关文章
相关标签/搜索