dba1234
asked on
not able to connect database throgh JDBC connection
not able to connect database through jdbc connections getiing the below errors . listerner is up.
1,"2012-04-03 15:31:36.481","","DBConnec tionPool.c onfigurePo ol() dbUrl set to [jdbc:oracle:thin:@dbrmspr oddb:1521: rmsprd]"
1,"2012-04-03 15:31:36.501","","DBConnec tionPool.g etNewConne ction() -- Invoked..."
3,"2012-04-03 15:34:06.292","","SalesFee d() encountered the following exception [DBConnectionPool encountered the following Exception [Invalid URL format]]"
ORA-12504: TNS:listener was not given the SID in CONNECT_DATA
1,"2012-04-03 15:31:36.481","","DBConnec
1,"2012-04-03 15:31:36.501","","DBConnec
3,"2012-04-03 15:34:06.292","","SalesFee
ORA-12504: TNS:listener was not given the SID in CONNECT_DATA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
SQL> alter system register;
SQL> show parameter service_names
This should return the services name which is registered to the database.