connect to sqlplus without writing as sysdba [closed]

Posted on

Question :

I want to connect sqlplus sys/test without writing as sysdba.
I’m wondering if there is a way to avoid that.

Answer :

$ alias sqs='sqlplus / as sysdba'
$ sqs

SQL*Plus: Release 12.1.0.2.0 Production on Wed Jun 15 20:33:31 2016

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Advanced Analytics
and Real Application Testing options

SQL> 

Leave a Reply

Your email address will not be published. Required fields are marked *