RHEL AS 4(Update 3)上安裝oracle11g release 1

來源:互聯網
上載者:User
RHEL AS 4(Update 3)上安裝oracle11g release 1shadowfalao | 15 八月, 2007 10:43在RHEL4上安裝oracle11g今天終於下載了oracle11g for linux的安裝版,所以就迫不及待的想裝上了。概述 環境準備Red Hat Enterprise 4 Update 3 安裝配置Linux安裝oracle softwareDBCA建立資料庫測試概述自從oracle發布11g以來,經過oow和ITPUB ACE大師們的點評之後,很是想感覺一下,今天終於下載了11g forlinux的安裝包。安裝過程中參考了Installation Guide 11g Release 1 (11.1) for Linux環境準備因為是測試,暫時還沒有多餘的機器,所以只能在虛擬機器(vmware)進行安裝了.具體環境:硬體:MEM:512M,HardDisk 8G軟體:OS:RHEL AS 4 Update 3ORACLE:ORACLE11.1.0.6在release 1 版本中,ORACLE目前支援以下版本的linux:■ Asianux 2.0■ Asianux 3.0■ Oracle Enterprise Linux 4.0■ Oracle Enterprise Linux 5.0■ Red Hat Enterprise Linux 4.0■ Red Hat Enterprise Linux 5.0■ SUSE Enterprise Linux 10.0相關的kernel要求:The following are the Kernel requirements for Oracle Database 11g release 1:■ For Asianux 2, Oracle Enterprise Linux 4.0, and Red Hat Enterprise Linux 4.0:2.6.9■ For Asianux 3, Oracle Enterprise Linux 5.0, and Red Hat Enterprise Linux 5.0:2.6.18■ For SUSE 10:2.6.16.21在安裝完作業系統後,可通過以下命令查看核心:uname -rRed Hat Enterprise 4 Update 3 安裝比較簡單,略過.不過在選擇packages時,選擇自訂,把軟體開發包也選擇上。這樣可以減少ORACLE安裝過程中的一些問題。配置linuxoracle在linux上的安裝通常要進行很多的配置,該部分的所有操作都必須以root使用者的身份登陸去執行。1)檢查RPM包REHL 4上必須保證以下Rpm都正確安裝了binutils-2.15.92.0.2-18compat-libstdc++-33.2.3-47.3elfutils-libelf-0.97-5elfutils-libelf-devel-0.97-5glibc-2.3.9.4-2.19glibc-common-2.3.9.4-2.19glibc-devel-2.3.9.4-2.19gcc-3.4.5-2gcc-c++-3.4.5-2libaio-devel-0.3.105-2libaio-0.3.105-2libgcc-3.4.5libstdc++-3.4.5-2libstdc++-devel-3.4.5-2make-3.80-5sysstat-5.0.5unixODBC-2.2.11unixODBC-devel-2.2.11rpm -q binutils compat-libstdc++-33.2.3-47.3 elfutils-libelf-0.97-5 elfutils-libelf-devel-0.97-5rpm -q glibc glibc-common glibc-devel gcc-3.4.5-2 gcc-c++-3.4.5-2rpm -q libaio-devel libaio libgcc libstdc++ libstdc++-devel rpm -q make-3.80-5 sysstat-5.0.5 unixODBC-2.2.11 unixODBC-devel-2.2.11如果以上軟體包軟體包沒有安裝 可以到RHEL的光碟片裡面去找 2)建立oracle使用者11g新多了個OSASM(asmadmin為作業系統層面的稱呼)組,這個組是為了方便管理ASM而設定的.在11g之前我們可以通過SYSDBA的身份登陸並管理ASM,但在11G裡面oracle新增了SYSASM許可權來代替SYSDBA管理ASM,所以只有在OSASM組的使用者才可以以SYSASM的身份串連ASM資料庫。如果採用ASM管理儲存的話,通過groupadd新增加一個asmadmin組。管理ASM的使用者也必須屬於asmadmin組。groupadd oinstallgroupadd dbagroupadd asmadmin(這個組可以不用建立,根據自身需要)useradd -G oinstall -g dba,asmadmin oraclepasswd oracle3)配置Linux kernel參數修改/etc/sysctl.conf檔案fs.file-max = 65536(這個數的值因該設定為512*process)kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 262144通過執行sysctl -p使設定生效.修改shell限制編輯/etc/security/limits.conf,添加以下內容oracle hard nproc 16384oracle soft nproc 2047oracle hard nofile 65536oracle soft nofile 1024編輯/etc/pam.d/login檔案,如果沒有下面的行再添加vi /etc/pam.d/loginsession required /lib/security/pam_limits.sosession required pam_limits.so編輯/etc/profile,添加以下內容if [ $USER="oracle"]then if [$SHELL="/bin/ksh"] thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fifi4) 配置orlacle安裝目錄我將我的oracle安裝在/u01下,將/u01的控制權要分配給oraclechown -R oracle:oinstall /u01chown -R oracle:oinstall /u02chmod -R 751 /u01chmod -R 751 /u02 5)配置oracle環境檔案su - oraclevi .bash_profileexport ORACLE_SID=rac2export ORACLE_BASE=/u01/oracle/productexport ORACLE_HOME=$ORACLE_BASE/11.1export ORACLE_ADMIN=$ORACLE_BASE/adminexport TNS_ADMIN=$ORACLE_HOME/network/adminexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jlibexport JAVA_HOME=$ORACLE_HOME/jdkexport ORA_NLS10=$ORACLE_HOME/nls/dataexport PATH=$PATH:$ORACLE_HOME/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/lib:$JAVA_HOME/bin以上變數根據自己的需求定製。安裝oracle software將下載的oracle安裝檔案上傳到伺服器ftp 192.168.203.246cd /u02put linux_11gR1_database.zipsu - oracle然後對上傳的檔案進行解壓unzip linux_11gR1_database.zip將檔案解壓到了一個database目錄。進入database目錄執行. runInstaller安裝過程請看圖示.http://picasaweb.google.com/shadowfalao/Oracle11g_installDBCA建立資料庫請看圖示.http://picasaweb.google.com/shadowfalao/11g_dbca測試[oracle@rac2 bin]$ sqlplus / as sysdbaSQL*Plus: Release 11.1.0.6.0 - Production on Wed Aug 15 13:15:34 2007Copyright (c) 1982, 2007, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> select * from v$version 2 ;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - ProductionPL/SQL Release 11.1.0.6.0 - ProductionCORE 11.1.0.6.0 ProductionTNS for Linux: Version 11.1.0.6.0 - ProductionNLSRTL Version 11.1.0.6.0 - ProductionSQL>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.