2012-01-19 61 views
1

我正在研究這個數據庫分區項目。直到現在,我設法在本地配置偵聽器併爲一臺機器配置它。但是這臺機器無法看到我的聽衆,而我得到錯誤ORA-12541。任何人都可以幫助我。 如果任何人想要任何進一步的細節,請不要猶豫,問。獲取oracle錯誤ORA-12541

的tnsnames.ora:

PROJETSGBDD_AFIFA= 
    (DESCRIPTION= 
    (ADDRESS= 
     (PROTOCOL=TCP) 
     (HOST=192.168.200.103) 
     (PORT=1521) 
    ) 
    (CONNECT_DATA= 
     (SERVICE_NAME=orcl) 
    ) 
) 

的listener.ora:

LISTENER= 
    (DESCRIPTION= 
    (ADDRESS= 
     (PROTOCOL=TCP) 
     (HOST=sylma) 
     (PORT=1521) 
    ) 
    (CONNECT_DATA= 
    ) 
) 

ADR_BASE_LISTENER = /u01/app/oracle 

的甲骨SID被tpbdd。

+0

向您展示tnsnames.ora,listener.ora和ORACLE_SID。你的Oracle版本是什麼? – SlavaNov

+0

PROJETSGBD = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.200.172)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = SGBD) ) ) LOCAL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST =本地主機)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = tpbdd) ) ) PROJETSGBDD_AFIFA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.200.103)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORCL) ) ) 這是TNSNAMES .ORA – Sarah

+0

LISTENER = (DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = sylma)(PORT = 1521)) )這是一個的listener.ora ADR_BASE_LISTENER =/U01 /應用/ ORACLE – Sarah

回答

2

好,根據你的listener.ora,你可以添加以下到您的tnsnames.ora:

tpbdd = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sylma)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=tpbdd))) 

,然後嘗試連接:

sqlplus your_user/[email protected] 

希望有所幫助。