Solaris下Oracle的基本操作
2013-04-03 13:21
302 查看
1 启动数据库监听
su -oracle——切换Oracle用户(如果使用su oracle ,则启动时不运行.profile用户环境配置文件)
$ lsnrctl start——启动监听
2 启动数据库
$ sqlplus "/ as sysdba"——用sys用户登陆sqlplus
SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:06:11 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> startup——启动数据库
ORACLE instance started.
Total System Global Area 538412728 bytes
Fixed Size 743096 bytes
Variable Size 268435456 bytes
Database Buffers 268435456 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL> exit——退出sqlplus
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
或者
$dbstart
3 查看数据库进程
$ ps -ef|grep ora_——查看oracle进程
oracle 688322 1 0 15:06:20 - 0:00 ora_smon_bxmis
oracle 696534 704704 0 15:06:35 pts/4 0:00 grep ora_
oracle 729224 1 0 15:06:20 - 0:00 ora_dbw0_bxmis
oracle 745618 1 0 15:06:20 - 0:00 ora_reco_bxmis
oracle 770216 1 0 15:06:20 - 0:00 ora_ckpt_bxmis
oracle 778394 1 0 15:06:20 - 0:00 ora_pmon_bxmis
oracle 843876 1 0 15:06:20 - 0:00 ora_qmn0_bxmis
oracle 901342 1 0 15:06:20 - 0:00 ora_lgwr_bxmis
oracle 925704 1 0 15:06:20 - 0:00 ora_cjq0_bxmis
$ ps -ef|grep lsnr——查看oracle监听进程
4 关闭数据库
$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:07:04 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
SQL> shutdown immediate——关闭数据库
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
或者
$dbshut
5 停止数据库监听
$ lsnrctl stop---停止监听
su -oracle——切换Oracle用户(如果使用su oracle ,则启动时不运行.profile用户环境配置文件)
$ lsnrctl start——启动监听
2 启动数据库
$ sqlplus "/ as sysdba"——用sys用户登陆sqlplus
SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:06:11 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
SQL> startup——启动数据库
ORACLE instance started.
Total System Global Area 538412728 bytes
Fixed Size 743096 bytes
Variable Size 268435456 bytes
Database Buffers 268435456 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL> exit——退出sqlplus
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
或者
$dbstart
3 查看数据库进程
$ ps -ef|grep ora_——查看oracle进程
oracle 688322 1 0 15:06:20 - 0:00 ora_smon_bxmis
oracle 696534 704704 0 15:06:35 pts/4 0:00 grep ora_
oracle 729224 1 0 15:06:20 - 0:00 ora_dbw0_bxmis
oracle 745618 1 0 15:06:20 - 0:00 ora_reco_bxmis
oracle 770216 1 0 15:06:20 - 0:00 ora_ckpt_bxmis
oracle 778394 1 0 15:06:20 - 0:00 ora_pmon_bxmis
oracle 843876 1 0 15:06:20 - 0:00 ora_qmn0_bxmis
oracle 901342 1 0 15:06:20 - 0:00 ora_lgwr_bxmis
oracle 925704 1 0 15:06:20 - 0:00 ora_cjq0_bxmis
$ ps -ef|grep lsnr——查看oracle监听进程
4 关闭数据库
$ sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.5.0 - Production on Thu Oct 9 15:07:04 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
SQL> shutdown immediate——关闭数据库
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.5.0 - Production
或者
$dbshut
5 停止数据库监听
$ lsnrctl stop---停止监听
相关文章推荐
- Solaris下Oracle的基本操作
- Oracle SQL Plus 的基本操作 - Oracle 学习笔记 1
- 【Oracle】基本操作(一)
- Oracle下SQL基本操作(二)
- oracle ocp 学习day4总结(对象的基本操作)
- oracle 基本操作
- oracle基本操作语句总结
- 【Oracle基本操作3】常见错误及解决办法
- Oracle 10g创建数据库 用户等基本操作
- Oracle基本操作七:序列,同义词,索引,视图
- oracle学习笔记系列------oracle 基本操作之表的增删改查
- Oracle基本操作--数据查询
- Oracle的一些基本操作
- oracle的常规操作(基本命令)
- 关于oracle的一些基本知识点和操作
- 数据库工程师考试自学(2)---Oracle最基本操作
- Solaris基本操作( by quqi99)
- oracle mysql sqlserver 查看当前所有数据库及数据库基本操作命令
- oracle基本操作手册
- 通过Navicat Premium 实现Oracle基本操作