RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
linux如何启动oracle,linux如何启动cups

Linux下如何启动、关闭Oracle以及打开关闭监听

1、以oracle用户登录系统,如果是root用户,使用su - oracle切换用户。

成都创新互联专注于企业成都营销网站建设、网站重做改版、鲁山网站定制设计、自适应品牌网站建设、成都h5网站建设电子商务商城网站建设、集团公司官网建设、成都外贸网站制作、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为鲁山等各大城市提供网站开发制作服务。

2、以oracle用户cd到oracle的bin目录,cd $ORACLE_HOME/bin。

3、以nolog方式运行sqlplus。

4、以sysdba连接数据库,如下SQL conn /as sysdba。

5、输入用户名sys 和密码。

6、启动数据库实例,SQL startup;等待片刻,等到database opened就是打开数据库实例成功了。

7、使用命令shutdown abort  ;或者  shutdown immediate ; 关闭数据库。

如何在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/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保存,退出,重启机器,验证成功。

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

linux下应该怎么操作才能启动oracle数据库

启动oracle数据库步骤:

首先使用oracle用户登录Linux,然后在shell命令行中执行下面的命令:

第一步:打开Oracle监听

$ lsnrctl start

第二步:进入sqlplus

$ sqlplus /nolog

SQL

第三步:使用sysdab角色登录sqlplus

SQL conn /as sysdba

第四步:启动数据库

SQL startup

经过上面的四个步骤,oracle数据库就可以启动了。

关闭数据库用 shutdown 是要等待事物结束才关闭,强制关闭用 shutdown abort。


标题名称:linux如何启动oracle,linux如何启动cups
URL地址:http://scyingshan.cn/article/hdodce.html