软件版本
suse10
oracle11G
第一步:
以oracle账号进入系统,进入oracle目录中寻找查看启动与关闭指令是否存在
#cd $ORACLE_HOME/bin
第二步:
查看启动脚本是否存在
# ls dbstart
# ls dbshut
第三步:
查看oratab中的内容,oratab文件在/opt/oratab中,
修改允许oracle是否开机启动 为Y
orcl:/oracle/product/10.2/db_1:Y
执行#source oratab 使之生效
第四步:
执行$ORACLE_HOME/bin下的dbstart 指令,看看是否能执行,如果这里不能执行,那么oracle自启动将不可能完成,执行完之后到$ORACLE_HOME/startup.log中查看执行结果
./dbstart: Starting up database "orcl"
Tue May 29 00:26:23 CST 2012
SQL*Plus: Release 11.2.0.1.0 Production on Tue May 29 00:26:26 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 1653518336 bytes
Fixed Size 2213896 bytes
Variable Size 1006635000 bytes
Database Buffers 637534208 bytes
Redo Buffers 7135232 bytes
Database mounted.
Database opened.
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
如果出现上述结果,说明startup可用
第五步:
以root用户进入系统 在/etc/rc.id/init.id下执行下面脚本
#vi start_shut //自定义名称
#!/bin/sh
ORACLE_HOME=/opt/oracle/product/10.2/db_1
OPT_=$1
case "$OPT_" in
start)
su - oracle -c "$ORACLE_HOME/bin/lsnrctl start"
su - oracle -c "$ORACLE_HOME/bin/dbstart"
chmod 1777 /tmp
chown sys:sys /tmp
exit 0;;
stop)
/bin/echo "$0:(stop)"
su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
su - oracle -c "$ORACLE_HOME/bin/dbshut"
exit 0
;;
*)
/bin/echo ''
/bin/echo "Usage: $0 {start|stop|}"
/bin/echo ''
exit 0
;;esac
修改Shell脚本的start_shut的权限,使之可以被执行
#chmod 775 start_shut
#ls -l start_shut
第六步:设定oracle开机自动启动
进入下面的目录
#cd /etc/rc0.id
#ln -s /etc/rc.d/init.id /start_shut S99start_shut
#ln -s /etc/rc.d/init.id /start_shut k01start_shut
第七步:重启系统 执行sqlplus / as sysdba 则进入oracle的话 表示设置成功
分享到:
相关推荐
以openSUSE 11和10 sp2启动文件的设置为例,开机设置程序自动执行
详尽诠释了suse linux系统下oracle数据库的安装全过程。
自己编写的文档《基于SUSE Linux下的oracle10g数据库和tomcat应用系统安装配置参考手册》 目 录 1. 引言 4 1.1 目的 4 1.2 适用范围 4 1.3 参考资料 4 2. 虚拟机中安装SUSE LINUX系统 5 2.1 新建虚拟机 5 2.2 安装...
SUSE Linux Enterprise 12 SP5-Server-DVD-x86_64-GM-DVD1.iso SUSE Linux Enterprise 12 SP5-Server-DVD-x86_64-GM-DVD2.iso Raj Meel宣布了适用于SUSE Linux Enterprise 12的第五个服务包,这是该公司商业,企业...
SuSE Linux10上如何安装Oracle数据库呢
"SuSE Linux 11 开启SSH 关闭防火墙 开启FTP" 该文档主要讲解了 SuSE Linux 11 中如何开启 SSH、关闭防火墙和开启 FTP 服务的步骤。下面是相关知识点的详细说明: 一、SSH 服务器配置 在 SuSE Linux 11 中,开启 ...
日常进行开发安装虚拟机,需要Suse Linux操作系统,官网下载速度忒慢,特上传网盘资源,需要的伙伴可以下载
SUSE Linux Enterprise Server 11 SP4下载,请放心使用
the Definitive Guide to SUSE Linux Enterprise Server 12 is a task-oriented book designed for self-study as well as classroom environments, which will also serve you as a reference guide. The book ...
SLES-11-SP4-DVD-x86_64-GM-DVD1.iso 已安装成功 suselinux 64位
"SUSE LINUX下的多网卡配置" 在SUSE LINUX操作系统中,配置多网卡是一项复杂的任务,需要了解网络基础知识和Linux操作系统的配置方法。在本文中,我们将讨论如何在SUSE LINUX下配置多网卡,解决网卡通讯不正常的...
SUSE Linux Enterprise Server 12 SP5 自动化部署脚本,命令行版,图形化版本自动化脚本 openssl passwd -1 -stdin 生成密码 账号root/1234.com 971行出更改(此处是主机的密码$1$1rqHEpcL$B6DVO/fpXQq9DZe3g4nmH.) ...
suse linux是linux家族中使用量比较多的系统,这里有suse linux学习的常用命令,适合初学者学习
SUSE Linux 11 Bible
suse linux 用户手册;爱好 suse linux 操作系统可以下载学习一下
SuSE Linux Enterprise Server 10 SP4-x86_64 百度云下载地址, 可以快速下载,流畅安装
从SUSE Linux Enterprise Server 15开始,安装介质仅包含安装程序,这是一个基于命令行的最小系统,用于安装,更新和注册SUSE Linux Enterprise Server。在安装过程中,您可以通过选择要安装在安装程序之上的模块来...
可以用许多不同方式安装 SUSE Linux Enterprise Server。不可能涵盖所有的引导服务器或安装服务器、自动安装或部署映像的组合。本手册应有助于为安装选择适当的部署方法。
在suse linux下的snmp安装包