導航:首頁 > 操作系統 > linuxoracle如何啟動

linuxoracle如何啟動

發布時間:2023-08-23 10:44:13

A. 如何在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。

B. 如何在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保存,退出,重啟機器,驗證成功。

是不是很簡單呢~快跟著我一起學習吧!!!如果覺得這篇 文章 不錯的話就給我點一個贊吧。

閱讀全文

與linuxoracle如何啟動相關的資料

熱點內容
國外代理伺服器地址伺服器埠密碼 瀏覽:751
phpthrownew 瀏覽:676
java從入門到精通pdf百度雲 瀏覽:55
linuxhdf5安裝 瀏覽:468
java繼承編程練習題 瀏覽:651
雲記app怎麼寫字視頻 瀏覽:597
如何進入我的世界臟小豆的伺服器 瀏覽:41
哪裡找到轉轉app 瀏覽:579
蘋果二次app怎麼注冊 瀏覽:586
國際服體驗服伺服器為什麼爆滿 瀏覽:113
微信商城模板源碼 瀏覽:436
網頁的源碼怎麼讀取 瀏覽:402
ubuntu命令打開軟體 瀏覽:761
如何實現對講頻道加密 瀏覽:351
福州8000的程序員去深圳多少 瀏覽:645
保存加密是什麼意思 瀏覽:43
安裝不了軟體顯示加密目錄 瀏覽:911
php53下載64位 瀏覽:99
osip源碼結構 瀏覽:958
如何刪除加密網站 瀏覽:717