我的编程空间,编程开发者的网络收藏夹
学习永远不晚

does not currently know of SID given

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

does not currently know of SID given

oracle中log.xml报错信息

TNS-12505: TNS:listener does not currently know of SID given in connect descriptor

plsql登录报错信息:

无法请求描述符中的服务


百度了很多,都是一种处理方法,可是对我这里完全不管用,下面是我遇到的两次异常的解决方法:

1、看/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora这个配置文件


# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

# Generated by Oracle configuration tools.


LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.23.*.55)(PORT = 1521))

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

  )


ADR_BASE_LISTENER = /u01/app/oracle

标红处之前是localhost,可是主机名已经不是这个了,就改成主机IP或现在的主机名,成功处理问题。

2、上面处理方法已经不管用,报错信息还是一样,

最终发现是/etc/hosts这个配置文件

[oracle@esboracle55 admin]$ cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

#192.168.67.236 localhost.localdomain

#127.0.0.1esboracle55

10.230.*.* esboracle55

标红处注释掉,就成功的解决了问题。





可能存在SID的文件

tnsname.ora

listerner,ora

profile

[root@esboracle55 admin]# su - oracle

[oracle@esboracle55 ~]$ cat .bash_profile 

# .bash_profile


# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


export PATH


#use_for_oracle


export ORACLE_BASE=/u01/app/oracle

export ORACLE_SID=orcl

#export ogg=/oracle/ogg

#export JAVA_HOME=/ora_bck/java/jdk1.6.0_32

#export CLASSPATH=/lib/dt.jar:/lib/tools.jar

export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:/usr/ccs/bin:/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export ORACLE_TERM=xterm

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/lib64:/usr/lib64

export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8;

export PS1='[\u@\h \W]\$ ';  # default value


免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

does not currently know of SID given

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

ORA-12505: TNS:listener does not currently know of SID given in connect descriptor ORACLE 报错 故障修复 远程

文档解释ORA-12505: TNS:listener does not currently know of SID given in connect descriptorCause: The listener received a
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor ORACLE 报错 故障修复 远程
2023-11-05

dataguard ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

错误的意思是listener 不知道连接解析器中的请求服务,这里要说静态监听和动态监听了动态注册是在instance启动的时候PMON进程根据init.ora中的instance_name,service_names两个参数将实例和服务动态注册到listene
2016-11-09

ORA-12521: TNS:listener does not currently know of instance requested in connect descriptor ORACLE 报

文档解释ORA-12521: TNS:listener does not currently know of instance requested in connect descriptorCause: The listener
ORA-12521: TNS:listener does not currently know of instance requested in connect descriptor ORACLE 报
2023-11-05

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor ORACLE 报错

文档解释ORA-12514: TNS:listener does not currently know of service requested in connect descriptorCause: The listener
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor ORACLE 报错
2023-11-05

ORA-01161: database name string in file header does not match given name of string ORACLE 报错 故障修复 远程

文档解释ORA-01161: database name string in file header does not match given name of stringCause: The database name given at
ORA-01161: database name string in file header does not match given name of string ORACLE 报错 故障修复 远程
2023-11-04

ORA-01161: database name string in file header does not match given name of string ORACLE 报错 故障修复 远程

文档解释ORA-01161: database name string in file header does not match given name of stringCause: The database name given at
ORA-01161: database name string in file header does not match given name of string ORACLE 报错 故障修复 远程
2023-11-05

编程热搜

目录