One of my favorites is 'dba'
alias dba='sqlplus "/ as sysdba" @/home/oracle/scripts/login.sql'
with the login.sql:
set sqlprompt "_USER'@'_CONNECT_IDENTIFIER _PRIVILEGE> "
This makes login most simple by typing dba and it looks like:
oracle@server01:~> dba
SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 21 12:04:22 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SYS@SERVER01 AS SYSDBA>
What is your favorite alias?
No comments:
Post a Comment