OracleLinux下安裝oracle11g的簡易方法

           在LInux下安裝oracle11g數據庫,傳統步驟一般是創建相應的oracle用戶組,oracle用戶,根據oracle官方安裝文檔,檢查是否確實安裝相應的包,並修改內核參數等一系列的繁瑣工作,和在Windows下安裝oracle數據庫比起來,可謂繁瑣至極。如今oracle簡化了我們的工作,推出了一個叫oracle-rdbms-server-11gR2-preinstall RPM for Oracle Linux包。詳細介紹直接上官方的:

 

            Before installing Oracle Database 11g on a system, you need to preconfigure the operating environment since the database requires certain software packages, package versions, and tweaks to kernel parameters. (Be sure to review the appropriate Oracle Database installation guide to familiarize yourself with hardware, software, and operating system requirements.)

            On Oracle Linux, I discovered that there is a remarkably easy way to address these installation prerequisites: First install an RPM package called oracle-rdbms-server-11gR2-preinstall. This RPM performs a number of preconfiguration steps, including the following:

  • Automatically downloading and installing any additional software packages and specific package versions needed for installing Oracle Grid Infrastructure and Oracle Database 11gRelease 2 (11.2.0.3), with package dependencies resolved via yum or up2date capabilities.
  • Creating the user oracle and the groups oinstall (for OraInventory) and dba (for OSDBA), which are used during database installation. (For security purposes, this user has no password by default and cannot log in remotely. To enable remote login, please set a password using the passwd tool.)
  • Modifying kernel parameters in /etc/sysctl.conf to change settings for shared memory, semaphores, the maximum number of file descriptors, and so on.
  • Setting hard and soft shell resource limits in /etc/security/limits.conf, such as the locked-in memory address space, the number of open files, the number of processes, and core file size.
  • Setting numa=off in the kernel for x86_64 machines.

            Note that oracle-rdbms-server-11gR2-preinstall parses the existing /etc/sysctl.conf and /etc/security/limits.conffiles and updates values only as needed for database installation. Any precustomized settings not related to database installation are left as is.

The oracle-rdbms-server-11gR2-preinstall RPM package is accessible through the Oracle Unbreakable Linux Network (ULN, which requires a support contract), from the Oracle Linux distribution media, or from the Oracle public yum repository. Thus, whether or not your system is registered with ULN to access Oracle patches and support, you can use oracle-rdbms-server-11gR2-preinstall to simplify database installation on Oracle Linux. In addition, the Oracle public yum repository now includes all security and bug errata, ensuring systems are secured and stable with the latest security updates and bug fixes.

 

下面我簡單介紹一下如何在虛擬機中配置本地yum源,以便在沒有網絡的情況下使用強大的yum工具,解決包的依賴性:

1:創建掛載目錄

mkdir  /yum

2:  將光盤掛載到 /yum上

mount    /dev/cdrom      /yum

3. 安裝

cd   /etc/yum.repos.d

 mv  public-yum-ol6.repo   public-yum-ol6.repo.bak

 touch public-yum-ol6.repo

 vi public-yum-ol6.repo

添加以下內容:

[oel6]
name = Enterprise Linux 6.3 DVD                                  //根據DVD的版本號做相應的更改
baseurl=file:///yum/Server
gpgcheck=0
enabled=1

下面就可以使用yum工具安裝oracle-rdbms-server-11gR2-preinstall包了

# yum install oracle-rdbms-server-11gR2-preinstall

安裝成功後,安裝oracle的預備條件已滿足,之後你就可以上傳,解壓oracle11g的數據庫安裝包,進行安裝了。

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章