Download the Scripts

Get the latest setup scripts from the GitHub repository.

Note:

Place all of the downloaded scripts in the same folder.
  1. Go to the GitHub repository.
  2. Download all of the scripts in the maa/fmw-wls-with-adb-dr directory.
  3. Download all of the scripts in the maa/app_dr_common directory.
    These scripts make calls to each other. Despite the specific operation being performed at a point in time, download the entire directories and place all of the scripts in the same folder. You will need the scripts in both the primary and secondary sites.
  4. Follow the instructions in this document and read the required variables in each script for each operation that you perform.

The downloaded file includes scripts to perform the following tasks:

  1. Configure a TNS Alias for datasources
  2. Set up the initial DR configuration
  3. Set up ongoing replication
  4. Change wallets for an Oracle WebLogic Server, Oracle SOA, or Oracle Fusion Middleware system.
Each script provides automation for different parts of the DR setup and lifecycle of a disaster protection system. The following table provides a summary of the utilities:
Script Name Description
fmwadb_config_replica.sh Replicate configuration between sites.
fmwadb_dr_prim.sh Prepares a primary site for the DR setup.
fmwadb_dr_stby.sh Prepares a secondary site for the DR setup.
fmwadb_rest_api_listabds.sh Obtain the Autonomous Database role base on the ADB ID and tenancy information.
fmwadb_switch_db_conn.sh Replaces the existing connect information with a new ADBS WALLET.
fmw_change_to_tns_alias.sh Replace the connect strings used by Oracle WebLogic datasources and jps config files with a tns alias.
fmw_dec_pwd.sh Decrypts a Oracle WebLogic-encrypted password.
fmw_enc_pwd.sh Encrypts a password using Oracle WebLogic encryption.
fmw_get_connect_string.sh Returns the connect string that a Oracle WebLogic, Oracle SOA, or Oracle Fusion Middleware datasource is using.
fmw_get_ds_property.sh Returns the value of a specific datasource property.