登录RMAN 报ORA-12162:TNS:net service name is incorrectly specified错误

我与影子孤独终老i 提交于 2019-12-24 17:13:12

【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>

oracle@localhost admin]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Tue Apr 22 18:08:11 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12162: TNS:net service name is incorrectly specified


[oracle@localhost admin]$ echo $ORACLE_HOME    //查看ORACLE_HOME,设置正确
/u01/app/oracle/product/11.2.0/db_1
[oracle@localhost admin]$ echo $ORACLE_SID    //查看ORACLE_SID,发现设置为空


[oracle@localhost ~]$ export ORACLE_SID=orcl   //手工注入ORACLE_SID

[oracle@localhost ~]$ rman target /             //启动RMAN,成功
Recovery Manager: Release 11.2.0.4.0 - Production on Tue Apr 22 18:13:40 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved
connected to target database: PROD (DBID=239015079)

RMAN>

重庆思庄12c OCP认证培训周末班将于2020年2月15日开课,循环开班,更多详情请访问思庄网站咨询在线客服!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!