Académique Documents
Professionnel Documents
Culture Documents
Page 1 of 7
Page 2 of 7
Method:2
[oracle@12casm ~]$ rman target '"/ as sysbackup"'
Recovery Manager: Release 12.1.0.2.0 - Production on Fri Nov 14 19:15:42 2014
Page 3 of 7
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDB3 (DBID=560956977)
RMAN> backup database;
Starting backup at 14-NOV-14
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
The SYSBACKUP user is granted the following:
SQL> select privilege from dba_sys_privs where grantee='SYSBACKUP';
PRIVILEGE
---------------------------------------ALTER SYSTEM
AUDIT ANY
SELECT ANY TRANSACTION
SELECT ANY DICTIONARY
RESUMABLE
CREATE ANY DIRECTORY
UNLIMITED TABLESPACE
ALTER TABLESPACE
ALTER SESSION
ALTER DATABASE
CREATE ANY TABLE
DROP TABLESPACE
CREATE ANY CLUSTER
Page 4 of 7
SQL> !
[oracle@12casm ~]$ rman target '"sys@cdb3 as sysdba"'
target database Password:
connected to target database: CDB3 (DBID=560956977)
RMAN> desc c##1.sample;
using target database control file instead of recovery catalog
Name
Null? Type
----------------------------------------- -------- ---------------------------NO
NUMBER
Adding datafile to Tablespace:
[oracle@12casm ~]$ rman target '"sys@cdb3 as sysdba"'
target database Password:
connected to target database: CDB3 (DBID=560956977)
RMAN> select file_name from dba_data_files;
using target database control file instead of recovery catalog
FILE_NAME
-------------------------------------------------------------------------------/u01/app/oracle/oradata/CDB3/datafile/o1_mf_system_b6cxny8j_.dbf
/u01/app/oracle/oradata/CDB3/datafile/o1_mf_sysaux_b6cxlwsk_.dbf
/u01/app/oracle/oradata/CDB3/datafile/o1_mf_undotbs1_b6cxqo85_.dbf
/u01/app/oracle/oradata/CDB3/datafile/o1_mf_users_b6cxqml2_.dbf
/u01/app/oracle/oradata/CDB3/datafile/target_ts_01.dbf
RMAN> alter tablespace target_ts add datafile
'/u01/app/oracle/oradata/CDB3/datafile/target_ts_02.dbf' Size 10M;
Statement processed
RMAN> select file_name from dba_data_files;
FILE_NAME
-------------------------------------------------------------------------------/u01/app/oracle/oradata/CDB3/datafile/o1_mf_system_b6cxny8j_.dbf
/u01/app/oracle/oradata/CDB3/datafile/o1_mf_sysaux_b6cxlwsk_.dbf
/u01/app/oracle/oradata/CDB3/datafile/o1_mf_users_b6cxqml2_.dbf
/u01/app/oracle/oradata/CDB3/datafile/o1_mf_undotbs1_b6cxqo85_.dbf
/u01/app/oracle/oradata/CDB3/datafile/target_ts_01.dbf
/u01/app/oracle/oradata/CDB3/datafile/target_ts_02.dbf
Page 5 of 7
Page 6 of 7
In 12c to parallelize the active duplicate execution, multiple auxiliary channels must be
allocated rather than target channels as is the case in 11g.
This new functionality reduces the impact on the source database during the active duplication
process by off-loading the data transfer operations to the auxiliary server. A reduced
duplication time for database with large files can be achieved by spreading out the restore
workload using compression and/or multisectional backup.
Page 7 of 7