/** * 接下来描述一下安装界面中的各个步骤,以及如何创建和启动停止数据库 * ---------------------------------------------------------------------------------------------------------------------- * 【安装步骤】 * 1)Configure Security Updates * 取消勾选I wish to receive security Updates via My Oracle Support * 此时点"Next"后会弹出来一个窗口You have not provided an email address,我们点"Yes"就行了 * 2)Download Software Updates * 勾选Skip software udpates * 3)Installation Option * 勾选Install database software only * 4)Grid Installation Options * 勾选Single instance database installation * 这里不能选择RAC,因为CentOS上是没办法安装RAC的,这是由于Oracle只会在它自己的Linux发布RAC所需要一些特殊软件和包 * 5)Product Languages * 默认的English就行 * 6)Database Edition * 勾选Enterprise Edition(4.5GB) * 7)Installation Location * 这里Oracle Base和Software Location就会自动找到之前设置的环境变量设定的安装目录 * 8)Create Inventory * Inventory Directory值修改为"/home/oracle/oraInventory" (Inventory Directory指的是Oracle的配置文件目录) * oraInventory Group Name采用默认的oinstall就行 * 9)Operating System Groups * Database Administrator(OSDBA) Group采用默认的dba选项就行 * Database Operator(OSOPER) Group(Optional)也采用默认的空选项就行 * 10)Prerequisite Checks * 这一步就是在检查之前设置的内核参数、所需的包等等是否满足Oracle的安装要求 * 这一步可能会提示缺少"pdksh-5.2.14"的包,对于pdksh而言,我们可以忽略掉(如果是提示缺少其它包,还要仔细看一下),点击右上角的Ingore All * 然后会弹出个对话框[INS-13016]You have chosen to ingore some of the prerequisite....Are you sure you want to continue? * 这里点"Yes"就行 * 11)Summary * 这一步会告诉我们都设置了哪些安装参数,然后点"Install"就行了 * 12)Install Product * 这一步就是开始安装了,我们看着它安装就行了 * 经过漫长的等待,它会弹出一个对话框The following configuration scripts need to be executed as the "root" use * 并会列出两个脚本路径给我们/home/oracle/oraInventory/orainstRoot.sh和/app/oracle/root.sh * 我们回到Xshell中,以root登录,分别执行这俩脚本(先执行orainstRoot.sh,再执行root.sh) * 两个脚本执行完毕,再回到Oracle安装界面,在这个弹出的对话框中点击"OK"就行了 * 13)Finish * The installation of Oracle Database was successfull. * ---------------------------------------------------------------------------------------------------------------------- * 【创建数据库】 * 1)创建一个Listener * [oracle@CentOS64 or
CentOS-6.4-DVD系统中安装Oracle-11.2.0.4(四)
e.rmem_default = 262144
* net.core.rmem_max = 4194304
* net.core.wmem_default = 262144
* net.core.wmem_max = 1048576
* [root@CentOS64 ~]# sysctl -p
* [root@CentOS64 ~]#
* 这样,上面修改的内核参数就生效了.我们可以使用"sysctl -a | grep net.core.wmem_max"命令查看
* ----------------------------------------------------------------------------------------------------------------------
* 【修改oracle用户的shell限制】
* http://docs.oracle.com/cd/E11882_01/install.112/e47689/pre_install.htm#LADBI1188
* 在上个页面的2.12章节Checking Resource Limits for the Oracle Software Installation Users描述了需要修改的资源限制参数
* [root@CentOS64 oracle]# vi /etc/security/limits.conf (将以下配置拷到sysctl.conf文件末尾,然后保存即可)
* oracle hard nofile 65536
* oracle hard nproc 16384
* oracle soft nproc 2047
* oracle hard stack 32768
* ----------------------------------------------------------------------------------------------------------------------
* 【安装Oracle】
* 有两种方式安装,一个是有图形界面的可视化安装,一个是无图形界面的静默安装
* 这里演示的是有图形界面的安装
* 首先打开Win7系统中安装的Xmanager_Enterprise_4组件中的Xmanager-Passive工具(它会自动最小化到右下角任务栏)
* 然后以oracle用户执行[./runInstaller]命令(接下来Xmanager-Passive就自动起作用了,Oracle安装界面自动呈现出来了)
* ----------------------------------------------------------------------------------------------------------------------
* @create May 18, 2014 10:06:30 AM
* @author 玄玉
*/