srvctl stop database -d orcl
srvctl start database -d orcl
PDB level
alter pluggable database PDB1 open instances=all;
alter pluggable database PDB1 close instances=all;
SELECT * FROM gv$pdbs;
SELECT * FROM dba_pdb_saved_states;
srvctl stop database -d orcl
srvctl start database -d orcl
alter pluggable database PDB1 open instances=all;
alter pluggable database PDB1 close instances=all;
SELECT * FROM gv$pdbs;
SELECT * FROM dba_pdb_saved_states;
ENCRYPTION_WALLET_LOCATION=
(SOURCE=(METHOD=FILE)(METHOD_DATA=
(DIRECTORY=E:\encrypted_wallet\)))
shutdown immediate;
startup;
ADMINISTER KEY MANAGEMENT CREATE KEYSTORE 'E:\encrypted_wallet\' IDENTIFIED BY "wve6Wq54IUhg39XY";
ADMINISTER KEY MANAGEMENT CREATE AUTO_LOGIN KEYSTORE FROM KEYSTORE 'E:\encrypted_wallet\' IDENTIFIED BY "wve6Wq54IUhg39XY";
select * FROM V_$ENCRYPTION_WALLET;
select * FROM V_$ENCRYPTION_KEYS;
SELECT * FROM v$rman_encryption_algorithms ORDER BY algorithm_name;
ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "wve6Wq54IUhg39XY" CONTAINER=ALL;
ADMINISTER KEY MANAGEMENT SET KEY IDENTIFIED BY "wve6Wq54IUhg39XY" WITH BACKUP CONTAINER=ALL;
alter system set compatible = '12.2.0' scope=spfile;
show parameter compatible;
SELECT
'ALTER TABLESPACE '
|| tablespace_name
|| ' ENCRYPTION ONLINE USING ''AES256'' ENCRYPT;' v_sql
FROM
dba_tablespaces
WHERE
encrypted = 'NO'
AND contents IN (
'PERMANENT'
)
AND tablespace_name NOT IN (
'SYSTEM',
'SYSAUX'
)
ORDER BY
1;
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE ENCRYPTION FOR DATABASE ON;
CONFIGURE ENCRYPTION ALGORITHM 'AES256';
show all;
set encryption on;
crosscheck backupset;
crosscheck archivelog all;
delete noprompt expired backupset;
delete noprompt expired archivelog all;
delete noprompt obsolete;
run {
allocate channel d1 type disk;
allocate channel d2 type disk;
allocate channel d3 type disk;
allocate channel d4 type disk;
BACKUP INCREMENTAL LEVEL 0 DATABASE PLUS ARCHIVELOG;
release channel d1;
release channel d2;
release channel d3;
release channel d4;
}
delete noprompt expired backupset;
delete noprompt expired archivelog all;
delete noprompt obsolete;
list backupset;
exit
ENCRYPTION=ALL
ENCRYPTION_MODE=TRANSPARENT
ENCRYPTION_ALGORITHM=AES256
SET ZIP_CMD=%ORACLE_HOME%\bin\zip.exe
SET UNZIP_CMD=%ORACLE_HOME%\bin\unzip.exe
dbsat collect chiup@paris12c paris12c
dbsat report paris12c