年底了一直很忙,今天忙中偷閑安裝了一下Oracle18C的RPM包安裝方法??偟母杏X還是比較方便的,大大的簡(jiǎn)化了oracle 的安裝,讓非專業(yè)的DBA也有了比較好的安裝體驗(yàn)。下面就帶來(lái)我安裝過程中的一些步驟分享:
創(chuàng)新互聯(lián)公司是一家成都做網(wǎng)站、網(wǎng)站制作,提供網(wǎng)頁(yè)設(shè)計(jì),網(wǎng)站設(shè)計(jì),網(wǎng)站制作,建網(wǎng)站,按需開發(fā),網(wǎng)站開發(fā)公司,從2013年開始是互聯(lián)行業(yè)建設(shè)者,服務(wù)者。以提升客戶品牌價(jià)值為核心業(yè)務(wù),全程參與項(xiàng)目的網(wǎng)站策劃設(shè)計(jì)制作,前端開發(fā),后臺(tái)程序制作以及后期項(xiàng)目運(yùn)營(yíng)并提出專業(yè)建議和思路。環(huán)境介紹:
OS: Redhat 7.5 , Mem 4G, CPU 4C,DISK 200G
Red Hat Enterprise Linux Server release 7.5 (Maipo)
下載rpm安裝包:
oracle-database-ee-18c-1.0-1.x86_64.rpm
oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
安裝步驟
3.1 配置yum
#cd /etc/yum.repos.d
[rhel7.5]
name=my_repo
baseurl=file:///mnt
gpgcheck=0
3.2 安裝依賴包:
yum -y install xorg-x11-xauth xorg-x11-utils libstdc++-devel libaio-devel ksh compat-libcap
注意:在redhat7.5中,compat-libstdc++-33這個(gè)包是沒有,請(qǐng)自行下載,并手動(dòng)安裝。
3.3 安裝數(shù)據(jù)庫(kù)
1)yum -y localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
安裝提示的信息比較多,此處省略。。。。。
2)rpm -ivh oracle-database-ee-18c-1.0-1.x86_64.rpm
warning: oracle-database-ee-18c-1.0-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:oracle-database-ee-18c-1.0-1 ################################# [100%]
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-18c configure
3.4 配置數(shù)據(jù)庫(kù)
在root下執(zhí)行:
3.5 安裝完成后檢查
該步驟執(zhí)行的時(shí)間較長(zhǎng),需要耐心的等待。。。。
Configuring Oracle Database ORCLCDB.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/opt/oracle/cfgtoollogs/dbca/ORCLCDB.
Database Information:
Global Database Name:ORCLCDB
System Identifier(SID):ORCLCDB
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.
Database configuration completed successfully. The passwords were auto generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.
3.5 安裝檢查
1)Oracle配置環(huán)境變量:
[oracle@rhel75-dev-31-81 ~]$ vi .bash_profile
export ORACLE_HOME=/opt/oracle/product/18c/dbhome_1
export ORACLE_VERSION=18c
export ORACLE_SID=ORCLCDB
PATH=$ORACLE_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin
export PATH
2)檢查監(jiān)聽
lsnrctl status
Service "7f7a654558113bdde055025056a8c790" has 1 instance(s).
Instance "ORCLCDB", status READY, has 1 handler(s) for this service...
Service "ORCLCDB" has 1 instance(s).
Instance "ORCLCDB", status READY, has 1 handler(s) for this service...
Service "ORCLCDBXDB" has 1 instance(s).
Instance "ORCLCDB", status READY, has 1 handler(s) for this service...
Service "orclpdb1" has 1 instance(s).
Instance "ORCLCDB", status READY, has 1 handler(s) for this service...
The command completed successfully
3)登錄數(shù)據(jù)庫(kù)
sqlplus / as sysdba
[oracle@rhel75-dev-31-81 ~]$ sqlplus / as sysdba
SQL*Plus: Release 18.0.0.0.0 - Production on Tue Jan 15 14:50:55 2019
Version 18.3.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.3.0.0.0
當(dāng)然還有很多的新的特性,后續(xù)的文章會(huì)向大家一一闡述,時(shí)間有限難免有出錯(cuò)的地方,如有問題請(qǐng)大家及時(shí)指正。歡迎討論。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
分享文章:Oracle18CRPM安裝介紹-創(chuàng)新互聯(lián)
網(wǎng)站鏈接:http://jinyejixie.com/article18/icjdp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁(yè)設(shè)計(jì)公司、全網(wǎng)營(yíng)銷推廣、網(wǎng)站制作、網(wǎng)站改版、建站公司、定制開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容