Changing an Oracle RAC Data Source to a Data Source Configuring a Component Schema

4-12 Configuration Guide for IBM WebSphere Application Server [arw] Username [websphere] [a-w] Password [] [arw] DatabaseName [lnrac1] [arw] ServerName [hostRac1.oracle.com:hostRac2:hostRac3.oracle.com] [arw] PortNumber [1521:1521:1521] [ar-] URL [jdbc:oracle:thin:DESCRIPTION=ADDRESS_LIST=ADDRESS=PROTOCOL=TCP HOST=hostRac1.oracle.comPORT=1521ADDRESS=PROTOCOL=TCPHOST=hostRac2PORT =1521ADDRESS=PROTOCOL=TCPHOST=hostRac3.oracle.comPORT=1521FAILOVER=ON LOAD_BALANCE=ONCONNECT_DATA=SERVER=DEDICATEDSERVICE_NAME=exampleRacServi ce] [arw] DatabaseType [Oracle] [arw] DriverType [4] [arw] IsXa [false] [arw] IsOracleInstanceType [false] [arw] IsRac [true] [ar-] DriverClass [oracle.jdbc.pool.OracleConnectionPoolDataSource]

4.10 Changing an Oracle RAC Data Source to a Data Source

Example 4–11 demonstrates how to convert an Oracle RAC data source to a standard data source and then how to display the resulting configuration of the data source. Example 4–11 Changing an Oracle RAC Data Source to a Data Source OracleMWConfigUtilities. convertJdbcRACToNormalDatasource TestNormalDatasource, MS SQL Server, false, myhost.com, 1234 print OracleMWConfigUtilities. showJdbc TestNormalDatasource Output: [ar-] Name [TestNormalDatasource] [ar-] Type [Normal] [arw] Username [wlsqa] [arw] Password [] [arw] DatabaseName [lnrac1] [arw] ServerName [myhost.com] [arw] PortNumber [1234] [ar-] URL [jdbc:sqlserver:myhost.com:1234] [arw] DatabaseType [MS SQL Server] [arw] DriverType [4] [arw] IsXa [false] [arw] IsOracleInstanceType [false] [arw] IsRac [false] [ar-] DriverClass [com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource]

4.11 Configuring a Component Schema

This section demonstrates two methods that you can use to configure a component schema, validate it, and display its configuration. Example 4–12 demonstrates how to use utility commands to configure the values for a component schema. The OracleMWConfigUtilities.validateJdbc command verifies that all required parameters for component schema configuration were specified. Example 4–12 Configuring a Component Schema By Using Utility Commands OracleMWConfigUtilities. setJdbcDriverVendor SOA Infrastructure, Oracle OracleMWConfigUtilities. setJdbcIsOracleInstanceType SOA Infrastructure, true OracleMWConfigUtilities. setJdbcUsername SOA Infrastructure, websphere Using wsadmin to Configure Oracle Fusion Middleware 4-13 OracleMWConfigUtilities. setJdbcPassword SOA Infrastructure, welcome1 OracleMWConfigUtilities. setJdbcDatabaseName SOA Infrastructure, orcl OracleMWConfigUtilities. setJdbcServerName SOA Infrastructure, dbhost.example.com OracleMWConfigUtilities. setJdbcPortNumber SOA Infrastructure, 12345 OracleMWConfigUtilities. validateJdbc SOA Infrastructure url_soaSchemaComp = OracleMWConfigUtilities. getJdbcURL SOA Infrastructure print OracleMWConfigUtilities. showJdbc SOA Infrastructure Output: [ar-] Name [SOA Infrastructure] [ar-] Type [Schema] [arw] SchemaOwner [websphere] [arw] SchemaPassword [] [arw] DatabaseName [orcl] [arw] ServerName [dbhost.example.com] [arw] PortNumber [12345] [ar-] URL [jdbc:oracle:thin:dbhost.example.com:12345:orcl] [arw] DatabaseType [Oracle] [arw] DriverType [4] [arw] IsOracleInstanceType [true] [arw] IsRac [false] [ar-] DriverClass [oracle.jdbc.pool.OracleConnectionPoolDataSource] Example 4–13 demonstrates how to use setValue commands to configure a component schema. The soaSchemaComp.validate call is a standard Oracle configuration API. Example 4–13 Configuring a Component Schema Using setValue soaSchemaComp = OracleMWConfig. getChildByName JDBC, SOA Infrastructure soaSchemaComp. setValue DatabaseType, Oracle Use DB2 as the DatabaseType for DB2 data sources soaSchemaComp. setValue IsOracleInstanceType, true soaSchemaComp. setValue SchemaOwner, websphere soaSchemaComp. setValue SchemaPassword, welcome1 soaSchemaComp. setValue DatabaseName, orcl soaSchemaComp. setValue ServerName, dbhost.example.com soaSchemaComp. setValue PortNumber, 1521 soaSchemaComp.validate url_soaSchemaComp=soaSchemaComp. getValue URL Show soaSchemaComps configuration settings. print soaSchemaComp.show Output: [ar-] Name [SOA Infrastructure] [ar-] Type [Schema] [arw] SchemaOwner [websphere] [a-w] SchemaPassword [] [arw] DatabaseName [orcl] [arw] ServerName [dbhost.example.com] [arw] PortNumber [1521] [ar-] URL [jdbc:oracle:thin:dbhost.example.com:1521:orcl] [arw] DatabaseType [Oracle] [arw] DriverType [4] [arw] IsOracleInstanceType [true] [arw] IsRac [false] [ar-] DriverClass [oracle.jdbc.pool.OracleConnectionPoolDataSource] 4-14 Configuration Guide for IBM WebSphere Application Server

4.12 Federating Remote Nodes to a Cell