Configuring utilities to authenticate users with an Oracle Wallet encrypted passwords
You can configure the AllDBConnector class to use encrypted passwords that are stored in an Oracle Wallet to authenticate a user to establish a database connection for HCL Commerce utilities.
About this task
To complete the following steps, you must run the Oracle mkstore utility. For more information about the Oracle Wallet and running Oracle utilities, including any updated usage syntax, see the Oracle Documentation.
Procedure
-
Create an Oracle Wallet with the Oracle mkstore utility.
In a command-line utility, run the following command from Oracle bin directory:
Wheremkstore -wrl wallet_directory -create
- wallet_directory is the directory where you want to create the Wallet. For
example,
c:\server.wallet
.Note: Ensure that the directory that you set as the wallet_directory is readable and executable by the appropriate users.
mkstore -wrl wallet.nonssl -create
- wallet_directory is the directory where you want to create the Wallet. For
example,
-
Add the database user credentials into the Oracle Wallet for users that you do want to continue
sending between the utility client and database server tiers to authenticate the users.
In a command-line utility, run the following command from Oracle bin directory:
Wheremkstore -wrl wallet_directory -createCredential tns-name user
- wallet_directory is the directory where you want to create the Wallet. For
example,
c:\server.wallet
.Note: Ensure that the directory that you set as the wallet_directory is readable and executable by the appropriate users. - tns-name is the TNS alias that you use to specify the database in the tnsnames.ora file.
- user is the name of the user that you want to include an encrypted password for within the Oracle Wallet.
The Oracle Wallet is now enabled to support automatic authentication of themkstore -wrl wallet.nonssl -createCredential orcl wcs
wcs
users to theorcl
TNS name. - wallet_directory is the directory where you want to create the Wallet. For
example,
-
Update the AllDBConnector class configuration for establishing a database
connection for HCL Commerce utilities to use the encrypted passwords in the Oracle
Wallet.