【Vegas原创】ORA-12505问题解决方法

2年前 (2022) 程序员胖胖胖虎阿
157 0 0

现象:client进行sqlplus连接时,报此错误,并提示tnsname无法连接。

解决方案:更改listener.ora文件

 

原来的文件:

 
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
      (PROGRAM = extproc)
    )
  )
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = dtberp)(PORT = 1521))
      )
    )
  )

更改后:

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
      (PROGRAM = extproc)
    )
      (SID_DESC =
      (SID_NAME = dtberp)
      (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
      (GLOBAL_DBNAME = dtberp)
    )
  )
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = dtberp)(PORT = 1521))
      )
    )
  )
版权声明:程序员胖胖胖虎阿 发表于 2022年9月4日 上午9:16。
转载请注明:【Vegas原创】ORA-12505问题解决方法 | 胖虎的工具箱-编程导航

相关文章

暂无评论

暂无评论...