Linux Oracle 10g軟件安裝數(shù)據(jù)庫
給大家推薦一款很不錯(cuò)的Linux Oracle 10g系統(tǒng)很有學(xué)習(xí)價(jià)值,這里我主要講解Linux Oracle 10g系統(tǒng)的應(yīng)用,包括介紹Linux Oracle 10g知識(shí)等方面。在Fedora 10上安裝Linux Oracle 10g(10.2.0)默認(rèn)的系統(tǒng)參數(shù)下,在Fedora 10上無法安裝Linux Oracle 10g,需要進(jìn)行下列若干處理:
1. 驗(yàn)證系統(tǒng)要求
要驗(yàn)證系統(tǒng)是否滿足 Linux Oracle 10g數(shù)據(jù)庫的***要求,以 root 用戶身份登錄并運(yùn)行以下命令。
要查看可用 RAM 和交換空間大小,運(yùn)行以下命令:
# grep MemTotal /proc/meminfo
MemTotal:512236 kB
# grep SwapTotal /proc/meminfo
SwapTotal:1574360 kB
所需最小 RAM 為 512MB,而所需最小交換空間為 1GB。對于 RAM 小于或等于 2GB 的系統(tǒng),交換空間應(yīng)為 RAM 數(shù)量的兩倍;對于 RAM 大于 2GB 的系統(tǒng),交換空間應(yīng)為 RAM 數(shù)量的一到兩倍。 Linux Oracle 10g軟件還需要 2.5GB 的可用磁盤空間,而數(shù)據(jù)庫則另需 1.2GB 的可用磁盤空間。/tmp 目錄至少需要 400MB 的可用空間。要檢查系統(tǒng)上的可用磁盤空間,運(yùn)行以下命令:
# df -h
FilesystemSize Used Avail Use% Mounted on
/dev/sda36.8G 1.3G 5.2G 20% /
/dev/sda199M17M77M 18% /boot
該示例表明,/tmp 目錄沒有自己的文件系統(tǒng)。(對本指南而言,它是根文件系統(tǒng)的一部分。)
2. 修改系統(tǒng)內(nèi)核參數(shù)。加以下的內(nèi)容到文件/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
注意:如意設(shè)置錯(cuò)誤安裝過程中會(huì)出現(xiàn)錯(cuò)誤提示,按提示修改即可!
3. 加入下面的內(nèi)容到/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將會(huì)顯示錯(cuò)誤信息: 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. 建立目錄并賦權(quán)給用戶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 #因?yàn)長inux Oracle 10g安裝時(shí)會(huì)檢測系統(tǒng)版本,fedora未列在內(nèi)
10. 使用 Linux Oracle 10g帳戶登錄。 設(shè)置環(huán)境變量:
# 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. 重新啟動(dòng)電腦,運(yùn)行以下命令(本地安裝不需要此步驟)
xhost +
13. 開始安裝Linux Oracle 10g
./runInstaller
基本字符集選AL32UTF8, NATIONAL CHARACTER SET 選Al16UTF16 (安裝后em沒有亂碼)
archive mode 勾選
注意在安裝過程中會(huì)要求執(zhí)行兩個(gè)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
【編輯推薦】