暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
LINUX环境下静默安装ORACLE11gR2数据库软件
992
3页
3次
2020-03-06
10墨值下载
www.dbdream.org
技术交流 QQ345375555 电话:13511039874
今天本打算做下 OGG 实验,发现我的 GoldenGate 软件都是 32 位的,在 64 位的 linux 上跑不起来,只好
在虚拟机上实验可是虚拟机Vbox安装文件竟然被杀毒软件给干掉了,悲哀啊只好重新安装一遍虚拟机,
在安装数据库的时候,我顺便做了下静默安 ORACLE11gR2 的实验,实验环境 OEL5.4ORACLE11gR2,实验
程如下:
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.conf
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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 = 1048576
通过 sysctl p 命令使之生效。
[root@stream ~]# sysctl -p
4. Oracle 用户,配置 Shell Limites,在/etc/security/limits.conf 文件里添加如下信息。
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
5.检查安装 ORACLE11gR2 需要的 rpm 包,将没装的包装上。
[root@stream ~]# rpm -q binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc
-c++ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc++ libs
tdc++-devel make 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_SWONLY
UNIX_GROUP_NAME=oinstall
www.dbdream.org
技术交流 QQ345375555 电话:13511039874
INVENTORY_LOCATION=/u01/app/oracle/oraInventory
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true
8.执行安装命令
[oracle@stream database]$ ./runInstaller -silent -
responseFile /home/oracle/database/response/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space:must be greater than 80 MB.Actual 10766 MB Passed
Checking swap space:must be greater than 150 MB.Actual 2020 MB Passed
Preparing 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-14
AM.log
直到提示用 root 用户执行/u01/app/oracle/product/11.2.0/dbhome_1/root.sh 脚本。
The following configuration scripts need to be executed
as the "root" user.
#!/bin/sh
#Root scripts to run
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh
To 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.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 用户执行完这两个脚本后,在执行静默安装的 SHELL 窗口按下回车键,结束安装过程。
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/dbhome_1/root.sh
of 3
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