Solved

not able to connect database throgh JDBC connection

Posted on 2012-04-03
2
757 Views
Last Modified: 2012-04-06
not able to connect database through jdbc connections getiing the below errors . listerner is up.

1,"2012-04-03 15:31:36.481","","DBConnectionPool.configurePool()               dbUrl set to [jdbc:oracle:thin:@dbrmsproddb:1521:rmsprd]"
1,"2012-04-03 15:31:36.501","","DBConnectionPool.getNewConnection() -- Invoked..."
3,"2012-04-03 15:34:06.292","","SalesFeed() encountered the following exception [DBConnectionPool encountered the following Exception [Invalid URL format]]"


ORA-12504: TNS:listener was not given the SID in CONNECT_DATA
0
Comment
Question by:dba1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Expert Comment

by:Praveen Kumar Chandrashekatr
ID: 37804424
TNSNAMES.ORA file has been configured in your server, if yes can you paste the details of it.

As per the error goes it clearly mention that to check  the connect descriptor corresponding to the service name in TNSNAMES.ORA has an SID component in the CONNECT_DATA.

and also check that your database is register with your listener i.e

locally log into your database with DBA credentials and check these parameters.

SQL>show parameter local_listener;

This should return <<LISTENER_NAME>> which you have created the default name is LISTENER, if not then

SQL> alter system set LOCAL_LISTENER='<<LISTENER_NAME>>' scope=both;
SQL> alter system register;
SQL> show parameter service_names

This should return the services name which is registered to the database.
0
 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 37806342
The normal connection string looks like:

jdbc:oracle:thin:[user/password]@[host][:port]:SID

But you possibly sent this:

 jdbc:oracle:thin:@dbrmsproddb:1521:rmsprd

So please provide user and password for the Oracle instance.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need SQL Query to Find Foreign-keys Without Indexed Columns 4 41
plsql job on oracle 18 108
Oracle SQL-Queries on a RAC Database 3 44
oracle query 4 30
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to take different types of Oracle backups using RMAN.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question