一.软件安装前的准备
1.数据库软件的介质上传完毕并解压
2.创建用户和组
groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
3.更改权限
[root@ceshi ~]# chown -R oracle:oinstall /u01/
4.切换到oracle用户,进入到解压目录。
执行 ./runInstaller
二.数据库软件的安装步骤
1.是否从MOS接收更新消息 取消这个选项
2.点击yes
3.跳过软件更新
4.仅安装数据库软件
5.选择安装数据库单实例
6.选择语音
7.选择企业版本
8.保持默认
9.保持默认
10.选择组
11.点击Fix&Check Again
12.执行这个脚本
[root@ceshi ~]# /tmp/CVU_11.2.0.3.0_oracle/runfixup.sh
Response file being used is :/tmp/CVU_11.2.0.3.0_oracle/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.3.0_oracle/fixup.enable
Log file location: /tmp/CVU_11.2.0.3.0_oracle/orarun.log
Setting Kernel Parameters...
The value for shmmni in response file is not greater than value of shmmni for current session. Hence not changing it.
The value for semmsl in response file is not greater than value of semmsl for current session. Hence not changing it.
The value for semmns in response file is not greater than value of semmns for current session. Hence not changing it.
The value for semmni in response file is not greater than value of semmni for current session. Hence not changing it.
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
[root@ceshi Server]# rpm -ivh libaio-devel-0.3.106-5.i386.rpm
13.警告物理内存 可以忽略
14.问是否继续 点击yes
15.点击安装
16.执行两个脚本
[root@ceshi ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@ceshi ~]# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/dbhome_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.
脚本执行完,点击ok
17.安装完成,点击close
三.小结
为什么把软件安装和建库分开?
这样既可以将独立的两个过程分步进行,又可以在安装软件后进行从容的检查、配置和补丁应用等。(这句引用盖总的深入解析)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29438042/viewspace-1147146/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29438042/viewspace-1147146/