1. 以root登錄,掛載linux iso文件
mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom 2. 檢查包是否安裝 (軟體包源碼位於iso下的server目錄下) rpm –q compat-db rpm -qa | grep compat 如果沒有安裝:則 #rpm -ivh sudo-1.7.2...rpm ―――――――――――――― Red Hat Enterprise Linux 4.0 and Asianux 2.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 需要裝
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1
5.4上安裝Oracle 10g時提示如下錯誤: Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-11-25_02-34-42PM/jre/1.4.2/lib/i386/libawt.so:libXp.so.6: cannot open shared object file: No such file or directory 原因是缺少了包,裝上如下的包就可以了. # rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm 3.vi /etc/hosts 192.168.100.16 myhost.us.mycompany.com myhost 127.0.0.1 localhost localhost.localdomain 4. Creating Required Operating System Groups and Users 創建用戶組 # /usr/sbin/groupadd dba # /usr/sbin/groupadd oinstall # /usr/sbin/groupadd oper 5. Creating an Oracle Software Owner User # /usr/sbin/useradd -g oinstall -G dba,oper oracle 創建用戶oracle # passwd oracle
6.
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
7.
vi /etc/security/limits.conf
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
8.
vi /etc/pam.d/login
session required /lib/security/pam_limits.so session required pam_limits.so
9.
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 10. # mkdir -p /u01/app/oracle # chown –R oracle:oinstall /
14.創建JianTingQi netca 無法使用時,先配置.bash_profile export PATH=$ORACLE_HOME/bin:$PATH . .bash_profile lsnrctl status 15.建庫 Dbca 以下密碼是:abc123
測試資料庫:
Exit 安裝結束.
登陸oracl管理網站,測試看是否可以訪問:
本文出自 「網路技術」 博客,請務必保留此出處http://xiaogang6.blog.51cto.com/3046480/866435
[火星人 ] linux下oracle 10 g安裝教程已經有413次圍觀