如何定时启动oracle 如何定时启动abaqus软件

如何在Linux中设置开机自动启动oracle

对于LINUX 操作系统 有很多技术知识是我们需要学习的。这里我就给大家介绍Linux中设置oracle开机自动启动的 方法 。一起来看看吧。

10年积累的成都网站设计、做网站、成都外贸网站建设公司经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先制作网站后付款的网站建设流程,更有太和免费网站建设让你可以放心的选择与我们合作。

Linux中设置oracle开机自动启动的方法

在terminal中切换到root用户

查看/etc/oratab文件的内容,其内容如下

[root@golonglee ~]# cat /etc/oratab | grep -v ^$

#

# 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 the field terminator. A new line terminates

# the entry. Lines beginning with a pound sign, '#', are comments.

#

# Entries are of the form:

# $ORACLE_SID:$ORACLE_HOME::

#

# The first and second fields are the system identifier and home

# directory of the database respectively. The third filed indicates

# to the dbstart utility that the database should , "Y", or should not,

# "N", be brought up at system boot time.

#

# Multiple entries with the same $ORACLE_SID are not allowed.

#

#

oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N

使用命令vi /etc/oratab编辑文件/etc/oratab,在最后添加如下内容

##### what I have written is as following

oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:Y

#####Finished wrote in 2015-12-24

说明:/home/oracle/app/oracle/product/11.2.0/dbhome_1为oracle的安装目录,要根据实际情况进行修改。

(注意:图中我用红色标记的N要改成Y)

找到最后的内容

oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N

复制该行oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N并注释掉

粘贴该行,并将该行

oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N最后的N

改为Y

最后按2次ESC键,并输入:wq并按下enter保存,退出

使用命令vi /etc/rc.d/rc.local编辑rc.local文件,添加如下内容

##### what I have written is as following

su oracle -lc "/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start"

su oracle -lc /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart

#####Finished wrote in 2015-12-24

说明:因为第一行命令中有空格所以用双引号(英文的双引号)

/home/oracle/app/oracle/product/11.2.0/dbhome_1为oracle的安装目录,要根据实际情况进行修改。

最后按2次ESC键,并输入:wq并按下enter保存,退出,重启机器,验证成功。

是不是很简单呢~快跟着我一起学习吧!!!如果觉得这篇 文章 不错的话就给我点一个赞吧。

如何启动oracle服务

如果是windows操作系统:

右键单击“我的电脑”- 管理 - 服务和应用程序 - 服务 - OracleService****(****是你自己的oracle服务名)右键单击,选启动;OracleOraDb****TNSListener右键单击,选启动;

通常如果在自己本机建立使用数据库启动这两个就够了。如果要进入网页版的oracle,就将所有oracle开头的服务都起来;

ORACLE数据库怎么做定时执行操作

1.create table test(id int,starttime date,state int);

2.create or replace procedure sp_update is

cursor cur is select * from test where state=0;

v_id int;

v_starttime date;

v_state int;

begin

open cur;

loop

fetch cur into v_id,v_starttime,v_state;

exit when cur%notfound;

update test set state=1 where starttime=sysdate;

commit;

end loop;

close cur;

end;

/

3.创建JOB

SQL variable job1 number;

SQL

SQL begin

2 dbms_job.submit(:job1,sp_update;',sysdate,'sysdate+1/1440'); --每天1440分钟,即一分钟运行sp_update过程一次

3 end;

4 /

PL/SQL 过程已成功完成。

运行JOB

SQL begin

2 dbms_job.run(:job1);

3 end;

4 /

如何定时启动oracle的服务

在Windows系统中Oracle会以系统服务的形式出现,通过系统服务来管理即可。

在Unix/Linux中,要调度启动Oracle就需要自己写shell脚本程序了,然后通过crontab来定时调度


当前文章:如何定时启动oracle 如何定时启动abaqus软件
当前网址:http://ybzwz.com/article/hepgjg.html