import_bar
This command has been replaced by the importarchive.sh|cmd script in
bitools/bin
. The script imports an already exported BAR file
(service instance) to replace metadata in the target environment.
import_bar(domainHome, serviceInstanceKey, barLocation, importRpd, importWebcat, importJazn, includeCredentials)
The table lists the parameters for this command.
Parameters | Description |
---|---|
domainHome |
Path to BI domain home. |
serviceInstanceKey |
Key for the service instance. |
barLocation |
Absolute path of the BAR file for the imported service instance. |
importRpd |
Optional. Default is True. If you set this parameter to False, the command doesn’t import the metadata from the repository. |
importWebcat |
Optional. Default is True. If you set this parameter to False, the command doesn’t import the objects from the catalog. |
importJazn |
Optional. Default is True. If you set this parameter to False, the command doesn’t import the Jazn. |
includeCredentials |
Optional. Password for decrypting the content imported the repository. |
For example,
import_bar( '/scratch/mydir/oraclehome/user_projects/domains/bi','mycompany.facility', '/scratch/exportDir/mycompany.finance.bar')
import_bar('/scratch/mydir/oraclehome/user_projects/domains/bi', 'demosvc1', '/scratch/mydir/oraclehome/bi/bifoundation/samples/sampleapplite/test/SampleAppLite1.bar', true, false, false, 'Test123')
import_bar('/scratch/mydir/oraclehome/user_projects/domains/bi', 'demosvc1', '/scratch/mydir/orahome/bi/bifoundation/samples/sampleapplite/test/SampleAppLite1.bar', importRPD=true,includeCredentials='Test123')
Note:
When you import a 12.2.1.2.0 or later BAR file into an earlier Oracle Analytics Server release such as 12.2.1.1.0 and 12.2.1.0.0 and the BAR file contains dataset metadata (for example an Excel spreadsheet) that isn’t supported before 12.2.1.2.0, the dataset metadata isn’t imported and the metadata that isn’t imported also isn’t logged.-
When you import a later version BAR file that contains dataset metadata (for example an Excel spreadsheet called sales.xls) into an earlier Oracle Analytics Server instance that doesn’t support dataset metadata, the import process silently skips the dataset metadata content in the BAR file.
-
The log file for the service instance contains information on the metadata that’s imported. The log file doesn’t provide information on the metadata that’s ignored as part of the import operation.