Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Oracle Real Application Clusters (RAC) is an option for the Oracle Database for clustering and high availability in Oracle database environments. In Oracle RAC environment, some of the commands used in oracle.sql is considered inefficient (refer to Setting up with Oracle). Therefore, the product has a separate SQL script oracle_rac.sql for Oracle RAC. The Oracle RAC-friendly script is located in dbscripts folder together with other .sql scripts.

...

Info

Replace these settings with your own custom values.

Code Block
languagexml
<datasource>
     <name>WSO2_CARBON_DB</name>
     <description>The datasource used for registry and user manager</description>
     <jndiConfig>
          <name>jdbc/WSO2CarbonDB</name>
     </jndiConfig>
     <definition type="RDBMS">
          <configuration>
            <url>jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
   			       (ADDRESS=(PROTOCOL=TCP)(HOST=racnode1) (PORT=1521))
   			       (ADDRESS=(PROTOCOL=TCP)(HOST=racnode2) (PORT=1521))
   			       (CONNECT_DATA=(SERVICE_NAME=service_name)))</url>
            <username>regadmin</username>
            <password>regadmin</password>
            <driverClassName>oracle.jdbc.driver.OracleDriver</driverClassName>
            <maxActive>80</maxActive>
            <maxWait>60000</maxWait>
            <minIdle>5</minIdle>
            <testOnBorrow>true</testOnBorrow>
            <validationQuery>SELECT 1</validationQuery>
            <validationInterval>30000</validationInterval>
          </configuration>
     </definition>
</datasource>

...