You are on page 1of 5

RMAN

-BACKUP Sets (Logical )

-Backup piece

Image Copy - It is similar to OS copy of the file

Snapshot Controlfile - It is temporary snapshot which is used to resync from read


consistenet version of control file.

Database Incarnation - The new version of database which is open after incomplete
recovery or from backup control file.

Show Current Ssetting - Show all;show exclude;

Edit Current Setting - Configure;clears

Reset default Configuration - execute dbms_backup_restore.resetConfig;

========================

Catalog - Seprate Database which contains catalog schema. It is


optional.Secondary storage for backup metadata.Keep historical data.

No of Catalog Database - Multiple catalog Database for same DB.At single time we can connect
to only 1 catalog via RMAN.

control_file_record_keep_time - Keep the control backup info. for no of days.

Catalog database lost - There is no direct effect.Create a new catalog DB and register with
target DB.All the backup info from target DB will be upted to catalog.

========================

RMAN Backup - Controlfile,datafile,archive logs,standby DB control file,spfile

RMAN Not Backup - Redo logs,network files,password files,external tables,oracle


home

SIngle Backupset - Archivelogs + datafile->NO, Controlfile + datafile -> YES

Backupset + backup piece Size - MAXPIECESIZE,MAXSETSIZE,Configure-By default one backupset and


one backup piece

Backupset/Impage Copy backup - By dafualt backup set and image copy is bit for bit copy of a file
Consistent Backup - DB is in consistent state.Backup after DB is down with shutdown
immediate,shutdown normal,transectional

Inconsistent Backup - DB is down with shutdown abort,backup is taken when DB is UP and


running.Media recovery needed before DB can be open.Apply any pending
redo logs.No inconsistent backup when the DB is noarchive log mode.

RMAN BACKUP when DB is down - NO,RMAN backup will run only when DB is open/mount-to
keep the metadata in controlfile.

Extra Logging/backup mode - No,,no extra redo generated while RMAN backup

RMAN Compression - Binary compression of backupset(BZIP2,ZLIB)

RMAN Encyption - Wallet based TSE,password-based encyption or


both,CONFIGURE ENCRYPTION(persistent),SET ENCRYPTION(session)

MMS/OSB(Oracle Secure backup) - Media manager by oracle filesystem to tape

====================

Recover catalog-

- Createing recover catalog owner

CREATE USER rman IDENTIFIED BY rman DEFAULT TABLESPACE tools TEMPORARY TABLESPACE
temp QUOTA UNLIMITED ON tools;

GRANT CONNECT, RECOVERY_CATALOG_OWNER TO rman;

- Creating recovery catlog

rman catalog rman/rman@catdb

create catalog;

- Register the target DB

rman target / catalog rman/rman@catdb

register database

- Upgrade the recovery catalog owner

rman target / catalog rman/rman@catdb

upgrade catalog;

- Upgrading rhe catalog dtaabase does't upgrdae the owner

- remove catalog-drop catalog;


- Unregister the DB- unregister database catdb;

-s

RMAN ENCRYPTION:

================

- Only in EE,Compatible >=10.2.0

Modes:

- TDE

- Password mode - set encryption on identified by password only

- Dual mode-set encrytion on identified by password

- V$backup_piece

- Image copy backup can't encryption

- TDE ( database,tablespace,)

- create a directory for keystore

- Specify the keystore location in sqlnet.ora- $ORACLE_HOME/network/admin/sqlnet.ora

Encryption_wallet_location

- Log in SYSKM/SYSDBA

- create software keystore file

administer key managment create keystore 'wallet_location_path' identified by


keystore_password;

- open the software keystore file

administer key managment create keystore open 'wallet_location_path' identified by


keystore_password;

- Create a master encrytion key

administer key managment set key 'wallet_location_path' identified by


keystore_password with backup using 'for 12c';

- Password mode(session)-set encrytion on identified by password only;


- Dual Mode- set encrytion on identified by password

set decryption identified by 'password01' {,,,,}

Block Corruption:

=================

Validate-Manual

check logical-both logical/physical

v$database_block_corruption

backup validate -

Standby database-automatic block repair

Flash Backup::

==============

v$transection

UNDO Segment-grow and shrink as needed -circular storage buffer

Transportation Data::

=====================

- Cross Platform data transport->image copies,backup sets

- Database Transport : read-only same indian formate

- Tablespace transport:Read WRITE,different endian format

Convert files-

alter tabelspace test read only;

convert tablespace test to platform 'Solaries..' format '/../%U';

ex:

sqlplus / as sysdba

sql>startup mount;

sql>alter database open read only;

sql>host rman target=/


rman>convert database transport script 'crdb.sql' new database 'newdb' to platform 'MS' format
'/tmp/%U';

ship ->datafile,pfile,crdb.sql

sqlplus / as sysdba

sql>@crdb.sql

sqlplus / as sysdba

sql>startup mount;

sql>alter database open read only;

sql>host rman target=/

rman>convert database on target platform covert script 'cnvt.sql' transport script 'crdb.sql' new
database 'newdb' to platform 'MS' format '/tmp/%U';

ship ->datafile,pfile,crdb.sql,cnvt.sql

sqlplus / as sysdba

sql>host rman target=/

rman>@cnvt.sql

rman>exit

sql>@crdb.sql

You might also like