0% found this document useful (0 votes)
41 views11 pages

WSAD 5.1 Server Configuration

This document provides steps to configure a server to connect to an Oracle database: 1. Open the server configuration and add a JAAS authentication entry with the database username and password. 2. Configure the Oracle JDBC driver path as a variable and save. 3. Add an Oracle data source, select the Oracle JDBC driver, and configure the JDBC URL with the database host, port, and name.

Uploaded by

Rahul Kushwaha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views11 pages

WSAD 5.1 Server Configuration

This document provides steps to configure a server to connect to an Oracle database: 1. Open the server configuration and add a JAAS authentication entry with the database username and password. 2. Configure the Oracle JDBC driver path as a variable and save. 3. Add an Oracle data source, select the Oracle JDBC driver, and configure the JDBC URL with the database host, port, and name.

Uploaded by

Rahul Kushwaha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Step 1-Open the server configuration

Step-2-Go to security tab


Click on add button of JAAS Authentication entries

And enter any alias name and the your database user name and password
Click on OK and save

Step-3-Now click on the variables tab ,7th position from the bottom left .
Scroll the defined variable and select the appropriate driver for oracle

select the ORACLE_JDBC_DRIVER_PATH now click on the Edit button and enter the path.

Path is the address of classes12.jar in the oracle database or oracle client installation folder.

The classes12.jar usually store in the jdbc/lib folder in the oracle.


Click on ok button and save the setting.

Step-4-click on the Data Source tab ,5th position from the bottom left .
Click on add button

Select Oracle as a database type,

and select jdbc provider type as Oracle JDBC Driver(XA)


Click on Next button

Type any name and click on the Add External JARs.and select the classes12.jar path from the
oracle database or oracle client folder.
Click on finish

Now select the newly created JDBC provider and click on add button to create data source.

And select Oracle JDBC Driver (XA)


Click on next

Give any name ,give any JNDI name which is used in the connection look up in DataSource
contex while writing code of connection or override the getConnection ().

Select component-managed authentication alias as myDataBase(this is defined priviously in


security tab)

Select container managed authentication alias as myDataBase(this is defined priviously in security


tab)
Now click on next

1.scroll to port Number and writhe 1521(this is by default port number,you can change if your
oracle work on different port)

2.scroll to URL and write

As

jdbc:oracle:thin:@192.168.0.3:1521:IWIS (THIS IS FOR ORACLE)(IWIS is database name you can


choose your)

if oracle install in local system you can use localhost or

system name(for system name go to My ComputerpropertiesComputer namechange


computer name)

jdbc:oracle:thin:@localhost:1521:IWIS or jdbc:oracle:thin:@rahul:1521:IWIS

so now in general way


jdbc:oracle:thin:@database install system name: oracle listening port: database name

click on finish and restart the server

You might also like