Configuring Clients to Use the External Password Store
1) Create a wallet on the client by using the following syntax at the command line:
mkstore -wrl <
wallet_location> -create
example:
mkstore -wrl /home/mseibt/pstore -create
Enter password: welcome1
Enter password again: welcome1
ls -al /home/mseibt/pstore
-rw------- 1 mseibt dba 7940 Nov 9 15:38 cwallet.sso
-rw------- 1 mseibt dba 7912 Nov 9 15:38 ewallet.p12
2) Create database connection credentials in the wallet by using the following syntax at the command line:
mkstore -wrl <wallet_location> -createCredential <db_connect_string> <username> <password>
example:
("N102" in the following example is a connect descriptor located in the tnsnames.ora.)
mkstore -wrl /home/mseibt/pstore -createCredential N102 <user> <password>
Enter password: welcome1
Create credential oracle.security.client.connect_string1
Enclose usernames and passwords that have special characters in single quotes.
example:
mkstore -wrl /home/mseibt/pstore -createCredential N102 '<user>' <password>
3) In the client sqlnet.ora file, enter the WALLET_LOCATION parameter and set it to the directory location of the wallet you created in Step 1.
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA = (DIRECTORY = /home/mseibt/pstore))
)
4) In the client sqlnet.ora file, enter the SQLNET.WALLET_OVERRIDE parameter and set it to TRUE
SQLNET.WALLET_OVERRIDE = TRUE
This setting causes all CONNECT /@db_connect_string statements to use the information in the wallet at the specified location to authenticate to databases.
When external authentication is in use, an
authenticated user with such a wallet can use the CONNECT
/@db_connect_string syntax to access the previously specified databases
without providing a user name and password. However, if a user fails
that external authentication, then these connect statements will also
fail.
If an application uses SSL for encryption, then
the sqlnet.ora parameter, SQLNET.AUTHENTICATION_SERVICES, specifies SSL
and an SSL wallet is created. If this application wants to use secret
store credentials to authenticate to databases (instead of the SSL
certificate), then those credentials must be stored in the SSL wallet.
After SSL authentication, if SQLNET.WALLET_OVERRIDE = TRUE, then the
user names and passwords from the wallet are used to authenticate. If
SQLNET.WALLET_OVERRIDE = FALSE the SSL certificate is used.
Configured sqlnet.ora.
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA = (DIRECTORY = /home/mseibt/pstore))
)
SQLNET.WALLET_OVERRIDE = TRUE
5) With the external password store configured, connect as <user>:
sqlplus /@N102
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Nov 9 15:59:42 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> show user
USER is "<user>"
编辑推荐:
- Oracle Database 12c In-Memory特性之执行计划对比03-03
- Using The Oracle Secure External Password Store03-03
- Oracle RAC异机恢复至单机03-03
- 由于IMPDP...APPEND引起的 enq: TM – contention03-03
- 美创运维日记|Oracle数据库的软件版本需知03-03
- Oracle 12c Non CDB 数据库切换成PDB03-03
- ORACLE 对11.2.0.3之前版本DBLINK的支持情况说明(MOS文档 ID 2335265.1)03-03
- Oracle dg归档同步失败03-03
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- Oracle Database 12c In-Memory特性之执行计划对比
- 美创运维日记|Oracle数据库的软件版本需知
美创运维日记|Oracle数据库的软件版本需知
26-03-03 - Oracle dg归档同步失败
Oracle dg归档同步失败
26-03-03 - Standby_file_management参数导致备库故障
Standby_file_management参数导致备库故障
26-03-03 - oracle统计信息收集
oracle统计信息收集
26-03-03 - 19c RAC启动报LRM-00109
19c RAC启动报LRM-00109
26-03-03 - Oracle 11g RAC + DG安装详解--05
Oracle 11g RAC + DG安装详解--05
26-03-03 - [20200809]12c热备份模式.txt
[20200809]12c热备份模式.txt
26-03-03 - Oracle JInitiator版本太旧,请安装版本1.1.8.2或更高版本
- 使用ROWNUM解决 ORA-00600:内部错误代码
使用ROWNUM解决 ORA-00600:内部错误代码
26-03-03
