新聞中心
隨著隨睗著物聯(lián)網(wǎng)、云計算以及大數(shù)據(jù)的蓬勃發(fā)展,許多企業(yè)及大型公司都需要用到Oracle數(shù)據(jù)庫作為數(shù)據(jù)庫支撐,但在使用過程中,也許經(jīng)常會遇到需要卸載Oracle數(shù)據(jù)庫操作系統(tǒng)的時候,對于初次使用Oracle數(shù)據(jù)庫的用戶來說,不知道如何從linux系統(tǒng)命令界面卸載它,下面平臺和我一起來簡要的介紹一下,如何從Linux系統(tǒng)命令界面卸載Oracle數(shù)據(jù)庫。

首先,在Linux系統(tǒng)命令行中輸入ps -ef| grep pmon來檢測是否Oracle數(shù)據(jù)庫已經(jīng)啟動,例如:
$ps -ef| grep pmon
oracle 1305 1 0 17:16 ? 00:00:00oramsPNOTSRVC_vcdb
下一步,通過輸入shutdown immediate關(guān)閉Oracle數(shù)據(jù)庫:
$shutdown immediate
Database closed.
接著,把相關(guān)的實例文件都刪除(比如oracle文件夾和多個前綴為ora的文件夾):
rm -rf /path/to/oracle
接下來,在text文件內(nèi)輸入內(nèi)容”/etc/oratab”,例如:
$ echo “#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 separator.A new line terminates
#the entry. Lines beginning with a pound sign, ‘#’,are comments
#
#Entries are of the form:
#
# $ORACLE_SID:$ORACLE_HOME::
#
# where $ORACLE_SID corresponds to an SID in the oratab file
# and $ORACLE_HOME is an ORACLE_HOME directory.
# The ‘:N’ sets ORACLE_SID to not mount and open
# the database on a restart inthe rc.d init system.
#
# The ‘:Y’ sets ORACLE_SID to mount and open
# the database on a restart in the rc.d init system.
#
#Adding an entry to the /etc/oratab file as follows:
#oracl:ALL:N:
#will indicate to the rc.d init system that the database
#”oracl” should not be mounted and opened on startup.
#
#*IMPORTANT*: Change the fields below to the correct values for
#your database. See actual entries below:
#N is for no
#Y is for yes
vcdb:/u01/app/oracle/product/12.2.0.2/db_1:N
” > /etc/oratab
最后,重啟系統(tǒng)以完成卸載Oracle數(shù)據(jù)庫操作:
reboot
以上就是正確地從Linux系統(tǒng)命令界面卸載Oracle數(shù)據(jù)庫所需要的步驟和步驟,只需短短幾分鐘的時間,就能夠把過去令人頭痛的卸載Oracle數(shù)據(jù)庫,變得一絲不茍,對于不擅長操作Linux系統(tǒng)命令行的人來說,要正確操作Oracle數(shù)據(jù)庫也是同樣重要的,這樣可以有效避免卸載操作出現(xiàn)的一些問題。
創(chuàng)新互聯(lián)【028-86922220】值得信賴的成都網(wǎng)站建設(shè)公司。多年持續(xù)為眾多企業(yè)提供成都網(wǎng)站建設(shè),成都品牌網(wǎng)站設(shè)計,成都高端網(wǎng)站制作開發(fā),SEO優(yōu)化排名推廣服務(wù),全網(wǎng)營銷讓企業(yè)網(wǎng)站產(chǎn)生價值。
本文名稱:Linux系統(tǒng)輕松卸載Oracle數(shù)據(jù)庫(linux卸載oracle)
當前鏈接:http://m.fisionsoft.com.cn/article/djjgidp.html


咨詢
建站咨詢
