Provisioning Oracle WebLogic Server Using the Provisioning Profile

The first step is to filter out the FMW procedures running in your enterprise, from the list, select the FMWPROV procedure and its corresponding GUID. For the FMWPROV procedure, a new properties file template is created from scratch. Initially, the name-value pair in the template will be empty, you must edit the attributes in the properties file to update the values. Following which the procedure is submitted with the updated properties file as the input, and tracked to completion.

Follow these steps:

  1. To retrieve the GUID of the Deployment Procedure, run the following command:
    ./emcli get_procedures | grep FMWPROV_       
    
    The output appears in the following format:
    <proc_guid>, <procedure_type>, <Procedure_name>, <Dsplay name>, <version>, <Parent procedure name>
    
    For example:
    ./emcli get_procedures | grep FMWPROV_
    B35E10B1F154B4EEE040578CD78179DC, FMW Provisioning, FMWPROV_DP, Provision Middleware, 2.0, ORACLE
    
  2. Use the GUID retrieved in the previous step to prepare the Properties File template using the following command:
    ./emcli describe_procedure_input - procedure=<proc_guid> -name = <proc_name>
    
    For example:
    
    ./emcli describe_procedure_input -procedure=B35E10B1F154B4EEE040578CD78179DC > instanceFMWData.properties
    A properties file with the name instanceFMWData.properties is created
     
  3. Use an editor to open the generated properties file instanceFMWData.properties, and enter the required values.

    For example, here is a sample properties file used with the values updated. For information about these parameters, see Table A-5.

    FMW_PROFILE_LOCATION=Fusion Middleware Provisioning/Profiles/WLS 11g IM Profile
    DEST_MIDDLEWARE_BASE=/scratch/oracle_wls/mwBase
    DEST_ADMIN_SERVER_PASSWORD=<password>
    DEST_ADMIN_SERVER_USERNAME=weblogic
    DEST_JDK_HOME=/usr/local/packages/jdk7
    ANALYZE_MODE=false
    DEST_HOST_LIST.0=example.com
    DEST_HOST_CREDENTIAL_LIST.0=user1:<password>
    PROVISIONING_MODE=BASIC
    SUBMITTED_FROM_UI=true
    

    Table A-5 describes the parameters used in the aforementioned example.

    Table A-5 Description of the Parameters Used in a Properties File That Is Used for Provisioning Oracle WebLogic Server with a Provisioning Profile

    Parameter Description

    FMW_PROFILE_LOCATION

    Absolute path to the fusion middleware profile.

    For example, Fusion Middleware Provisioning/Profiles/WLS 11g IM Profile

    DEST_MIDDLEWARE_BASE

    Absolute path to the middleware base directory on the destination host.

    For example, /scratch/oracle_wls/mwBase

    DEST_ADMIN_SERVER_PASSWORD

    Password of the administration server on the destination host.

    DEST_ADMIN_SERVER_USERNAME

    User name of the administration server on the destination host.

    For example, weblogic

    DEST_JDK_HOME

    Absolute path to the JDK home on the destination host.

    For example, /usr/local/packages/jdk7

    ANALYZE_MODE

    Prerequisite Mode. If set to true, then the deployment procedure only runs the prerequisite checks and pauses for you to examine the checks.

    DEST_HOST_LIST.0

    List of destination hosts on which you want to provision the Oracle WebLogic Server.

    DEST_HOST_CREDENTIAL_LIST.0

    List of Host Credentials.

    PROVISIONING_MODE

    For BASIC mode, you provide only some basic details and the other details are determined by the deployment procedure. For ADVANCED mode, you provide all the details.

    SUBMITTED_FROM_UI

    If set to True, then the deployment procedure is submitted from the UI. If set to False, then the deployment procedure is submitted from the command line (emcli).

  4. Submit the procedure with the generated instanceFMWData.properties properties file as the input:
    emcli submit_procedure -input_file=data:<input_properties_file> -procedure=<proc_guid> -instance_name=<optional_DP_Instance_Name>
    
    ./emcli submit_procedure -input_file=data:instanceFMWData.properties -procedure=B35E10B1F154B4EEE040578CD78179DC