ORA-12154: TNS:could not resolve the connect identifier specified

来源:互联网 发布:08 经济危机 知乎 编辑:程序博客网 时间:2024/05/25 05:35
[oracle@posts admin]$ rman target sys/Posp3571gre@pospm


Recovery Manager: Release 11.2.0.3.0 - Production on Mon Apr 24 12:09:52 2017


Copyright (c) 1982, 2011, 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-12154: TNS:could not resolve the connect identifier specified


解决方法:

vi tnsnames.ora

pospm =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.21.204.1)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = posp)---改成数据库的db_unique_name就可以了
    )
  )


0 0
原创粉丝点击