LINUX环境下静默安装ORACLE11gR2数据库软件
来源:互联网 发布:指纹采集软件 编辑:程序博客网 时间:2024/05/14 07:32
今天本打算做下OGG实验,发现我的GoldenGate软件都是32位的,在64位的linux上跑不起来,只好在虚拟机上实验,可是虚拟机(Vbox)安装文件竟然被杀毒软件给干掉了,悲哀啊,只好重新安装一遍虚拟机,在安装数据库的时候,我顺便做了下静默安装ORACLE11gR2的实验,实验环境OEL5.4,ORACLE11gR2,实验过程如下:
1.创建ORACLE用户。
[root@stream ~]# groupadd -g 1000 oinstall[root@stream ~]# groupadd -g 1200 dba[root@stream ~]# useradd -u 1100 -g oinstall -G dba oracle[root@stream ~]# passwd oracle
2.建立需要的目录,并修改属组和权限。
[root@stream ~]# mkdir -p /u01/app/oracle/oradata/stream[root@stream ~]# chown -R oracle:oinstall /u01[root@stream ~]# chmod -R 775 /u01
3.修改linux内核参数。
[root@stream ~]# vi /etc/sysctl.confkernel.shmmax = 4294967295kernel.shmmni = 4096kernel.shmall = 2097152kernel.sem = 250 32000 100 128fs.file-max = 6815744fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576
通过sysctl –p命令使之生效。
[root@stream ~]# sysctl -p
4.对Oracle用户,配置Shell Limites,在/etc/security/limits.conf文件里添加如下信息。
oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
5.检查安装ORACLE11gR2需要的rpm包,将没装的包装上。
[root@stream ~]# rpm -q binutils compat-libstdc++ elfutils-libelfelfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-develglibc-headers ksh libaio libaio-devel libgcc libstdc++ libstdc++-develmake numactl-devel sysstat unixODBC unixODBC-devel| grep not
6.上传ORACLE安装介质并解压。
7.设置responseFile文件。
[oracle@stream ~]$ cd database/response[oracle@stream database]$ vi db_install.rsp
修改db_install.rsp文件的以下内容。
oracle.install.option=INSTALL_DB_SWONLYUNIX_GROUP_NAME=oinstallINVENTORY_LOCATION=/u01/app/oracle/oraInventoryORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1ORACLE_BASE=/u01/app/oracleoracle.install.db.InstallEdition=EEoracle.install.db.isCustomInstall=falseoracle.install.db.DBA_GROUP=dbaoracle.install.db.OPER_GROUP=dbaDECLINE_SECURITY_UPDATES=true
8.执行安装命令。
[oracle@stream database]$ ./runInstaller -silent -responseFile /home/oracle/database/response/db_install.rspStarting Oracle Universal Installer...Checking Temp space:must be greater than 80 MB.Actual 10766 MB PassedChecking swap space:must be greater than 150 MB.Actual 2020 MB PassedPreparing to launch Oracle Universal Installer from/tmp/OraInstall2012-03-01_10-06-14AM. Please wait ...You can find the log of this install session at:/u01/app/oraInventory/logs/installActions2012-03-01_10-06-14AM.log
此时,会在后台进行数据库软件的安装,可能需要挺长的时间,可以在开一个SHELL,去监控安装数据库时产生的日志文件。
[oracle@stream database]$ tail –f /u01/app/oraInventory/logs/installActions2012-03-01_10-06-14AM.log
直到提示用root用户执行/u01/app/oracle/product/11.2.0/dbhome_1/root.sh脚本。
The following configuration scripts need to be executedas the "root" user. #!/bin/sh #Root scripts to run/u01/app/oraInventory/orainstRoot.sh/u01/app/oracle/product/11.2.0/dbhome_1/root.shTo execute the configuration scripts: 1. Open a terminal window 2. Log in as "root" 3. Run the scripts 4. Return to this window and hit "Enter" key to continue
新打开一个SHELL,切换到root用户执行上述2个脚本。
[root@stream ~]# /u01/app/oraInventory/orainstRoot.shChanging 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用户执行完这两个脚本后,在执行静默安装的SHELL窗口按下回车键,结束安装过程。
/u01/app/oraInventory/orainstRoot.sh/u01/app/oracle/product/11.2.0/dbhome_1/root.shTo execute the configuration scripts: 1. Open a terminal window 2. Log in as "root" 3. Run the scripts 4. Return to this window and hit "Enter" key to continueSuccessfully Setup Software.
9.检查安装是否成功。
[oracle@stream ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on 10:18:53 2012Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to an idle instance.SQL> exitDisconnected
至此,ORACLE软件安装结束,如果接下来用DBCA图形界面建库,需要先创建监听,如果静默建库,可以在数据库创建完成后在建立监听,静默创建数据库请听下回分解。
0 0
- LINUX环境下静默安装ORACLE11gR2数据库软件
- Ubuntu下静默安装 oracle11gR2
- Oracle11gR2 for Linux 静默安装
- 虚拟机环境在linux下安装oracle11gr2
- rhel7.0下oracle11gr2的静默安装
- Oracle11gR2 for Linux 静默安装笔记
- Oracle11gR2 for Linux 静默安装笔记
- Oracle11gR2 for Linux 静默安装笔记
- LINUX下安装ORACLE11GR2
- linux下安装oracle11gR2
- CentOS静默安装Oracle11gR2
- redhat7静默安装oracle11gR2
- Linux下实现软件的静默安装
- Linux(CentOS6.5)下静默安装oracle11gR2(待完成)
- 静默安装oracle11gR2软件并且手动建库
- LINUX下静默方式安装oracle数据库
- linux下静默安装oracle数据库
- Linux下安装Oracle11gR2 2
- TrinityCore 官方GIT镜像,同步更新GIT
- 【jQuery插件】-----旋转插件jqueryrotate
- C++ 大规模程序设计 之 层次化
- Android - 文件读写操作
- Ubuntu输入法切换问题
- LINUX环境下静默安装ORACLE11gR2数据库软件
- JavaScript权威指南_126_第15章_脚本化文档_15.5-元素的内容-纯文本
- 在Win7中使用Python的MySQLdb模块
- 截图命令
- Linux 下 jboss 启动
- [Python Serialize] pickle, cPickle, marshal
- js手机号码正则表达式如何写,js正则手机怎么写
- mongoDB聚合
- Android4.3 蓝牙BLE初步