After WebSphere Portal is configured to work with your preferred
database, test the database connection to ensure that it operates
correctly. You can verify the database connection using the WebSphere
Application Server Administrative Console or from a command prompt.
Verifying the connection with
WebSphere Application Server
This topic includes information on verifying your database connection
after installation and configuration. Verify that the database server is
installed and working properly.
- If you installed the WebSphere Portal V5.0 Test Environment on
WebSphere Application Server (WAS) V5.0.2:
- Change directory to WS_Installdir\runtimes\portal_base_v5\bin
(WS_Installdir is the directory where you have
installed WebSphere Studio).
- Execute the following commands:
Linux:
- ./startServer.sh server1
- Access the WebSphere Application Server administrative console by entering http://localhost:9090/admin in a browser.
Windows:
- "firststeps.bat" to open the WebSphere
Application Server First Steps.
- Select Start the Server and Administrative Console.
- Log in to the administrative console.
- Click Resources JDBC Providers .
- Select wps50JDBC.
- Select Data Sources from Additional
Properties.
- Check the data source that you want to test.
- Click Test Connection to verify the database
connection. Note: You might have to restart WebSphere
Application Server for the test to complete.
Verifying the connection from a
command line
You can also verify the database connection from a command prompt by
performing the following steps:
- In the command prompt, change to the directory WS_Installdir/runtimes/portal_v50/config.
- To verify connections for the WebSphere Portal, Member Manager, and
content publishing databases, enter the following commands:
- Linux:
- ./WPSconfig.sh validate-database-connection-wps
-DDbPassword=password
- ./WPSconfig.sh validate-database-connection-wmm
-DWmmDbPassword=password
- ./WPSconfig.sh validate-database-connection-wpcp
-DWpcpDbPassword=password -DFeedbackDbPassword=password
- Windows:
- WPSconfig.bat validate-database-connection-wps
-DDbPassword=password
- WPSconfig.bat validate-database-connection-wmm
-DWmmDbPassword=password
- WPSconfig.bat validate-database-connection-wpcp
-DWpcpDbPassword=password -DFeedbackDbPassword=password
You have completed this step.