resetServiceInstance

This command removes all the customizations in a given service instance (similar to an empty BAR state).

resetServiceInstance(domainHome, serviceKey)

The following table lists the parameters for this command.

Parameters Description

domainHome

Path to the BI domain home. For example, /oraclehome/user_projects/domains/bi.

serviceKey

Key for the service instance. It is a unique identifier for a service instance. For example, 'ssi'.

This example removes customizations using the resetServiceInstance command.

  1. Configure Oracle Analytics Server with an empty service instance (the same as using an empty BAR file).

    Note:

    The empty BAR file is here:

    $BI_PRODUCT_HOME/bi/bifoundation/admin/provisioning/oracle.bi.application.empty.bar

  2. Deploy SampleAppLite to the BI domain and associate it with the service instance.
  3. Make some customizations on top of the base BAR.
  4. Use the resetServiceInstance command.

    For example,

    resetServiceInstance('/oraclehome/user_projects/domains/bi', 'ssi')
    

    This removes the customizations created in step 3 and returns the service instance to the state of step 2.