Connection problem with DBLINK [message #603482] |
Mon, 16 December 2013 23:25 |
|
Hi all,
I have two phyiscally separated DB(Development and Test). I connect to both using SQL Developer, version 3.2.There is no Oracle Client installed in my PC and so there is no TNS file in my PC.I have created a DBLINK using SQL Developer, to connect from Test DB to Development. But I am not getting the connection using this DBLINK and getting following error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Need help. Thanks.
|
|
|
|
Re: Connection problem with DBLINK [message #603484 is a reply to message #603483] |
Mon, 16 December 2013 23:43 |
|
The Complete Error message is as below:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
12514. 00000 - "TNS:listener does not currently know of service requested in connect descriptor"
*Cause: The listener received a request to establish a connection to a
database or other service. The connect descriptor received by the listener
specified a service name for a service (usually a database service)
that either has not yet dynamically registered with the listener or has
not been statically configured for the listener. This may be a temporary
condition such as after the listener has started, but before the database
instance has registered with the listener.
*Action:
- Wait a moment and try to connect a second time.
- Check which services are currently known by the listener by executing:
lsnrctl services <listener name>
- Check that the SERVICE_NAME parameter in the connect descriptor of the
net service name used specifies a service known by the listener.
- If an easy connect naming connect identifier was used, check that
the service name specified is a service known by the listener.
- Check for an event in the listener.log file.
Note: I am connecting to both DB server using my local PC where there is no oracle client is installed.
|
|
|
|
Re: Connection problem with DBLINK [message #603489 is a reply to message #603487] |
Mon, 16 December 2013 23:58 |
|
I have executed following SQL using my Test DB Connection
select * from dual@DLNK_DEV_PSTG.EU.NOVARTIS.NET
Details of My DB LINK is as Below:
DB_LINK: DLNK_DEV_PSTG.EU.NOVARTIS.NET
USERNAME: PR_PSTG_ADMIN
HOST: PHCHBS-SD260001.eu.novartis.net:1521/DVOPRISM
|
|
|
|
Re: Connection problem with DBLINK [message #603492 is a reply to message #603490] |
Tue, 17 December 2013 00:09 |
|
Sorry. Actually I am using SQL Developer which is plugable and there is no client installed in my local PC.
Following commands won't be executed in my local PC
lsnrctl status
lsnrctl service
And hence there no listener.log file in my local PC
|
|
|
|
|
|
Re: Connection problem with DBLINK [message #603499 is a reply to message #603497] |
Tue, 17 December 2013 00:32 |
|
I have created DBLINK using wizard of SQL DEVELOPER, 'New Database Link...' option.
As service name I provided below:
PHCHBS-SD260001.eu.novartis.net:1521/DVOPRISM
'Fixed User' is selected by default. It is a local DBLINK.
|
|
|
|
Re: Connection problem with DBLINK [message #603506 is a reply to message #603504] |
Tue, 17 December 2013 02:00 |
|
There are two types of DBLINK. Local and Public.
In my PC from where I am conenctiong to DB there is no TNSNAME.ora file. No client to connect to DB. I am using plugable SQL Developer and connecting to DB using Host name.
|
|
|
|
|
Re: Connection problem with DBLINK [message #603573 is a reply to message #603489] |
Tue, 17 December 2013 10:10 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
mokarem wrote on Tue, 17 December 2013 05:58I have executed following SQL using my Test DB Connection
select * from dual@DLNK_DEV_PSTG.EU.NOVARTIS.NET
Details of My DB LINK is as Below:
DB_LINK: DLNK_DEV_PSTG.EU.NOVARTIS.NET
USERNAME: PR_PSTG_ADMIN
HOST: PHCHBS-SD260001.eu.novartis.net:1521/DVOPRISM
Let me have a try to assist. If the link was created with the host specified as above, then no tnsnames.ora file is needed. Mokarem, please can you confirm this by running this query:select host from user_db_links where db_link='DLNK_DEV_PSTG.EU.NOVARTIS.NET'; You say that you get an ora-12514. That means that the listener on B does not know of the service DVOPRISM. You need to ask your DBA to give you the output of running on server B to diagnose this.
--update:
better explain: I was using "B" because that was what Ed used. I should have said "Development", which was the term you used in your first post for the remote server.
[Updated on: Tue, 17 December 2013 10:14] Report message to a moderator
|
|
|