2016-08-02 111 views
0

我創建了兩個數據庫,一個叫做test,另一個叫archivioSID等於name。我還創建了SID測試端口1521和一個用於SID ARCHIVIO,應該在端口1522oracle第二個偵聽器不工作

回答我已經驗證的服務是主動

響應監聽器第一個監聽工作正常。第二個報告存檔數據庫不起作用。我使用網絡管理員進行測試。該錯誤信息是:

聽者目前不知道在連接描述符

要求與Oracle SQL Developer中的服務我可以連接到數據庫archivio如果我使用的基本類型的地方,而不是連接

其他信息:

Windows 7旗艦版的Oracle 12C

LISTNER.ORA

# listener.ora Network Configuration File: C:\Program Files (x86)\Common Files\Quest Shared\instantclient-basic-windows.x64-11.2.0.4.0\listener.ora 
# Generated by Oracle configuration tools. 

LISTENER1 = 
    (DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = webgate1-PC)(PORT = 1522)) 
) 

ADR_BASE_LISTENER1 = C:\app\cirom 

LISTENER = 
    (DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = webgate1-PC)(PORT = 1521)) 
) 

ADR_BASE_LISTENER = C:\app\cirom 
ADR_BASE_LISTENER1 = C:\app\cirom 

TNSNAMES.ORA

# tnsnames.ora Network Configuration File: C:\Program Files (x86)\Common Files\Quest Shared\instantclient-basic-windows.x64-11.2.0.4.0\tnsnames.ora 
# Generated by Oracle configuration tools. 

ARCHIVIO = 
    (DESCRIPTION = 
    (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = TCP)(HOST = webgate1-pc)(PORT = 1522)) 
    ) 
    (CONNECT_DATA = 
     (SERVICE_NAME = archivio) 
    ) 
) 

LISTENER_TEST = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) 


ORACLR_CONNECTION_DATA = 
    (DESCRIPTION = 
    (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) 
    ) 
    (CONNECT_DATA = 
     (SID = CLRExtProc) 
     (PRESENTATION = RO) 
    ) 
) 

LISTENER_ARCHIVIO = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522)) 


TEST = 
    (DESCRIPTION = 
    (ADDRESS_LIST = 
     (ADDRESS = (PROTOCOL = TCP)(HOST = webgate1-pc)(PORT = 1521)) 
    ) 
    (CONNECT_DATA = 
     (SERVICE_NAME = test) 
    ) 
) 
+0

你可以給命令「顯示參數監聽」的輸出形式ARCHIVIO數據庫? – Giova

+0

我得到視圖或表不存在的錯誤。 – ciro

+0

你是以系統用戶還是系統用戶身份連接?您應該獲得以下內容: SQL> show parameter listener 名稱類型值 -------------------------------- ---- ----------- ------------------------------ local_listener string LISTENER_1 remote_listener string LISTENERS_1 SQL> – Giova

回答

0

爲了獲得對非默認端口上運行的監聽器註冊的Oracle實例(不是TCP 1521),你必須配置LOCAL_LISTENER參數,例如: (ADDRESS =(PROTOCOL = TCP)(HOST =主機名)(PORT = 1522))

com mand是:

alter system set local_listener='(ADDRESS = (PROTOCOL=TCP)(HOST=hostname)(PORT=1522))' scope=both; 

使用您的主機名更改主機名。

然後,重新啓動您的數據庫或發出命令:

alter system register; 

喬瓦尼

+0

同樣的結果。無法連接並顯示參數命令再次顯示空值 – ciro

+0

@ciro:我編輯了答案......你可以用scope = both而不是spfile來嘗試嗎?你有錯誤嗎? – Giova