您好,登錄后才能下訂單哦!
官方在18C還可以裝在6.4以上,但19c現在出的exadata上突然出要7.4了(官方要求),那6.X還能不能裝呢?經測試,以下方式最可行,有其他更好的辦法歡迎留言,
(以下純屬個人愛好,重要的生產環境建議等ORACLE的19c for linux版本的最終版本,以官方為準);
介質下載地址:edelivery.oracle.com
1 安裝linux 6.4_x64及以上版本,安裝時選擇最小安裝;
2 安裝完成后,配置網絡,立即更新glibc庫,在6.10里最新的glibc 為2.12,而19c要求2.14及以上版本,同樣libstdc++也要求3.14 以上否則runinstaller安裝會報錯.
rpm -Uvh glibc-common-2.17-55.el6.x86_64.rpm glibc-2.17-55.el6.x86_64.rpm rpm -Uvh libstdc++-4.7.2-2.el6.x86_64.rpm libstdc++-devel-4.7.2-2.el6.x86_64.rpm yum install kernel-headers 檢查版本:
ldd --version strings /lib64/libc.so.6 |grep GLIBC_ strings /usr/lib64/libstdc++.so.6|grep -i glibc
OHLE6.X的yum配置:
[ol6_latest] name=Oracle Linux $releasever Latest ($basearch) baseurl=https://yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=0 enabled=1
接著補包:
yum install kernel-headers rpm -ivh glibc-devel-2.17-55.el6.x86_64.rpm glibc-headers-2.17-55.el6.x86_64.rpm nscd-2.17-55.el6.x86_64.rpm yum install oracle-database-preinstall-18c yum -y install gcc yum -y install xhost
配置主機名稱,不然建庫過不去:
echo "192.168.56.104 rhel610">>/etc/hosts
增加環境變量:
vi /home/oracle/.bash_profile export DISPLAY=192.168.56.1:0.0 export ORACLE_HOME=/u01/oracle export ORACLE_BASE=/u01/app export ORACLE_SID=or19c PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
其他安裝步驟就是下一步下一步了,沒啥好說的;
相關錯誤:
1 因為18C支持6.4及以上,期間償試過用18c的exectask替換19c的exectask,希望可以忽悠過去,結果是oracle 打臉了:
/u01/oracle/runInstaller -ignoreInternalDriverError [pool-1-thread-1] [ 2019-02-27 18:24:57.554 CST ] [ClusterConfig.destroy:468] destroying resources for client thread Thread[pool-1-thread-1,5,main] [pool-1-thread-1] [ 2019-02-27 18:24:57.554 CST ] [GlobalExecution.dumpTraceInfo:1509] ---- Execution Trace for getExectaskVer from node: rhel610 ----- [pool-1-thread-1] [ 2019-02-27 18:24:57.554 CST ] [GlobalExecution.dumpTraceInfo:1517] ::Inside execute() [pool-1-thread-1] [ 2019-02-27 18:24:57.554 CST ] [GlobalExecution.dumpTraceInfo:1517] The version of exectask at node 'rhel610' is '18.0.0.0.0.06_26_18_x86_64' [pool-1-thread-1] [ 2019-02-27 18:24:57.554 CST ] [VerificationUtil.checkGetExectaskVerResults:7782] Exectask version on node 'rhel610' is '18.0.0.0.0.06_26_18_x86_64" [pool-1-thread-1] [ 2019-02-27 18:24:57.554 CST ] [VerificationUtil.compatibleExectask:9331] Comparing framework version '19.0.0.0.0.02_03_19_x86_64' with exectask version '18.0.0.0.0.06_26_18_x86_64' [pool-1-thread-1] [ 2019-02-27 18:24:57.555 CST ] [VerificationUtil.checkGetExectaskVerResults:7791] Incompatible exectask found on node: rhel610 [pool-1-thread-1] [ 2019-02-27 18:24:57.555 CST ] [ResultSet.addResultSetData:902] addResultSetData, called from: VerificationUtil.checkDestLoc:6717 [pool-1-thread-1] [ 2019-02-27 18:24:57.555 CST ] [ResultSet.traceResultSet:1040]
其加了exectask -getver版本判斷;
2 源碼升級glibc庫或在系統裝完后,裝了其他包再升級glibc庫,也就是如下方式:
strings /lib64/libc.so.6 |grep GLIBC_ wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.14.tar.gz tar -xvf glibc-2.14.tar.gz tar -xvf glibc-ports-2.14.tar.gz mv glibc-ports-2.14 glibc-2.14/ports mkdir glibc-2.14/build cd glibc-2.14/build ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin make make install
在runinstaller是可以過,但在exectask直接打臉:
!!! WARNING !!! --> libstdc++-2.17.0
libstdc++-2.17.0-stub.so This is a stub library which can be used for link
3 DBCA創建數據庫時報錯DBT-08001 08002 Unable to check for available memory
查看:
oracle 11g/12c/18c/19c dbca日志/trace文件路徑是:
$ORACLE_BASE/cfgtoollogs/dbca/<DBNAME>/trace.log
具體的trace dbca的方法可以參考MOS文檔:
Master Note: Troubleshooting Database Configuration Assistant (DBCA) (文檔 ID 1510457.1)
Tracing the Database Configuration Assistant (DBCA) (文檔 ID 188134.1)
檢查報的錯其實還是exectask報錯;
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。