主頁(yè) > 知識(shí)庫(kù) > Oracle 配置遠(yuǎn)程訪問(wèn)教程

Oracle 配置遠(yuǎn)程訪問(wèn)教程

熱門標(biāo)簽:400電話是不是免費(fèi)申請(qǐng) 貴陽(yáng)電話外呼系統(tǒng)哪家好 呼倫貝爾智能手機(jī)地圖標(biāo)注 濟(jì)南地圖標(biāo)注公司 南寧人工智能電銷機(jī)器人費(fèi)用 海南400電話哪里辦理 分布式呼叫中心 圖像地圖標(biāo)注 安陽(yáng)外呼系統(tǒng)免費(fèi)

服務(wù)端配置

如果不想自己寫,可以通過(guò) Net Manager 來(lái)配置.

以下配置文件中的 localhost 改為 ip 地址,否則,遠(yuǎn)程不能訪問(wèn).

1.網(wǎng)絡(luò)監(jiān)聽配置

# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
 (SID_LIST =
 (SID_DESC =
  (SID_NAME = CLRExtProc)
  (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
  (PROGRAM = extproc)
  (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
 )
 )
LISTENER =
 (DESCRIPTION_LIST =
 (DESCRIPTION =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
 )
 )
ADR_BASE_LISTENER = C:\app\Administrator

多個(gè)IP時(shí),如下:

LISTENER =
 (DESCRIPTION_LIST =
 (DESCRIPTION =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
 )
 (DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.226.2)(PORT = 1521))
 )
 (DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.226.3)(PORT = 1521))
 )
 )

2.TNS 配置

# tnsnames.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL=
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
 (CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = orcl)
 )
 )
ORACLR_CONNECTION_DATA =
 (DESCRIPTION =
 (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
 )
 (CONNECT_DATA =
  (SID = CLRExtProc)
  (PRESENTATION = RO)
 )
 )
LISTENER_ORCL =
 (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

多個(gè)IP時(shí),如下:

ORCL =
 (DESCRIPTION =
 (ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.226.2)(PORT = 1521))
  (ADDRESS = (PROTOCOL = TCP)(HOST = 172.24.226.3)(PORT = 1521))
 )
 (SOURCE_ROUTE = yes)
 (CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = orcl)
 )
 )

3.停止和啟動(dòng)服務(wù)

先停止以下服務(wù),然后再啟動(dòng).

OracleOraDb11g_homeTNSListener
OracleService*

客戶端配置

1.下載 ODAC 壓縮包.

2.解壓下載的 ODAC 壓縮包.

3.執(zhí)行安裝命令

示例:

install.bat all D:\Program\ODAC\12040x64 OracleHome true

4.添加環(huán)境變量

ORACLE_HOME : 是 ODAC 安裝的目錄.

TNS_ADMIN : 是文件 tnsnames.ora 所在的目錄,一般為 ODAC 安裝目錄下的 network\admin 中.

注: TNS_ADMIN 可以不用添加,直接將 tnsnames.ora 文件復(fù)制到 ODAC 安裝目錄下即可

將 %ORACLE_HOME% 添加到 PATH 環(huán)境變量中.

5.配置 TNS

在配置文件 tnsnames.ora 中加入

DBORCL =
 (DESCRIPTION =
 (ADDRESS = (PROTOCOL = TCP)(HOST = db-host>)(PORT = 1521))
 (CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = db-name>)
 )
 )

說(shuō)明:

db-host> : 數(shù)據(jù)庫(kù)電腦的IP或者是計(jì)算機(jī)名
db-name> : 數(shù)據(jù)庫(kù)TNS配置的名稱

總結(jié)

以上所述是小編給大家介紹的Oracle 配置遠(yuǎn)程訪問(wèn)教程,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

您可能感興趣的文章:
  • oracle不能使用EM怎么辦 oracle11g如何正確安裝配置EM
  • Oracle 11g 客戶端的安裝和配置的圖文教程
  • Windows Sever 2012下Oracle 12c安裝配置方法圖文教程
  • 詳解Docker中安裝配置Oracle數(shù)據(jù)庫(kù)
  • 在Docker上安裝配置Oracle教程

標(biāo)簽:滁州 南充 焦作 涼山 許昌 遼源 郴州 合肥

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Oracle 配置遠(yuǎn)程訪問(wèn)教程》,本文關(guān)鍵詞  Oracle,配置,遠(yuǎn)程,訪問(wèn),教程,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Oracle 配置遠(yuǎn)程訪問(wèn)教程》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于Oracle 配置遠(yuǎn)程訪問(wèn)教程的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章