Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9263531
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: Oracle

2012-11-28 18:12:04

(2006-11-01 17:07) 一键转载
分类: oracle


    一般情况下,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 断开

 

    如果有什么问题,欢迎留言交流。

阅读(1605) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~