数据库

本类阅读TOP10

·SQL语句导入导出大全
·SQL Server日期计算
·SQL语句导入导出大全
·SQL to Excel 的应用
·Oracle中password file的作用及说明
·MS SQLServer OLEDB分布式事务无法启动的一般解决方案
·sqlserver2000数据库置疑的解决方法
·一个比较实用的大数据量分页存储过程
·如何在正运行 SQL Server 7.0 的服务器之间传输登录和密码
·SQL中两台服务器间使用连接服务器

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
Solaris 下的 oracle 的基本操作。

作者:未知 来源:月光软件站 加入时间:2005-5-13 月光软件站

一、启动、关闭数据库
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---停止监听

 




相关文章

相关软件