Linux 4安裝11R2 Client

jolly10發表於2012-03-27
Linux 4安裝11R2 Client[@more@]

1.修改核心引數
修改/etc/sysctl.conf檔案,加上如下列
kernel.shmmax = 2147483648
kernel.sem = 270 32000 100 128
fs.file-max=6915744
net.ipv4.tcp_rmem = 4096 4194304 4194304
net.ipv4.tcp_wmem = 98304 4194304 4194304
net.ipv4.tcp_mem = 98304 4194304 4194304
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 4194304
net.ipv4.tcp_window_scaling = 1
net.ipv4.ip_local_port_range = 9000 65500

[root@rhel132 ~]# sysctl -p

2.增加使用者和組
[root@rhel132 ~]# /usr/sbin/groupadd oinstall
[root@rhel132 ~]# /usr/sbin/groupadd dba
[root@rhel132 ~]# /usr/sbin/useradd -g oinstall -G dba oracle
[root@rhel132 ~]# passwd oracle
[root@rhel132 ~]# mkdir -p /u01/app/
[root@rhel132 ~]# chown -R oracle:oinstall /u01/app/
[root@rhel132 ~]# chmod -R 775 /u01/app/
[root@rhel132 ~]# su - oracle
[oracle@rhel132 ~]$ vi .bash_profile
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/10201
ORACLE_SID=orcl
TNS_ADMIN=$ORACLE_HOME
PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH:$ORACLE_HOME/OPatch
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH TNS_ADMIN

3.安裝缺少的包

[root@rhel132 11g_client_packages]# rpm -ivh libaio-devel-0.3.105-2.i386.rpm
warning: libaio-devel-0.3.105-2.i386.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
1:libaio-devel ########################################### [100%]

[root@rhel132 11g_client_packages]# rpm -ivh elfutils-libelf-devel-0.97.1-4.i386.rpm
warning: elfutils-libelf-devel-0.97.1-4.i386.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
1:elfutils-libelf-devel ########################################### [100%]

[root@rhel132 11g_client_packages]# rpm -ivh unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm
warning: unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing... ########################################### [100%]
1:unixODBC-devel ########################################### [100%]

其中有一個包的版本較低,在安裝新版本時也沒有成功,應該不會影響安裝。
[root@rhel132 11g_client_packages]# rpm -q glibc
glibc-2.3.4-2.36

Prerequisite Check時系統提示需要glibc-2.3.4-2.41

[root@rhel132 11g_client_packages]# rpm -ivh glibc-2.3.4-2.41.i386.rpm
warning: glibc-2.3.4-2.41.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
glibc-common = 2.3.4-2.41 is needed by glibc-2.3.4-2.41.i386

[root@rhel132 11g_client_packages]# rpm -ivh glibc-common-2.3.4-2.41.i386.rpm
warning: glibc-common-2.3.4-2.41.i386.rpm: V3 DSA signature: NOKEY, key ID 82fd17b2
Preparing... ########################################### [100%]
file /usr/bin/gencat from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/getconf from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/getent from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/iconv from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/lddlibc4 from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/locale from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/localedef from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/rpcgen from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/bin/sprof from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/libexec/pt_chown from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/sbin/build-locale-archive from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/sbin/rpcinfo from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/sbin/zdump from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common-2.3.4-2.36
file /usr/sbin/zic from install of glibc-common-2.3.4-2.41 conflicts with file from package glibc-common

由於需要用sqlplus,所有在Installation Type 時選擇了Administrator,下面就一步步安裝就行了。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271283/viewspace-1057737/,如需轉載,請註明出處,否則將追究法律責任。

相關文章