在安装红帽系统的时候,将开发工具全部选上,包括小项,同时安装中文
1、设置系统内核参数,编辑/etc/sysctl.conf
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
/sbin/sysctl -pAdd the following lines to the /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
add the following line to the /etc/pam.d/login file, if it does not already exist:
session required /lib/security/pam_limits.so
SELINUX=disabled 在/etc/selinux/config里面
2、需要安装的包,在第二张光盘上,在安装过程中10g安装盘会检测缺的包,但是有些包已经安装了也会提示Warning,因为检测程序,检测的版本低。
libXp
libXp-develop
4、建立用户
groupadd dba
useradd -g dba -d /home/oracle -s /bin/bash oracle
5、设置环境变量
su - oracle
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=HUANBAO; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
6、开始安装
安装需要使用oracle用户安装
以root执行xhost +
以oracle用户执行export DISPLAY=:0.0 :前不能写IP或主机名否则不成功
xclock测试
修改/etc/redhat-release里面里面的内容为redhat-3,安装完毕改回来
7、安装最后提示EM无法启动成功,解决方法
修改$ORACLE_HOME/hostname_sid/sysman/config/emd.properties
EMD_URL=,缺省状态下EMD_URL没有指定端口
8、页面访问
isqlplusctl stop
isqlplus start
emctl start dbconsole
emctl stop dbconsole
阅读(992) | 评论(0) | 转发(0) |