Home » Infrastructure » Unix » sys for sqlplus sys/sysadmin as sysdba
sys for sqlplus sys/sysadmin as sysdba [message #300803] Mon, 18 February 2008 02:51 Go to next message
ora_2007
Messages: 430
Registered: July 2007
Location: Mumbai
Senior Member
In my database i use
$sqlplus sys/sysadmin as sysdba

to connect as a sys user.

Please let me know how can i use only -sys- command instead of writing sqlplus sys/sysadmin as sysdba

i.e.
$sys

Thanks in advance.
Re: sys for sqlplus sys/sysadmin as sysdba [message #300810 is a reply to message #300803] Mon, 18 February 2008 03:08 Go to previous message
Frank
Messages: 7901
Registered: March 2000
Senior Member
This is totally NOT Oracle related; this is a Unix-question.

One way to do it is to create an alias.

A better way is to not bother and type the whole command.

Why do you need to abbreviate it?

[Updated on: Mon, 18 February 2008 03:09]

Report message to a moderator

Previous Topic: Passing Parameter to stored procedures from unix
Next Topic: Output from a Command
Goto Forum:
  


Current Time: Fri Mar 29 07:08:39 CDT 2024