[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:
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就可以了
)
)