2.1.4 Creating a Wallet to Store Passwords

To successfully run OPatchAuto, you must provide a wallet on the command line that contains the necessary password credentials for connecting to the environment.

The wallet should contain SSH credentials for each host in your environment, as well as the credentials for accessing the WebLogic Administration Server. To create a wallet, use the patchingWallet.sh tool in the ORACLE_HOME/OPatch/auto/core/bin directory, as shown in the following example:

./patchingWallet.sh –create -walletDir wallet_location "user:adminhost:ssh" "user:host1:ssh" "user:host2:ssh" "adminuser:adminhost:wls"

For example:

./patchingWallet.sh –create -walletDir /tmp/samplewallet "oracle:adminhost:ssh" "oracle:host1:ssh" 
"oracle:host2:ssh" "weblogic:adminhost:wls"

The tool will prompt you to enter and confirm the password for each credential:

oracle:adminhost:ssh:
Confirm oracle:adminhost:ssh:
oracle:host1:ssh:
Confirm oracle:host1:ssh:
oracle:host2:ssh:
Confirm oracle:host2:ssh:
weblogic:adminhost:wls:
Confirm weblogic:adminhost:wls: