在网上搜了好多有关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>
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器