<<Back to Oracle Backup & Recovery Main Page
Starting RMAN and connecting to Database
Starting RMAN and connecting to Database
To start RMAN you need to set the environment and type rman and press enter.
You can connect to database either using connect command or using command line option.
using command line option
localhost:$export ORACLE_HOME=/ora_app/product/18c/dbd2
localhost:$export PATH=$ORACLE_HOME/bin:$PATH
localhost:$export ORACLE_SID=ORCL1P
localhost:$rman target /
Recovery Manager: Release 18.0.0.0.0 - Production on Sun Apr 4 08:11:01 2021
Version 18.11.0.0.0
Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL1P (DBID=4215484517)
RMAN>
using connect option
localhost:$rman
RMAN> connect target sys@ORCL1P
target database Password:********
connected to target database: ORCL1P (DBID=4215484517)
NOTE: To use connect command you need to ensure that you have proper TNS sentry for database (ORCL1P) which you can use in connect command
Once you are connected to the database you can run show all command to display the default rman configuration
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name ORCL1Pare:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/ora_app/product/18c/dbd2/dbs/snapcf_ORCL1P.f'; # default
Comments
Post a Comment