您的位置:首页 > 数据库 > Oracle

Linux As4 u4 oracle10R2 安装

2009-01-19 10:39 106 查看
[align=center]Linux As4 u4 oracle10R2 安装[/align]
[align=center] [/align]
[align=left]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

补丁下载站点
http://rpm.pbone.net/
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
[root@oradb ora10install patch]# id 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
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

[/align]
[align=left]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[/align]
[align=left] [/align]
[align=left]unset USERNAME[/align]
[align=left] [/align]
[align=left]装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文档[/align]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息