Oracle 11g下加密資料表空間的使用

來源:互聯網
上載者:User

Oracle 11g下加密資料表空間的使用

Oracle Undo 鏡像資料探究

Oracle 復原(ROLLBACK)和撤銷(Undo)

Undo 資料表空間損壞導致無法open

Undo資料表空間失敗的處理方法

Oracle Undo資料表空間重建與恢複

1.建立目錄

[oracle@db1~]$ ~ $mkdir -p /u01/app/oracle/admin/orcl/wallet

2.修改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.建立一個加密key

SQL>alter system set encryption key identified by "welcome";

System altered.

 

4.建立一個加密資料表空間

SQL>CREATE TABLESPACE encts
  2  DATAFILE '$ORACLE_HOME/dbs/encts.dat' SIZE 10M
  3  ENCRYPTION
  4  DEFAULT STORAGE (ENCRYPT);

Tablespace created.


5.查看是否建立成功

SQL>select TABLESPACE_NAME,ENCRYPTED from dba_tablespaces
  2  where tablespace_name='ENCTS'

 TABLESPACE_NAME                                                ENC

-----------------------------------                      -------

ENCTS                                                                      YES

 

6.刪除加密資料表空間

SQL>drop tablespace encts including contents and datafiles;

Tablespace dropped.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.