在Red Hat 4 AS U7上安裝Oracle 10g R2

來源:互聯網
上載者:User

在Red Hat 4 AS U7上安裝Oracle10gR2  
 
 
1. 硬體需求:  
===========================================  
至少1024MB實體記憶體 
# grep MemTotal /proc/meminfo  
===========================================  
交換空間大小分配需求  
實體記憶體:1024 MB ~ 2048 MB, 1.5倍實體記憶體   
實體記憶體:2049 MB ~ 8192 MB, 1倍實體記憶體   
實體記憶體:8192 MB ~,0.75倍實體記憶體  
# grep SwapTotal /proc/meminfo  
===========================================  
/tmp目錄至少留有400 MB空間 
# df -k /tmp  
===========================================  
1.5 GB至3.5 GB用於安裝Oracle軟體 
# df -k  
===========================================  
1.2 GB用於預先安裝Oracle資料庫 
# df -k  
===========================================  
2. 軟體需求:  
 
Red Hat Enterprise Linux 4.0需要安裝如下包:  
binutils-2.15.92.0.2-13.EL4  
compat-db-4.1.25-9  
compat-libstdc++-296-2.96-132.7.2  
control-center-2.8.0-12  
gcc-3.4.3-22.1.EL4  
gcc-c++-3.4.3-22.1.EL44  
glibc-2.3.4-2.9  
glibc-common-2.3.4-2.9  
gnome-libs-1.4.1.2.90-44.1  
libstdc++-3.4.3-22.1  
libstdc++-devel-3.4.3-22.1  
make-3.80-5  
pdksh-5.2.14-30  
sysstat-5.0.5-1  
xscreensaver-4.18-5.rhel4.2  
setarch-1.6-1  
===========================================  
rpm -q binutils compat-db compat-libstdc++ control-center gcc gcc-c++ glibc glibc-common  
rpm -q gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver setarch  
 
[root@ora10g ~]# cd /media/cdrom/RedHat/RPMS  
[root@ora10g RPMS]#  
 
rpm -Uvh compat-db*  
 
在安裝rpm包時,如果遇到相關性檢查並報如下錯誤時,可通過安裝glibc-kernheaders-2.4-9.1.103.EL.i386.rpm  
解決:  
        kernel-headers is needed by glibc-headers-2.3.4-2.41.i386  
        kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.4-2.41.i386    
===========================================  
檢查red hat發行版本號碼: 
# cat /etc/issue  
===========================================  
檢查核心版本號碼: 
# uname -r  
===========================================  
查詢相應package是否安裝: 
# rpm -q package_name  
===========================================  
3. 網路需求:  
===========================================  
檢查是否使用/etc/hosts進行名字解析(name resolution),如下命名應有files結果返回 
# cat /etc/nsswitch.conf | grep hosts  
 
[root@ora10g ~]# cat /etc/nsswitch.conf | grep hosts 
#hosts:     db files ldap nis dns  
hosts:      files dns  
===========================================  
檢查主機名稱是否設定,如下命令應有類似結果(myhost.mycomputer.com)返回: 
# hostname  
 
[root@ora10g ~]# hostname  
ora10g  
===========================================  
檢查網域名稱是否沒有被動態設定,如下命令不應返回任何結果: 
# domainname  
 
[root@ora10g ~]# domainname  
(none)  
===========================================  
檢查hosts檔案是否包含完整的描述名稱(the fully qualified host name),如下命令應有類似結果(  
192.168.100.16    myhost.us.mycompany.com   myhost  
127.0.0.1         localhost                 localhost.localdomain  
)返回: 
# cat /etc/hosts | grep `eval hostname`  
 
[root@ora10g ~]# cat /etc/hosts | grep `eval hostname`  
192.168.168.213 ora10g.kl.com   ora10g  
[root@ora10g ~]#  
===========================================  
4. 建立必要的作業系統組和使用者:  
 
oinstall組,必需,Oracle產品目錄組(Oracle Inventory Group):  
如果如下命令沒有類似結果(  
inventory_loc=/u01/app/oracle/oraInventory  
inst_group=oinstall  
)返回,則必需建立該組: 
# more /etc/oraInst.loc  
 
建立oinstall組 
# /usr/sbin/groupadd oinstall  
===========================================  
dba組,必需,如果需要使用不同的名字,則需要在安裝Oracle是進行指定,  
可為不同的oracle安裝指定不同的dba組:  
 
建立dba組 
# /usr/sbin/groupadd dba  
===========================================  
oper組,可選,該組用來區分dba的普通使用者,許可權為SYSOPER:  
 
建立oper組 
# /usr/sbin/groupadd oper  
===========================================  
建立oracle安裝使用者  
 
確認使用者是否存在,如果存在如下命令將有類似結果(  
uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)  
)返回: 
# id oracle  
 
不存在則可使用如下命令建立使用者,存在請更換使用者名稱: 
# /usr/sbin/useradd -g oinstall -G dba[,oper] oracle  
 
設定密碼: 
# passwd oracle  
 
===========================================  
 
[root@ora10g RPMS]# more /etc/oraInst.loc  
/etc/oraInst.loc: No such file or directory  
[root@ora10g RPMS]# /usr/sbin/groupadd oinstall  
[root@ora10g RPMS]# /usr/sbin/groupadd dba  
[root@ora10g RPMS]# groupadd oper  
[root@ora10g RPMS]# id oracle  
id: oracle: No such user  
[root@ora10g RPMS]# useradd -g oinstall -G dba,oper oracle  
[root@ora10g RPMS]# passwd oracle  
Changing password for user oracle.  
New UNIX password:  
BAD PASSWORD: it is based on a dictionary word  
Retype new UNIX password:  
passwd: all authentication tokens updated successfully.  
 
===========================================  

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.