天天看点

Linux As4 u4 oracle10R2 安装

<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=&lt;machine-name&gt;: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

上一篇: spark lzo
下一篇: AMM使用说明

继续阅读