中文字幕日韩精品一区二区免费_精品一区二区三区国产精品无卡在_国精品无码专区一区二区三区_国产αv三级中文在线

instantclient_10_2使用-創(chuàng)新互聯(lián)

1、 創(chuàng)建oracle用戶
useradd oracle
2、在oracle用戶下面創(chuàng)建soft文件夾
mkdir -p /home/oracle/soft/
3、上傳對應(yīng)軟件并解壓
unzip basic-10.2.0.5.0-linux-x64.zip
unzip sqlplus-10.2.0.5.0-linux-x64.zip
4、編輯環(huán)境變量
vim .bash_profile

成都創(chuàng)新互聯(lián)是一家專業(yè)提供茅箭企業(yè)網(wǎng)站建設(shè),專注與網(wǎng)站制作、網(wǎng)站設(shè)計、HTML5、小程序制作等業(yè)務(wù)。10年已為茅箭眾多企業(yè)、政府機構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)的建站公司優(yōu)惠進行中。

增加以下兩行
export LD_LIBRARY_PATH=/home/oracle/soft/instantclient_10_2
export PATH=$PATH:$LD_LIBRARY_PATH
5創(chuàng)建tnsname.ora的文件夾
/home/oracle/soft/instantclient_10_2/network/admin

編輯

[oracle@maxscale62 ~]$ 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)
)
)

[oracle@oracleinstall ~]$ ifconfig |grep inet
inet 192.168.0.169 netmask 255.255.255.0 broadcast 192.168.0.255

[oracle@oracleinstall ~]$ 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", status READY, has 1 handler(s) for this service...
Service "orcl10g_XPT.us.oracle.com" has 1 instance(s).
Instance "TSH1", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oracleinstall ~]$

主要是找到:Service

連接確認
$ sqlplus test/test@ora169

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/test@//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, 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>

連接確認3
$ sqlplus test/test@//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, 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>

連接確認4
$ sqlplus test/test@//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, 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>

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

當前文章:instantclient_10_2使用-創(chuàng)新互聯(lián)
本文路徑:http://www.rwnh.cn/article4/ccieoe.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、自適應(yīng)網(wǎng)站、營銷型網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計公司面包屑導(dǎo)航、標簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護公司
石家庄市| 兴义市| 正镶白旗| 启东市| 舟曲县| 依兰县| 乌什县| 兴安县| 工布江达县| 河源市| 永平县| 工布江达县| 鸡泽县| 嘉定区| 醴陵市| 轮台县| 射阳县| 沅江市| 来安县| 乐山市| 卓尼县| 宁波市| 通榆县| 湖州市| 鄱阳县| 定南县| 泰宁县| 于都县| 福州市| 赣榆县| 长岭县| 玛多县| 德令哈市| 七台河市| 且末县| 郯城县| 新巴尔虎右旗| 平果县| 江达县| 尼勒克县| 上虞市|