CSV 텍스트 파일 예

CSV 텍스트 파일에는 모든 데이터베이스 연결에 대한 정보가 포함됩니다. 이 파일을 작성한 후 가져오기하여 정의한 데이터베이스 연결을 추가할 수 있습니다. 제품과 함께 제공되는 샘플 CSV 텍스트 파일도 사용할 수 있습니다. 이 CSV 샘플 텍스트 파일은 설치 디렉토리의 samples 서브디렉토리에 있습니다.

CSV 텍스트 파일 매개변수

다음 테이블에서는 CSV 파일에 정의할 수 있는 매개변수를 설명합니다.
표 1. CSV 텍스트 파일 매개변수
매개변수 설명
name(필수)

고유 데이터베이스 연결 이름입니다.

name 매개변수는 데이터베이스 연결 ID이므로 각 연결에는 고유 이름이 있어야 합니다.
주: 임포트 중에 임포트 파일에 중복 name이 포함된 경우, 임포트 마법사는 연결 특성을 새 데이터로 업데이트하거나 수정 없이 기존 연결을 유지하도록 프롬프트를 표시합니다.
dataServerType(필수) 데이터베이스 서버 유형입니다. 허용되는 값은 다음과 같습니다.
  • DB2LUW
  • DB2Z
  • INFORMIX
  • INFORMIX_JDBC
주의: 일부 제품은 제한된 데이터베이스 서버 세트를 지원합니다. 데이터 소스 연결 파일을 임포트하기 전에, 포함된 dataServerType 엔트리를 제품이 지원하는지 확인하십시오.
db2instance(선택사항) DB2® 인스턴스 이름입니다.
databaseName(필수) 이 데이터베이스 연결의 데이터베이스 이름입니다.
host(필수) 데이터베이스가 존재하는 호스트의 IP 주소 또는 IP 이름입니다. 호스트 이름을 검색하려면 서버에서 TCP/IP hostname 명령을 실행하십시오. 호스트 IP 주소를 검색하려면 서버에서 ping host_name 명령을 실행하십시오.
port(필수) 데이터베이스가 구성된 포트 번호입니다.
user(선택사항) 데이터베이스 사용자 이름입니다.
password/password.decrypted(선택사항) 데이터베이스 사용자 비밀번호입니다. password 매개변수를 사용하는 경우, 정의에 지정된 비밀번호는 암호화된 형식이어야 합니다.
location(DB2Z의 경우 필수) z/OS®용 DB2 시스템의 위치입니다.
databaseAlias(선택사항) DB2 명령행 처리기(CLP)의 별명입니다. 데이터 서버 유형 DB2LUW 및 DB2Z에만 이 매개변수를 사용할 수 있습니다.
INFORMIXSERVERNAME(INFORMIX_JDBC의 경우 필수, INFORMIX의 경우 선택사항) Informix® 데이터베이스 서버의 이름입니다.
xtraProps(선택사항)

데이터베이스 서버 유형에 대해 JDBC 드라이버 문서에 정의된 추가 특성(예: 연결 특성)입니다.

예: traceLevel=32

URL(설명 참조) 데이터베이스 서버의 JDBC URL입니다. 데이터 서버 유형이 기본적으로 지원되지 않는 경우 URL 매개변수가 필요합니다.
주: 이 매개변수 값을 입력하지 않으면 연결에 대해 기본 URL이 작성됩니다.
comment(선택사항) 데이터베이스 연결에 대한 설명 주석입니다.

샘플 CSV 텍스트 파일

설치 디렉토리의 samples 서브디렉토리에서 CSV 텍스트 파일 샘플을 볼 수 있습니다. 샘플 파일의 컨텐츠는 다음과 같습니다.
#=========================================================================#
#  Licensed Materials - Property of IBM                                   #
#  (c) Copyright IBM Corp. 2010, 2011 All Rights Reserved.                #
#  US Government Users Restricted Rights - Use, duplication or            #
#  disclosure restricted by GSA ADP Schedule Contract with                #
#  IBM Corp.                                                              #
#=========================================================================================================================================================================================
# Field                        ::  Description
# name                         ::  Required. The unique identifier for the database connection.
# dataServerType               ::  Required. The database type. The following databases are supported by default: DB2LUW, DB2Z.
# db2instance                  ::  Optional. The DB2 instance name.
# databaseName                 ::  Required. The database name.
# host                         ::  Required. The IP address or IP name of the host where the database exists.
# port                         ::  Required. The port number where the database is configured.
# user                         ::  Required. The ID of a user that has access privileges on the database. 
# password/password.decrypted  ::  Optional. The password of the user ID. If you use the 'password' option, the value of this field must be the encrypted password.
# location                     ::  Optional. The location of DB2Z. This column is only required when the dataServerType is DB2Z.
# databaseAlias                ::  Optional. The alias of the DB2 CLP. This column is only used for DB2LUW and DB2Z.
# INFORMIXSERVERNAME           ::  Required if dataServerType is INFORMIX_JDBC.
# xtraProps                    ::  Optional. Additional properties such as connection properties as defined in the JDBC driver documentation for the database server type. Separate multiple properties with a semicolon. 
# URL                          ::  Optional. The JDBC URL. This field is required if the data server type is not those supported by default.
# comment                      ::  Optional. A descriptive note for this this connection. 
# securityMechanism            ::  Optional. This column is reserved/used for connection export only. Users should not modify this column.
# kerberosServerPrincipal      ::  Optional. This column is reserved/used for connection export only. Users should not modify this column.
#=========================================================================================================================================================================================
name,   dataServerType, databaseName, db2instance, host,            port,  user,   password, databaseAlias, location, INFORMIXSERVERNAME, xtraProps, URL,                                                                                                        comment, 
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SAMPLEDB, DB2LUW,         SAMPLE_DATA,     ,            sample.ibm.com, 50002, inst95, ,         ,              ,         ,                   ,          jdbc:db2://sample.ibm.com:50002/SAMPLE_DATA:retrieveMessagesFromServerOnGetMessage=true;securityMechanism=3;, ,        

피드백