Oracleg在Linux上的安裝_第1頁
Oracleg在Linux上的安裝_第2頁
Oracleg在Linux上的安裝_第3頁
Oracleg在Linux上的安裝_第4頁
全文預覽已結束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、掛載linux系統(tǒng)光盤mkdir /mnt/cdrommount -t iso9660 /dev/cdrom /mnt/cdrom安裝操作系統(tǒng)必備的軟件包Oracle安裝和運行中,下列軟件包必須被安裝binutilscompat-dbcompat-libstdc+control-center-gccgcc-c+glibcglibc-commonlibstdc+libstdc+-devellibXpmakekshsysstatsetarch如果要查看單個軟件包,可以通過如下命令進行,比如查看compat-db是否已經(jīng)安裝rootlocalhost Server# rpm -qa | grep c

2、ompat-db配置內(nèi)核參數(shù)執(zhí)行#vi /etc/sysctl.conf,按i鍵進入編輯模式,將下列內(nèi)容加入該文件。kernel.shmmax = 536870912kernel.shmall = 2097152kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000 = 1048576 = 1048576 = 262144 = 262144編輯完之后按Esc鍵,輸入”:wq”存盤退出,然后運行下列命令,重新加載并驗證參數(shù)是否正確:

3、rootlocalhost Server# sysctl -pnet.ipv4.ip_forward = 0net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.core_uses_pid = 1net.ipv4.tcp_syncookies = 1kernel.msgmnb = 65536kernel.msgmax = 65536kernel.shmmax = 536870912kernel.shmall = 2097152kernel.sh

4、mmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000 = 1048576 = 1048576 = 262144 = 262144設置Shell調(diào)用限制執(zhí)行#vi /etc/security/limis.conf,按i鍵進入編輯模式,將下列內(nèi)容加入該文件。* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 65536編輯完之后按ESC鍵,輸入”:wq”存盤退出。執(zhí)行#

5、vi /etc/pam.d/login,按i鍵進入編輯模式,將下列內(nèi)容加入該文件。session required /lib/security/pam_limits.sosession required pam_limis.so創(chuàng)建相關目錄,用戶,組創(chuàng)建Inventory組和dba組:rootlocalhost Server# groupadd oinstallrootlocalhost Server# groupadd dba創(chuàng)建Oracle用戶并設置密碼:rootlocalhost Server# groupadd oinstallrootlocalhost Server# groupad

6、d dbarootlocalhost Server# useradd -g oinstall -g dba -m oraclerootlocalhost Server# passwd oracleChanging password for user oracle.New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.創(chuàng)建數(shù)據(jù)庫軟件目錄和數(shù)據(jù)文件存放目錄:rootlocalhost Server# mkdir /opt/ora10grootlocalh

7、ost Server# mkdir /opt/ora10g/productrootlocalhost Server# mkdir /opt/ora10g/oradata更改目錄屬主為Oracle用戶所有:rootlocalhost Server# chown -R oracle:oinstall /opt/ora10g/配置Oracle用戶環(huán)境變量首先切換到新創(chuàng)建的Oracle用戶下:rootlocalhost # su oracleoraclelocalhost root$ cd oraclelocalhost $ vi .bash_profile按i鍵,編輯.bash_profile文件,

8、增加以下內(nèi)容:#-# Set for Oracle10g Install !#-export TMP=/tmpexport TMPDIR=$TMPexport ORACLE_BASE=/opt/ora10gexportexport ORACLE_SID=jssbookexport ORACLE_TERM=xtermexport PATH=/usr/sbin:$PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/export CLASSPATH=$ORACL

9、E_HOME/JRE:$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/jlibexportumask 022if $USER = "oracle' ; then if $SHELL = "/bin/ksh" ; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 1384 -n 65536 fifi#-Ser Over修改Redhat發(fā)行標識:由于oracle10g具有系統(tǒng)安裝監(jiān)測,當檢測到的系統(tǒng)不符合安裝配置規(guī)定的要求時,安裝不能正常進行,故要更改操作系統(tǒng)的版本標識,這一操作不會

10、影響任何系統(tǒng)問題,可以在安裝結束后恢復為正常狀態(tài)。操作如下:備 份/etc/redhat-release文件為/etc/redhat-release.bak,以root權限打開/etc/redhat- release文件,將文件內(nèi)容:Red Hat Enterprise Linux Server release 5.1 (Tikanga) 修改為Red Hat Enterprise Linux AS release 3 (Taroon),用于滿足oracle_database_10.2.0.1.0./install/oraparam.ini的檢查要求。執(zhí)行安裝上述操作全部完成之后,注銷系統(tǒng),在圖形界面以oracle用戶登錄。下載或從其他主機復制Oracle安裝文件。打開一個終端,運行unzip命令解壓縮10201_database_linux32.zip文件:oraclelocalh

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論