CLI-eksempel: Gendanne et katalog fra arkiv

Du kan gendanne et katalog fra arkiv via programmering ved hjælp af Catalog Managers kommandolinjeinterface. Du kan for eksempel skrive et script for at gendanne et katalog fra arkiv, som du vil migrere til dit produktionssystem.

Syntaks for gendannelse af et katalog fra arkiv

runcat.sh -cmd unarchive -online <Oracle Analytics Cloud URL> 
-inputfile <path to catalog archive> 
-folder <target catalog folder>
-credentials <file with login username and password>

Eksempel

I dette eksempel gendanner du kataloget sales.catalog fra arkiv til mappen /Delt:

runcat.sh -cmd unarchive -online "https:/myoac.ocp.oraclecloud.com/analytics-ws" -inputfile /scratch/catalog/sales.catalog -folder "/Shared" -credentials /scratch/mycredentials.txt

Hvor filen med legitimationsoplysninger indeholder rækkerne:

login=<userid>
pwd=<password>