How to connect to Oracle database from unix prompt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saurabhjain
    New Member
    • May 2006
    • 1

    How to connect to Oracle database from unix prompt

    Is there any other command to connect to oracle database from unix prompt apart from 'sqlplus usename/passwd'
  • rajputvikas
    New Member
    • May 2006
    • 1

    #2
    You may use following
    UNIX> sqlplus /nolog
    SQL> connect internal
    .. do your admin stuff..

    Please note that this is just equivalent to saying
    UNIX> sqlplus '/ as sysdba'

    Moreover, "connect internal" is getting desupported going forward. Also, if you are trying to connect as different user from within an SQLPLUS session use following:
    SQL> connect user_next/passwd@dbname;

    If you are looking for connecting to db outside SQLPLUS, then please understand that SQLPLUS is an utility which allows access to your database and passes on your queries/DML's/DDL's to database and hence you need to pass through that route only.

    Hope it helps.... let me know any followup queries....

    Comment

    • lifeisonlyluck
      New Member
      • Feb 2012
      • 1

      #3
      Thank You Vikas, this was helpful to me.

      Kumar

      Comment

      Working...