create databse rman using dbca
SQL> create tablespace catalog datafile '/oracle/product/10.2.0/oradata/rman/catalog01.dbf' size 30m;
Tablespace created.
SQL>
SQL>
SQL> create user rman identified by rman;
User created.
SQL>
SQL>
SQL> alter user rman quota unlimited on catalog;
User altered.
SQL>
SQL>
SQL> grant recovery_catalog_owner to rman;
Grant succeeded.
SQL>
SQL>
SQL>
SQL> alter user rman default tablespace catalog;
User altered.
SQL> conn rman/rman
Connected.
SQL>
connect with rman
[oracle@localhost ~]$ rman catalog rman/rman@rman
create catalog;
[oracle@localhost ~]$ rman target sys/orcl@orcl catalog rman/rman@rman
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 16 14:58:14 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1348274388)
connected to recovery catalog database
RMAN>
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN>
RMAN> report schema;
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 480 SYSTEM YES /oracle/product/10.2.0/oradata/orcl/system01.dbf
2 30 UNDOTBS1 YES /oracle/product/10.2.0/oradata/orcl/undotbs01.dbf
3 240 SYSAUX NO /oracle/product/10.2.0/oradata/orcl/sysaux01.dbf
4 5 USERS NO /oracle/product/10.2.0/oradata/orcl/users01.dbf
5 100 EXAMPLE NO /oracle/product/10.2.0/oradata/orcl/example01.dbf
6 20 RMAN_TEST NO /oracle/product/10.2.0/oradata/orcl/rman01.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 20 TEMP 32767 /oracle/product/10.2.0/oradata/orcl/temp01.dbf
RMAN>
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
DB TABLE
NODE TABLE
CONF TABLE
DBINC TABLE
CKP TABLE
TS TABLE
TSATT TABLE
DF TABLE
DFATT TABLE
TF TABLE
TFATT TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
OFFR TABLE
RR TABLE
RT TABLE
ORL TABLE
RLH TABLE
AL TABLE
BS TABLE
BP TABLE
BCF TABLE
CCF TABLE
XCF TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
BSF TABLE
BDF TABLE
CDF TABLE
XDF TABLE
BRL TABLE
BCB TABLE
CCB TABLE
SCR TABLE
SCRL TABLE
CONFIG TABLE
XAL TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RSR TABLE
FB TABLE
RC_DATABASE VIEW
RC_DATABASE_INCARNATION VIEW
RC_RESYNC VIEW
RC_CHECKPOINT VIEW
RC_TABLESPACE VIEW
RC_DATAFILE VIEW
RC_TEMPFILE VIEW
RC_REDO_THREAD VIEW
RC_REDO_LOG VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_LOG_HISTORY VIEW
RC_ARCHIVED_LOG VIEW
RC_BACKUP_SET VIEW
RC_BACKUP_PIECE VIEW
RC_BACKUP_DATAFILE VIEW
RC_BACKUP_CONTROLFILE VIEW
RC_BACKUP_SPFILE VIEW
RC_DATAFILE_COPY VIEW
RC_CONTROLFILE_COPY VIEW
RC_BACKUP_REDOLOG VIEW
RC_BACKUP_CORRUPTION VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_COPY_CORRUPTION VIEW
RC_OFFLINE_RANGE VIEW
RC_STORED_SCRIPT VIEW
RC_STORED_SCRIPT_LINE VIEW
RC_PROXY_DATAFILE VIEW
RC_PROXY_CONTROLFILE VIEW
RC_RMAN_CONFIGURATION VIEW
RC_DATABASE_BLOCK_CORRUPTION VIEW
RC_PROXY_ARCHIVEDLOG VIEW
RC_RMAN_STATUS VIEW
ROUT TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_RMAN_OUTPUT VIEW
RCVER TABLE
RC_BACKUP_FILES VIEW
RC_RMAN_BACKUP_SUBJOB_DETAILS VIEW
RC_RMAN_BACKUP_JOB_DETAILS VIEW
RC_BACKUP_SET_DETAILS VIEW
RC_BACKUP_PIECE_DETAILS VIEW
RC_BACKUP_COPY_DETAILS VIEW
RC_PROXY_COPY_DETAILS VIEW
RC_PROXY_ARCHIVELOG_DETAILS VIEW
RC_BACKUP_DATAFILE_DETAILS VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_BACKUP_CONTROLFILE_DETAILS VIEW
RC_BACKUP_ARCHIVELOG_DETAILS VIEW
RC_BACKUP_SPFILE_DETAILS VIEW
RC_BACKUP_SET_SUMMARY VIEW
RC_BACKUP_DATAFILE_SUMMARY VIEW
RC_BACKUP_CONTROLFILE_SUMMARY VIEW
RC_BACKUP_ARCHIVELOG_SUMMARY VIEW
RC_BACKUP_SPFILE_SUMMARY VIEW
RC_BACKUP_COPY_SUMMARY VIEW
RC_PROXY_COPY_SUMMARY VIEW
RC_PROXY_ARCHIVELOG_SUMMARY VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_UNUSABLE_BACKUPFILE_DETAILS VIEW
RC_RMAN_BACKUP_TYPE VIEW
90 rows selected.
SQL>
SQL> create tablespace catalog datafile '/oracle/product/10.2.0/oradata/rman/catalog01.dbf' size 30m;
Tablespace created.
SQL>
SQL>
SQL> create user rman identified by rman;
User created.
SQL>
SQL>
SQL> alter user rman quota unlimited on catalog;
User altered.
SQL>
SQL>
SQL> grant recovery_catalog_owner to rman;
Grant succeeded.
SQL>
SQL>
SQL>
SQL> alter user rman default tablespace catalog;
User altered.
SQL> conn rman/rman
Connected.
SQL>
connect with rman
[oracle@localhost ~]$ rman catalog rman/rman@rman
create catalog;
[oracle@localhost ~]$ rman target sys/orcl@orcl catalog rman/rman@rman
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 16 14:58:14 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1348274388)
connected to recovery catalog database
RMAN>
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
RMAN>
RMAN> report schema;
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 480 SYSTEM YES /oracle/product/10.2.0/oradata/orcl/system01.dbf
2 30 UNDOTBS1 YES /oracle/product/10.2.0/oradata/orcl/undotbs01.dbf
3 240 SYSAUX NO /oracle/product/10.2.0/oradata/orcl/sysaux01.dbf
4 5 USERS NO /oracle/product/10.2.0/oradata/orcl/users01.dbf
5 100 EXAMPLE NO /oracle/product/10.2.0/oradata/orcl/example01.dbf
6 20 RMAN_TEST NO /oracle/product/10.2.0/oradata/orcl/rman01.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 20 TEMP 32767 /oracle/product/10.2.0/oradata/orcl/temp01.dbf
RMAN>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
thease all tables are creating by create catalog statement in rman prompt
SQL> select * from tab;TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
DB TABLE
NODE TABLE
CONF TABLE
DBINC TABLE
CKP TABLE
TS TABLE
TSATT TABLE
DF TABLE
DFATT TABLE
TF TABLE
TFATT TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
OFFR TABLE
RR TABLE
RT TABLE
ORL TABLE
RLH TABLE
AL TABLE
BS TABLE
BP TABLE
BCF TABLE
CCF TABLE
XCF TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
BSF TABLE
BDF TABLE
CDF TABLE
XDF TABLE
BRL TABLE
BCB TABLE
CCB TABLE
SCR TABLE
SCRL TABLE
CONFIG TABLE
XAL TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RSR TABLE
FB TABLE
RC_DATABASE VIEW
RC_DATABASE_INCARNATION VIEW
RC_RESYNC VIEW
RC_CHECKPOINT VIEW
RC_TABLESPACE VIEW
RC_DATAFILE VIEW
RC_TEMPFILE VIEW
RC_REDO_THREAD VIEW
RC_REDO_LOG VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_LOG_HISTORY VIEW
RC_ARCHIVED_LOG VIEW
RC_BACKUP_SET VIEW
RC_BACKUP_PIECE VIEW
RC_BACKUP_DATAFILE VIEW
RC_BACKUP_CONTROLFILE VIEW
RC_BACKUP_SPFILE VIEW
RC_DATAFILE_COPY VIEW
RC_CONTROLFILE_COPY VIEW
RC_BACKUP_REDOLOG VIEW
RC_BACKUP_CORRUPTION VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_COPY_CORRUPTION VIEW
RC_OFFLINE_RANGE VIEW
RC_STORED_SCRIPT VIEW
RC_STORED_SCRIPT_LINE VIEW
RC_PROXY_DATAFILE VIEW
RC_PROXY_CONTROLFILE VIEW
RC_RMAN_CONFIGURATION VIEW
RC_DATABASE_BLOCK_CORRUPTION VIEW
RC_PROXY_ARCHIVEDLOG VIEW
RC_RMAN_STATUS VIEW
ROUT TABLE
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_RMAN_OUTPUT VIEW
RCVER TABLE
RC_BACKUP_FILES VIEW
RC_RMAN_BACKUP_SUBJOB_DETAILS VIEW
RC_RMAN_BACKUP_JOB_DETAILS VIEW
RC_BACKUP_SET_DETAILS VIEW
RC_BACKUP_PIECE_DETAILS VIEW
RC_BACKUP_COPY_DETAILS VIEW
RC_PROXY_COPY_DETAILS VIEW
RC_PROXY_ARCHIVELOG_DETAILS VIEW
RC_BACKUP_DATAFILE_DETAILS VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_BACKUP_CONTROLFILE_DETAILS VIEW
RC_BACKUP_ARCHIVELOG_DETAILS VIEW
RC_BACKUP_SPFILE_DETAILS VIEW
RC_BACKUP_SET_SUMMARY VIEW
RC_BACKUP_DATAFILE_SUMMARY VIEW
RC_BACKUP_CONTROLFILE_SUMMARY VIEW
RC_BACKUP_ARCHIVELOG_SUMMARY VIEW
RC_BACKUP_SPFILE_SUMMARY VIEW
RC_BACKUP_COPY_SUMMARY VIEW
RC_PROXY_COPY_SUMMARY VIEW
RC_PROXY_ARCHIVELOG_SUMMARY VIEW
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
RC_UNUSABLE_BACKUPFILE_DETAILS VIEW
RC_RMAN_BACKUP_TYPE VIEW
90 rows selected.
SQL>
RESYNC CATALOG | Updates the recovery catalog with RMAN metadata in the current control file of the target database (default).
RMAN creates a snapshot control file in order to obtain a read-consistent view of the control file, then updates the recovery catalog with any new information from the snapshot. The
RESYNC CATALOG command updates the following classes or records:
|
No comments:
Post a Comment