Configuring JDBC
- On the left navigation pane, select Security - Global Security.
- In the right navigation list, select Java Authentication and Authorization Service > J2C authentication data.
- In the Global security > JAAS - J2C authentication data window, create a New alias with the following information:
- Alias: Database instance (sid)
- User ID: Oracle User ID
Password: Oracle database password for the given user ID.
- Click OK.
- Click Save in the Messages window at the top of the screen to commit the changes.
- From the left navigation pane in the main console window, select Resources > JDBC > JDBC providers.
- In the JDBC providers window, select the Node=machineNameNode01, Server=server1 server scope.
- In the JDBC providers window, click New.
- In the Create new JDBC provider window, specify the following options:
- Database type: Oracle
- Provider type: Oracle JDBC driver
- Implementation type: XA data source
- Name: Simple Provider
- Click Next.
- In the Enter database class path information field, enter DB Class Path information and click Next.
- In the Summary area, click Finish.
- Click Save in the Messages window at the top of the screen to commit the changes.
- From the left navigation pane in the main console window, select Resources > JDBC > Data sources.
- In Data sources, choose the server scope (for example, Node=machineNameNode01, Server=server1).
- To create a new data source, click New and in Enter basic data source information, specify the following information:
- Data source name: SimpleDS
- JNDI name: com/itmsoft/SimpleDataSource
- Click Next.
- In the Select JDBC provider field, click Select an existing JDBC provider.
- Select the provider that you specified in step 9 from the list.
- Click Next.
- In the Enter database specific properties for the data source field, specify the database attribute URL as the URL of the database from which the datasource obtains connections, such as jdbc:oracle:thin:@localhost:1521:sample.
- Click Next.
- In the Set up security aliases field, specify the values from the menu for:
- Authentication alias for XA recovery
- Component-managed authentication alias
- Mapping-configuration alias as None
- Container-managed authentication alias
- Click Next.
- In the Summary area, click Finish.
- Click Save in the Messages window at the top of the screen to commit the changes.
- Repeat steps 16 to 25 to create a new data source with the following information:
- Data source name: DS
- JNDI name: com/itmsoft/DataSource
- Click Save in the Messages box at the top of the screen to commit the changes.
- In the Data sources area, click Test connection to test your connection.
- Click Data Source DS.
- In the Additional Properties field on the right, click Connection pool properties.
- In the General Properties field, change the value of Maximum connections to 200 and Minimum connections to 10.
- Click Apply.
- Click Save in the Messages window at the top of the screen to save the changes.
- Repeat steps 30 to 34 for the SimpleDS data source.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*