使用PL/SQL登陸oracle報ORA-12154: TNS: 沒法解析指定的鏈接標識符
sqlplus /nolog
connect /as sysdba
startup
報以下錯誤:
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL'
LOCAL_LISTENER爲D:\app\Administrator\product\11.2.0\dbhome_1\database\SPFILEORCL.ORA文件中*.local_listener參數
LISTENER_ORCL爲*.local_listener參數值,如:*.local_listener='LISTENER_ORCL'
ORA-00119,ORA-00132是由於*.local_listener='LISTENER_ORCL'的值,即LISTENER_ORCL在D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora文件中未申明,需求修改配置文件便可。
LISTENER_ORCL =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.2)(PORT = 1521))
)
)sql