Oracle在win2000DOS下的启动


在网上搜了好多有关oracle下DOS方式启动数据库的文章,都没有解决这个问题。偶然把这个问题给解决了。
在网上看到有些网友说在oracle9i把svrmgr30(unix下为svrmgrl)给取消了,用sqlplus给代替了,这个问题我不是很清楚,不过在window2000里的确是找不到svrmgr*.exe这样的文件。
言归正转,下面具体说一下如何启动。
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>

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus