Professional Documents
Culture Documents
sqlplus / as sysdba
cd /u02
mkdir wallet
pwd /u02/wallet
cd /u01/app/oracle/product/12.2.0/db_1/network/admin
vi sqlnet.ora
cat sqlnet.ora
ENCRYPTION_WALLET_LOCATION=
(SOURCE=
(METHOD=FILE)
(METHOD_DATA=
(DIRECTORY=/u02/wallet)
)
)
rman target /
show all;
sqlplus / as sysdba
administer key management set key identified by password with backup using
'master';
cd /u02/wallet/
rman target /
show all;
sqlplus / as sysdba
rman target /
run{
allocate channel c1 type disk;
backup as backupset format '/u02/rman_bkp/df_%d_%s_%p'
incremental level 0 database;
backup as backupset format '/u02/rman_bkp/ar_%d_%s_%p'
archivelog all delete input;
}
cd /u01/app/oracle/oradata/orcl/
rm -rf users01.dbf
rman target /
restore tablespace users; <---if database is not open then startup mount mode and
perform this operation
sqlplus / as sysdba
==================================================================================
---------or another error solution-----------
rman target /
--------------
or
-----
rman target /
sqlplus / as sysdba
rman target /
sqlplus / as sysdba