`
stinge
  • 浏览: 153343 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ORA-12505, TNS:listener does not currently know of SID given in connect descript

 
阅读更多

解决方法:

 

找到/u01/app/oracle/product/10g/network/admin下的listener.ora文件

 

1、做如下修改:

 

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/app/oracle/product/10g)
      (PROGRAM = extproc)
    )
 (SID_DESC =
      (GLOBAL_DBNAME = mytest)
      (ORACLE_HOME = /u01/app/oracle/product/10g)
      (SID_NAME = mytest)
  )

)
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
    )
  )
 

 

 

2、将/home/oracle下的.profile文件里的ORACLE_SID改为当前使用数据库的SID

       source .profile

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics