useradd oracle
2、在oracle用户下面创建soft文件夹
mkdir -p /home/oracle/soft/
3、上传对应软件并解压
unzip basic-10.2.0.5.0-linux-x64.zip
unzip sqlplus-10.2.0.5.0-linux-x64.zip
4、编辑环境变量
vim .bash_profile
增加以下两行
export LD_liBRARY_PATH=/home/oracle/soft/instantclIEnt_10_2
export PATH=$PATH:$LD_liBRARY_PATH
5创建tnsname.ora的文件夹
/home/oracle/soft/instantclIEnt_10_2/network/admin
编辑
[[email protected] ~]$ cat /home/oracle/soft/instantclIEnt_10_2/network/admin/tnsnames.ora
ora169 =
(DESCRIPTION =
(ADDRESS = (PROTOCol = TCP)(HOST =192.168.0.169)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_name =orcl10g.us.oracle.com)
)
)
[[email protected] ~]$ ifconfig |grep inet
inet 192.168.0.169 netmask 255.255.255.0 broadcast 192.168.0.255
[[email protected] ~]$ lsnrctl status
LSNRCTL for linux: Version 10.2.0.1.0 - Production on 23-MAY-2019 14:56:33
copyright (c) 1991,2005,Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCol=IPC)(KEY=EXTPROC1)))
STATUS of the ListENER
Alias ListENER
Version TNSLSNR for linux: Version 10.2.0.1.0 - Production
Start Date 22-MAY-2019 18:46:58
Uptime 0 days 20 hr. 9 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter file /u01/app/oracle/product/10.2.0/db_1/network/admin/Listener.ora
Listener Log file /u01/app/oracle/product/10.2.0/db_1/network/log/Listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCol=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCol=tcp)(HOST=oracleinstall)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc",status UNKNowN,has 1 handler(s) for this service...
Service "TSH1XDB.us.oracle.com" has 1 instance(s).
Instance "TSH1",status READY,has 1 handler(s) for this service...
Service "orcl10g.us.oracle.com" has 1 instance(s).
Instance "TSH1",has 1 handler(s) for this service...
Service "orcl10g_XPT.us.oracle.com" has 1 instance(s).
Instance "TSH1",has 1 handler(s) for this service...
The command completed successfully
[[email protected] ~]$
主要是找到:Service
连接确认
$ sqlplus test/[email protected]
sql*Plus: Release 10.2.0.5.0 - Production on Thu May 23 14:59:46 2019
copyright (c) 1982,2010,Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning,olAP and Data Mining options
sql>
连接确认2:
$ sqlplus test/[email protected]//192.168.0.169:1521/orcl10g.us.oracle.com
sql*Plus: Release 10.2.0.5.0 - Production on Thu May 23 15:00:31 2019
copyright (c) 1982,olAP and Data Mining options
sql>
连接确认3
$ sqlplus test/[email protected]//192.168.0.169:1521/TSH1XDB.us.oracle.com
sql*Plus: Release 10.2.0.5.0 - Production on Thu May 23 15:01:25 2019
copyright (c) 1982,olAP and Data Mining options
sql>
连接确认4
$ sqlplus test/[email protected]//192.168.0.169:1521/orcl10g_XPT.us.oracle.com
sql*Plus: Release 10.2.0.5.0 - Production on Thu May 23 15:02:00 2019
copyright (c) 1982,olAP and Data Mining options
sql>
总结以上是内存溢出为你收集整理的instantclient_10_2 使用全部内容,希望文章能够帮你解决instantclient_10_2 使用所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)