采用OEL6.5 x64安装,安装过程与Redhat一致,安装过程中选中桌面,开发包,开发库,其它默认选项。
Desktops > X Window System
Development > Additional Development
Development > Development Tools
安装好后:
(1) 关闭selinux
(2) 关闭iptables
(3) 重启
binutils-2.20.51.0.2-5.36.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
package compat-gcc-34-c++ is not installed
elfutils-libelf-0.152-1.el6.x86_64
elfutils-libelf-devel-0.152-1.el6.x86_64
gcc-4.4.7-4.el6.x86_64
gcc-c++-4.4.7-4.el6.x86_64
glibc-2.12-1.132.el6.x86_64
glibc-2.12-1.132.el6.i686
glibc-common-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.i686
glibc-headers-2.12-1.132.el6.x86_64
kernel-headers-2.6.32-431.el6.x86_64
ksh-20120801-10.el6.x86_64
libaio-0.3.107-10.el6.x86_64
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
libaio-devel-0.3.107-10.el6.i686
libgcc-4.4.7-4.el6.x86_64
libgcc-4.4.7-4.el6.i686
libgomp-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.i686
libstdc++-devel-4.4.7-4.el6.x86_64
make-3.81-20.el6.x86_64
sysstat-9.0.4-22.el6.x86_64
numactl-devel-2.0.7-8.el6.x86_64
package unixODBC is not installed
package unixODBC-devel is not installed
package openmotif22 is not installed
package openmotif is not installed
package compat-db is not installed
package libXp is not installed
# wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
# tar zxvf rlwrap-0.37.tar.gz
# cd rlwrap-0.36
# ./configure
# make
# make check
# make install
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chmod -R 775 /u01/app
chown -R oracle:oinstall /u01
# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
# sysctl -p
内核参数配置说明:
kernel.shmall = 2097152 # 系统可以使用的共享内存总页数,缺省值就是2097152。
kernel.shmmax = 2147483648 # 单个共享内存段的大值,字节为单位, 此例为2GB。
kernel.shmmni = 4096 # 共享内存段的大默认数量
cat >> /etc/security/limits.conf << EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
EOF
cat >> /etc/pam.d/login << EOF
session required /lib64/security/pam_limits.so
EOF
# vi /etc/hosts
192.168.233.100 vm100
cat >> /etc/profile << EOF
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
EOF
# su - oracle
cat >> /home/oracle/.bash_profile << EOF
export EDITOR=vi
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=\$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=orcl
export PATH=\$ORACLE_HOME/bin:\$PATH
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
export LANG=en_US
export LC_ALL=en_US
export LD_LIBRARY_PATH=/lib:/usr/lib:\$ORACLE_HOME/lib
export CLASSPATH=\$ORACLE_HOME/JRE:\$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
alias sqlplus="rlwrap sqlplus"
alias rman="rlwrap rman"
umask 022
EOF
source .bash_profile
# mv p13390677_112040_Linux-x86-64_1of7.zip /u01/app/
# mv p13390677_112040_Linux-x86-64_2of7.zip /u01/app/
# unzip p13390677_112040_Linux-x86-64_1of7.zip
# unzip p13390677_112040_Linux-x86-64_2of7.zip
# 解压在/u01/app/database下
# chown -R oracle:oinstall /u01/app/database/
说明:本文采用本机安装方式,远程安装推荐采用VNC或Xmanager。
# xhost + access control disabled, clients can connect from any host $ su - oracle $ cd /u01/Oracle/database $ ./runInstaller 最后要在root执行以下两条脚本 # /u01/app/oraInventory/orainstRoot.sh # /u01/app/oracle/product/11.2.0/db_1/root.sh$ netca
# 参数一律默认即可
$ ps -ef |grep ora_
$ dbca
# 选择gernel purpose,在SID和全局名称中,选择你在.bash_profile中创建的SID.
# 数据库的字符集选项中选择ZHS16GBK, 其它默认OK,完成.
#开机自启动采用rc.local启动方式,没有配置成服务方式,关闭数据库还是手动执行的好。
$ vi /etc/oratab
#把最后的N改成Y (默认是N)
orcl:/u01/app/oracle/product/11.2.0/db_1:Y
cat >> /etc/rc.local << EOF
# Oracle service start
su - oracle -c "lsnrctl start"
su - oracle -c "dbstart"
EOF
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
当前题目:OracleLinux6.5安装Oracle11.2.0.4x64-创新互联
链接分享:https://www.cdcxhl.com/article28/djejcp.html
成都网站建设公司_创新互联,为您提供手机网站建设、网页设计公司、软件开发、企业建站、品牌网站建设、网站策划
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联