主要介绍了oracle 10gas 系列之 infrastructure 的安装
由于内容比较多,有图,可能有些图丢失了
Ias的安装类型一共有三种
1. webcache and j2ee
2. portal and wirless(包含1)
3. bi and forms (包含2)
其中安装portal and wirless以及bi and forms都需要先Infrastructure,即使
webcache and j2ee的安装类型,如果需要做database-based cluster,也需要安装Infrastructure。所以本文就专门讲述了如何安装Infrastructure。
Infrastructure 在安装的时候,可以有三种安装方式,
1. Identity Management components
这种方式下,会安装
Oracle Internet Directory
OracleAS Single Sign-On
Oracle Delegated Administration Services
Oracle Directory Integration and Provisioning
OracleAS Certificate Authority
2.OracleAS Metadata Repository
这种方式下,会安装
Product metadata (portal,wirless,form report需要)
Identity Management metadata(sso需要)
Management metadata(做database-based cluster需要)
3.Identity Management components+ OracleAS Metadata Repository
这种方式下,会安装1和2的所有的组件。
通常在系统比较大得时候,会选择把Identity Management components和OracleAS Metadata Repository安装在不同的服务器上,提高系统性能和可用性。
关于大型企业得ias运行架构,我会有专门的文章来讲。
本文就讲第三种安装方式。
详细的参考信息请参考
10g (9.0.4) for hp HP-UX PA-RISC (64-bit) and Linux x86
Part No. B10842-03
硬件要求
ram 1024m以上
disk space 3.6g 左右
tmp space 250m
swap space 1.5g
检查方法
检查内存
grep MemTotal /proc/meminfo
检查磁盘空间
df -h dir
检查交换空间
grep SwapTotal /proc/meminfo
OS redhat 3.0 update 2
os软件要求
要求安装如下rpm包
■gcc-3.2.3-20
■ setarch-1.3-1
■ pdksh-5.2.14
■ openmotif21-2.1.30-8
■ gnome-libs-1.4.1.2.90-34.1
■ compat-glibc-7.x-2.2.4.32.5
■ compat-gcc-7.3-2.96.122
■ compat-libstdc++-7.3-2.96.122
■ compat-libstdc++-devel-7.3-2.96.122
■ compat-gcc-c++-7.3-2.96.122
■ sysstat-4.0.7
检查方法
rpm -q pkg_name
对gcc 做连接
mv /usr/bin/gcc /usr/bin/gcc.backup
mv /usr/bin/g++ /usr/bin/g++.backup
ln -s /usr/bin/gcc296 /usr/bin/gcc
ln -s /usr/bin/g++296 /usr/bin/g++
打上第一个patch(rh3需要的rh2.1不需要)
patch no 3006854
gunzip p3006854_9204_LINUX.zip
cd 3006854
sh rhel3_pre_install.sh
即可
这个补丁 创建 /etc/libcwait.so文件
如果不打这个补丁
oui没法启动
新建用户和组
groupadd oinstall
useradd -g oinstall ias10ginfra
检查一下ias10ginfra 用户的.bash_profile
不需要设置一下环境变量
TNS_ADMIN ORA_NLS33 LD_BIND_NOW
修改内核参数
vi /etc/sysctl.conf
加上
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 142
kernel.sem = 256 32000 100 142
fs.file-max = 131072
net.ipv4.ip_local_port_range = 20000 65000
kernel.msgmni = 2878
kernel.msgmax = 8192
kernel.msgmnb = 65535
保存,然后执行
sysctl -p
检查一下是否生效
cat cat /proc/sys/kernel/shmmax
修改系统对资源的限制
修改/etc/security/limits.conf 文件,加上
* soft nproc 2047
* hard nproc 16384
* soft nofile 2048
* hard nofile 16384
修改 /etc/pam.d/login加上
session required /lib/security/pam_limits.so
修改ias10ginfra
用户 .bash_profile
增加资源
ulimit -u 16384
ulimit -n 16384
加上路径
ias 安装在 /tpdata/ias10ginfra
export PATH=$PATH:$HOME/bin:/tpdata/ias10ginfra/bin:/tpdata/ias10ginfra/opmn/bin:/tpdata/ias10ginfra/dcm/bin
下载ias10g 安装文件
我们安装infrastructure,所以选择下载
http://www.oracle.com/technology/software/products/ias/devuse.html
编号为12的Oracle Application Server Enterprise Edition
总共4个文件
下载好后,解压
cpio -idvm < ias904_linux_disk1.cpio
cpio -idvm < ias904_linux_disk2.cpio
cpio -idvm < ias904_linux_disk3.cpio
cpio -idvm < ias904_linux_disk4.cpio
su - ias10ginfra
我选择远程安装所以设置display 变量
export DISPLAY=10.2.33.41:0
cd Disk1
./runInstaller
出现如下提示
[ias10ginfra@finance Disk1]$ ./runInstaller
***************************************************************
Please Refer to Quick Installation Guide and/or Metalink Notes
for Redhat 3.0 system setup.
Install and Configuration issues are expected if system is not
setup as per the guidelines before
Oracle Application Server 10g (9.0.4) installs.
Specifically, please ensure the following:
* Availability of gcc-3.2.3, setarch-1.3, pdksh-5.2,
openmotif21-2.1.30, sysstat-4.0.7, gnome-libs-1.4.1.2.90-34.1,
libstdc++-3.2.3, etc.
* Availability of Compat libraries:
compat-libstdc++-devel-7.3-2.96.122,
compat-glibc-7.x-2.2.4.32.5, etc.
* Patch for libcwait.so (Patch no. 3006854)
* Symbolic links for gcc/g++
Enter 'y' if the target system is configured as per the
guidelines specified in the Quick Installation Guide
Answer 'n' to exit runInstaller
Please retry after completing system setup.
***************************************************************
Is system configured correctly ? [y/n] (n)
选择y,回车,让安装程序检查是否具备安装条件
Starting Oracle Universal Installer ...
Checking requirements...
Checking operating system version: must be redhat-2.1, UnitedLinux-1.0 or redhat-3 Passed
All requirements met.
Checking if CPU speed is above 450 MHz.
Actual 2392 MHz Passed
Checking for Kernel version 2.4.21-4.EL Passed
Checking for glibc version glibc-2.3.2-95.3 Passed
Checking operating system packages: gcc-3.2.3-20,compat-gcc-7.3-2.96.122,compat-gcc-c++-7.3-2.96.122,compat-libstdc++-7.3-2.96.122,compat-libstdc++-devel-7.3-2.96.122,openmotif21-2.1.30,setarch-1.3-1,pdksh-5.2.14,sysstat-4.0.7,gnome-libs-1.4.1.2.90-34.1,libstdc++-3.2.3,compat-libstdc++-devel-7.3-2.96.122,compat-glibc-7.x-2.2.4.32.5 Passed
Checking swap space: must be greater than 1536 MB.
Actual 2000MB Passed
接下来出现安装画面

