Create the Oracle JNDI data source
Before you begin
Procedure
- Open the WebSphere Administrative Console if not already open.
-
If you do not yet have a J2C (Java 2 Connector) authentication alias, create a new one.
- Click .
- Under Authentication click .
- Click New.
-
Enter the following:
Parameter
Value
AliasA string specifying the alias name. The alias can be anything you like, for example
pcAlias.User IDA string specifying the user name.
PasswordA string specifying the password.
- Click OK.
- Click Save to apply your changes to the master configuration.
- Choose .
- Set the Scope to Cell.
-
Select the JDBC provider that you defined for Oracle.
WebSphere displays the Configuration tab.
-
Select Data Sources in the Additional Properties section.
WebSphere displays the Data sources screen.
- Click New to create a new data source.
-
Enter a JNDI name for the data source.
The JNDI name must match the value of the
datasource-nameattribute of the<jndi-connection-pool>element in file database-config.xml. See Using a JNDI data source. - Click Next.
-
Set the URL value using the
jdbc:oracle:thin:@hostname:port:ORACLE_SIDformat. - Select Oracle11g data store helper for the Data store helper class name.
- Click Next.
- Select an authentication alias for the Component-managed authentication alias.
- Select an authentication alias for the Container-managed authentication alias.
- Click Next.
-
Review the information on the Summary screen and do one of the following:
- Click Previous if you need to make changes.
- Otherwise, click Finish.
- Click Save to apply your changes to the master configuration.
What to do next
After completing this procedure, proceed to Configure the Oracle data source properties.
