在CMD中启动sqlplus(保留)

来源:互联网 发布:rice压缩算法 编辑:程序博客网 时间:2024/05/22 11:44

在CMD中启动sqlplus

言归正转,下面具体说一下如何启动。

1. 设置正确的ORACLE实例

2. 启动SQLPLUS

3. 连接

4. 启动/关闭数据库

相应的在DOS命令下执行:

1. set ORACLE_SID = $INSTANCE_NAME

2. sqlplus /nolog

3. connect user/password as sysdba

4. startup/shutdown

执行如下:

C:/>set ORACLE_SID = test

C:/>sqlplus /nolog

SQL*Plus: Release 9.0.1.0.1 - Production on 星期三 1月 12 19:42:08 2005

(c) Copyright 2001 Oracle Corporation. All rights reserved.

SQL> connect system/manager as sysdba

已连接到空闲例程。

SQL> startup

ORACLE 例程已经启动。

Total System Global Area 118255568 bytes

Fixed Size 282576 bytes

Variable Size 83886080 bytes

Database Buffers 33554432 bytes

Redo Buffers 532480 bytes

数据库装载完毕。

数据库已经打开。

SQL>