Uploading the DPK Manually to Oracle Cloud Infrastructure

During the process to upload the lifted APP DPKs to OCI Object Storage, if you chose to only create and save the DPK in the APP environment, you will need to manually upload the DPKs.

To manually upload the DPKs to OCI Object Storage:

  1. Set the following environment variables:

    • export PYTHON_HOME=<LIFT_UTILITY_PATH>/lnx_python.

    • export PYTHONPATH=<LIFT_UTILITY_PATH>/lnx_python.

    • export PATH=$PATH:<LIFT_UTILITY_PATH>/lnx_python/bin.

  2. Create an OCI_Config file with the below contents:

    1. [DEFAULT]

    2. user=<user OCID>

    3. fingerprint=<Finger print>

    4. key_file=<private key file location>

      Note: You can use the same API Signing Key pair that was created when setting up Cloud Manager, or you can create a new one. If you create a new pair then, you must add the newly created public API key under the User Settings using OCI UI.

    5. pass_phrase=<Passphrase for the private key>

    6. tenancy=<tenancy OCID>

    7. region=<region name>

    For example:

    [DEFAULT]
     user=ocid1.user.oc1..aaaaaexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     fingerprint=36:d6:c7:9b:d4:21:d7:ad:10:70:4f:58:b7:70:0f:fb
     key_file=/tmp/key.pem
     pass_phrase=XXXXXXXXXX
     tenancy=ocid1.tenancy.oc1..aaaaaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
     region=us-ashburn-1
  3. If you are uploading for the first time, create the container psft_oci_las with the following command:

    <LIFT_UTILITY_PATH>/lnx_python/bin/oci --config-file /tmp/oci_config os bucket create -ns <tenancy name> --name psft_oci_las --compartment-id <Compartment ID>.

    For example,

    <LIFT_UTILITY_PATH>/lnx_python/bin/oci --config-file /tmp/oci_config os bucket create -ns mycloud --name psft_oci_las --compartment-id ocid1.compartment.oc1..aaaaaaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    
  4. Run the following command to upload the APP DPK. Replace the variables in the command with the actual file and path names:

    Note: The <Bucket Name > should be psft_oci_las. Do not specify any other bucket name.

    <LIFT_UTILITY_PATH>/lnx_python/python upload_dpk_to_oci.py -d <Tenancy Name> -c psft_oci_las -s <Source folder containing DPK file> -t <Target Folder Name>-f <INI file location generated during lift operation> -g <Full path of oci config file>

Variable

Description

-d

Tenancy name to which the DPKs will be uploaded to.

-c

psft_oci_las —The container to which the DPKs will be uploaded. This value should not be changed.

-s

Source folder where the DPK files are saved during lift.

-t

Target folder Name on OCI. Should be Platform/AppType/DBName where AppType is application type [HCM,FSCM, ELS, ELM, CRM] and DBName is the name of the database. For example: linux/HCM/MYHCMDB.

Important! Ensure that the target folder name is as shown in the example above. There must be no preceding or trailing ‘/’ in the target folder path.

-f

INI file location that was generated during lift operation.

-g

Path to OCI config file that will be used to connect to OCI to upload DPKs.