Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3847942
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:37:41+00:00 2026-05-19T16:37:41+00:00

Hi guys:) I am new to servlet.I dont know how to connect oracle database

  • 0

Hi guys:)
I am new to servlet.I dont know how to connect oracle database to the servlet application. Can anyone paste Oracle JDBC coding

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:37:41+00:00Added an answer on May 19, 2026 at 4:37 pm

    Register Database Connection parameters:
    To include your application specific connection parameters of your database, edit the file data-sources.xml under \config directory. Add the following lines to create a data source. Change the hostname, port, username/password, database name, driver type to suit your application. Make changes for url after @ symbol. Save the file. This will register the data-source which can be used across your application.

    <data-source 
      class="oracle.jdbc.pool.OracleConnectionPoolDataSource" 
      name="ifso817DS" 
      location="jdbc/Loneifso817DS" 
      xa-location="jdbc/xa/ifso817XADS" 
      ejb-location="jdbc/Pooledifso817DS" 
      url="jdbc:oracle:thin:@insn104a.idc.oracle.com:1521:ifso817" 
      connection-driver="oracle.jdbc.driver.OracleDriver" 
      username="travel" 
      password="travel" 
      inactivity-timeout="30" 
    /> 
    

    That is taken from: http://www.oracle.com/technology/sample_code/tech/java/servlets/samples/TravelServlet/Readme.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some guys where I work are setting up a new database server for SQL
Guys I am new to Windows Phone Development in .Net Can any one guide
guys.i'm new to iphone. i encounter a problem.the uiimageview can't release...here is the code.
Hello guys I'm new to php and I discovered that for a database connection
Hi guys I am new to android:- i want to know how to implement
I'm new to scala and can't get my head around how the Lift guys
I'm new at ActionScript 3.0 so if you guys can help me a little.
Hi Guys new to this site but a big fan. Right the problem. It's
Guys I'm new to RoR and MVC. I've a model which deals with loan
Hi guys I am new to android...I want to display a dynamic list of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.