?? 在redhat6_0上安裝oracle8i(全攻略) ╃web-apache服務(wù)器技術(shù)╃ 有風(fēng)信息港 - powered by phpwind_net.htm
字號(hào):
style="FONT-SIZE: 0pt; COLOR: #ffffff">F|!13-
</SPAN> <BR>有這么辦法不使用數(shù)據(jù)庫(kù)助手就能創(chuàng)造一個(gè)數(shù)據(jù)庫(kù)嗎? <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">3zsJ+]7/
</SPAN> <BR>我得到“can"t find class java/lang/Thread”的一個(gè)錯(cuò)誤消息 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">h7& :
</SPAN> <BR>我得到一條警告消息"JNLS
Exception:oracle.ntp.jnls.JNLSException Unable to find any National
Character Sets. Please check your Oracle installation."。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">\^z.H m//
</SPAN> <BR>當(dāng)保存到腳本時(shí),我得到錯(cuò)誤消息"Unable to create database.
DBCA-00047: Unable to create destination directories."。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">*cKTX4
</SPAN> <BR>我應(yīng)該選擇“典型”還是“定制”安裝? <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">`r~P\<
</SPAN> <BR>我在創(chuàng)建數(shù)據(jù)庫(kù)時(shí)得到一條“ ORA-01012 :Not logged in”。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">fFXsyYnH
</SPAN> <BR>盡管我使用了專(zhuān)用服務(wù)器過(guò)程,仍然得到“ ORA-01012 :Not logged in”。
<SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">u\yur3
</SPAN> <BR>我得到一條“ORA-01034 :ORACLE not available”。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">Q|I *t
</SPAN> <BR>創(chuàng)造一個(gè)數(shù)據(jù)庫(kù)花了很長(zhǎng)的時(shí)間。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">nDo! R>W
</SPAN> <BR>使用補(bǔ)丁 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">R)"uy2C9W
</SPAN> <BR>在使用8.1.5.0.1補(bǔ)丁以后,svrmgrl和sqlplus仍然報(bào)告8.1.5.0.0。
<SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">4(EBW
</SPAN> <BR>在使用8.1.5.0.2補(bǔ)丁以后,當(dāng)運(yùn)行svrmgrl時(shí),我得到一條“ORA-12545
Connect failed because target host or object does not exist”。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">A~t"<NK*B
</SPAN> <BR>其他 <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">?F
0a%[D </SPAN> <BR>在我的pmon跟蹤文件中有一條:“OER 536879337 in Load
Indicator : Error Code = 570716328 !” <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">h^t5D'J&Q
</SPAN> <BR>在我的警告記錄文件和pmon蹤跡文件中,我得到很多“Load Indicator not
Supported by OS!”。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">,_N/_ 3:
</SPAN> <BR>我得到“ORA-00601 cleanup lock
conflict”并且Oracle因中度負(fù)載的EJB顧客而死掉。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff"> %DYtMw
</SPAN> <BR>有人在一個(gè)2.3版內(nèi)核上使用Oracle8i嗎? <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">E OsV]Q </SPAN> <BR>7.
資源鏈接 <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">Yn@|VCuhs
</SPAN> <BR>補(bǔ)丁和支持文檔的重要鏈接 </P><BR>
<P>1. 準(zhǔn)備安裝 <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">LjpieDAG2
</SPAN> <BR>1.1 獲得Java運(yùn)行時(shí)刻環(huán)境(JRE) <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">8k$&6w;
</SPAN> <BR>本文中所指的Java運(yùn)行時(shí)刻環(huán)境意味著JRE
1.1.6v5,而不是JDK。從Blackdown下載,要得到glibc版本而不是libc版本。在你喜歡的任何目錄下安裝它,但是確保建立一個(gè)名為/usr/local/jre的符號(hào)連接到你安裝了JRE的目錄,并且其安裝目錄可被以后創(chuàng)建的Linux帳號(hào)oracle讀取和執(zhí)行。
</P><BR>
<P>如果你使用JDK而不是JRE,通用安裝程序?qū)⒃谝院蟊г筄racle不能找到Java類(lèi)java.lang.Thread。其原因是:
</P><BR>
<P>JRE使用rt.jar作為包含Java庫(kù)的文件,而JDK使用classes.zip。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">)_-Gziq
</SPAN> <BR>Oracle通用安裝程序是一個(gè)Java應(yīng)用程序,它被編碼成使用rt.jar而不是classes.zip作為它的java
的CLASSPATH部分。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">(3<2c$\P-!
</SPAN> <BR>因此,你仍然可以通過(guò)創(chuàng)建一個(gè)名為rt.jar的符號(hào)連接連接到classes.zip而繼續(xù)使用JDK。
</P><BR>
<P>如果你有興趣使用IBM的JDK 1.1.8,要注意IBM的實(shí)現(xiàn)僅僅支持原生線程,并且不支持-green標(biāo)志。Oracle
8i安裝腳本使用原生和green線程。 </P><BR>
<P>注意:你不需要設(shè)定CLASSPATH環(huán)境變量。如果你已經(jīng)安裝其他版本的java,在你運(yùn)行安裝程序時(shí),刪除CLASSPATH的設(shè)置(unset),而在你使用安裝程序時(shí),再把它設(shè)置回來(lái)。這點(diǎn)在使用netasst和dbassist時(shí)也是一樣。
</P><BR>
<P>1.2 重新配置并編譯你的內(nèi)核 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">z?HapJg)$
</SPAN> <BR>很多用戶已經(jīng)報(bào)告不為Oracle8i重新配置內(nèi)核而成功。當(dāng)心!下列文字摘自O(shè)racle8i
Linux文檔(原文): </P><BR>
<P>Oracle8i Administrator"s Reference Release 8.1.5 for Intel Linux
(A74957-01) <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">G 0n16
</SPAN> <BR>Chapter 1 - Administering Oracle8i <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">p$N2k-8()
</SPAN> <BR>Controlling the System Global Area <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">Q9J<% .4
</SPAN> <BR>Size Limits of the SGA <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">#e^}GmiR
</SPAN> <BR>The maximum size of a single shared memory region
is specified by the Linux parameter SHMMAX. For example, if SHMMAX
is 512 KB and the SGA is 2048 KB, the SGA requires four segments.
</P><BR>
<P>If the size of the SGA exceeds the maximum size of a shared
memory segment (SHMMAX), Oracle8i attempts to attach more contiguous
segments to fulfill the requested SGA size. SHMSEG is the maximum
number of segments that can be attached by a process. To attach the
segments at contiguous addresses, SHMMAX must be set to its maximum
value on systems where its size is limited. </P><BR>
<P>Note: Intimate Shared Memory (ISM) may cause problems when SHMMAX
is smaller than the database SGA size. </P><BR>
<P><SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">SQUl-e(4
</SPAN> <BR>1.3 設(shè)置Linux用戶組和帳號(hào) <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">y Jr,K}X-
</SPAN> <BR>你需要?jiǎng)?chuàng)建Linux用戶組dba和oinstall。 </P><BR>
<P>創(chuàng)建Linux帳號(hào)oracle有一個(gè)問(wèn)題。Oracle8i
Linux文檔在oracle賬號(hào)應(yīng)該屬于哪個(gè)Linux用戶組上自相矛盾??匆豢聪旅嬲設(shè)racle8i
Linux安裝指南的文字,它說(shuō)Linux oracle帳號(hào)應(yīng)該屬于oinstall組: </P><BR>
<P>Oracle8i Installation Guide Release 8.1.5 for Intel Linux
(A74958-0) <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">Ka1v&$b
</SPAN> <BR>Chaper 2 - Setting the Environment <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">V?; 29w3
</SPAN> <BR>Setup Task to Perform as the root User <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">WcFnDz7L
</SPAN> <BR>Create a Linux Account to Own Oracle Software <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">s; j&|r.
</SPAN> <BR>The oracle account is the Linux account that owns
the Oracle8i software after installation. You must run the OUI from
this account. On Intel-Linux, use the operating system
administration utility useradd to create an oracle account with the
following properties: </P><BR>
<P>Login Name Any name, but this document refers to it as the oracle
account. <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">2Rf3:9BP!
</SPAN> <BR>Default GID Corresponding to the oinstall group.
</P><BR>
<P><SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">*LhR[tm
</SPAN> <BR>而另一方面,Oracle8i Linux管理指南說(shuō)Linux oracle帳號(hào)應(yīng)該屬于dba組:
</P><BR>
<P>Oracle8i Administrator"s Reference Release 8.1.5 for Intel Linux
(A74957-01) <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">n`7\=d
</SPAN> <BR>Chapter 1 - Administering Oracle8i <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">J?a2Hf
</SPAN> <BR>Managing Special Accounts and Groups (Table 1-8)
<SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">FD@?rxy
</SPAN> <BR>The oracle software owner is the only required
member of the dba group. You can add the root user, or any other
Linux user, to the dba group. Members of this group have access to
SQL*Plus specially privileged functions. If your account is not a
member of the dba group, you must enter a password in order to
connect as INTERNAL or gain access to the other administrative
functions of SQL*Plus. The default group ID is dba. </P><BR>
<P>那么Linux oracle到底應(yīng)該屬于哪個(gè)Linux用戶組?我的建議是dba。甚至對(duì)Oracle
8.0.5,oracle帳號(hào)已經(jīng)是dba組的一個(gè)成員了。 </P><BR>
<P>你將oracle分配到dba還是oinstall組,在安裝過(guò)程上有差別: </P><BR>
<P>如果oracle是dba的一個(gè)成員,通用安裝程序?qū)⑻崾灸氵\(yùn)行腳本
Oracle/tmp/OraInstall/oraInstroot.sh。這個(gè)腳本將改變$ORACLE_BASE/oraInventory的組屬主為oinstall。
<SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">*4m3W0}b(
</SPAN> <BR>而如果oracle是oinstall的一個(gè)成員,通用安裝程序?qū)ⅰ氨г埂被蛱崾灸鉕racle帳號(hào)OSDBA和OSOPER的Linux組,但是不提醒你要運(yùn)行上述的腳本。
<SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">-\i@hJyR[
</SPAN> <BR>1.4 設(shè)置環(huán)境變量 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">Gt(^^=xJ[
</SPAN> <BR>設(shè)置所有所需的環(huán)境變量,例如在安裝指南中指明的ORACLE_BASE、ORACLE_HOME、ORACLE_SID和LD_LIBRARY_PATH。我也將$ORACLE_HOME/bin加到PATH中。
</P><BR>
<P>注意:你不需要設(shè)定CLASSPATH環(huán)境變量。如果你已經(jīng)安裝其他版本的java,在你運(yùn)行安裝程序時(shí),刪除CLASSPATH的設(shè)置(unset),而在你使用安裝程序時(shí),再把它設(shè)置回來(lái)。這點(diǎn)在使用netasst和dbassist時(shí)也是一樣。
</P><BR>
<P>如果你僅有128MB的物理內(nèi)存,并且你在網(wǎng)絡(luò)上有另外一臺(tái)Linux機(jī)器,你可能想要運(yùn)行Oracle通用安裝程序但在另外一臺(tái)Linux機(jī)器上顯示,以便你不需要在你安裝Oracle8i的機(jī)器上運(yùn)行X。通過(guò)設(shè)置DISPLAY環(huán)境變量到正在運(yùn)行X的主機(jī)名或IP地址(另一臺(tái)Linux機(jī)器)做到,還有X使用的屏幕號(hào)。
</P><BR>
<P>例如,如果我正在安裝Oracle8i的IP地址是
192.168.0.1,并且運(yùn)行X的另一臺(tái)Linux機(jī)器是192.168.0.2,
從主機(jī)192.168.0.1設(shè)置DISPLAY環(huán)境變量,如下: </P><BR>
<P>export DISPLAY=192.168.0.2:0.0 </P><BR>
<P>在192.168.0.1上運(yùn)行的任何X應(yīng)用程序?qū)⑵漭敵鏊偷?92.168.0.2。然而,X服務(wù)器必須允許除自己以外的主機(jī)的顯示請(qǐng)求。在192.168.0.2主機(jī)上,做:
</P><BR>
<P>xhost +192.168.0.1 </P><BR>
<P>如果你設(shè)置了NLS_LANG環(huán)境變量,保證它被設(shè)置為一個(gè)合適/正確的值。見(jiàn)盡管我使用了專(zhuān)用服務(wù)器過(guò)程,仍然得到“
ORA-01012 :Not logged in”。 </P><BR>
<P>2. 安裝 <SPAN style="FONT-SIZE: 0pt; COLOR: #ffffff">u(~,}|q@
</SPAN> <BR>2.1 運(yùn)用 Oracle 通用安裝程序 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff"> 1F]Wq>
</SPAN> <BR>如果你只有一臺(tái)至少196MB的Linux機(jī)器,那么你可以安全地在同一臺(tái)機(jī)器上運(yùn)行X并安裝Oracle
8i。如果你僅有128MB,安裝可能很慢。 </P><BR>
<P>如果你有2臺(tái)Linux機(jī)器,一個(gè)為Oracle8i,另一個(gè)運(yùn)行X,從運(yùn)行X的主機(jī)telnet到安裝Oracle
8i的主機(jī),并以oracle登錄。通過(guò)進(jìn)入CDROM(或下載版本的解壓目錄)并運(yùn)行腳本./runInstaller運(yùn)行Oracle通用安裝程序。當(dāng)應(yīng)用程序遠(yuǎn)程運(yùn)行時(shí),顯示應(yīng)該出現(xiàn)在X上。如果不是,見(jiàn)前一章。
</P><BR>
<P>RedHat 6.1的用戶有運(yùn)行安裝程序本身的問(wèn)題,例如: </P><BR>
<P>Error in CreateOUIProcess(): -1 : Bad Address </P><BR>
<P>對(duì)此,這里是其他一些人的一些建議: </P><BR>
<P>如果你使用GNOME,獲得enlightenment-0.15.5-37.i386.rpm或更高。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">b:u%*K\
</SPAN> <BR>使用KDE。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff">zf5'ue
</SPAN> <BR>進(jìn)入install/linux目錄,并運(yùn)行runInst.sh。 <SPAN
style="FONT-SIZE: 0pt; COLOR: #ffffff"> A)K r
</SPAN> <BR>在你看到第一個(gè)對(duì)話后繼續(xù)下一個(gè)對(duì)話,你將被提醒運(yùn)行腳本/tmp/OraInstall/oraInstroot.sh。這個(gè)腳本將改變$ORACLE_BASE/oraInventory的組屬主為oinstall。如果從來(lái)沒(méi)有這樣提醒你,要么是你以前已經(jīng)安裝了Oracle8i(只裝附加部件)或oracle帳號(hào)不是dba的一個(gè)成員,改變oracle的用戶組為dba。
</P><BR>
<P>如果Oracle通用安裝程序突然死了,問(wèn)題可能是內(nèi)存太小。嘗試做下列操作: </P><BR>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -