12am oracle,使用runInstaller 的executePrereqs选项来验证os是否符合oracle db software的安装要求...

以下实验基于oracle 11.2.0.4

[[email protected] database]$ ./runInstaller  -help

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-23-12AM. Please wait ...[[email protected] database]$ Usage:

runInstaller [-options] [()*]

Where options include:

-clusterware oracle.crs,

Version of Cluster ready services installed.

-crsLocation

Used only for cluster installs, specifies the path to the crs home location. Specifying this overrides CRS information obtained from central inventory.

-invPtrLoc

Unix only. To point to a different inventory location. The orainst.loc file contains:

inventory_loc=

inst_group=<>

-jreLoc

Path where Java Runtime Environment is installed. OUI cannot be run without it.

-logLevel

To filter log messages that have a lesser priority level than . Valid options are: severe, warning, info, config, fine, finer, finest, basic, general, detailed, trace. The use of basic, general, detailed, trace is deprecated.

-paramFile

Specify location of oraparam.ini file to be used by OUI.

-responseFile

Specifies the response file and path to use.

-attachHome

For attaching homes to the OUI inventory.

-cfs

Indicates that the Oracle home specified is on cluster file system (shared). This is mandatory when '-local' is specified so that Oracle Universal Installer can register the home appropriately into the inventory.

-clone

For making an Oracle Home copy match its current environment.

-debug

For getting the debug information from OUI.

-detachHome

For detaching homes from the OUI inventory without deleting inventory directory inside Oracle home.

-enableRollingUpgrade

Used in cluster environment, to enable upgrade of a product on a subset of nodes (on which the product was installed).

-executeSysPrereqs

Execute system pre-requisite checks and exit.

-force

Allowing silent mode installation into a non-empty directory.

-help

Displays above usage.

-ignoreSysPrereqs

For ignoring the results of the system pre-requisite checks.

-local

Performs the operation on the local node irrespective of the cluster nodes specified.

-printdiskusage

Log debug information for disk usage.

-printmemory

Log debug information for memory usage.

-printtime

Log debug information for time usage.

-relink

For performing relink actions on the oracle home

Usage: -relink -maketargetsxml [-makedepsxml ] [name=value]

-silent

For silent mode operations, the inputs can be a response file or a list of command line variable value pairs.

-waitforcompletion

Installer will wait for completion instead of spawning the java engine and exiting.

-suppressPreCopyScript

Suppress the execution of precopy script.

-acceptUntrustedCertificates

Accept untrusted certificates from a secure site.

-suppressPostCopyScript

Suppress the execution of postcopy script.

-noconfig

Do not execute config tools.

-noconsole

For suppressing display of messages to console. Console is not allocated.

-formCluster

To install the Oracle clusterware in order to form the cluster.

-remotecp

Unix specific option. Used only for cluster installs, specifies the path to the remote copy program on the local cluster node.

-remoteshell

Unix specific option. Used only for cluster installs, specifies the path to the remote shell program on the local cluster node.

-executePrereqs

To execute only the prerequisite checks.

-ignorePrereq

To ignore running the prerequisite checks.

-ignoreInternalDriverError

To ignore any internal driver errors.

-downloadUpdates

To download updates only.

-showProgress

To show the installation progress on the console. This option is supported only in case of silent installation.

Command Line Variables Usage

Command line variables are specified using ; for example:

[ session: | compName: | compName:version: ]variableName=" valueOfVariable"]

Session/Installer variables are specified using:

[session:]varName=value

Ex 1: session:ORACLE_HOME_NAME="OraHome"

Ex 2: ORACLE_HOME_NAME="OraHome"

The lookup order is session:varName then just varName. The session prefix is used to avoid ambiguity.

Component variables are specified using:

[compInternalName:[Version:]]varName

Ex 1: oracle.comp1:1.0.1:varName="VarValue"

Ex 2: oracle.comp1:varName="VarValue"

The lookup order is compInternalName:Version:varName, then compInternalName:varName, then just varName.

[[email protected] database]$ ./runInstaller -executePrereqs -silent -responseFile ./response/db_install.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 3042 MB Passed

Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-24-28AM. Please wait ...[[email protected] database]$ [FATAL] [INS-10101] The given response file ./response/db_install.rsp is not found.

CAUSE: The given response file is either not accessible or do not exist.

ACTION: Give a correct response file location. (Note: relative path is not supported)

^C

[[email protected] database]$

注意上面的响应文件使用了相对路径,结果是报错的,也就是说响应文件不能使用相对路径。

[[email protected] database]$ pwd

