导航:首页 > 编程系统 > linux启动oracledb

linux启动oracledb

发布时间:2023-09-07 16:52:04

Ⅰ 如何在linux下启动和关闭ORCALE数据库

1. linux下启动oraclex0dx0asu - oraclex0dx0asqlplus /nologx0dx0aconn /as startx0dx0aexitx0dx0a2. linux下关闭oraclex0dx0asu - oraclex0dx0asqlplus /nologx0dx0aconn /as sysdbax0dx0ashutdown stopx0dx0aexitx0dx0a3、启动监听器x0dx0aoracle@suse92:~> lsnrctl startx0dx0a4、停止监听器x0dx0aoracle@suse92:~> lsnrctl stopx0dx0a5、查看监听器状态x0dx0aoracle@suse92:~> lsnrctlx0dx0aLSNRCTL> statusx0dx0aLSNRCTL> exitx0dx0a6.# setup 可以设置防火墙等信息x0dx0a7.安装监听器x0dx0a运行 netca 命令x0dx0alsnrctl startx0dx0alsnrctl stopx0dx0areload listener 重新加载x0dx0aservice listenerx0dx0ahelp 帮助x0dx0aquit 退出x0dx0avi etc/hostsx0dx0a添加 192.168.0.100 chsylinuxx0dx0a数据库关闭死掉还可以STARTUP FORCEx0dx0a,再糟糕的情况用SHUTDOWN ABORT。

Ⅱ 如何在linux下重启oracle数据库

1、打开一个terminal切换到oracle用户,用oracle用户修改以下内容,注意要用oraclee用户编辑,CD到oracle的安装目录的bin目录。

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

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

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/proct/11.2.0/dbhome_1:N

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

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

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

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

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

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

找到最后的内容

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

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

粘贴该行,并将该行

oel63:/home/oracle/app/oracle/proct/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/proct/11.2.0/dbhome_1/bin/lsnrctl start"

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

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

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

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

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

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

Ⅳ 如何在linux下重启oracle数据库

来方法/步骤
打开secureCRT,连接到数据源库所在的linux机器。若用户为root,请输入命令“su - oracle”并回车,若要密码,输入密码后并回车,就切换到了oracle用户下。(图为已切换到oracle用户下了)

关掉oracle的监听进程:命令为“lsnrctl stop”并回车,这时外部没法连接到数据库了。如图有提示关闭成功信息。

先杀掉所有session,小编用的是命令:“ps -ef|grep $ORACLE_SID|grep -v ora_|grep LOCAL=NO|awk '{print $2}'|xargs kill”也可以用其他办法。然后用sqlplus登录到数据库。命令依次为:“sqlplus /nolog”-“connect / as sysdba” ,最后用命令关闭oracle数据库"shutdown immediate" 。关闭命令的时候需要等待点时间,成功后会有如图的提示。

用命令"exit"退出sqlplus。然后用命令“lsnrctl start”启动数据库的监听进程。如图
提示语句表明启动成功。

阅读全文

与linux启动oracledb相关的资料

热点内容
s7数据开关在哪里 浏览:361
gvim如何调出文件目录 浏览:587
藏建通在什么网站下载 浏览:323
手机qq怎么改群的名字 浏览:574
美术类的论文主要发表在哪个网站 浏览:8
nodejs6await作用域 浏览:386
editplus调试js文件 浏览:827
电脑数据的u是什么意思 浏览:718
电子照片怎么弄成压缩文件 浏览:285
苹果推送电信运营商配置文件 浏览:748
受精24天数据在多少 浏览:502
计算机网络第二章习题 浏览:821
怎么把pdf文件里的字复制到word 浏览:255
健走app哪个轨迹最准 浏览:650
win10手机系统转安卓系统软件 浏览:313
哪个银行app能代缴违停罚款 浏览:555
苹果导出微信文件 浏览:518
win10宽带拨号连接720 浏览:219
数控车床步进编程怎么调整参数 浏览:916
芒果app在哪里下载 浏览:970

友情链接