1:查看内存:grep MemTotal /proc/meminfo查看swap:grep SwapTotal /proc/meminfo2: 检查RPM包。Red Hat Enterprise Linux 4.0
1:查看内存:grep MemTotal /proc/meminfo
查看swap:grep SwapTotal /proc/meminfo
2: 检查RPM包。
Red Hat Enterprise Linux 4.0
CentOS5.4
binutils-2.15.92.0.2-13.EL4
binutils-2.17.50.0.6-6.el5
compat-db-4.1.25-9
compat-db-4.2.52-5.1
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-61
control-center-2.8.0-12
control-center-2.16.0-16.el5
gcc-3.4.3-22.1.EL4
gcc-4.1.2-42.el5
gcc-c++-3.4.3-22.1.EL44
gcc-c++-4.1.2-42.el5
glibc-2.3.4-2.9
glibc-2.5-24
glibc-common-2.3.4-2.9
glibc-common-2.5-24
gnome-libs-1.4.1.2.90-44.1
libgnome-2.16.0-6.el5
libstdc++-3.4.3-22.1
libstdc++-4.1.2-42.el5
libstdc++-devel-3.4.3-22.1
libstdc++-devel-4.1.2-42.el5
make-3.80-5
make-3.81-3.el5
pdksh-5.2.14-30
ksh-20060214-1.7
sysstat-5.0.5-1
sysstat-7.0.2-1.el5
xscreensaver-4.18-5.rhel4.2
gnome-screensaver-2.16.1-8.el5
setarch-1.6-1
setarch-2.0-1.1
libXp-1.0.0-8.1.el5
最主要的是 libXp-1.0.0-8.1.el5
如果他没有直接导致:
[Oracle@linux database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be RedHat-3, 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/OraInstall2010-11-18_10-08-45PM.
Please wait ...[oracle@linux database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError:
/tmp/OraInstall2010-11-18_10-08-45PM/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.
at java.awt.Component.
这个问题找了很久,才找到。最后才是这个包没有安装。
创建组:
groupadd oinstall
groupadd dba
groupadd oper
添加用户:
useradd -g oinstall -G dba,oper oracle
设置密码:passwd oracle
将Oracle用户添加到oinstall组里面,他的两个辅助的组是dba,oper
在Oracle的home目录下面创建u01目录,然后改变u01的权限。
chown oracle:oinstall /home/u01
后面是Linux参数的配置:
/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 = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
/etc/security/limits.conf file:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
/etc/pam.d/login
session required pam_limits.so
/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
查看Shell:echo $shell
设置Oracle的环境变量:
su oracle
vi .bash_profile
ORACLE_BASE=/u01/oracle
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_SID
ORACLE_HOME=$ORACLE_BASE/u01/oracle/product/10.2.0
PATH=$ORACLE_HOME/bin:$PATH
unset=ORACLE_HOME
unset=TNS_NAME
查看环境是否生效:env | grep ORA
所有工作配置完了后到图形界面上面安装:
进入database目录,运行里面的runInstaller
命令:./runInstaller
后面跟windows上面安装的差不多。。。
不过有个地方不同,,在安装数据库软件后,会叫你去运行两个脚本。
/home/oracle/u01/oraInventory/orainstRoot.sh
/home/oracle/u01/oracle/product/10.2.0/db_1
这里直接按enter键即可。