windows下oracle自动启动脚本

windows下oracle自动启动脚本

http://blog.chinaunix.net/u/25565/showart_193718.html

一般情况下,oraclewindows下通过设置windows系统服务OracleTNSListenerOracleServiceSID就能自动启动,但有时候出现BUG或者一些不能自动启动的情况,就需要自动启动脚本了。我的环境是win2000+oracle10r2

 

    1.先写一个批处理文件oracle_startup.bat9i或者以上8i启动是svrmgrl

set sid=yoursid

lsnrctl start>>d:/oracle_startuplog.log

sqlplus /nolog @d:\oracle_startupsql.txt>>d:/ oracle_startuplog.log

 

    2.脚本oracle_startupsql.txt

connect   /   as sysdba;

startup nomount;

alter database mount;

alter database open;

quit

 

    3.oracle_startup.bat放到启动项

开始  程序  启动

 

    4.启动后可以查看日志d:/oracle_startuplog.log

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 01-11-2006 16:37:08

 

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

 

TNS-01106: 使用名称LISTENER的监听程序已经启动

 

SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 11 1 16:37:08 2006

 

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

 

已连接到空闲例程。

ORACLE 例程已经启动。

 

Total System Global Area  289406976 bytes

Fixed Size                  1248600 bytes

Variable Size              88081064 bytes

Database Buffers      197132288 bytes

Redo Buffers             2945024 bytes

 

数据库已更改。

数据库已更改。

 

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options 断开

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8102208/viewspace-566525/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8102208/viewspace-566525/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值