linux数据库实例开机启动,linux下数据库实例开机自启动设置
linux下数据库实例开机自启动设置 1、修改/oratab [root@org54 ~]# vi/etc/oratab --把N改为Y,如下提示 # This file is used by ORACLEutilities. It is created by root.sh # and updated by the Database ConfigurationAssistant when creating # a datab
linux下数据库实例开机自启动设置
1、修改/oratab
[root@org54 ~]# vi/etc/oratab --把N改为Y,如下提示
# This file is used by ORACLEutilities. It is created by root.sh
# and updated by the Database ConfigurationAssistant when creating
# a database.
# A colon, ':', is used as the fieldterminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', arecomments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME::
#
# The first and second fields are thesystem identifier and home
# directory of the databaserespectively. The third filed indicates
# to the dbstart utility that the databaseshould , "Y", or should not,
# "N", be brought up at systemboot time.
#
# Multiple entries with the same$ORACLE_SID are not allowed.
#
#
#game:/u01/app/oracle/product/10.2.0/db_1:N --dbca创建库时注册的默认信息
--格式:$ORACLE_SID:$ORACLE_HOME:
--选项代表开机是否自启动
game:/u01/app/oracle/product/10.2.0/db_1:Y
~
~
~
~
2、编辑/dbstart
[oracle@org54 bin]$ cd$ORACLE_HOME/bin
[oracle@org54 bin]$ ls-ll |grep dbstart
-rwxr-xr-x 1 oracle oinstall 10415 Jan 1 2000 dbstart
[oracle@org54 bin]$ vidbstart
--dbstart为开机自启动脚本,让系统开机就去执行dbstart脚本文件,它会去读oratab文件,读到Y就会把对应的实例开机自启动
--调整或确认监听路径,如ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle或ORACLE_HOME_LISTNER=$ORACLE_HOME根据设置的监听调整路径
3、编辑/rc.local
[root@org54 ~]# vi/etc/rc.d/rc.local --添加如下两行信息,启动实例、启动监听
#!/bin/sh
#
# This script will be executed *after* allthe other init scripts.
# You can put your own initialization stuffin here if you don't
# want to do the full Sys V style initstuff.
touch /var/lock/subsys/local
modprobe hangcheck-timer hangcheck_tick=30hangcheck_margin=180
su - oracle -c"/u01/app/oracle/product/10.2.0/db_1/bin/dbstart"
su - oracle -c"/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctl start"
--命令中-c代表执行脚本,脚本dbstart中指定启动的实例,脚本lsnrctl中启动配置的监听
4、重启验证
# reboot
[oracle@org54 ~]$ sqlplus'/as sysdba'
SQL*Plus: Release 10.2.0.1.0 - Productionon Fri Jul 4 10:40:57 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise EditionRelease 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Miningoptions
SQL> selectstatus,instance_name from v$instance;
STATUS INSTANCE_NAME
------------ ----------------
OPEN game
小结:
linux下设置实例自启动有关脚本:
oratab:实例是否自启动的注册信息
dbstart:开机启动脚本文件会读取oratab信息
rc.local:开机后立即要做的文件
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉
本文系统来源:php中文网
linux数据库实例开机启动,linux下数据库实例开机自启动设置相关推荐
- oracle设置开机启动,linux下oracle设置开机自启动实现方法
一.在Linux下启动Oracle 登录到CentOS,切换到oracle用户权限 # su – oracle 接着输入: $ sqlplus "/as sysdba" 原本的画面 ...
- oracle服务开机启动,Linux下建立Oracle服务及其开机自启动
操作环境:CentOS 6.7 + Oracle 11gR2 手工启动Oracle实例: 启动数据库: sqlplus / as sysdba startup 手动启动监听: lsnrctl star ...
- linux系统设置开机启动,linux下设置自己的程序开机自启动
1.开机启动时自动运行程序 Linux加载后, 它将初始化硬件和设备驱动, 然后运行第一个进程init.init根据配置文件继续引导过程,启动其它进程.通常情况下,修改放置在 /etc/rc或 /et ...
- Linux+nfs配置开机启动,linux NFS配置:NFS开机自动启用及其原理
这节我们讲NFS开机自动启动及其原理 NFS服务器端已经配置好了,但机器重启以后我们还要重新开启NFS服务.为了不这么麻烦,我们要让NFS和portmap服务在开机时自动启动,这样就会避免出现moun ...
- linux httpd 开机启动脚本,httpd服务如何开机启动
在之前的学习中我们已经知道怎样收到启动服务或者停止服务,以httpd服务在Redhat5.centos6为例: 启动服务: service httpd start 停止服务: service http ...
- linux修改开机启动,Linux修改开机启动logo
默认开机LOGO会在液晶屏的左上脚显示一只小企鹅,分辨率为80*80,具体在kernel/drivers/video/logo下会有logo_linux_clut224.ppm这幅图像,程序会根据这幅 ...
- linux httpd 开机启动,Linux设置Apache开机启动
在Linux下,如果是yum安装Apache,则会默认把服务添加进系统服务中,只需要使用chkconfig来设置开机启动就可以实现Apache开机启动.但如果编译安装Apache,则需要先把Apach ...
- linux 从命令行启动,Linux下常见服务在命令行方式的启动
昨天下午正在超市购物,BOSS打电话问我会不会配置Linux下的samba? Samba是Linux下提供的类Windows下"网络邻居"的服务.一般只有启动的时候安装了才可以启用 ...
- 设置linux防火墙服务不开机启动,Linux关闭防火墙并设置开机启动/不启动
本文针对Centos6和7 对于Centos6: 查看防火墙: [root@CactiEZ ~]# service iptables status 关闭防火墙: [root@CactiEZ ~]# s ...
最新文章
- 微服务拆的太细了会有什么问题
- Yii2与Yii1的模块中Layout使用区别
- python编程 pdf-Python书单推荐一波【内含PDF下载地址】
- Levenberg-Marquardt快速入门教程
- Android Studio 出现 Gradle's dependency cache may be corrupt 解决办法
- C malloc 用法
- 在你的 iOS App中 使用 OpenSSL 库 转发
- Android开发最佳实践《IT蓝豹》
- java如何查看调用记录_查看Java记录
- java操作_JAVA操作文件大全(一)
- linux shell 命令批量杀死进程
- S2B2B-云分销系统介绍
- MAC Pro开机密码忘记了怎么办?
- 使用python发邮箱遇到的问题
- 【华为】某中小型企业网 组网案例—总公司+分公司模式
- 五. 服务的注册 DiscoveryClient 与 ServiceRegistry 服务的发现的简单介绍
- 笔记本电脑设备管理器找不到独立显卡的解决方案
- react-dnd官方文档
- OpenSSl生成SSL证书(支持https)
- windows之关闭thinkpad的默认fn功能键
热门文章
- ESLint is disabled since its execution has not been approved or denied yet
- yii2 mysql in_yii2 mysql数据库读写分离配置
- 英特尔核芯显卡控制面板没有了_只认性能你就输了!英特尔第十代酷睿处理器最全解析...
- qt中QMap与QMultimap用foreach遍历
- Python2.x 和 Python3.x,如何选择?
- 2021高考无准考证成绩查询,2021考研没有准考证号怎么查成绩
- python流量实时统计_Python实现获取nginx服务器ip及流量统计信息功能示例
- win7卸载java_Win7彻底卸载Oracle 11g图文步骤(靠谱)
- 石家庄计算机专接本学校有哪些,河北省内的专接本学校都有哪些?
- python函数后面两个括号_简单了解为什么python函数后有多个括号