Invantive 문서Invantive Cloud의 일부
Invantive 지원 포럼로그인 / 회원가입

샘플 배치 파일

Invantive Data Hub는 보통 아래와 같은 배치 파일로 시작합니다. 배치 파일의 내용을 직접 작성하는 데 사용할 수 있지만, Batch File에 설명된 대로 Invantive Query Tool을 사용하면 이러한 배치 파일을 더 쉽게 만들 수 있습니다.

@echo off
rem
rem Batch script to run an Invantive SQL file with possible Invantive Script statements.
rem
rem Please note that the encrypted password is bound to the PC used to generate this file.
rem When you want to run this batch file on another PC, please generate a new encrypted password at that PC.
rem
rem In Invantive Query Tool and Data Hub you can use the 'local encrypt password' statement to generate.
rem a new encrypted password.
rem
rem As an alternative you can use cloud.invantive.eu to generate a pre-authenticated connection.
rem
rem Find more information on documentation.invantive.eu.
rem
rem Created by Invantive Query Tool on 03/10/2026 16:16:42 (UTC).
rem

set INVANTIVE_USR=<<USERNAME>>

set INVANTIVE_ENCRYPTED_PWD=<<ENCRYPTED_PWD>>

set INVANTIVE_DB=<<GROUP>>\<<NAME>>

set INVANTIVE_SQL_FILE=C:\temp\file.sql

set INVANTIVE_LOG_FILE=file-%%Y%%m.log

set INVANTIVE_LOG_FILE_OVERWRITE=False

set INVANTIVE_INTERACTIVE=False

set INVANTIVE_PRG=C:\Program Files (x86)\Invantive Software BV\Invantive Data Hub 26.0\Invantive.Producer.Data.Hub.exe

"%INVANTIVE_PRG%" /verbose /database:"%INVANTIVE_DB%" /user:"%INVANTIVE_USR%" /encryptedpassword:"%INVANTIVE_ENCRYPTED_PWD%" /file:"%INVANTIVE_SQL_FILE%" /logfile:"%INVANTIVE_LOG_FILE%" /logoverwrite:"%INVANTIVE_LOG_FILE_OVERWRITE%" /interactive:%INVANTIVE_INTERACTIVE%

IF %ERRORLEVEL% NEQ 0 (
  echo Job failed with exit code %ERRORLEVEL%.
  exit /b %ERRORLEVEL%
)

echo Completed job with exit code %ERRORLEVEL%.

배치 파일은 Invantive Data Hub의 종료 코드로 끝나므로, 스케줄러는 실행 성공 여부를 확인할 수 있습니다. Exit Code을 참조하십시오. 로그 파일 이름에는 UTC 기준의 연도와 월(%Y%m)이 포함되므로, 매월 별도의 로그 파일이 생성됩니다.

INVANTIVE_PRG은 설치된 릴리스의 폴더를 가리킵니다. 릴리스 27.0까지(포함)에서는 Invantive Data Hub가 샘플과 같이 C:\Program Files (x86)\Invantive Software BV 아래에 설치되며, 릴리스 27.1부터는 C:\Program Files\Invantive Software BV 아래에 설치됩니다. 예를 들어 C:\Program Files\Invantive Software BV\Invantive Data Hub 27.1\Invantive.Producer.Data.Hub.exe와 같습니다. 따라서 배치 파일은 어느 경우든 릴리스에 따라 변경됩니다.

릴리즈 노트