实战:oracletimesten11.2.2.7.0oncentos6.5(一)

2015-01-22 21:15:42 · 作者: · 浏览: 18
入门级别,但是步骤比较细致,没有理论,可以当做入门手册.
?
************************************************************************
1.新建用户
************************************************************************

-----1.create os user and group 

 

groupadd ttadmin

groupadd timesten

 

mkdir /etc/TimesTen

mkdir -p /app/timesten

chgrp -R ttadmin /etc/TimesTen

chgrp -R ttadmin  /app/timesten

chmod 770 /etc/TimesTen/

chmod 770 /app/timesten

 

chmod 660 /etc/TimesTen/*


useradd  -d /home/ocpyang -g ttadmin -G timesten,dba ocpyang

passwd ocpyang

ocpyang

usermod -a -G timesten,oinstall,dba ocpyang

************************************************************************
2.Linux平台安装准备工作
************************************************************************


-------------1.OS kernel parameter 

---1.1 shared memorary config

kernel.shmmax=68719476736
kernel.shmall=16777216


/****config 64g memorary

64 x 1024 x 1024 x 1024 = 68719476736 and 68719476736 / 4096 = 16777216

****/


/sbin/sysctl -p


---1.2HugePages config

echo 32 > /proc/sys/vm/nr_hugepages

 


vi /etc/sysctl.conf

 #config timesten instance 16g and huge page size is 2M.
vm.nr_hugepages = 8192   

#ttadmin group id
vm.hugetlb_shm_group = 503  

/sbin/sysctl -p

 

 


---1.3 Semaphores  config


#vi /etc/sysctl.conf

#/sbin/sysctl -a | grep sem

kernel.sem = 400 32000 100 128

/sbin/sysctl -p

 

 

 


---1.4 REP和IMDB Cache


1).配置网络参数
针对复制,TCP发送和接收buffers应该增加到4MB,在/etc/sy
sctl.conf文件加入以下行: #vi /etc/sysctl.conf net.ipv4.tcp_rmem=4096 4194304 4194304 net.ipv4.tcp_wmem=98304 4194304 4194304 net.core.rmem_default=65535 net.core.wmem_default=65535 net.core.rmem_max=4194304 net.core.wmem_max=4194304 net.ipv4.tcp_window_scaling=1 2).配置网络参数 针对IMDB Cache,TCP发送和接收buffers应该增加得更大,修改/etc/sysctl.conf文件添加以下行: #vi /etc/sysctl.conf net.ipv4.tcp_rmem=4096 4194304 4194304 net.ipv4.tcp_wmem=98304 4194304 4194304 net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_max=4194304 net.ipv4.tcp_window_scaling=1 net.ipv4.ip_local_port_range=1024 65000 将上诉两项合并修改为: #####REP和IMDB Cache net.ipv4.tcp_rmem=4096 4194304 4194304 net.ipv4.tcp_wmem=98304 4194304 4194304 net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_max=4194304 net.ipv4.tcp_window_scaling=1 net.ipv4.ip_local_port_range=1024 65000 2).使配置生效 重启或者运行以下命令: #/sbin/sysctl -p ************************************************************************ 3.soft install ************************************************************************ ---3.1安装jdk java -version rpm -qa | grep java $ whoami ocpyang ---3.2 安装timesten cd /soft/linux8664/ $ ./setup.sh NOTE: Each TimesTen installation is identified by a unique instance name. The instance name must be a non-null alphanumeric string, not longer than 255 characters. #步骤1:输入安装实例名称 Please choose an instance name for this installation? [ tt1122 ] ttwind #输入自定义的名字 Instance name will be 'ttwind'. Is this cor