How to open and close wallet for Oracle Databse 11g?

1.Add the following entries in the $ORACLE_HOME/network/admin/sqlnet.ora (Note it is the DB's ORACLE_HOME not the GRID'S ORACLE_HOME)
Make sure that the DIR you specified in the sqlnet.ora exist on the host, Or you will encounter error when creating wallet.

WALLET_LOCATION =

  (SOURCE =

    (METHOD = FILE)

    (METHOD_DATA =

      (DIRECTORY= /u01/app/oracle/product/11.2.0.3/dbhome_1/network/admin)

    )

   )

ENCRYPTION_WALLET_LOCATION =

  (SOURCE =

    (METHOD = FILE)

    (METHOD_DATA =

      (DIRECTORY= /u01/app/oracle/admin/poddb/wallet)

    )

   )
2. Restart the listener , so that your previous configuration can take effect.
 
$ORACLE_HOME/bin/srvctl stop listener
$ORACLE_HOME/bin/srvctl start listener

3. Make a verify whether your wallet location config takes effect.
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=***

sqlplus / as sysdba

SQL> select wrl_type wallet,status,wrl_parameter wallet_location from v$encryption_wallet;

--the wallet_location must be the same as the value in the sqlnet.ora

4. Create and open the wallet in the open read/wirte mode.
   
ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY "welcome1";


5.Reopen the wallet. When the instance is restarted or the wallet is closed, you must reopen the wallet in mounted mode.

startup mount;

ALTER SYSTEM SET ENCRYPTION WALLET IDENTIFIED BY "welcome1";

alter database open;


6.Close the wallet

ALTER SYSTEM SET ENCRYPTION WALLET CLOSE IDENTIFIED BY "welcome1";


转载请注明作者出处及原文链接,否则将追究法律责任:

作者:xiangsir

原文链接:http://blog.youkuaiyun.com/xiangsir/article/details/13288255

QQ:444367417

MSN:xiangsir@hotmail.com




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值