Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
DBLINK ERROR

user600135
Member Posts: 55
Hi all
Thanks for your answer
I have created db link to remote database and i try to run the below query SELECT sysdate FROM [email protected]_link2;
while executing the above query i am getting the following error
ORA-12154: TNS:could not resolve the connect identifier specified
Please anyone help me to resolve the issue
Thanks
Regards
Mahesh boopathi.k.s.
Thanks for your answer
I have created db link to remote database and i try to run the below query SELECT sysdate FROM [email protected]_link2;
while executing the above query i am getting the following error
ORA-12154: TNS:could not resolve the connect identifier specified
Please anyone help me to resolve the issue
Thanks
Regards
Mahesh boopathi.k.s.
Tagged:
Answers
-
Did you add an entry to the database ORACLE_HOME/network/admin/tnsnames.ora ?
Try to tnsping the database you created the link to.
Check that the link was created properly.
select db_link, host from user_db_links.
---------------------------------------------
http://www.ContractOracle.com -
Hi Robert,
Thanks for your reply
I have added alias name in the tns name ora file
Now i am getting the following error
ORA-12541: TNS:no listener( i have login that remote db through VPNonly is this the issue)
Please give the direction
Regards
Mahesh -
-
Hi,
Here is how I troublleshoot a DBA Link problem: http://www.dba-oracle.com/t_troubleshooting_sql_net_connectivity_errors.htm
1 Check with "ping" using the IP address ("ping 198.11.34.43"
2 Check with "ping" using DNS name (e.g. "tnsping uranus")
3 Check with "tnsping" using TNS service name
4 Sign-on to SQL*Plus with a remote user ("connect fred/[email protected]_link"
5 Within SQL*Plus, try a select from [email protected]_db_link
Hope this answers your question . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
Hi...
Is ur target datbase listener started where the db link is connecting the source database.Check the status of the listener lsnrctl status on the target DB, if not started start it (lsnrctl start).
Also tnsping to the target afer starting the listener on it.
Regards,
Anand -
Yes i tried but it get fail
what could be the reason for that?
please give the direction
Regards
Mahesh -
Can you verify that your firewall allows outbound connections destined for target database server on the port 1521 or
what ever the port is defined in tnsnames.ora file -
The tns entry should be there in the tnsnames.ora of the server where source database is running. Many people think that the tns entry for a db link is required to be on the machine from where they are trying to connect which is not true.
Hope this helps.
Thanks,
Ankit. -
This may help,
http://www.errorkey.com/Search/Index.aspx?q=TNS-12154 -
Can you please stop spamming the group with links to errorkey.com. We can all find the error message using oerr on the server.
Giving a link to the error message does not provide any useful information. I guess you earn money from the google adds on the site ?
This discussion has been closed.