Bas 1
Bas 1
Bas 1
1 of 5
http://satya-dba.blogspot.in/2009/01/rman-was-first-introduced-in-oracle8...
Translator
Select Language
My Articles
* Bits n Bytes
* Database of Life
* Databases in the world
* First day in Job (at IDRBT)
ADRCI Commands in Oracle
RMAN in Oracle
Oracle Recovery Manager (RMAN)
RMAN was introduced in Oracle8, RMAN has since been enhanced (in Oracle 9i),
enhanced (in Oracle 10g) and enhanced (in Oracle 11g).
ASM
Auditing in Oracle
Recovery Manager(RMAN) is an Oracle provided (free) utility for backing-up, restoring and recovering Oracle
databases. RMAN ships with the Oracle database and doesn't require a separate installation. The RMAN executable is
located in $ORACLE_HOME/bin directory.
RMAN is a Pro*C application that translates commands to a PL/SQL interface through RPC (Remote Procedure Call).
The PL/SQL calls are statically linked into the Oracle kernel, and does not require the database to be opened (mapped
from the ?/rdbms/admin/recover.bsq file).
The RMAN environment consists of the utilities and databases that play a role in backing up our data. At a minimum,
the environment for RMAN must include the following:
Flashback
Flashback Query
The RMAN client (rman executable and recover.bsq), which interprets backup and recovery commands,
directs server sessions to execute those commands, and records our backup and recovery activity in the
target database control file.
A recovery catalog database, a separate database schema used to record RMAN activity against one or more
target databases (this is optional, but highly recommended).
A flash recovery area, called as fast recovery area from 11g release2, a disk location in which the database
can store and manage files related to backup and recovery.
Media management software, required for RMAN to interface with backup devices such as tape drives.
Benefits of RMAN
Partitioning in Oracle
Backups are faster and uses less tapes (RMAN will skip empty blocks)
Profiles in Oracle
RMAN Commands
Duplicate
Download Pdf
Data Recovery
Rollback Segments
SQL*Loader
Setting SQL prompt
RMAN can be operated from Oracle Enterprise Manager, or from command line. Here are the command line
arguments:
Argument
Value
Startup/Shutdown Options
target
catalog
Statistics in Oracle
Statspack in Oracle
Description
nocatalog
none
cmdfile
log
Undo Tablespace/Management
trace
append
none
debug
Temporary Tablespace
msgno
none
send
pipe
string
timeout
integer
checksyntax none
$
$
$
$
$
$
$
$
rman
rman
rman
rman
rman
rman
rman
rman
TARGET SYS/pwd@target
TARGET SYS/pwd@target NOCATALOG
TARGET SYS/pwd@target CATALOG rman/pwd@cat
TARGET=SYS/pwd@target CATALOG=rman/pwd@cat
TARGET SYS/pwd@target LOG $ORACLE_HOME/dbs/log/rman_log.log APPEND
TARGET / CATALOG rman/pwd@cat
TARGET / CATALOG rman/pwd@cat CMDFILE cmdfile.rcv LOG outfile.txt
10/29/2015 11:50 AM
2 of 5
oracleasm
http://satya-dba.blogspot.in/2009/01/rman-was-first-introduced-in-oracle8...
Popular Posts
Followers
One (base) recovery catalog can manage multiple target databases. All the target databases should be register with the
catalog.
Start by creating a database schema (usually named rman), in catalog database. Assign an appropriate tablespace to it
and grant it the recovery_catalog_owner role.
$ sqlplus "/as sysdba"
SQL> create user rman identified by rman default tablespace rmants quota unlimited on rmants;
SQL> grant resource, recovery_catalog_owner to rman;
No need to grant connect role explicitly, because recovery_catalog_owner role has it.
Log in to catalog database with rman and create the catalog.
$ rman catalog rman/rman
RMAN> create catalog;
RMAN> exit;
Now you can continue by registering your databases in the catalog.
$ rman catalog rman/rman@cat target system/manager@tgt
RMAN> register database;
Auto Tracker
Interview Question
Follow by Email
A virtual private catalog is a set of synonyms and views that enable user access to a subset of a base recovery catalog.
The owner of the base recovery catalog can GRANT or REVOKE restricted access to the catalog to other database users.
Each restricted user has full read/write access to his own metadata, which is called a virtual private catalog. The RMAN
metadata is stored in the schema of the virtual private catalog owner. The owner of the base recovery catalog controls
what each virtual catalog user can access.
$ sqlplus "/as sysdba"
SQL> create user vpc identified by vpc default tablespace rmants quota unlimited on rmants;
SQL> grant resource, recovery_catalog_owner to vpc;
Log in to catalog database with rman and grant the catalog to vpc.
$ rman catalog rman/rman
RMAN> GRANT CATALOG FOR DATABASE target_db TO vpc;
RMAN> exit;
Log in to catalog database with vpc and create the virtual private catalog.
$ rman catalog vpc/vpc
RMAN> CREATE VIRTUAL CATALOG;
RMAN> exit;
$ sqlplus vpc/vpc
SQL>exec rman.DBMS_RCVCAT.CREATE_VIRTUAL_CATALOG;
Will display repair options for the specified failures. 11g R1 command.
ALLOCATE
ALTER DATABASE
BACKUP
BLOCKRECOVER
CATALOG
Add information about file copies and user-managed backups to the catalog repository.
CHANGE
CONFIGURE
CONNECT
Establish a connection between RMAN and a target, auxiliary, or recovery catalog database.
CONVERT
Convert datafile formats for transporting tablespaces and databases across platforms.
CREATE CATALOG
CREATE SCRIPT
CROSSCHECK
DELETE
DELETE SCRIPT
DROP CATALOG
DROP DATABASE
DUPLICATE
Use backups of the target database to create a duplicate database that we can use for testing
purposes or to create a standby database.
EXECUTE SCRIPT
EXIT or QUIT
FLASHBACK
DATABASE
GRANT
HOST
Invoke an operating system command-line subshell from within RMAN or run a specific operating
system command.
IMPORT CATALOG
Import the metadata from one recovery catalog into another recovery catalog.
LIST
PRINT SCRIPT
10/29/2015 11:50 AM
3 of 5
http://satya-dba.blogspot.in/2009/01/rman-was-first-introduced-in-oracle8...
RECOVER
Apply redo logs or incremental backups to a restored backup set in order to recover it to a
specified time.
REGISTER
Will repair database failures identified by the Data Recovery Advisor. 11g R1 command.
REPLACE SCRIPT
Replace an existing script stored in the recovery catalog. If the script does not exist, then
REPLACE SCRIPT creates it.
REPORT
RESET DATABASE
Inform RMAN that the SQL statement ALTER DATABASE OPEN RESETLOGS has been executed
and that a new incarnation of the target database has been created, or reset the target database
to a prior incarnation.
RESTORE
RESYNC CATALOG
Perform a full resynchronization, which creates a snapshot control file and then copies any new
or changed information from that snapshot control file to the recovery catalog.
REVOKE
RUN
To run set of RMAN commands, only some RMAN commands are valid inside RUN block.
SEND
SET
SHOW
SHUTDOWN
SPOOL
SQL
STARTUP
SWITCH
Specify that a datafile copy is now the current datafile, that is, the datafile pointed to by the
control file.
TRANSPORT
TABLESPACE
Create transportable tablespace sets from backup for one or more tablespaces.
UNREGISTER
UPGRADE CATALOG
Upgrade the recovery catalog schema from an older version to the version required by the RMAN
executable.
VALIDATE
All RMAN commands executed through channels. A channel is a connection (session) from RMAN to target database.
These connections or channels are used to perform the desired operations.
10/29/2015 11:50 AM
4 of 5
http://satya-dba.blogspot.in/2009/01/rman-was-first-introduced-in-oracle8...
View Describes
V$ARCHIVED_LOG
RC_ARCHIVED_LOG
V$BACKUP_DATAFILE
RC_BACKUP_CONTROLFILE
V$BACKUP_CORRUPTION
RC_BACKUP_CORRUPTION
V$BACKUP_DATAFILE
RC_BACKUP_DATAFILE
V$BACKUP_FILES
RC_BACKUP_FILES
V$BACKUP_PIECE
RC_BACKUP_PIECE
Backup pieces
V$BACKUP_REDOLOG
RC_BACKUP_REDOLOG
V$BACKUP_SET
RC_BACKUP_SET
Backup sets
V$BACKUP_SPFILE
RC_BACKUP_SPFILE
V$DATAFILE_COPY
RC_CONTROLFILE_COPY
V$COPY_CORRUPTION
RC_COPY_CORRUPTION
V$DATABASE
RC_DATABASE
V$DATABASE_
BLOCK_CORRUPTION
RC_DATABASE_
BLOCK_CORRUPTION
RC_DATAFILE
V$DATAFILE_COPY
RC_DATAFILE_COPY
V$LOG_HISTORY
RC_LOG_HISTORY
V$OFFLINE_RANGE
RC_OFFLINE_RANGE
V$PROXY_ARCHIVEDLOG
RC_PROXY_ARCHIVEDLOG
V$PROXY_CONTROLFILE
RC_PROXY_CONTROLFILE
V$PROXY_DATAFILE
RC_PROXY_DATAFILE
RC_REDO_LOG
V$THREAD
RC_REDO_THREAD
V$RESTORE_POINT
RC_RESTORE_POINT
RC_RESYNC
V$RMAN_CONFIGURATION
RC_RMAN_CONFIGURATION
V$RMAN_OUTPUT
RC_RMAN_OUTPUT
RC_RMAN_STATUS
V$TABLESPACE
RC_TABLESPACE
RC_TEMPFILE
V$TEMPFILE
V$RMAN_STATUS
Duplicate
Download Pdf
10/29/2015 11:50 AM
http://satya-dba.blogspot.in/2009/01/rman-was-first-introduced-in-oracle8...
3 comments
Add a comment
Top comments
3 years ago
I'm really enjoying the theme/design of your blog. Do you ever run into any internet browser compatibility
problems? A small number of my blog audience have complained about my website not operating correctly in
Explorer but looks great in Firefox. Do you have any ideas to help x this problem? <i>Also visit my web site</i> ...
<b><a href="http://wiki.lezilla-project.org/wiki/index.php?title=User:EliseMpv" rel="nofollow">software</a></b>
Newer Post
Home
Older Post
Secure Connection
5 of 5
10/29/2015 11:50 AM