run_prerequisites

Runs a list of Enterprise Manager repository-related prerequisites.

Format

emcli run_prerequisites 
      -db_user=<database_user>
      -db_password=<database_password>
      -db_role=<database_role>
      -repos_user=<repository_user>
      [-prerequisite_xml_root_dir=<xml_root_directory_for_platform_prerequisites>]
      [-prerequisite_resource_locs="<xml_resource_location_for_platform/
      plug-in_prerequisites>"]
      [-log_loc=<location_for_log_files_of_EMPrereqKit_tool>]
      [-upgrade_version=<EM_version_to_which_upgrade_is_being_done_eg_12.1.0.3>]
      [-configuration_type=<configuration/deployment_type_
       eg_MINI/SMALL/MEDIUM/LARGE>]

[ ]  indicates that the parameter is optional.

Options

  • db_user

    Database user account with which a connection to the database can be established, for example SYS.

  • db_password

    Database user account password. If you do not provide here, you will be prompted for the password.

  • db_role

    Database role. For example, sysdba. Required only when the -db_user value is SYS.

  • repos_user

    Repository user account with which the prerequisite checks can be run, for example, SYSMAN. Required only when the -db_user value is SYS.

  • prerequisite_xml_root_dir

    Absolute path to the requisites/list directory where of the all prerequisite XMLs are located. This is an optional parameter and if not provided, the value is calculated internally. The XML files can be in a subdirectory within the requisites/list directory, but make sure the path that you enter leads only up to the list directory. For example, $<OMS_HOME>/install/requisites/list.

  • prerequisite_resource_locs

    Absolute path to the directory where the plug-in opar files or the platform/plug-in binaries, which contains XML files for platform or plug-in prerequisite checks, are located. This option is not mandatory. For plug-in opar files, use the format plugin_id=<<absolute_path_.opar_file>>. For the plug-in home directory use the format plugin_id=<<plugin_home>>.

  • log_loc

    Absolute path to a directory where the logs of the execution of the Enterprise Manager prerequisite kit can be stored.

  • upgrade_version

    The Enterprise Manager version to which the upgrade is being done. For example, 12.1.0.3. If you have downloaded the Enterprise Manager prerequisite resources for two future versions, for example v1 and v2 through Self-Update then with -upgrade_version, you can see or run the prerequisite of the specified version.

  • configuration_type

    Configuration or deployment type. For example, MINI, SMALL, MEDIUM, LARGE. This is an optional parameter, and if not provided, it will be calculated internally.

Examples

Example 1

Runs a list of Enterprise Manager repository-related prerequisites with the configuration type MEDIUM.

emcli list_prerequisites 
      -db_user=SYS 
      -db_password=pwd 
      -db_role=sysdba 
      -repos_user=SYSMAN 
      -prerequisite_xml_root_dir=$ORACLE_HOME/install/requisites/list 
      -configuration_type=MEDIUM

Example 2

Runs a list of Enterprise Manager repository-related prerequisites with the prerequisite resource location oracle.sysman.db=<<MW_HOME>>/plugins/oracle.sysman.db.oms.plugin_x.x.x.x.x,oracle.sysman.emas=<<Absolute directory path>>/x.x.x.x.x_oracle.sysman.emas_2000_0.opar'.

emcli list_prerequisites 
     -db_user=SYS 
     -db_password=pwd 
     -db_role=sysdba 
     -repos_user=SYSMAN 
     -prerequisite_resource_locs="oracle.sysman.db=
     <<MW_HOME>>/plugins/oracle.sysman.db.oms.plugin_x.x.x.x.x, 
     oracle.sysman.emas=<<Absolute directory path>>/
     x.x.x.x.x_oracle.sysman.emas_2000_0.opar"