export_service_instance

This command has been replaced by the exportarchive.sh|cmd script in bitools/bin. The script exports the metadata of your environment in the form of BAR file.

You can then import the BAR file into another environment or within the same environment. Details of these optional parameters are given in the table below.

export_service_instance(domainHome serviceInstanceKey workDir, exportDir, applicationModuleName, applicationModuleDesc, applicationModuleVersion, includeCatalogRuntimeInfo, includeCredentials)
Parameters Description

domainHome

Path to BI domain home.

serviceInstanceKey

Key for the service instance.

workDir

Work directory for the run.

exportDir

Directory where you want to export the service instance to create the BAR file.

applicationModuleName

Reserved for future use.

applicationModuleDesc

Reserved for future use.

applicationModuleVersion

Reserved for future use.

includeCatalogRuntimeInfo

Optional. Default is False. If this parameter is set to True, catalog runtime details (such as the user folder name) are included in the export of the service instance. If this parameter is set to False, catalog runtime details aren't included.

includeCredentials

Optional. Default is None. The password to encrypt the contents of the exported metadata repository. If you don't specify a value for this parameter, connection credentials aren't exported.

For example,

export_service_instance( '/oraclehome/user_projects/domains/bi','mycompany.facility', '/workDir', '/scratch/exportDir')

export_service_instance('/oraclehome/user_projects/domains/bi/','mycompany.dev', '/scratch/workDir', '/scratch/exportDir', 'mycompany.dev.test' , 'mycompany dev test', '11.1.1.0')

export_service_instance('/oraclehome/user_projects/domains/bi/','mycompany.dev', '/scratch/workDir', '/scratch/exportDir', 'mycompany.dev.test' , 'mycompany dev test', '11.1.1.0', true, 'Test123')

export_service_instance('oraclehome/user_projects/domains/bi/','mycompany.dev', '/scratch/workDir', '/scratch/exportDir', 'mycompany.dev.test' , 'mycompany dev test')

export_service_instance('/oraclehome/user_projects/domains/bi/','mycompanyexample.dev', '/scratch/workDir', '/scratch/exportDir', None , 'mycompany dev test') 

Note:

Running this command places your system in maintenance mode and write access is limited for the duration of the process.