应网友要求,把我安装部署oracle的文档发出来,仅供参考!
一. 需要的必须的软件包:
默认安装情况下,可能有些已经安装了
二.建立oracle用户和组
三.建立oracle目录结构
//作为建oracle实例用的目录
//oracle安装目录
四.设置内核参数
//这里就需要根据硬件配置需要配置了
五. 调整oracle使用者的环境限制
增加:
增加:
增加:
六.设置环境变量
增加:
# oracle 10g
让环境变量生效:
七.正式安装oracle
先解压软件包
安装时忽略版本检查:
安装是需要更改的为:
指定合适的数据库字符集,如: Simplified Chinese ZHS16CGB231280
指定数据库的目录为: /home/oracle/db_home
其他的根据需要来更改。
安装过程中提示执行的脚本,以root用户
安装后显示:
八. 建立oracle启动脚本
修改/etc/oratab ,把所有的 instance 的重启动标志设置成 'Y',如:
askwandb:/home/oracle/database/product/10.2.0/db_1:Y
建立一个启动脚本 /etc/init.d/oraclestart,如下所示:
九.设置开机自动运行
that'all
一. 需要的必须的软件包:
默认安装情况下,可能有些已经安装了
Quotation
[root@server ~]# yum -y install binutils compat-db control-center gcc gcc-c++ glibc glibc-common gnome-libs
Quotation
[root@server ~]# yum -y install libstdc++ make libstdc++.so.5 libXp
二.建立oracle用户和组
Quotation
[root@server ~]# groupadd oinstall
[root@server ~]# groupadd dba
[root@server ~]# useradd -g oinstall -G dba oracle
[root@server ~]# passwd oracle
[root@server ~]# groupadd dba
[root@server ~]# useradd -g oinstall -G dba oracle
[root@server ~]# passwd oracle
三.建立oracle目录结构
Quotation
[root@server ~]#su - oracle
[root@server ~]#mkdir db_home
[root@server ~]#mkdir db_home
//作为建oracle实例用的目录
Quotation
[root@server ~]#mkdir oracle10gr2
//oracle安装目录
四.设置内核参数
Quotation
[root@server ~]#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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
五. 调整oracle使用者的环境限制
Quotation
[root@server ~]#vi /etc/security/limits.conf
增加:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
Quotation
[root@server ~]#vi /etc/pam.d/login
增加:
session required /lib/security/pam_limits.so
session required pam_limits.so
session required pam_limits.so
Quotation
[root@server ~]#vi /etc/profile
增加:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
六.设置环境变量
Quotation
[root@server ~]#su - oracle
[root@server ~]#vi .bash_profile
[root@server ~]#vi .bash_profile
增加:
# oracle 10g
umask 022
export ORACLE_BASE=/home/oracle/oracle10gr2
export ORACLE_SID=askwandb
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8
export ORACLE_BASE=/home/oracle/oracle10gr2
export ORACLE_SID=askwandb
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8
让环境变量生效:
Quotation
[root@server ~]#source .bash_profile
七.正式安装oracle
先解压软件包
安装时忽略版本检查:
Quotation
[root@server ~]#./runInstaller -ignoreSysPreReqs
安装是需要更改的为:
指定合适的数据库字符集,如: Simplified Chinese ZHS16CGB231280
指定数据库的目录为: /home/oracle/db_home
其他的根据需要来更改。
安装过程中提示执行的脚本,以root用户
/home/oracle/oracle10gr2/oraInventory/orainstRoot.sh
/home/oracle/oracle10gr2/product/10.2.0/db_1/root.sh
/home/oracle/oracle10gr2/product/10.2.0/db_1/root.sh
安装后显示:
Quotation
The following J2EE Applications have been deployed and are accessible at the URLs listed below.
iSQL*Plus URL:
http://server:5560/isqlplus
iSQL*Plus DBA URL:
http://server:5560/isqlplus/dba
Enterprise Manager 10g Database Control URL:
http://server:1158/em
iSQL*Plus URL:
http://server:5560/isqlplus
iSQL*Plus DBA URL:
http://server:5560/isqlplus/dba
Enterprise Manager 10g Database Control URL:
http://server:1158/em
八. 建立oracle启动脚本
修改/etc/oratab ,把所有的 instance 的重启动标志设置成 'Y',如:
askwandb:/home/oracle/database/product/10.2.0/db_1:Y
建立一个启动脚本 /etc/init.d/oraclestart,如下所示:
ORACLE_HOME=/home/oracle/database/product/10.2.0/db_1/
ORACLE_OWNER=oracle
if [ ! -f $ORACLE_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"
;;
'stop')
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut
;;
'restart')
$0 stop
$0 start
;;
esac
ORACLE_OWNER=oracle
if [ ! -f $ORACLE_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"
;;
'stop')
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut
;;
'restart')
$0 stop
$0 start
;;
esac
九.设置开机自动运行
Quotation
[root@server ~]#chmod 750 /etc/init.d/runora
[root@server ~]#ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
[root@server ~]#ln -s /etc/init.d/oraclestart /etc/rc3.d/S99oraclestart
[root@server ~]#chkconfig --add oracletstart
[root@server ~]#chkconfig --level 345 oraclestart on
[root@server ~]#reboot
[root@server ~]#ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
[root@server ~]#ln -s /etc/init.d/oraclestart /etc/rc3.d/S99oraclestart
[root@server ~]#chkconfig --add oracletstart
[root@server ~]#chkconfig --level 345 oraclestart on
[root@server ~]#reboot
that'all
相关日志
configuration oracle data guard for testing
a simple oracle rman backup script
configuration oracle 10g archive log mode
use DBD::Oracle connect oracle database
imp导入数据到ORACLE遭遇ORA-12899错误
configuration oracle data guard for testing
a simple oracle rman backup script
configuration oracle 10g archive log mode
use DBD::Oracle connect oracle database
imp导入数据到ORACLE遭遇ORA-12899错误
作者:askwan@『AskWan』
地址:http://www.askwan.com/post/71/
可以转载,转载时请以链接形式注明作者和原始出处及本声明!
用mysqlreport监控并输出mysql状态值
MYSQL数据库系统的设计架构

2008/07/13 22:14 | by












写的不错,不过这步我是通过更改linux内核版本实现的。
vi /etc/redhat-release
把Red Hat release 5 改成: redhat-3
./runInstaller -ignoreSysPreReqs 这个比较好用。