Update the DBFS Wallet Password
After you update the schema password, the Oracle Database File System (DBFS) mount point does not work because its wallet is not synchronized with the credentials and fails to mount. To avoid this problem, you must regenerate the DBFS wallet with a new password. You can update the DBFS wallet password using an automation script or perform the steps manually.
Update the Wallet Password Using an Automation Script
To update the wallet password using an automation script:
-
Use the
sshcommand to connect to the Administration Server VM (as theopcuser):ssh -i private_key opc@VM_IP_address -
Change to the
oracleuser:sudo su - oracle -
Navigate to the directory containing automation scripts:
cd /opt/scripts/runbooks -
Run the script to update the DBFS wallet password and respond to the prompts RCU schema prefix and RCU password:
./updateDBFSWallet.sh -
To verify if the wallet is updated with the new password, enter the following command:
$middleware_home/oracle_common/bin/mkstore -wrl /u01/data/domains/domain_name/dbfs/wallet -listCredentialThe output should list the DBFS user name and look as follows:
Oracle Secret Store Tool : Version 12.2.1.3.1 Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved. Enter wallet password: List credential (index: connect_string username) 1: ORCL SP12944567290_DBFS - Repeat these steps on all nodes of the Managed Server.
Update the Wallet Password Manually
To update the wallet password manually:
-
Use the
sshcommand to connect to the Administration Server VM (as theopcuser):ssh -i private_key opc@AdminServerVM_IP_address sudo su - oracle -
Change to the
oracleuser:sudo su - oracle - Go to the DBFS directory:
/u01/data/domains/domain_name/dbfs - Back up the old wallet:
mv wallet wallet_bckup - Create a new wallet
directory:
mkdir wallet - Create a temp file to store the
prefix_DBFSuser credentials. For example:vi /var/tmp/dbfsp - In the file, enter the new database credentials three times in the
dbfspfile on three different lines.ab#$12CDaf40f1c ab#$12CDaf40f1c ab#$12CDaf40f1cIf you need to find out the default database credentials, see Discover the Default Database Schema Prefix and Password.
- Save the file.
- Enter the following commands to generate the Oracle Wallet at
/u01/data/domains/domain_name/dbfs:$middleware_home/oracle_common/bin/mkstore -wrl /u01/data/domains/domain_name /dbfs/wallet -create < /var/tmp/dbfspNote:
If you see the following exception, rerun themkstorecommand from a new terminal:Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/security/pki/OracleSecretStoreTextUI : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) - Enter the following commands to add the new credentials in the wallet. In
this example,
SchemaPrefix_DBFSis the DBFS user name:$middleware_home/oracle_common/bin/mkstore -wrl /u01/data/domains/domain_name/dbfs/wallet -createCredential ORCL SchemaPrefix_DBFS < /var/tmp/dbfsp - To verify if the wallet is updated with the new password, enter the
following
command:
$middleware_home/oracle_common/bin/mkstore -wrl /u01/data/domains/domain_name/dbfs/wallet -listCredentialThe output should list the DBFS user name and look as follows:
Oracle Secret Store Tool : Version 12.2.1.3.1 Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved. Enter wallet password: List credential (index: connect_string username) 1: ORCL SP12944567290_DBFS - Repeat these steps on all nodes of the Managed Server.