欢迎来到天天文库
浏览记录
ID:8926993
大小:45.00 KB
页数:7页
时间:2018-04-12
《linux下命令行安装oracle步骤》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、LINUX命令行下安装Oracle11.2关闭防火墙serviceiptablesstopchkconfigiptablesoff创建组和用户groupadddbagroupaddopergroupaddoinstalluseraddoracle/usr/sbin/usermod-goinstall-Gdbaoraclepasswdoracle输入两遍密码创建目录并授权mkdir-p/opt/oracle/productmkdir-p/opt/oracle/product/OraHomemkdir-p/opt/oraInve
2、ntorymkdir-p/opt/oracle/oradatamkdir-p/var/opt/oraclechown-Roracle.oinstall/opt/oraclechown-Roracle.oinstall/opt/oracle/oradatachown-Roracle.oinstall/opt/oracle/product/OraHomechown-Roracle.dba/opt/oraInventorychownoracle.dba/var/opt/oraclechmod-R775/opt/oraclechmo
3、d-R755/var/opt/oracle切换到oracle用户su-oracle设置环境变量vi.bash_profile添加:exportJAVA_HOME=/opt/oracle/product/OraHome/jdkexportORACLE_BASE=/opt/oracleexportORACLE_HOME=$ORACLE_BASE/product/OraHomeexportORACLE_SID=orclexportPATH=$PATH:$ORACLE_HOME/bin:$HOME/binexportPATH=$OR
4、ACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/libexportLD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$JAVA_HOME/lib:$JAVA_HOME/jre/libCLASSPATH=$CLASSPATH:$ORACLE_HO
5、ME/network/jlibexportCLASSPATHPATH=$PATH:/usr/sbin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin;exportPATHPATH=$PATH:/usr/bin;exportPATH环境变量生效source.bash_profile安装数据库软件./runInstaller-ignoreSysPrereqs-silent-responseFile/home/oracle/linux.x64_11gR2_database/response/db_install
6、.rsp修改response文件的如下选项:oracle.install.option = INSTALL_DB_SWONLYORACLE_HOSTNAME =主机名UNIX_GROUP_NAME = oinstallINVENTORY_LOCATION = /opt/oraInventory(根据具体情况而定)SELECTED_LANGUAGES = enORACLE_HOME = /opt/oracle/product/O
7、raHome(根据具体情况而定)ORACLE_BASE = /opt/oracle(根据具体情况而定)oracle.install.db.InstallEdition =EEoracle.install.db.DBA_GROUP = oinstall 或者DBAoracle.install.db.OPER_GROUP = oinstall或者operDECLINE_SECURITY_UPDATES = true (这个不能空着,要不然会报错) -i
8、gnorePrereqs linux上必须加上此项 软件安装完成后,root执行以下脚本/opt/oraInventory/orainstRoot.sh/opt/oracle/product/OraHome/root.sh 配置监听程序/opt/oracle/product/OraHom
此文档下载收益归作者所有