匯入資料

將從 AppScan® 來源 資料庫匯出的資料匯入 AppScan®Enterprise

重要: 在匯入資料之前,請確定匯入系統可使用和顯示匯出的資料目錄與內容。如果要在不同的實體系統上匯出及匯入資料,請將整個匯出資料目錄和內容複製到匯入系統。
  1. 定義環境變數 transfer_staging_dir 以指向匯出之資料目錄的位置。
    • Windows:
      set transfer_staging_dir="<export data location>"
    • Linux:
      export transfer_staging_dir="<export data location>"
  2. 定義 appscan_source_shared_data 環境變數以指向移轉公用程式的位置。
    • Windows:
      set appscan_source_shared_data=<<path>\migration_util_win>
    • Linux:
       export appscan_source_shared_data=<<path>/migration_util_linux>
  3. 從指令行中,導覽至移轉公用程式的位置。
  4. 使用適當的參數執行公用程式,以將資料匯入 AppScan®Enterprise。請確定您依顯示的順序列出匯入參數。
    • Windows:
      DBManager.exe --import --user=<ASE userName> --pwd=<ASE password> --server=<ASE serverURL>
    • Linux:
      ./dbmanager --import --user=<ASE userName> --pwd=<ASE password> --server=<ASE serverURL>
    註: 如需使用 import 指令的說明,請執行:
    • Windows:
      DBManager.exe --import --help
    • Linux:
      ./dbmanager --import --help

移轉公用程式匯入參數

參數 必要?
--user AppScan®Enterprise 使用者名稱(有權建立共用資料的管理員或使用者)
--pwd 已指定使用者的密碼
--server AppScan®Enterprise 的伺服器位置

疑難排解匯入

如果您在匯入資料時遇到任何問題,請參閱移轉公用程式安裝路徑中的 dbmanager_exceptions.log 檔案。預設位置如下:
  • Windows:
    C:\Program Files\HCL\AppScanSource\migration_util_win\logs\dbmanager_exceptions.log
  • Linux:
    /opt/hcl/appscansource/migration_util_linux/logs/dbmanager_exceptions.log