Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
   
TNS less connection in Oracle




By Vigyan Kaushik
Sep 15, 2007

Digg! digg!     Print    email to friend Email to Friend

Note: This article was written for educational purpose only. Please refer to the related vendor documentation for detail.




Download Free Confio Software

Few dbapool users have asked me about TNS less connection in Oracle. I have put together this article for them and everybody else who are seeking for this information.

I have tested this connection method in Oracle 8i, 9i and 10g. I have not tested it in 11g but I hope it should work.

C:\>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 15 23:04:00 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> connect  scott/tiger@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=testsrv)(Port=1521))(CONNECT_DATA=(SID=TEST)))
Connected.
SQL>

If you think about above connection, it is more like specifying complete address in the connect string as you have in the tnsnames.ora file.

For 10g, you can use following method as well. This method does not work for 8i or 9i databases.

C:\>sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Sep 15 23:04:00 2007

Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> scott/tiger@testsrv:1521/TEST
Connected.
SQL>

 

 

 

 

 
About author:

Vigyan Kaushik is an Oracle certified professional serving IT industry for more than 10 years as an Oracle DBA and System Administrator. He has expertise in Database Designing, Administration, Networking, Tuning, Implementation, Maintenance with web deployment activities on different Unix flavors as well as on Windows Operating Systems.

 

Please login to post your comments





  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software