Use of encrypted tablespace under Oracle 11 GB
Oracle Undo image data exploration
Oracle ROLLBACK and Undo)
The Undo tablespace cannot be opened because it is damaged.
How to handle Undo tablespace failures
Oracle Undo tablespace reconstruction and restoration
1. Create a directory
[Oracle @ db1 ~] $ ~ $ Mkdir-p/u01/app/oracle/admin/orcl/wallet
2. Modify sqlnet. ora
[Oracle @ db1 ~] $ ~ $ Cd/u01/app/oracle/product/11.1.0/db_1/network/admin/
[Oracle @ db1 ~] $ Admin $ ls
Afiedt. buf samples sqlnet. ora tnsnames. ora
Listener. ora shrept. lst sqlnet. ora. bk2
[Oracle @ db1 ~] Vim sqlnet. ora
ENCRYPTION_WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY =/u01/app/oracle/admin/orcl/wallet )))
3. Create an encryption key
SQL> alter system set encryption key identified by "welcome ";
System altered.
4. Create an encrypted tablespace
SQL> CREATE TABLESPACE encts
2 DATAFILE '$ ORACLE_HOME/dbs/encts. dat' SIZE 10 M
3 ENCRYPTION
4 default storage (ENCRYPT );
Tablespace created.
5. Check whether the creation is successful.
SQL> select TABLESPACE_NAME, ENCRYPTED from dba_tablespaces
2 where tablespace_name = 'encts'
TABLESPACE_NAME ENC
------------------------------------------
ENCTS YES
6. Delete encrypted tablespace
SQL> drop tablespace encts including contents and datafiles;
Tablespace dropped.