2011年(14)
分类: Oracle
2011-04-09 14:10:20
安装好redhat as 4 后设置静态ip 看看 /etc/hosts文件是否是 ip 主机名的形式
微调内核参数
1.在/etc/sysctl.conf文件中加入下列行:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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
2.运行下列命令改变核心参数:/sbin/sysctl –p
3.在/etc/security/limits.conf文件中加入下列行:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
4.在/etc/pam.d/login文件中加入下列行,如果里面没有的话:
session required /lib/security/pam_limits.so
安装包
cd /media/cdrecorder/RedHat/RPMS
rpm -Uvh setarch-1.6-1.i386.rpm
rpm -Uvh compat-libstdc++-33-3.2.3-47.3.i386.rpm
rpm -Uvh make-3.80-5.i386.rpm
rpm -Uvh glibc-2.3.4-2.i386.rpm
rpm -Uvh openmotif-2.2.3-6.RHEL4.2.i386.rpm
rpm -Uvh compat-db-4.1.25-9.i386.rpm
rpm -Uvh libaio-0.3.102-1.i386.rpm
rpm -Uvh gcc-3.4.3-9.EL4.i386.rpm
rpm -Uvh compat-gcc-32-3.2.3-47.3.i386.rpm
rpm -Uvh compat-gcc-32-c++-3.2.3-47.3.i386.rpm
unzip oracle安装文件
groupadd dba
groupadd oinstall
useradd -d /home/oracle -m -g oinstall -G dba oracle
passwd oracle
su – oracle
export DISPLAY=192.168.15.5:0
export LANG=”"
在xp 下做好xmanage 的被动模式
vi .bash_profile
export ORACLE_BASE=/home/oracle/product/10.2.0 //注意你的安装路径
export ORACLE_HOME=$ORACLE_BASE/db_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOEM/bin:.:$PATH
source .bash_profile
su – oracle
cat .bash_profile
sqlplus / as sysdba
SQL>startup
SQL>alter user scott account unlock;
alter user scott identified by tiger;