Hi Guy's,
Please find the below steps to do encryption & decrypt at tablespace level using TDE.
It has advanced security feature that encrypts sensitive data stored in tables, tablespaces, and database backups, protecting it from unauthorized access at the storage level. The encryption and decryption processes are managed automatically by the database.
Encryption Steps :-
Configure the Software Keystore Location. one time configuration
Create directory at OS level +DATA_DG/prddb/WALLET/tde
mkdir -p wallet/tde
Need to reboot for effect this parameter, wallet root can be ASM or File system
ALTER SYSTEM SET WALLET_ROOT='+DATA_DG/prddb/WALLET' SCOPE=SPFILE SID = '*';
No need to reboot
ALTER SYSTEM SET TDE_CONFIGURATION="KEYSTORE_CONFIGURATION=FILE" SCOPE=BOTH SID='*';
Change the database default encryption algorithm
ALTER SYSTEM SET "_TABLESPACE_ENCRYPTION_DEFAULT_ALGORITHM" = 'AES256' SCOPE = BOTH SID = '*';
Create the Software Keystore.
Creating a Password-Protected Software Keystore , user shoud has been granted the ADMINISTER KEY MANAGEMENT or SYSKM privilege
SQL>ADMINISTER KEY MANAGEMENT CREATE KEYSTORE IDENTIFIED BY ikea12345#;
- You can also Decrypt the tablespace but ensure you have enough space as this process creates new datafiles while decrypting.
- Parallel Datafiles: During an ONLINE DECRYPT operation, Oracle creates a new, unencrypted version of every datafile in the target tablespace.
- Double Storage: For the duration of the conversion, the tablespace effectively occupies double its normal size because both the original encrypted files and the new decrypted files must exist simultaneously on disk.
- Data Consistency: This approach allows users to continue reading from and writing to the tablespace while it is being decrypted. Oracle manages the synchronization between the old and new files until the process is finished.
- Example :- If datafile size 10 Gb and data occupied in this datafile 1gb then how to ensure this size in enough to start decrypt.
- Allocation: It requires space equal to the allocated size (10 GB), not the occupied data (1 GB).
- Total Requirement: You must have at least 10 GB of free space on the storage mount or ASM diskgroup to hold the temporary duplicate.
- ALTER TABLESPACE USERS ENCRYPTION ONLINE DECRYPTED ;
- ALTER TABLESPACE DATA_TS ENCRYPTION ONLINE DECRYPTED ;
No comments:
Post a Comment