[oracle@source admin]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jun 22 09:57:57 2017
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> Create tablespace gg datafile '/u01/app/oracle/oradata/EMREP/gg01.dbf' size 100m;
Tablespace created.
SQL> Create user catalog identified by catalog default tablespace gg quota unlimited on gg temporary tablespace temp1;
User created.
SQL> Grant recovery_catalog_owner to catalog;
Grant succeeded.
[oracle@source admin]$ rman catalog catalog/catalog
Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jun 22 10:01:11 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to recovery catalog database
RMAN> create catalog;
recovery catalog created
RMAN> exit
[oracle@source admin]$ rman target sys/******@prod1 catalog catalog/catalog;
Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jun 22 10:03:19 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PROD1 (DBID=2167465150)
connected to recovery catalog database
RMAN> register database;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of show command at 06/22/2017 09:47:56
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 06/22/2017 09:47:56
ORA-19550: cannot use backup/restore functions while using dispatcher
经分析后,在TNSNAME.ORA 文档中添加如下内容:
PROD1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = SOURCE)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = PROD1.oracle.com)
(server=dedicated)
)
)
问题解决。
做BACKUP时只能用独占方式连结.加上(server=dedicated),说明使用独占连接
原因是在登录时使用了服务名:rman target sys/*****@prod1