***************************************声明***************************************
个人在oracle路上的成长记录,其中以蓝自喻,分享成长中的情感、眼界与技术的变化与成长。敏感信息均以英文形式代替,不会泄露任何企业机密,纯为技术分享。
创作灵感源于对自己的自省和记录。若能对刚刚起步的库友起到些许的帮助或共鸣,欣慰不已。
欢迎拍砖,如有关技术细节表述有错误之处,请您留言或邮件([email protected])指明,不胜感激。
***********************************************************************************
过往已逝去,
心似沙滩,步履凌乱,
冲刷掉孤独,却不再期盼,
依旧一个人看向远方。
——深蓝
***************************************前言***************************************
这是一部个人记录的成长杂记,既然步入到oracle的这片蓝海,免不了一路的奔波与不断的考验。借由此杂记与库友们分享蓝的成长历程。
不知何时起对蓝有了一种说不出来的痴迷,痴迷其广博,痴迷其深邃,痴迷于近在咫尺却又遥不可及。
而又说不清从何时起,注视于oracle的红色耀眼,照亮出眼前的一道光,未知与迷惑在自己的脚下开始初露些许人生的充实与青春的回馈。
在追逐于DBA梦想的道路上步步前行。
***********************************************************************************
耳边响起一曲《追风少年》,就让这熟悉的旋律,伴随我们一同,开始这次追忆oracle安装的历程。
*****************************
歌曲:《追风少年》
演唱:吴奇隆
*****************************
肩上扛着风脚下踩着土
心中一句话不认输
我用火热一颗心写青春
不管这世界有多冷
就让豪雨打在我背上
就算寂寞比夜还要长
谁能了解我谁会在乎我
少年的梦
追逐天边最冷的北风
寻找世界最高的山峰
我把孤独当作朋友
天地任我遨游不为谁停留
虽然很多事情我不懂
虽然留下的伤会很痛
我把泪水藏在眼中
一步一步往前走
我要做追风的英雄
(repeat music)
追逐天边最冷的北风
寻找世界最高的山峰
我把孤独当作朋友
天地任我遨游不为谁停留
虽然很多事情我不懂
虽然留下的伤会很痛
我把泪水藏在眼中
一步一步往前走
我要做追风的英雄
我要做追风的英雄
我要做追风的英雄
(music)
-end-
******************************************************************************
Linux CentOS5.6下Oracle10g安装
******************************************************************************
折戟沉沙,从零起步,再忆安装。
——深蓝
*****************************
篇章一:Oracle10g
2014年 整理于德州
*****************************
注意:以下语句均为Linux下指令格式,由于没有系统指令窗口,所以使用SQL格式窗口显示,望周知。
1. 域名解析设置及网络配置
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6localhost6 192.168.56.103 hyl
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
--修改网卡配置
--若在安装系统时设置,此处可不进行修改
# Intel Corporation 82540EM Gigabit Ethernet Controller DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.56.103 NETMASK=255.255.255.0 HWADDR=08:00:27:29:DB:B2 ONBOOT=yes ~
# service network restart
--重启网卡使其生效
# vi /etc/sysconfig/network
NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=hyl ~
2. 安装包
根据官方文档准备rpm包,上传至服务器
需要的包如下所示:
执行脚本实现:
#vi CentOS5.6-10g-script.sh
--脚本实现两种功能
--功能1:安装rpm包并记录日志,安装后删除相关包
--功能2:检查安装的rpm包并记录日志
rpm -ivhbinutils-2.17.50.0.6-14.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhbinutils-devel-2.17.50.0.6-14.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhbinutils-devel-2.17.50.0.6-14.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhcompat-db-4.2.52-5.1.i386.rpm >> rpm.log 2>&1 rpm -ivhcompat-db-4.2.52-5.1.x86_64.rpm >> rpm.log 2>&1 rpm -ivhcontrol-center-2.16.0-16.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhcontrol-center-2.16.0-16.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhcontrol-center-devel-2.16.0-16.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhcontrol-center-devel-2.16.0-16.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhgcc-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhgcc-c++-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-2.5-58.i686.rpm >> rpm.log 2>&1 rpm -ivhglibc-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-common-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-devel-2.5-58.i386.rpm >> rpm.log 2>&1 rpm -ivhglibc-devel-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-headers-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-utils-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibstdc++-devel-4.1.2-50.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibstdc++-devel-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibX11-1.0.3-11.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibX11-1.0.3-11.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibX11-devel-1.0.3-11.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibX11-devel-1.0.3-11.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibXp-1.0.0-8.1.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibXp-1.0.0-8.1.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibXp-devel-1.0.0-8.1.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibXp-devel-1.0.0-8.1.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibXpm-3.5.5-3.i386.rpm >> rpm.log 2>&1 rpm -ivhlibXpm-3.5.5-3.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibXpm-devel-3.5.5-3.i386.rpm >> rpm.log 2>&1 rpm -ivhlibXpm-devel-3.5.5-3.x86_64.rpm >> rpm.log 2>&1 rpm -ivhmake-3.81-3.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhpdksh-5.2.14-36.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhsysstat-7.0.2-3.el5_5.1.x86_64.rpm >> rpm.log 2>&1 rm -rfbinutils-2.17.50.0.6-14.el5.x86_64.rpm rm -rfbinutils-devel-2.17.50.0.6-14.el5.i386.rpm rm -rfbinutils-devel-2.17.50.0.6-14.el5.x86_64.rpm rm -rfcompat-db-4.2.52-5.1.i386.rpm rm -rfcompat-db-4.2.52-5.1.x86_64.rpm rm -rfcontrol-center-2.16.0-16.el5.i386.rpm rm -rfcontrol-center-2.16.0-16.el5.x86_64.rpm rm -rfcontrol-center-devel-2.16.0-16.el5.i386.rpm rm -rfcontrol-center-devel-2.16.0-16.el5.x86_64.rpm rm -rfgcc-4.1.2-50.el5.x86_64.rpm rm -rfgcc-c++-4.1.2-50.el5.x86_64.rpm rm -rfglibc-2.5-58.i686.rpm rm -rfglibc-2.5-58.x86_64.rpm rm -rfglibc-common-2.5-58.x86_64.rpm rm -rfglibc-devel-2.5-58.i386.rpm rm -rfglibc-devel-2.5-58.x86_64.rpm rm -rf glibc-headers-2.5-58.x86_64.rpm rm -rfglibc-utils-2.5-58.x86_64.rpm rm -rflibstdc++-devel-4.1.2-50.el5.i386.rpm rm -rflibstdc++-devel-4.1.2-50.el5.x86_64.rpm rm -rflibX11-1.0.3-11.el5.i386.rpm rm -rflibX11-1.0.3-11.el5.x86_64.rpm rm -rflibX11-devel-1.0.3-11.el5.i386.rpm rm -rflibX11-devel-1.0.3-11.el5.x86_64.rpm rm -rflibXp-1.0.0-8.1.el5.i386.rpm rm -rflibXp-1.0.0-8.1.el5.x86_64.rpm rm -rflibXp-devel-1.0.0-8.1.el5.i386.rpm rm -rflibXp-devel-1.0.0-8.1.el5.x86_64.rpm rm -rflibXpm-3.5.5-3.i386.rpm rm -rflibXpm-3.5.5-3.x86_64.rpm rm -rflibXpm-devel-3.5.5-3.i386.rpm rm -rflibXpm-devel-3.5.5-3.x86_64.rpm rm -rfmake-3.81-3.el5.x86_64.rpm rm -rfpdksh-5.2.14-36.el5.x86_64.rpm rm -rfsysstat-7.0.2-3.el5_5.1.x86_64.rpm rpm-qa|grep binutils >> queryrpm.log 2>&1 rpm-qa|grep compat >> queryrpm.log 2>&1 rpm-qa|grep control >> queryrpm.log 2>&1 rpm-qa|grep gcc >> queryrpm.log 2>&1 rpm-qa|grep glibc >> queryrpm.log 2>&1 rpm-qa|grep gnome >> queryrpm.log 2>&1 rpm-qa|grep libstdc++ >> queryrpm.log 2>&1 rpm-qa|grep make >> queryrpm.log 2>&1 rpm-qa|grep pdksh >> queryrpm.log 2>&1 rpm-qa|grep sysstat >> queryrpm.log 2>&1
#sh CentOS5.6-10g-script.sh
3. 创建用户、组、目录
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
Changingpassword for user oracle.
New UNIXpassword: oracle
BADPASSWORD: it is based on a dictionary word
Retypenew UNIX password: oracle
passwd:all authentication tokens updated successfully.
# id oracle
uid=501(oracle)gid=501(oinstall) groups=501(oinstall),502(dba)
# mkdir -p /home/u01/app/oracle
# mkdir -p /home/u01/app/oracle/oraInventory
# chown -R oracle:oinstall /home/u01/app/oracle
# chmod -R 775 /home/u01/app/oracle
4. 配置内核参数、修改环境变量
# vi /etc/sysctl.conf
添加: kernel.shmall = 4294967296 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65500 net.core.rmem_default = 4194304 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 262144 ~
# sysctl -p
--使内核参数生效
# su - oracle
$ vi .bash_profile
--修改oracle用户的环境配置文件
--执行:su - oracle切换到oracle用户环境,然后编辑
.bash_profile文件,更改PATH的配置,同时在环境变量中增加NLS_LANG的配置
ORACLE_BASE=/home/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 ORACLE_SID=hyl PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH
5. 设置shell限制
--添加以下参数
# vi /etc/security/limits.conf
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
# vi /etc/pam.d/login
--添加以下参数
session required /lib/security/pam_limits.so session required pam_limits.so
# 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
--在/etc/profile文件中修改以下内容
ulimit –s –c 0 >/dev/null 2> &1 修改为
ulimit –s –c unlimited >/dev/null 2> &1
6. 解压安装包、修改版本检查
(例1)、解压.cpio.gz格式包
# zcat 10201_database_linux_x86_64.cpio.gz | cpio -idmv >/dev/null 2>&1
(例2)、解压.cpio格式包
# cpio -idmv < 10201_database_linux_x86_64.cpio
(例3)、解压.zip
# unzip p8202632_10205_Linux-x86-64.zip
# vi /home/oracle/downloads/database/install/oraparam.ini
--添加redhat-5如下所示
[Certified Versions]
Linux=redhat-5,redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2
7. 图形化安装oracle、dbca建库、netca配置监听
(略)
请参考“深蓝博客”中相关文章,博客地址:http://blog.csdn.net/huangyanlong。
8. 配置开机启动实例
# vi /etc/rc.d/rc.local
--添加开机启动实例、监听语句
#!/bin/sh # #This script will be executed *after* all the other init scripts. #You can put your own initialization stuff in here if you don't #want to do the full Sys V style init stuff. touch/var/lock/subsys/local su- oracle -c "/home/u01/app/oracle/product/10.2.0/db_1/bin/dbstartstart" su- oracle -c "/home/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctlstart" ~ ~ ~
# vi /etc/oratab --修改开机启动,将值由N设为Y
hyl:/home/u01/app/oracle/product/10.2.0/db_1:Y
******************************************************************************
Linux CentOS5.6下Oracle11g安装
******************************************************************************
游江而上,沉积翻新:高版本安装
*****************************
篇章二:Oracle11g
2014年 整理于济南
*****************************
追逐技术,游迹天涯。
——深蓝
1. 域名解析设置及网络配置
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6localhost6 192.168.56.103 hyl # vi /etc/sysconfig/network-scripts/ifcfg-eth0
--修改网卡配置
--若在安装系统时设置,此处可不进行修改
# Intel Corporation 82540EM Gigabit Ethernet Controller DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.56.103 NETMASK=255.255.255.0 HWADDR=08:00:27:29:DB:B2 ONBOOT=yes ~
# service network restart
--重启网卡使其生效
# vi /etc/sysconfig/network
NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=hyl ~
2. 安装包
根据官方文档准备rpm包,上传至服务器
需要的包如下所示:
执行脚本实现:
#vi CentOS5.6-11g-script.sh
--脚本实现两种功能
--功能1:安装rpm包并记录日志,安装后删除相关包
--功能2:检查安装的rpm包并记录日志
rpm -ivhbinutils-2.17.50.0.6-14.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivh binutils-devel-2.17.50.0.6-14.el5.i386.rpm>> rpm.log 2>&1 rpm -ivhbinutils-devel-2.17.50.0.6-14.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhcompat-libstdc++-33-3.2.3-61.i386.rpm >> rpm.log 2>&1 rpm -ivhcompat-libstdc++-33-3.2.3-61.x86_64.rpm >> rpm.log 2>&1 rpm -ivhelfutils-libelf-0.137-3.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhelfutils-libelf-0.137-3.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhelfutils-libelf-devel-0.137-3.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhelfutils-libelf-devel-0.137-3.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhelfutils-libelf-devel-static-0.137-3.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhelfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm >> rpm.log2>&1 rpm -ivhgcc-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhgcc-c++-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-2.5-58.i686.rpm >> rpm.log 2>&1 rpm -ivhglibc-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-common-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-devel-2.5-58.i386.rpm >> rpm.log 2>&1 rpm -ivhglibc-devel-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhglibc-headers-2.5-58.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibaio-0.3.106-5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibaio-0.3.106-5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibaio-devel-0.3.106-5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibaio-devel-0.3.106-5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibao-0.8.6-7.i386.rpm >> rpm.log 2>&1 rpm -ivhlibao-0.8.6-7.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibgcc-4.1.2-50.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibgcc-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibstdc++-4.1.2-50.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibstdc++-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhlibstdc++-devel-4.1.2-50.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhlibstdc++-devel-4.1.2-50.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhmake-3.81-3.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhnumactl-0.9.8-11.el5.i386.rpm >> rpm.log 2>&1 rpm -ivhnumactl-0.9.8-11.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhpdksh-5.2.14-36.el5.x86_64.rpm >> rpm.log 2>&1 rpm -ivhsysstat-7.0.2-3.el5_5.1.x86_64.rpm >> rpm.log 2>&1 rm -rfbinutils-2.17.50.0.6-14.el5.x86_64.rpm rm -rfbinutils-devel-2.17.50.0.6-14.el5.i386.rpm rm -rfbinutils-devel-2.17.50.0.6-14.el5.x86_64.rpm rm -rfcompat-libstdc++-33-3.2.3-61.i386.rpm rm -rfcompat-libstdc++-33-3.2.3-61.x86_64.rpm rm -rfelfutils-libelf-0.137-3.el5.i386.rpm rm -rfelfutils-libelf-0.137-3.el5.x86_64.rpm rm -rfelfutils-libelf-devel-0.137-3.el5.i386.rpm rm -rfelfutils-libelf-devel-0.137-3.el5.x86_64.rpm rm -rfelfutils-libelf-devel-static-0.137-3.el5.i386.rpm rm -rfelfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm rm -rfgcc-4.1.2-50.el5.x86_64.rpm rm -rfgcc-c++-4.1.2-50.el5.x86_64.rpm rm -rfglibc-2.5-58.i686.rpm rm -rfglibc-2.5-58.x86_64.rpm rm -rfglibc-common-2.5-58.x86_64.rpm rm -rfglibc-devel-2.5-58.i386.rpm rm -rf glibc-devel-2.5-58.x86_64.rpm rm -rfglibc-headers-2.5-58.x86_64.rpm rm -rflibaio-0.3.106-5.i386.rpm rm -rflibaio-0.3.106-5.x86_64.rpm rm -rflibaio-devel-0.3.106-5.i386.rpm rm -rflibaio-devel-0.3.106-5.x86_64.rpm rm -rflibao-0.8.6-7.i386.rpm rm -rf libao-0.8.6-7.x86_64.rpm rm -rflibgcc-4.1.2-50.el5.i386.rpm rm -rflibgcc-4.1.2-50.el5.x86_64.rpm rm -rflibstdc++-4.1.2-50.el5.i386.rpm rm -rflibstdc++-4.1.2-50.el5.x86_64.rpm rm -rflibstdc++-devel-4.1.2-50.el5.i386.rpm rm -rflibstdc++-devel-4.1.2-50.el5.x86_64.rpm rm -rfmake-3.81-3.el5.x86_64.rpm rm -rfnumactl-0.9.8-11.el5.i386.rpm rm -rfnumactl-0.9.8-11.el5.x86_64.rpm rm -rfpdksh-5.2.14-36.el5.x86_64.rpm rm -rfsysstat-7.0.2-3.el5_5.1.x86_64.rpm rpm-qa|grep binutils >> queryrpm.log 2>&1 rpm -qa|grepcompat-libstdc >> queryrpm.log 2>&1 rpm-qa|grep elfutils >> queryrpm.log 2>&1 rpm-qa|grep gcc >> queryrpm.log 2>&1 rpm-qa|grep glibc >> queryrpm.log 2>&1 rpm-qa|grep kernel >> queryrpm.log 2>&1 rpm-qa|grep ksh >> queryrpm.log 2>&1 rpm-qa|grep libaio >> queryrpm.log 2>&1 rpm-qa|grep libgcc >> queryrpm.log 2>&1 rpm-qa|grep libgomp >> queryrpm.log 2>&1 rpm-qa|grep libstdc++- >> queryrpm.log 2>&1 rpm-qa|grep make >> queryrpm.log 2>&1 rpm-qa|grep sysstat >> queryrpm.log 2>&1
3. 创建用户、组、目录
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
Changingpassword for user oracle.
New UNIXpassword: oracle
BADPASSWORD: it is based on a dictionary word
Retypenew UNIX password: oracle
passwd:all authentication tokens updated successfully.
# id oracle
uid=501(oracle)gid=501(oinstall) groups=501(oinstall),502(dba)
# mkdir -p /home/u01/app/oracle
# mkdir -p /home/u01/app/oraInventory
# chown -R oracle:oinstall /home/u01/app/oracle
# chmod -R 775 /home/u01/app/oracle
4. 配置内核参数、修改环境变量
# vi /etc/sysctl.conf
添加:
kernel.shmall = 4294967296 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65500 net.core.rmem_default = 4194304 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 262144 ~
# sysctl -p
--使内核参数生效
# su - oracle
$ vi .bash_profile
--修改oracle用户的环境配置文件
--执行:su - oracle切换到oracle用户环境,然后编辑
.bash_profile文件,更改PATH的配置,同时在环境变量中增加NLS_LANG的配置
ORACLE_BASE=/home/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 ORACLE_SID=hyl PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH
5. 设置shell限制
--添加以下参数
# vi /etc/security/limits.conf
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
# vi /etc/pam.d/login
--添加以下参数
session required /lib/security/pam_limits.so session required pam_limits.so
# 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
--在/etc/profile文件中修改以下内容
ulimit –s –c 0 >/dev/null 2> &1 修改为
ulimit –s –c unlimited >/dev/null 2> &1
6. 解压安装包
例:解压.zip
# unzip p13390677_112040_Linux-x86-64_1of7.zip
# unzip p13390677_112040_Linux-x86-64_2of7.zip
7. 图形化安装oracle、dbca建库、netca配置监听
(略)
请参考“深蓝博客”中相关文章,博客地址:http://blog.csdn.net/huangyanlong。
8. 配置开机启动实例
# vi /etc/rc.d/rc.local
--添加开机启动实例、监听语句
#!/bin/sh # #This script will be executed *after* all the other init scripts. #You can put your own initialization stuff in here if you don't #want to do the full Sys V style init stuff. touch/var/lock/subsys/local su- oracle -c "/home/u01/app/oracle/product/11.2.0/db_1/bin/dbstartstart" su- oracle -c "/home/u01/app/oracle/product/11.2.0/db_1/bin/lsnrctlstart" ~ ~ ~
# vi /etc/oratab --修改开机启动,将值由N设为Y
hyl:/home/u01/app/oracle/product/11.2.0/db_1:Y
补充:
******************************************************************************
WIN下Oracle11g安装
******************************************************************************
Windows下安装Oracle11g
(略)
请参考“深蓝博客”中相关文章,博客地址:http://blog.csdn.net/huangyanlong。
***************************************未完待续***************************************
欢迎访问:深蓝的Blog:http://blog.csdn.net/huangyanlong
*****************************************************************************************