09 February 2011

Connect to Oracle Instance through SQL Plus Without Using a TNS File

Posted in Oracle

Manually Specify Your Oracle Connection String

This blog post will show you how to run the HRMS12.sql script from Oracle on a computer with no TNS.ORA file:

  • Download the HRMS12.sql file from Metalink and save it somewhere easy to navigate to on your computer (i.e., c:\scripts).

  • Navigate to a command prompt on a computer that already has SQLPLUS installed.

  • Enter SQLPLUS as the command and wait for the Enter user-name prompt.

  • Enter the following string (no spaces, filling in the appropriate variables shown in the example with your environment info):

    user/password@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=yourinstance.address.com)(PORT=YourPortNumber))(CONNECT_DATE=(SID=YOURSID)))

  • Enter the following information at the SQL prompt when you receive the Connected to confirmation message:

    @c:\scripts\HRMS12.sql

Comments (0)

Leave a comment

You are commenting as guest.

Enter to Win!


  1. Enter to win a $100 Google AdWords voucher from Synergy Codeworks and start driving quality traffic to your site today! We pick a new winner every 2 weeks!
  2. First Name(*)
    Please enter your first name.
  3. Last Name(*)
    Please enter your last name.
  4. Company
    Invalid Input
  5. Email Address(*)
    Please enter a valid email address.

Keep in Touch

Contact Us

Buzz

Loading...

People talking about '@synergycode':