oracle11gR2linux下命令行安装-创新互联
写给自己:linux运维路,自己动手趟一遍
创新互联公司作为成都网站建设公司,专注网站建设公司、网站设计,有关企业网站设计方案、改版、费用等问题,行业涉及成都玻璃隔断等多个领域,已为上千家企业服务,得到了客户的尊重与认可。参考:http://www.cnblogs.com/yingsong/p/6031235.html
----------------------------
准备工作:
内存及swap要求
1-2G物理内存时 swap是1.5倍
2-16G物理内存时 swap相等
大于16G物理内存时 swap 16G
硬盘空间 >20G
关闭防火墙及SELINUX
修改内核参数:
修改用户限制文件
#vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 102405创建用户及组
#groupadd dba #useradd -m -g dba oracle #passwd oracle创建安装目录
#mkdir -p /ora11/product/11.2.0/db_1数据文件存放目录
#mkdir -p /ora11/oradata数据恢复目录
#mkdir -p /ora11/recovery_data数据库创建及使用过程中的日志目录
#mkdir -p /ora11/oraInventory修改安装目录权限
#chown -R oracle:dba /ora11 #chmod -R 775 /ora11登录oracle用户,设置环境变量
#su - oracle $vim .bash_profileexport ORACLE_BASE=/ora11 export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64 export ORACLE_SID=rac1 export PATH=$PATH:$ORACLE_HOME/bin$source .bash_profile //使设置生效安装依赖包
自己整理了一下(全部在这里了)
---------------------------------------
将安装包上传到oracle用户的home目录
链接:http://pan.baidu.com/s/1bNvf22 密码:zxmv
linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip#unzip linux.x64_11gR2_database_1of2.zip #unzip linux.x64_11gR2_database_1of2.zip #cd database #su - oracle数据库安装配置 文件
/database/response/db_install.rsp 安装应答配置文件
/database/response/dbca.rsp 创建数据库应答
/database/response/netca.rsp 建立监听、本地服务名等网络设置应答
修改配置文件db_install.rsp,并安装 (实例名为rac1,密码为12345678)
登录oracle用户,执行安装
#su - oracle $./runInstaller -silent -ignorePrereq -responseFile /home/oracle/database/response/db_install.rsp其中-silent指的是静默安装,-ignorePrereq忽略prerequisite的检查结果,responseFile是安装文件。
安装过程中,如果提示[WARNING]不必理会,此时安装程序仍在进行,如果出现[FATAL],则安装程序已经停止了。
打开另一个终端,执行命令
可以实时跟踪查看安装日志,了解安装的进度。
---------------------------------------------
出错后,需要删除已经创建的目录,再次安装
-----------------------------------------------------------
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 7910 MB Passed
Checking swap space: must be greater than 150 MB. Actual 1631 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-04-22_09-18-14PM. Please wait ...[oracle@centos6-1 database]$ [WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
CAUSE: The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the ADMIN password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
CAUSE: The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-30011] The password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the ADMIN password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
You can find the log of this install session at:
/ora11/oraInventory/logs/installActions2017-04-22_09-18-14PM.log
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root scripts to run
/ora11/oraInventory/orainstRoot.sh
/ora11/product/11.2.0/db_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
出现这个的话,说明已安装成功,则需要按提示操作,操作完返回Enter成功
以root用户执行下面这二条脚本
https://192.168.88.61/em 用户名sys 密码12345678 连接身份SYSDBA
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
标题名称:oracle11gR2linux下命令行安装-创新互联
本文URL:http://pwwzsj.com/article/eeeci.html