Oracle 11g静默安装简明版(2)

安装成功应有的输出提示:

Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 21313 MB Passed Checking swap space: must be greater than 150 MB. Actual 4015 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-11-30_11-40-10AM. Please wait ...[oracle@JY-DB01 database]$ [WARNING] [INS-13014] Target environment do not meet some optional requirements. CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/installActions2015-11-30_11-40-10AM.log ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2015-11-30_11-40-10AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually. You can find the log of this install session at: /u01/app/oraInventory/logs/installActions2015-11-30_11-40-10AM.log The installation of Oracle Database 11g was successful. Please check '/u01/app/oraInventory/logs/silentInstall2015-11-30_11-40-10AM.log' for more details. As a root user, execute the following script(s): 1. /u02/app/oracle/product/11.2.0/dbhome_1/root.sh Successfully Setup Software. 2.3 按提示root用户执行脚本 # /u02/app/oracle/product/11.2.0/dbhome_1/root.sh Check /u02/app/oracle/product/11.2.0/dbhome_1/install/root_JY-DB01_2015-11-30_11-48-22.log for the output of root script

注意:如果机器之前没有安装其他数据库,这里就应该是提示执行两个脚本,按具体提示执行即可。

2.4 配置环境变量

vi /home/oracle/jingyu

export ORACLE_SID=jingyu export ORACLE_BASE=/u02/app/oracle export ORACLE_HOME=/u02/app/oracle/product/11.2.0/dbhome_1 export NLS_LANG="american_america.ZHS16GBK" export NLS_DATE_FORMAT="YYYY-MM-DD HH24:Mi:SS" export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin echo "--------------------------" echo "ORACLE_BASE"=$ORACLE_BASE echo "ORACLE_HOME"=$ORACLE_HOME echo "ORACLE_SID"=$ORACLE_SID echo "--------------------------" echo "NLS_LANG"=$NLS_LANG echo "NLS_DATE_FORMAT"=$NLS_DATE_FORMAT echo "LD_LIBRARY_PATH"=$LD_LIBRARY_PATH echo "PATH"=$PATH echo "--------------------------"

执行source jingyu即可切换到新数据库环境变量

$ source jingyu -------------------------- ORACLE_BASE=/u02/app/oracle ORACLE_HOME=/u02/app/oracle/product/11.2.0/dbhome_1 ORACLE_SID=jingyu -------------------------- NLS_LANG=american_america.ZHS16GBK NLS_DATE_FORMAT=YYYY-MM-DD HH24:Mi:SS LD_LIBRARY_PATH=/u02/app/oracle/product/11.2.0/dbhome_1/lib PATH=/u02/app/oracle/product/11.2.0/dbhome_1/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin --------------------------

注意:如果需要默认用户变量,则oracle用户配置~/.bash_profile文件。

3. 静默安装监听 3.1 编辑netca.rsp文件

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/ba39229e8e6d25ae4830c88223f48206.html