[root@sherlock /]# su - oracle(必须在oracle用户下,注意空格)
[oracle@sherlock /]$ . home/oracle/.bash_profile
[oracle@sherlock ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on 星期二 12月 25 21:04:16 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
已连接到空闲例程。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area 535662592 bytes
Fixed Size 1337720 bytes
Variable Size 360711816 bytes
Database Buffers 167772160 bytes
Redo Buffers 5840896 bytes
数据库装载完毕。
数据库已经打开。
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> exit
从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
[oracle@sherlock /]$