Updating JDBC Connections for the Oracle Fusion Middleware and Oracle SOA Suite Domains
To update JDBC connections for Oracle Fusion Middleware and Oracle SOA Suite domains, complete the following steps:
Update Oracle Fusion Middleware Domain Configuration Files
In this example:
- The new host is
new-target-db12c.example.com
. - The new service name is
PDB1_ORCLSOA.EXAMPLE.COM
.
To update Oracle Fusion Middleware domain configuration files to point to the new target database:
- Update
/u01/oracle/middleware/domains/fmw_domain/config/fmwconfig/jps-config.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" jps-config.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/fmwconfig/jps-config-jse.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" jps-config-jse.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/jdbc/LocalSvcTblDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" LocalSvcTblDataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/jdbc/mds-owsm-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" mds-owsm-jdbc.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/jdbc/opss-audit-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" opss-audit-jdbc.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/jdbc/opss-auditview-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" opss-auditview-jdbc.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/jdbc/opss-datasource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" opss-datasource-jdbc.xml
- Update
/u01/oracle/middleware/domains/fmw_domain/config/jdbc/WLSSchemaDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB1_ORCLSOA.EXAMPLE.COM|Ig" WLSSchemaDataSource-jdbc.xml
Update Oracle SOA Suite Domain Configuration Files
In this example:
- The new host is
new-target-db12c.example.com
. - The new service name is
PDB2_ORCLSOA.EXAMPLE.COM
.
To update Oracle SOA Suite domain configuration files to point to the new target database:
- Update
/u01/oracle/middleware/domains/soa_domain/config/fmwconfig/jps-config.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" jps-config.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/fmwconfig/jps-config-jse.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" jps-config-jse.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/LocalSvcTblDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" LocalSvcTblDataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/mds-owsm-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" mds-owsm-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/SOADataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" SOADataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/SOALocalTxDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" SOALocalTxDataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/mds-soa-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" mds-soa-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/opss-audit-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" opss-audit-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/opss-auditview-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" opss-auditview-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/opss-datasource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" opss-datasource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/OraSDPMDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" OraSDPMDataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/EDNDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" EDNDataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/EDNLocalTxDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" EDNLocalTxDataSource-jdbc.xml
- Update
/u01/oracle/middleware/domains/soa_domain/config/jdbc/WLSSchemaDataSource-jdbc.xml
:sed -i "s|soa-host01.example.com:1521/ORCLSOA.EXAMPLE.COM|new-target-db12c.example.com:1521/PDB2_ORCLSOA.EXAMPLE.COM|Ig" WLSSchemaDataSource-jdbc.xml