简单
分类: Oracle
2009-03-04 11:42:33
ORACLE_BASE
ORACLE_HOME 安装过程中显示的oracle home 目录
ORACLE_SID
PATH=$PAHT:$ORACLE_HOME/bin
以 oracle 账号登陆 AXI,或者从 root 下输入 su - oracle 变成 oracle 帐号执行启动关闭命令
1. 启动和停止数据库
启动数据库:在终端输入 sqlplus '/ as sysdba' 进入 sqlplus,在 sqlplus 输入 startup
停止数据库:在 sqlplus 输入 shutdown 或者 shutdown immediate
bash-3.00# su - oracle
$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 6 14:44:57 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> startup 启动
SQL> shutdown immediate 关闭
SQL>exit
2、启动监听:lsnrctl start
$ cd /oracle/ora10/bin
$./lsnrctl start
关闭监听:lsnrctl stop
SQL>exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
$ cd /oracle/ora10/bin
$ ./lsnrctl stop
3. 启动和停止 dbconsole 服务
启动 dbconsole 服务: emctl start dbconsole
停止 dbconsole 服务: emctl stop dbconsole
4. 启动和停止 iSQL*Plus isqlplusctl start | stop
5. 列出Oracle进程
$ ps -fu oracle
$ ps -fu oracle
UID PID PPID C STIME TTY TIME CMD
oracle 123038 1 0 2月27 - 0:17 ora_lgwr_wind
oracle 237728 1 0 2月27 - 0:46 oraclewind (LOCAL=NO)
oracle 245824 1 0 2月27 - 0:08 ora_q000_wind
oracle 278558 1 0 2月27 - 0:07 /oracle/ora10/bin/tnslsnr LISTENER -