1、以oracle用戶登錄系統(tǒng),如果是root用戶,使用su - oracle切換用戶。
成都創(chuàng)新互聯(lián)專注于企業(yè)成都營銷網(wǎng)站建設(shè)、網(wǎng)站重做改版、魯山網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、成都h5網(wǎng)站建設(shè)、電子商務(wù)商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為魯山等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
2、以oracle用戶cd到oracle的bin目錄,cd $ORACLE_HOME/bin。
3、以nolog方式運(yùn)行sqlplus。
4、以sysdba連接數(shù)據(jù)庫,如下SQL conn /as sysdba。
5、輸入用戶名sys 和密碼。
6、啟動數(shù)據(jù)庫實(shí)例,SQL startup;等待片刻,等到database opened就是打開數(shù)據(jù)庫實(shí)例成功了。
7、使用命令shutdown abort ?;或者? shutdown immediate?;?關(guān)閉數(shù)據(jù)庫。
對于LINUX 操作系統(tǒng) 有很多技術(shù)知識是我們需要學(xué)習(xí)的。這里我就給大家介紹Linux中設(shè)置oracle開機(jī)自動啟動的 方法 。一起來看看吧。
Linux中設(shè)置oracle開機(jī)自動啟動的方法
在terminal中切換到root用戶
查看/etc/oratab文件的內(nèi)容,其內(nèi)容如下
[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,在最后添加如下內(nèi)容
##### 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的安裝目錄,要根據(jù)實(shí)際情況進(jìn)行修改。
(注意:圖中我用紅色標(biāo)記的N要改成Y)
找到最后的內(nèi)容
oel63:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N
復(fù)制該行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文件,添加如下內(nèi)容
##### 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
說明:因?yàn)榈谝恍忻钪杏锌崭袼杂秒p引號(英文的雙引號)
/home/oracle/app/oracle/product/11.2.0/dbhome_1為oracle的安裝目錄,要根據(jù)實(shí)際情況進(jìn)行修改。
最后按2次ESC鍵,并輸入:wq并按下enter保存,退出,重啟機(jī)器,驗(yàn)證成功。
是不是很簡單呢~快跟著我一起學(xué)習(xí)吧!!!如果覺得這篇 文章 不錯的話就給我點(diǎn)一個贊吧。
啟動oracle數(shù)據(jù)庫步驟:
首先使用oracle用戶登錄Linux,然后在shell命令行中執(zhí)行下面的命令:
第一步:打開Oracle監(jiān)聽
$ lsnrctl start
第二步:進(jìn)入sqlplus
$ sqlplus /nolog
SQL
第三步:使用sysdab角色登錄sqlplus
SQL conn /as sysdba
第四步:啟動數(shù)據(jù)庫
SQL startup
經(jīng)過上面的四個步驟,oracle數(shù)據(jù)庫就可以啟動了。
關(guān)閉數(shù)據(jù)庫用 shutdown 是要等待事物結(jié)束才關(guān)閉,強(qiáng)制關(guān)閉用 shutdown abort。
網(wǎng)頁題目:linux如何啟動oracle,linux如何啟動cups
轉(zhuǎn)載來于:http://chinadenli.net/article24/hdodce.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機(jī)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計(jì)公司、網(wǎng)站設(shè)計(jì)公司、網(wǎng)站設(shè)計(jì)、靜態(tài)網(wǎng)站、虛擬主機(jī)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)