ORACLE随Linux开机启动

简介:
环境:VM+redhat9+oracle9.2

        1.修改/etc/oratab内容

         ORACLE_SID:/u01/app/oracle/product/10.2.0/db_1:N改为如下内容
        # add below content
        #$ORACLE_SID:$ORACLE_HOME:Y
        demo:/u01/app/oracle/product/9.2.0:Y

        2.修改/etc/rc.local文件加以下内容

         ####################################
        location :/etc/rc.local
        ####################################
        !/bin/sh
         This script. will be executed *after* all the other init scripts.
         You can put your own initialization stuff in here if you don't
         want to do the full Sys V style. init stuff.
        touch /var/lock/subsys/local
        add below content
        su - oracle -c "/bin/sh /home/oracle/dbstart.sh"


        3 new file dbstart.sh vi /home/oracle/dbstart.sh的内容

         export ORACLE_BASE=/u01/app/oracle
        export ORACLE_HOME=/u01/app/oracle/product/9.2.0
        export ORACLE_SID=demo
         start the listener
        /u02/oracle/ora/bin/lsnrctl start
        #start the db
        sqlplus "/as sysdba" <<eof
        startup
        exit
        eof


本文转自茄子_2008博客园博客,原文链接:http://www.cnblogs.com/xd502djj/archive/2011/03/15/1984992.html,如需转载请自行联系原作者。


目录
相关文章
|
5月前
|
运维 Oracle 容灾
Oracle dataguard 容灾技术实战(笔记),教你一种更清晰的Linux运维架构
Oracle dataguard 容灾技术实战(笔记),教你一种更清晰的Linux运维架构
|
3月前
|
Oracle 关系型数据库 Linux
讲解linux下的Qt如何编译oracle的驱动库libqsqloci.so
通过这一连串的步骤,可以专业且有效地在Linux下为Qt编译Oracle驱动库 `libqsqloci.so`,使得Qt应用能够通过OCI与Oracle数据库进行交互。这些步骤适用于具备一定Linux和Qt经验的开发者,并且能够为需要使用Qt开发数据库应用的专业人士提供指导。
104 1
讲解linux下的Qt如何编译oracle的驱动库libqsqloci.so
|
2月前
|
Linux Shell 数据库
在Linux中,系统的开机启动顺序是什么?
在Linux中,系统的开机启动顺序是什么?
|
2月前
|
Linux Shell 网络安全
在Linux中,开机启动过程是什么?
在Linux中,开机启动过程是什么?
|
4月前
|
SQL Oracle 关系型数据库
探索 Linux 命令 `db_archive`:Oracle 数据库归档日志的工具
探索 Linux 中的 `db_archive`,实际与 Oracle 数据库归档日志管理相关。在 Oracle 中,归档日志用于恢复,当在线重做日志满时自动归档。管理员可使用 SQL*Plus 查看归档模式,通过 `RMAN` 进行备份和恢复操作。管理归档日志需谨慎,避免数据丢失。了解归档管理对 Oracle 管理员至关重要,确保故障时能快速恢复数据库。
|
5月前
|
Oracle 关系型数据库 Linux
Oracle Linux: How To Disable NUMA At OS Level (Doc ID 2193586.1)
Oracle Linux: How To Disable NUMA At OS Level (Doc ID 2193586.1)
55 1
|
5月前
|
Oracle Java 关系型数据库
【服务器】python通过JDBC连接到位于Linux远程服务器上的Oracle数据库
【服务器】python通过JDBC连接到位于Linux远程服务器上的Oracle数据库
60 6
|
5月前
|
Oracle 关系型数据库 Linux
SuSE linux server 11通过SAP来安装oracle11g
SuSE linux server 11通过SAP来安装oracle11g
72 0
|
Oracle 网络协议 关系型数据库
linux安装oracle client客户端远程连接数据库
  linux安装oracle client客户端远程连接数据库。   1.到oracle官网下载basic,sqlplus,devel三个软件包   oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.tar   oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.tar   oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.tar   2.到root用户下创建一个oracle文件夹
486 0
|
Oracle 关系型数据库 Linux
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)