Documente Academic
Documente Profesional
Documente Cultură
Example output)
dbm02:
DB_UNIQUE_NAME=dbm02
- If not set the variable $DB_UNIQUE_NAME, need to set by the following command
SQLNET.WALLET_OVERRIDE
WALLET_LOCATION
- Ensure to sqlnet.ora
cat $ORACLE_HOME/network/admin/sqlnet.ora
3. Run Recovery Settings and ensure to contain the following parameters in the
Update SQLNET.ORA File step on EM cloud control
SQLNET.WALLET_OVERRIDE
WALLET_LOCATION
- cat $ORACLE_HOME/network/admin/sqlnet.ora
Example output)
SQLNET.WALLET_OVERRIDE = true
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /u01/app/oracle/product/12.2.0.1/dbhome_1/dbs/zdlra)
)
)
5. Update manually the sqlnet.ora file to contain the location of the individual
wallets for each instance using a variable.
cat $ORACLE_HOME/network/admin/sqlnet.ora
Example output)
SQLNET.WALLET_OVERRIDE = true
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /u01/app/oracle/admin/${DB_UNIQUE_NAME}/wallet)
)
)
6. Add the VPC user manually to each instance wallet of protected database
�@ - Ensure to /u01/app/oracle/admin/dbm02/wallet
example output)
�@ Enter wallet password:
�@ List credential (index: connect_string username)
�@ 2: yakushiings1:1521/zdlras:dedicated ravpc1
�@ 1: dbm02 C##ACSZDLRA
Example)
sqlplus /@dbm02
sqlplus /@yakushiings1:1521/zdlras:dedicated�@�@
Note: Our customer is using the following wallet directry with password
mkstore -wrl /u01/app/oracle/admin/dbm02/wallet -create
Example output)
RMAN Script:
backup incremental level 1 cumulative device type sbt filesperset = 1 tag '%TAG'
section size 64 G database plus archivelog not backed up filesperset = 32;
run {
allocate channel oem_backup_sbt1 type 'SBT_TAPE' format '%d_%U' parms
"SBT_LIBRARY=/u01/app/oracle/product/12.2.0.1/dbhome_1/lib/libra.so,
SBT_PARMS=(RA_WALLET='location=file:/u01/app/oracle/product/12.2.0.1/dbhome_1/dbs/z
dlra credential_alias=yakushiings1:1521/zdlras:dedicated')" maxpiecesize 1000 G;
backup filesperset = 1 tag '%TAG' current controlfile;
release channel oem_backup_sbt1;
}
8. Finaly, ensure to run Backup on Command Line Interface(CLI) and ensure to finish
successfully Backup
Example)
RMAN> RUN
2> {
3> ALLOCATE CHANNEL oem_backup_sbt1 DEVICE TYPE 'SBT_TAPE' FORMAT '%d_%U'
PARMS='SBT_LIBRARY=/u01/app/oracle/product/12.2.0.1/dbhome_1/lib/libra.so,ENV=(RA_W
ALLET=location=file:/u01/app/oracle/admin/${DB_UNIQUE_NAME}/wallet
credential_alias=yakushiings1:1521/zdlras:dedicated)';
BACKUP INCREMENTAL LEVEL 1 DATABASE PLUS ARCHIVELOG;
4> }