Solved

not able to connect database throgh JDBC connection

Posted on 2012-04-03
2
753 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
2 Comments
 
LVL 12

Expert Comment

by:praveencpk
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
'G_F01' is not a procedure or is undefined 3 34
Checking for column width 8 29
Fill Date time Field 12 25
oracle collections 2 22
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

829 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