linux设置oracle自动启动】的更多相关文章

用root用户 在/etc/init.d/目录下创建Oracle的服务文件 cd /etc/init.d vi oracle11g   添加内容如下   #!/bin/bash # chkconfig: 345 99 10 # description: Startup Script. for Oracle Databases export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1…
1.suse linux 程序自动启动 在部署面安装的的时候,重启之后需要去tomcat/bin/startup.sh 下面去执行启动脚本. 设置开机自动启动该服务    在 vim   /etc/init.d/boot.local    下面添加   需要启动的脚本     sh /home/app/tomcat7/bin/startup.sh shift +zz 保存 或者直接重定向到 /etc/init.d/boot.local # echo  "sh /home/app/tomcat7/…
方法一:直接运行export命令定义变量,该变量只在当前的shell(BASH)或其子shell(BASH)下是有效的,shell关闭了,变量也就失效了,再打开新shell时就没有这个变量,需要使用的话还需要重新定义. 以设置oracle环境变量为例 export ORACLE_BASE=/data/app/oracle; export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1; export ORACLE_SID=orcl; export…
有很多中方法,这里只取最简单的一种: 把启动命令放到/etc/rc.d/rc.local文件里这样就可以每次启动的时候自动启动服务了, 注意给rc.local执行权限…
作为一个开发,项目现在一般都是部署在虚拟机上的linux,数据库也是按照在l虚拟机上的linux,一旦关机了,在开机程序都没打开,又要一个个去开,很麻烦,所以现在我现在使用supervisor去做一个守护进程,然后项目就托管在supervisor上,然后开机让supervisor启动就可以了. 一般的,很多人会使用单元服务的形式去实现,首先在/etc/systemd/system或/lib/systemd/system目录(可能需要使用软连接)下创建一个service文件,如: [Unit] D…
Linux设置Oracle环境变量 方法一:直接运行export命令定义变量,该变量只在当前的shell(BASH)或其子shell(BASH)下是有效的,shell关闭了,变量也就失效了,再打开新shell时就没有这个变量,需要使用的话还需要重新定义. 以设置oracle环境变量为例 export ORACLE_BASE=/data/app/oracle; export ORACLE_HOME=$ORACLE_BASE/product//dbhome_1; export ORACLE_SID=…
[root@localhost ~]# chkconfig --list     显示开机可以自动启动的服务[root@localhost ~]# chkconfig --add ***  添加开机自动启动***服务[root@localhost ~]# chkconfig --del ***  删除开机自动启动***服务 [root@localhost ~]# setup     可以在shell图形终端里面配置的命令,去service里选择 [root@localhost ~]# ntsys…
linux设置开机服务自动启动/关闭自动启动命令 2012-02-06 15:13 [root@localhost ~]# chkconfig --list     显示开机可以自动启动的服务[root@localhost ~]# chkconfig --add *** 添加开机自动启动***服务[root@localhost ~]# chkconfig --del ***   删除开机自动启动***服务 [root@localhost ~]# setup     可以在shell图形终端里面配…
学习自: http://blog.csdn.net/condywl/article/details/57129696 1. 在root用户下进行修改 配置文件 /etc/oratab vim /etc/oratab 内容: # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating…
CentOS 设置 oracle 开机自动启动 1. [root@localhost ~]# gedit /etc/oratab 文件内容为: # # This file is used by ORACLE utilities. It is created by root.sh # and updated by the Database Configuration Assistant when creating # a database. # A colon, ':', is used as t…