oracle10.1+ data guard----安装笔..
时间:2010-10-15 来源:todayboy
Centos4.4+oracle10.1
2008年02月24日 星期日 00:02oracle 安装:
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
vi /etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
安装软件包:
yum -y install compat-libstdc++-33.i386
yum -y install compat-gcc-32.i386
yum -y install compat-gcc-32-c++.i386
yum -y install libaio.i386
usermod -g oinstall -G dba oracle
or:
useradd -g oinstall -G dba oracle
mkdir -p /u01/app/oracle
mkdir /u01/oradata
chown -R oracle:oinstall /u01/app/oracle /u01/oradata
chmod -R 775 /u01/app/oracle /u01/oradata
vi .bash_profile (oracle用户)
# Oracle Settings
ORACLE_SID=dgdemo;
ORACLE_BASE=/u01;
ORACLE_HOME=/u01/app/oracle;
export ORACLE_SID ORACLE_BASE ORACLE_HOME
PATH=/usr/sbin:$PATH;
export PATH
PATH=$ORACLE_HOME/bin:$PATH;
export PATH
vi /etc/profile
add:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
create database:
dbca
配制网络连接:
netcn:
lsnode1
dgdemo
dgdemo
lsnode2
data guard install:
参考: