My Oracle Support Banner

Sample JSP to test JDBC Connections (Doc ID 566947.1)

Last updated on FEBRUARY 13, 2024

Applies to:

Oracle Containers for J2EE - Version 9.0.2.0.0 to 10.1.3.5.0 [Release 9iAS to AS10gR3]
Information in this document applies to any platform.

Goal

This code can be used to test a JDBC connection from within an OC4J application (JSP file) to a backend database. This JSP is for testing only, and should not be left deployed to a production system.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Requirements
 Configuring
 Instructions
 Sample Code
 Sample Output
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.