Configuring JDBC
- In the left navigation pane, select Security - Global Security.
- On the right navigation list, select Java Authentication and Authorization Service > J2C authentication data.
- In the Global security > JAAS - J2C authentication data form, 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 > Data Sources.
- In the Data sources form, select the Node=machineNameNode01, Server=server1 server scope.
- In the JDBC providers form, click New.
- In the Create new JDBC provider form, specify the following options:
- Database type: Oracle
- Provider type: Oracle JDBC driver
- Implementation type: XA data source
- Name: Simple Provider
- Click Next.
- In Enter database class path information, enter DB Class Path information and click Next.
- In Summary, 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 Select JDBC provider, click Select an existing JDBC provider.
- Select the provider that you specified in step 9 from the list.
- Click Next.
- In Enter database specific properties for the data source, 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 Set up security aliases, 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 Summary, 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 Data sources, click Test connection to test your connection.
- Click Data Source DS.
- In Additional Properties on the right, click Connection pool properties.
- In General Properties, 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*