/u02/database

[[email protected] database]$ ls -lrt

total 60

drwxr-xr-x.  2 oracle oinstall  4096 Aug 27  2013 sshsetup

-rwxr-xr-x.  1 oracle oinstall  3267 Aug 27  2013 runInstaller

drwxr-xr-x.  2 oracle oinstall  4096 Aug 27  2013 rpm

drwxr-xr-x.  2 oracle oinstall  4096 Aug 27  2013 response

-rw-r--r--.  1 oracle oinstall 30016 Aug 27  2013 readme.html

drwxr-xr-x. 14 oracle oinstall  4096 Aug 27  2013 stage

-rw-r--r--.  1 oracle oinstall   500 Aug 27  2013 welcome.html

drwxr-xr-x.  4 oracle oinstall  4096 Aug 27  2013 install

[[email protected] database]$ ./runInstaller -executePrereqs -silent -responseFile /u02/database/response/db_install.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 3042 MB Passed

Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-02-15_07-25-26AM. Please wait ...[[email protected] 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-02-15_07-25-26AM.log

ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

[[email protected] database]$

[[email protected] ~]# more /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log

省略中间的输出

INFO: ------------------List of failed Tasks------------------

INFO: *********************************************

INFO: Physical Memory: This is a prerequisite condition to test whether the system has at least 1GB (1048576.0KB) of total physical memory.

INFO: Severity:IGNORABLE

INFO: OverallStatus:VERIFICATION_FAILED

INFO: -----------------End of failed Tasks List----------------

WARNING: [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-02-15_07-25-26AM.log

ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2015-02-15_07-25-26AM.log. Then either from the log f

ile or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

INFO: Advice is CONTINUE

INFO: Adding ExitStatus SUCCESS_WITH_WARNINGS to the exit status set

INFO: Finding the most appropriate exit status for the current application

INFO: Exit Status is 6

INFO: List of warnings encountered in this Application:

INFO: PREREQS_FAILED_WITH_WARNING

INFO: Shutdown Oracle Database 11g Release 2 Installer

INFO: Unloading Setup Driver

[[email protected] ~]#

可以看到是内存不够。

时间: 02-19

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装Oracle19c需要一些步骤和准备工作。下面是在Ubuntu 22.04上安装Oracle19c的一般步骤: 1. 首先,在Ubuntu 22.04上安装一些先决条件软件包,如libaio1和bc等。可以使用以下命令进行安装: ``` sudo apt-get install libaio1 bc ``` 2. 接下来,需要创建一个名为oracle的用户和组,并设置相关环境变量。可以使用以下命令进行操作: ``` sudo useradd -m -s /bin/bash oracle sudo passwd oracle sudo usermod -aG sudo oracle echo "oracle soft memlock unlimited" | sudo tee -a /etc/security/limits.conf echo "oracle hard memlock unlimited" | sudo tee -a /etc/security/limits.conf echo "session required pam_limits.so" | sudo tee -a /etc/pam.d/login ``` 然后,切换到oracle用户并设置相关环境变量: ``` su - oracle echo "export ORACLE_BASE=/opt/oracle" >> .bashrc echo "export ORACLE_HOME=$ORACLE_BASE/product/19c/dbhome_1" >> .bashrc echo "export PATH=$PATH:$ORACLE_HOME/bin" >> .bashrc source .bashrc ``` 3. 下载并解压Oracle19c安装文件。可以从Oracle官方网站下载适用于Linux的Oracle Database 19c软件安装包,然后解压缩到适当的目录。例如: ``` mkdir -p /opt/oracle tar -xzvf oracle-database-xxxxxxxxxx.tar.gz -C /opt/oracle ``` 4. 运行Oracle Installer安装Oracle19c。使用以下命令进入安装目录并运行installer: ``` cd /opt/oracle/database ./runInstaller ``` 在图形界面中,按照向导的提示选择相应的选项,例如安装类型、Oracle数据库软件位置和数据库配置等。然后,等待安装完成。 5. 安装过程结束后,可以使用Database Configuration Assistant(DBCA)来创建和配置Oracle数据库。运行以下命令启动DBCA: ``` dbca ``` 按照向导的提示进行数据库创建和配置,例如选择数据库类型、命名等。 完成上述步骤后,您应该能够在Ubuntu 22.04上成功完成Oracle19c的安装。请注意,在实际安装过程中可能会遇到一些问题和异常情况,根据具体需求和系统环境可能需要进行一些额外的配置和调整。因此,建议在安装前仔细阅读官方文档和参考资料以获得更全面和详细的指导。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值