redhat 4 安装 Oracle 10g

联系:手机/微信(+86 17813235971) QQ(107644445)

标题:redhat 4 安装 Oracle 10g

作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]

必须安装包
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
用户和组
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
创建文件夹
mkdir -p /u01/oracle
chown -R oracle:oinstall /u01
chmod -R 775 /u01
修改系统参数
vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
vi /etc/profile
if [ $USER = “oracle” ]; then
if [ $SHELL = “/bin/ksh” ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
设置环境变量
vi ~/.bash_profile
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=orcl
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
PATH=$PATH:$ORACLE_HOME/bin
export PATH NLS_LANG ORACLE_BASE ORACLE_HOME ORACLE_SID

One thought on “redhat 4 安装 Oracle 10g

  1. 64位redhat 5安装,出现如下错误:

    [oracle@localhost database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-5, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                          Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-11-17_12-09-08PM. Please wait ...[oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-11-17_12-09-08PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(Unknown Source)
            at java.lang.ClassLoader.loadLibrary(Unknown Source)
            at java.lang.Runtime.loadLibrary0(Unknown Source)
            at java.lang.System.loadLibrary(Unknown Source)
            at sun.security.action.LoadLibraryAction.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
            at sun.awt.DebugHelper.<clinit>(Unknown Source)
            at java.awt.Component.<clinit>(Unknown Source)
    

    解决方法(缺少libXp32位包):

    [root@localhost ~]# rpm -ivh http://mirror.centos.org/centos/5/os/i386/CentOS/libXp-1.0.0-8.1.el5.i386.rpm
    Retrieving http://mirror.centos.org/centos/5/os/i386/CentOS/libXp-1.0.0-8.1.el5.i386.rpm
    Preparing...                ########################################### [100%]
       1:libXp                  ########################################### [100%]
    
  2. redhat 5上安装10g时候,需要compat-libstdc++-33*包,而不是redhat4中的compat-libstdc++-296*

    INFO: make:
    INFO: *** [liborasdkbase] Error 1
    INFO:
    INFO: End output from spawned process.
    INFO: ----------------------------------
    INFO: Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target 'all_no_orcl ihsodbc' of makefile '/oracle/app/product/10.2.0_1/rdbmsb/ins_rdbms.mk'. See '/oracle/app/oraInventory/logs/installActions2012-01-13_09-36-34AM.log' for details.
    [root@localhost oracle]# rpm -qa |grep compat-libstd
    compat-libstdc++-296-2.96-138
    --解决方法
    [root@localhost oracle]#rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
    Preparing... ########################################### [100%]
    1:compat-libstdc++-33 ########################################### [100%]
    

发表评论

邮箱地址不会被公开。 必填项已用*标注

4 × 3 =