- 使用Putty工具登录OMU服务器,Putty工具的使用方法请参见Putty工具操作。
- 执行su - oracle命令,输入“oracle”用户的密码,将当前用户切换为“oracle”用户。
- 执行命令sqlplus / as sysdba,以系统用户登录数据库。
屏幕输出如下:
SQL*Plus: Release 11.1.0.7.0 - Production on Mon Mar 30 18:40:13 2009 Copyright (c) 1982, 2008, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
- 执行命令startup,输出结果根据Oracle数据库进程状态有所不同:
- 如果数据库进程已经正常启动,则执行该操作后输出结果类似:
SQL> startup ORA-32004: obsolete and/or deprecated parameter(s) specified ORA-01081: cannot start already-running ORACLE - shut it down first
- 如果执行命令startup之前数据库进程已经停止,执行该指令后输出结果类似:
ORACLE instance started. Total System Global Area 2147483648 bytes Fixed Size 2074152 bytes Variable Size 620759512 bytes Database Buffers 1509949440 bytes Redo Buffers 14700544 bytes Database mounted. Database opened.
表示将停止的数据库进程启动。请转到查看Oracle进程,检查数据库进程状态。
- 如果数据库进程已经正常启动,则执行该操作后输出结果类似: