Linux Oracle 10g軟件安裝數據庫
給大家推薦一款很不錯的Linux Oracle 10g系統很有學習價值,這里我主要講解Linux Oracle 10g系統的應用,包括介紹Linux Oracle 10g知識等方面。在Fedora 10上安裝Linux Oracle 10g(10.2.0)默認的系統參數下,在Fedora 10上無法安裝Linux Oracle 10g,需要進行下列若干處理:
1. 驗證系統要求
要驗證系統是否滿足 Linux Oracle 10g數據庫的***要求,以 root 用戶身份登錄并運行以下命令。
要查看可用 RAM 和交換空間大小,運行以下命令:
# grep MemTotal /proc/meminfo
MemTotal:512236 kB
# grep SwapTotal /proc/meminfo
SwapTotal:1574360 kB
所需最小 RAM 為 512MB,而所需最小交換空間為 1GB。對于 RAM 小于或等于 2GB 的系統,交換空間應為 RAM 數量的兩倍;對于 RAM 大于 2GB 的系統,交換空間應為 RAM 數量的一到兩倍。 Linux Oracle 10g軟件還需要 2.5GB 的可用磁盤空間,而數據庫則另需 1.2GB 的可用磁盤空間。/tmp 目錄至少需要 400MB 的可用空間。要檢查系統上的可用磁盤空間,運行以下命令:
# df -h
FilesystemSize Used Avail Use% Mounted on
/dev/sda36.8G 1.3G 5.2G 20% /
/dev/sda199M17M77M 18% /boot
該示例表明,/tmp 目錄沒有自己的文件系統。(對本指南而言,它是根文件系統的一部分。)
2. 修改系統內核參數。加以下的內容到文件/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
注意:如意設置錯誤安裝過程中會出現錯誤提示,按提示修改即可!
3. 加入下面的內容到/etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* soft nofile 65536
4. 加下面一行到/etc/pam.d/login
session required /lib/security/pam_limits.so
5. 屏蔽SELINUX在/etc/selinux/config中
SELINUX=disabled
6. 安裝以下文件包
yum -y install libXp libaio libxcb
yum -y install compat-libstdc++* compat-libf2c* compat-gcc* compat-libgcc*
注意:如果不安裝這些包,In the process of instllation將會顯示錯誤信息: check failed <<<<
"/tmp/OraInstall2005-07-07_09-40-4***M/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred.."
you can fix these problems by yum install or google
注意:DHCP is not work, choose static network configuration, copy the dhcp 'ifconfig -a' information and set the static configuration by hand
7. 建立用戶和組
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -m -g oinstall -G dba oracle
# passwd oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
8. 建立目錄并賦權給用戶Linux Oracle 10g
# mkdir -p /u01/app/oracle
# mkdir -p /u02/oradata
# chown -R oracle:oinstall /u01/app/oracle /u02/oradata
# chmod -R 775 /u01/app/oracle /u02/oradata
9. 修改文件/etc/redhat-rlease
redhat-4 #因為Linux Oracle 10g安裝時會檢測系統版本,fedora未列在內
10. 使用 Linux Oracle 10g帳戶登錄。 設置環境變量:
# su oracle
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_SID=demo1; export ORACLE_SID
11. 拷貝Linux Oracle 10g安裝文件到/home/oracle下,解壓縮
unzip 10201_database_linux32.zip -d /opt/
12. 重新啟動電腦,運行以下命令(本地安裝不需要此步驟)
xhost +
13. 開始安裝Linux Oracle 10g
./runInstaller
基本字符集選AL32UTF8, NATIONAL CHARACTER SET 選Al16UTF16 (安裝后em沒有亂碼)
archive mode 勾選
注意在安裝過程中會要求執行兩個script,orainstRoot.sh 和root.sh
The following J2EE Applications have been deployed and are accessible at the URLs listed below.
iSQL*Plus URL:
http://zxd.oracle.org:5561/isqlplus
iSQL*Plus DBA URL:
http://zxd.oracle.org:5561/isqlplus/dba
Enterprise Manager 10g Database Control URL:
http://zxd.oracle.org:1158/em
【編輯推薦】