登入RMAN 報ORA-12162:TNS:net service name is incorrectly specified錯誤

來源:互聯網
上載者:User

標籤:rman   ora-12162   

登入RMAN 報ORA-12162:TNS:net service name is incorrectly specified錯誤


[[email protected] admin]$ date
Tue Apr 22 18:06:16 CST 2014
[[email protected] admin]$ rman target /
//出現詭異的ora-12162錯誤,第一反應是TNS,但第二反應告訴我,這是個簡單的錯誤,注意環境變數


Recovery Manager: Release 11.2.0.1.0 - Production on Tue Apr 22 18:08:11 2014


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
[[email protected] admin]$ echo $ORACLE_HOME    //查看ORACLE_HOME,設定正確
/u01/app/oracle/product/11.2.0/db_1
[[email protected] admin]$ echo $ORACLE_SID    //查看ORACLE_SID,發現設定為空白


[[email protected] ~]$ export ORACLE_SID=PROD   //手工注入ORACLE_SID
[[email protected] ~]$ rman target /             //啟動RMAN,成功


Recovery Manager: Release 11.2.0.1.0 - Production on Tue Apr 22 18:13:40 2014


Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


connected to target database: PROD (DBID=239015079)


RMAN> 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.