<b>Linux As4 u4 oracle10R2 </b><b>安裝</b>
Linux As4 u4 oracle10R2 安裝
1.系統更新檔安裝
軟體環境
資料庫:10201_database_linux32.zip
作業系統:linux as4 u4
工具軟體: xmanager企業版3.0
系統安裝包
desktops
x window system
gnome desktop environment
kde
applications
editors
engineering and scientific
graphical internet
text-based internet
office/productivity
graphics
servers
server configuration tools
web server
mail server
windows file server
dns name server
ftp server
postgresql database
mysql database
network servers
legacy network server
development
選擇全部元件(預設安裝)
系統工具
(root user login)
Red Hat Enterprise Linux 3.0 and 4.0, and Asianux 1.0
and Asianux 2.0
make-3.79.1
gcc-3.2.3-34
glibc-2.3.2-95.20
compat-db-4.0.14-5
compat-gcc-7.3-2.96.128
compat-gcc-c++-7.3-2.96.128
compat-libstdc++-7.3-2.96.128
compat-libstdc++-devel-7.3-2.96.128
openmotif21-2.1.30-8
setarch-1.3-1
更新檔下載下傳站點
<a href="http://rpm.pbone.net/" target="_blank">[url]http://rpm.pbone.net/[/url]</a>
2.user and group(root user login)
[root@oradb ora10install patch]# groupadd oinstall
[root@oradb ora10install patch]# groupadd dba
[root@oradb ora10install patch]# id oracle
id: oracle: No such user
[root@oradb ora10install patch]# useradd -g oinstall -G dba oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)
[root@oradb ora10install patch]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
3. sysctl.conf(root user login)
[root@oradb ora10install patch]# 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 = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
同步配置
/sbin/sysctl –p
4.limits.conf(root user login)
[root@oradb ora10install patch]# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
5.login file(root user login)
Add the following line to the /etc/pam.d/login file, if it
does not already exist:
# pam_selinux.so open should be the last session rule
session required pam_selinux.so open
session required /lib/security/pam_limits.so
6.profile file(root user login)
For the Bourne, Bash, or Korn shell, add the following
lines in the /etc/profile file (or the
/etc/profile.local file on SUSE systems):
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
7.dir(root user login)
[root@oradb pam.d]# mkdir -p /opt/app/oracle
[root@oradb pam.d]# chown -R oracle:oinstall /opt/app/oracle
[root@oradb pam.d]# chmod -R 755 /opt/app/oracle
8.oracle user eviroment(oracle user login)
[root@oradb opt]# su - oracle
[oracle@oradb ~]$ echo $SHELL
/bin/bash
[oracle@oradb ~]$ vi .bash_profile
# User specific environment and startup programs
export ORACLE_BASE=/opt/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=ora10
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:$PATH:/usr/sbin:$HOME/bin
unset USERNAME
裝oracle軟體
1.使用xmanager的 xshell用戶端,用oracle使用者登入。
如果用的是X模式,要把DISPLAY設定如下:
DISPLAY=<machine-name>:0.0; export DISPLAY
2.使用xmanager的xftp用戶端,root使用者把壓縮檔案傳到linux伺服器上
[root@oradb ~]# unzip 10201_database_linux32.zip
2.使用xmanager的 xstart 用戶端進入/database目錄,用如下指令開始安裝:
./runInstaller
3.在安裝過程中輸入合适的ORACLE_HOME和執行個體名。詳細過程就不說了,大家看着提示填寫就好。完成後的畫面中會有管理端入口位址和sqlplus入口位址。
安裝後配置
1.編輯/etc/oratab檔案設定每個執行個體的重新開機标志為“Y”:
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
參考文檔
1.壓縮包10201_database_linux32.zip中,目錄10201_database_linux32.zip\database\doc\install.102下的b15660,b15661文檔
本文轉自 pgmia 51CTO部落格,原文連結:http://blog.51cto.com/heyiyi/127115