oracle 透明加密
一、sqlnet.ora檔案新增wallet路徑
beijing:/u01/app/oracle/admin/prod/wallet$ more /u01/app/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ENCRYPTION_WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/u01/app/oracle/admin/prod/wallet )
))
beijing:/u01/app/oracle/admin/prod/wallet$
二、開啟透明加密功能
beijing:/u01/app/oracle/product/11.1.0/db_1/network/admin$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Apr 25 15:13:09 2016
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL> alter system set encryption key authenticated by "abcde";
System altered.
SQL>
SQL>
三、在wallet裡產生一個密碼檔案
beijing:/u01/app/oracle/admin/prod/wallet$
beijing:/u01/app/oracle/admin/prod/wallet$ ll
total 4
-rw-r--r-- 1 oracle oinstall 1693 Apr 25 15:13 ewallet.p12
beijing:/u01/app/oracle/admin/prod/wallet$
beijing:/u01/app/oracle/admin/prod/wallet$
SQL> r
1* select * from dba_encrypted_columns
OWNER TABLE_NAME COLUMN_NAM ENCRYPTION_ALG SAL
---------- ---------- ---------- ----------------------------- ---
SCOTT T INFO AES 192 bits key YES
SQL>
SQL>
SQL> insert into t values(1,'abcde');
1 row created.
SQL> commit;
Commit complete.
SQL>
四、關閉wallet,加密列無法查詢
SQL> alter system set wallet close identified by "abcde";
alter system set wallet close identified by "abcde"
*
ERROR at line 1:
ORA-28364: invalid wallet operation
SQL> alter system set wallet close;
System altered.
SQL>
SQL> select * from t;
select * from t
*
ERROR at line 1:
ORA-28365: wallet is not open
SQL> select id from t;
ID
----------
1
SQL>
SQL>
SQL>
SQL>
SQL> alter system set wallet open identified by "abcde";
System altered.
SQL>
SQL>
SQL> col info for a20
SQL> r
1* select * from t
ID INFO
---------- --------------------
1 abcde
SQL>
beijing:/u01/app/oracle/admin/prod/wallet$ more /u01/app/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ENCRYPTION_WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/u01/app/oracle/admin/prod/wallet )
))
beijing:/u01/app/oracle/admin/prod/wallet$
二、開啟透明加密功能
beijing:/u01/app/oracle/product/11.1.0/db_1/network/admin$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Apr 25 15:13:09 2016
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL> alter system set encryption key authenticated by "abcde";
System altered.
SQL>
SQL>
三、在wallet裡產生一個密碼檔案
beijing:/u01/app/oracle/admin/prod/wallet$
beijing:/u01/app/oracle/admin/prod/wallet$ ll
total 4
-rw-r--r-- 1 oracle oinstall 1693 Apr 25 15:13 ewallet.p12
beijing:/u01/app/oracle/admin/prod/wallet$
beijing:/u01/app/oracle/admin/prod/wallet$
SQL> r
1* select * from dba_encrypted_columns
OWNER TABLE_NAME COLUMN_NAM ENCRYPTION_ALG SAL
---------- ---------- ---------- ----------------------------- ---
SCOTT T INFO AES 192 bits key YES
SQL>
SQL>
SQL> insert into t values(1,'abcde');
1 row created.
SQL> commit;
Commit complete.
SQL>
四、關閉wallet,加密列無法查詢
SQL> alter system set wallet close identified by "abcde";
alter system set wallet close identified by "abcde"
*
ERROR at line 1:
ORA-28364: invalid wallet operation
SQL> alter system set wallet close;
System altered.
SQL>
SQL> select * from t;
select * from t
*
ERROR at line 1:
ORA-28365: wallet is not open
SQL> select id from t;
ID
----------
1
SQL>
SQL>
SQL>
SQL>
SQL> alter system set wallet open identified by "abcde";
System altered.
SQL>
SQL>
SQL> col info for a20
SQL> r
1* select * from t
ID INFO
---------- --------------------
1 abcde
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29108064/viewspace-2088638/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle透明資料加密Oracle加密
- ORACLE透明加密安裝操作Oracle加密
- Oracle TDE(透明資料加密)Oracle加密
- ORACLE透明加密場景模擬Oracle加密
- Oracle Transparent Data Encryption 透明加密(一)Oracle加密
- Oracle Transparent Data Encryption 透明加密(二)Oracle加密
- 透明資料加密加密
- 2.9.2 透明資料加密加密
- [zt]Oracle 10G:透明資料加密技術(TDE)Oracle 10g加密
- Oracle 10G 新特性--透明資料加密技術(TDE)Oracle 10g加密
- 達夢加密之外部加密函式的半透明列加密加密函式
- Hadoop KMS配置(HDFS透明加密)Hadoop加密
- TDE 透明表空間加密 Wallet加密
- openGauss-透明資料加密加密
- [重慶思莊每日技術分享]-oracle 12c透明加密Oracle加密
- 資料加密 第六篇:透明檔案加密加密
- oracle 11g高階安全元件測試透明資料加密(表空間加密)記錄Oracle元件加密
- OceanBase 安全審計之透明加密加密
- 文件透明加密軟體哪家好?window透明加密軟體產品如何對電子檔案加密?陝西風奧科技加密
- openGauss 設定透明資料加密_TDE加密
- 拿走磁碟也甭想讀資料——透明加密保安全加密
- Sqlserver關於TDE透明資料加密的使用總結SQLServer加密
- 什麼時候會用到透明加密表空間呢?加密
- oracle之 關閉透明大頁Oracle
- ORACLE透明閘道器的配置Oracle
- Oracle ----加密解密Oracle加密解密
- Oracle 透明閘道器連線MySQLOracleMySql
- ORACLE RAC TAF 配置(透明故障轉移)Oracle
- 歐洲加密貨幣經紀商尋求透明市場的監管加密
- SQLServer·最佳實踐·透明資料加密TDE在SQLServer的應用SQLServer加密
- oracle資料加密Oracle加密
- oracle加密函式Oracle加密函式
- ORACLE 加密(TDE) 對欄位加密測試Oracle加密
- Oracle 標準大頁和透明大頁Oracle
- ORACLE 透明閘道器訪問 MYSQL 表OracleMySql
- Oracle透明閘道器訪問Mysql—luckyfriendsOracleMySql
- Oracle Failover - TAF 透明應用切換OracleAI
- 企業系統文件透明加密適合辦公的加密軟體,吉林全方位的圖紙文件加密,風奧科技加密