Translate

Saturday 25 October 2014

How to Create a Shortcut for your sqlplus

Add below entry in /etc/profile


alias s='sqlplus "/as sysdba"'
[root@ora12c ~]#

You can use anything for s as alias

After this done give the command s as oracle user

[oracle@ora12c ~]$ s

SQL*Plus: Release 12.1.0.2.0 Production on Sat Oct 25 01:11:42 2014

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, OLAP, Advanced Analytics and Real Application Testing opt                                                                                        ions

SQL>

No comments:

Post a Comment