DB2 Example For More Information About Default Connection Properties Internally, the RDBMS

10-4 Securing Oracle WebLogic Server Example 10–1 Configuring Oracle for the RDBMS Security Store createbase_domain,SecurityConfiguration cdSecurityConfigurationbase_domain a=getDefaultRealm cdRealmmyrealm rdbms = createmyRDBMSSecurityStore, RDBMSSecurityStore rdbms.setUsernameortiz rdbms.setPasswordwelcome1 rdbms.setConnectionURLjdbc:bea:oracle:avitek21:1521 rdbms.setDriverNameweblogic.jdbc.oracle.OracleDriver rdbms.setConnectionPropertiesuser=ortiz,portNumber=1521,SID=pint101a,serverName= avitek21

10.2.1.1.2 MS-SQL Example

Example 10–2 shows an example of configuring MS-SQL for the RDBMS security store. Example 10–2 Configuring MS-SQL for the RDBMS Security Store createbase_domain,SecurityConfiguration cdSecurityConfigurationbase_domain a=getDefaultRealm cdRealmmyrealm rdbms = createmyRDBMSSecurityStore, RDBMSSecurityStore rdbms.setUsernamegarnett rdbms.setPasswordwelcome1 rdbms.setConnectionURLjdbc:bea:sqlserver:avitek6:1433 rdbms.setDriverNameweblogic.jdbc.sqlserver.SQLServerDriver rdbms.setConnectionPropertiesuser=garnett,portNumber=1433,databaseName=wls3,serv erName=avitek6

10.2.1.1.3 DB2 Example

Example 10–3 shows an example of configuring DB2 for the RDBMS security store. Example 10–3 Configuring DB2 for the RDBMS Security Store createbase_domain,SecurityConfiguration cdSecurityConfigurationbase_domain a=getDefaultRealm cdRealmmyrealm rdbms = createmyRDBMSSecurityStore, RDBMSSecurityStore rdbms.setUsernamebrady rdbms.setPasswordwelcome1 rdbms.setConnectionURLjdbc:bea:db2:avitek3:50000 rdbms.setDriverNameweblogic.jdbc.db2.DB2Driver rdbms.setConnectionPropertiesuser=brady,portNumber=50000,databaseName=wls,server Name=avitek3,batchPerformanceWorkaround=true For more information about specifying connection properties for the WebLogic Type 4 JDBC driver for DB2, see The DB2 Driver in Type 4 JDBC Drivers for Oracle WebLogic Server. Note: If you choose DB2, you have the option of selecting the WebLogic Type 4 JDBC driver for DB2 that is provided in WebLogic Server. However, if you use this JDBC driver, you must also specify the additional property BatchPerformanceWorkaround and set it to true. If you do not set the BatchPerformanceWorkaround to true in this configuration, WebLogic Server may fail to boot, generating a SecurityServiceException message. Managing the RDBMS Security Store 10-5

10.2.1.1.4 For More Information About Default Connection Properties Internally, the RDBMS

security store uses Oracle Kodo to connect to and interoperate with the database using the WebLogic Type 4 JDBC driver for DB2. The attributes set on the RDBMSSecurityStoreMBean are converted into attributes set on the properties of Kodos javax.sql.DataSource implementation. For more information about these attributes, see the following topics: ■ For more information about the attributes you can set on the RDBMSSecurityStoreMBean, see RDBMSSecurityStoreMBean in the Oracle WebLogic Server MBean Reference. ■ For information about the default database connection properties in the Kodo DataDource, see Using the Kodo DataSource in the JDBC chapter of the Kodo JPAJDO Reference Guide.

10.2.1.2 Testing the Database Connection