选择next

输入安装路径(ORACLE_HOME),next

选择安装 Infrastructure,next

选择第一个安装,next

接着选择next

把 root privileges勾上,选择next

缺省即可,选择next

这个地方需要配置ldap得namespace,如果你的/etc/hosts里面配置成完全得hostname.domainname的方式,这里就会自动选择出来。我们这里已经自动选择好了,选择next

直接next下去

这里需要指定respoitory database得sid,看着随便输入都行。
Next下去,

这里输入数据库得sys和system得密码,输入缺省得change_on_install和manager是不行的,必须输入其他密码。
Next下去。

这里指定database的数据文件存放位置,由于是测试用,不需要严格考虑。如果是生产用,就需要按照database的优化策略来制定了。
Next下去。

这里选择database的字符集,我比较喜欢UTF-8,就选择它了。
Next下去

由于安装得Identity Management components会安装一套完整的ias,所以这里需要指定instance的名字,别和其他得instance得同名就行了。
这里还要输入ias_admin的密码,这个可的记住了,后面会用上的。
Next下去

总算该配置的都配置了,可以安装了。
选择install.

出现安装进度条,由于要安装ias和db,所以时间比较长。
当中会出现一个要求用root执行脚本得窗口

按照执行后,点ok
接着出现安装db datafile的进度窗口。

接着出现配置其他组件的画面

总算安装完成

点exit。
大功告成,进控制页面去看看

该有的都有了,状态还是正常的。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3618/viewspace-485520/ ,如需转载,请注明出处,否则将追究法律责任。