linux初探

首页

应用服务器

Linux技巧

中文文档

Linux初级

服务器源代码

命令详解

Linux技术应用

Linux安全应用

Linux业界新闻

UniX技术文章

Linux编程与内核

Linux数据库

Linux服务器

Linux安装指导

Linux论坛


首页>>Linux数据库>>

热门文章

·用mysqldump 来备份数据库
·Oracle 8.1.6的一次恢复!
·oracle启动 shell脚本
·使用Connector/J连接MySQL数
·oracle入门
·MySQL占领Oracle市场 技术支
·SQL Server与Oracle、DB2的性
·从黑客角度检验Oracle数据库
·开源数据库影响传统IT服务市
·在Oracle 9i isqlplus中使用

推荐文章

Oracle 10G在Fedora6的自动启动


用Oracle用户,将/etc/oratab文件修改为"Y", 如:TSH1:/u01/app/oracle/product/9.2.0:Y

将下面脚本保存到/etc/init.d/dbora.

然后运行:chmod 750 /etc/init.d/dbora

最后将dbora加到服务中:chkconfig --level 345 dbora on

QUOTE:
#!/bin/bash
#
# chkconfig: 35 95 1
# description: init script to start/stop oracle database 10g, TNS listener, EMS
#
#
# match these values to your environment:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_TERM=xterm
export PATH=/home/oracle/bin:$ORACLE_HOME/bin:$PATH
#export NLS_LANG='croatian_croatia.ee8iso8859p2'
export ORACLE_SID=TSH1
export DISPLAY=localhost:0
export ORACLE_USER=oracle

# see how we are called:
case $1 in
start)
su - "$ORACLE_USER"< lsnrctl start
sqlplus /nolog< connect / as sysdba
startup
EOS
emctl start dbconsole
EOO
;;

stop)
su - "$ORACLE_USER"< lsnrctl stop
sqlplus /nolog< connect / as sysdba
shutdown immediate
EOS
emctl stop dbconsole
EOO
;;

*)
echo "Usage: $0 {start|stop}"
;;
esac

相关文章:

·rman恢复总结
·Oracle10g的library内存分配告警
·Oracle 9i 数据库移动过程
·针对Oracle 10g中虚拟专用数据库详解
·Oracle 9i 数据库移动过程详细介绍
·Fedora6下Oracle 10G的安装
·完善自我的MySQL
·仍需努力的PostgreSQL
·有时Oracle不用索引来查找数据的原因

Copyright@2005 www.linuxGoo.com All Right Reserved