EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB484222: PostgreSQL ODBC 드라이버 버전 11을 MSTR 버전 11.1.3 에서 활용하기


Sang-Yeop Lee

Sales Engineer • MicroStrategy


MSTR 11.1.3 버전에 (iserver 와 Windows 워크스테이션/ 데스크탑 포함) 포함된 Postgre SQL 네이티브 드라이버 버전은 10.03 버전입니다. 사용할 때 문제가 발생할 경우에 이 드라이버를 11.0 버전으로 업그레이드 해야 합니다. 이 테크노트는 윈도우와 리눅스 플랫폼에서 Postgre 드라이버를 업그레이드하고 구성하는 방법을 다룹니다.
  • Window에서 PostgreSQL ODBC 드라이버 11.0 버전으로 업그레이드

    PostgreSQL ODBC 드라이버의 업그레이드를 위해 아래 방법을 참고하세요.
     
    • PostgreSQL 웹사이트에서 11버전 드라이버 파일인 psqlodbc_11_00_0000-x64.zip 을 다운로드 하세요.

      https://download.postgresql.org/pub/odbc/versions/msi/psqlodbc_11_00_0000-x64.zip
       
    • 압축을 풀고 psqlodbc_x64.msi 파일을 실행하세요. 설치가 진행되기 전에 드리이버가 아래와 같이 ODBC 관리자에 표시 됩니다.

ka02R000000bs75QAA_0EM2R000000fO4H.jpeg
    • 드라이버 버전이 10.03 인걸 확인할 수 있습니다.
       
    • 설치 후에 드라이버가 아래와 같이 업데이트 되었음을 확인 할 수 있습니다.

ka02R000000bs75QAA_0EM2R000000fO4M.jpeg
    • 드라이버가 업그레이드 되었습니다.
       
    • Connectivity Wizard를 이용해 DSN을 생성하세요. Connectivity Wizard 페이지에서 “다른 관계형 데이터 베이스” 옵션을 선택하세요.

ka02R000000bs75QAA_0EM2R000000fO4W.jpeg
    • 다음 페이지에서 “PostgreSQL Unicode(x64)” 를 선택하세요.

ka02R000000bs75QAA_0EM2R000000fO4b.jpeg
    • 상세한 PosgreSQL 서버 정보를 입력하고 저장을 누르세요.

ka02R000000bs75QAA_0EM2R000000fO4g.jpeg
    • ODBC 관리자 도구에서 DSN을 생성하는 방법도 있습니다.

ka02R000000bs75QAA_0EM2R000000fO4v.jpeg
    • MTDI 인터페이스에서 생성한 DSN을 이용해 PostgreSQL 인스턴스로 연결할 데이터 소스를 생성하세요.

ka02R000000bs75QAA_0EM2R000000fO50.jpeg
  • Linux에서 PostgreSQL ODBC 드라이버 11.0 버전으로 업그레이드

    MSTR iserver가 리눅스 플랫폼에 설치된 경우, Postgre Native ODBC 드라이버도 다음의 경로로 설치됩니다.: %INSTALL_FOLDER%/pgsql-10( AWS 상에서 관리되는 MSTR 환경의 경우 설치 경로는 다음과 같습니다: /opt/mstr/MicroStrategy/install/pgsql-10) 드라이버 버전은 10.03 이기 때문에 11.0 으로 업그레이드 하기 위해 아래 단계들이 필요합니다.
     
    • 첨부된 PostgreSQL 버전 11 드라이버를 다운로드 하세요: pg_rh7.zip
       
    • Pg_rh7.zip을 iserver가 액세스하고 압축해제할 수 있는 host 에 업로드 하세요, %INSTALL_FOLDER%/pgsql-11폴더에 저장하는게 권장됩니다. 명령문 예시는 다음과 같습니다. :
       
      • sudo unzip -d /opt/mstr/MicroStrategy/install/ pg_rh7.zip
         
    • 새 폴더 /opt/mstr/MicroStrategy/install/pgsql-11이 자동으로 생성됩니다
       
    • %INSTALL_FOLDER%/env 폴더에서 ODBC.sh 를 찾아 편집합니다:
       
      • vim /opt/mstr/MicroStrategy/env/ODBC.sh
         
    • 다음을 : POSTGRESQL_PATH='/opt/mstr/MicroStrategy/install/pgsql-10/lib'
      다음과 같이 바꿉니다: POSTGRESQL_PATH='/opt/mstr/MicroStrategy/install/pgsql-11/lib'd.

      %INSTALL_FOLDER% folder 안에 있는 odbcinst.ini 파일을 찾아서 편집합니다.
       
      • vim /opt/mstr/MicroStrategy/odbcinst.ini
         
    • “[PostgreSQL Unicode(x64)]” 섹션을 아래와 같이 바꾸세요:
       

      Strategy Platform (Early Adopter)
      Database ObjectType of Permissions RequiredTablesSelect, Insert, Update, Create, Drop, DeleteIndexesCreate, DropTriggersCreate, DropFunctionsCreate, ExecutePackagesCreateProceduresCreate, Execute Standard Verification (default - explicit)Standard Verification (default - implicit)JDBCjdbc:exa:exadb1.example.com:8563; validateservercertificate=1jdbc:exa:exadb1.example.com:8563
       ODBCEXAHOST=exadb1.example.com
      SSLCertificate=SSL_VERIFY_SERVER
       EXAHOST=exadb1.example.com
        Connection string examples 1Connection string examples 2JDBCjdbc:exa:exadb1.example.com/<fingerprint>:8563 jdbc:exa:exadb1.example.com:8563; fingerprint=<fingerprint>;ODBCEXAHOST=exadb1.example.com/<fingerprint>:8563 EXAHOST=exadb1.example.com:8563;fingerprint=<fingerprint>; Connection string examples 1JDBCjdbc:exa:exadb1.example.com:8563;validateservercertificate=0 ODBCSSLCertificate=SSL_VERIFY_NONE JDBCjdbc:exa:exadb1.example.com:8563;legacyencryption=1ODBCUseLegacyEncryption=Y Connection string examples 1JDBCjdbc:exa:exadb1.example.com:8563;encryption =0 ODBCencryption=N LanguageDateNumberCurrencyPercentageGermandd.mm.yyyy12.345,00123.456,7812,34%Spanishdd/mm/yyyy12.345,00123.456,7812,34%English (US)mm/dd/yyyy12,345.00123,456.7812.34%English (UK)dd/mm/yyyy12,345.00123,456.7812.34%Frenchdd/mm/yyyy12 345,00123 456,7812,34%Italiandd/mm/yyyy12.345,00123.456,7812,34%Japaneseyyyy/mm/dd12,345.00123,456.7812.34%Koreanyyyy-mm-dd12,345.00123,456.7812.34%Portuguese (Brazil)dd/mm/yyyy12.345,00123.456,7812,34%Swedishyyyy-mm-dd12 345,00123 456,7812,34%COLUMNPURPOSEDATATYPEMR_SUB_IDSubscription Portal generated Subscription IDNumeric/Int (Must be unique)MR_ADDRESS_IDID of the addressText/VarCharMR_USER_IDNarrowcast User IDText/VarCharMR_SUB_SET_IDSubscription Set IDText/VarCharValueEffect1Unicode (UTF-8) support is enabled.0No Unicode support.

      Best Practices



      Authentication ⟩



      Authorization ⟩



      Encryption ⟩



      Web Security ⟩

      [PostgreSQL Unicode(x64)]
      Driver=/opt/mstr/MicroStrategy/install/pgsql-11/lib/psqlodbcw.so
      Description=ODBC for PostgreSQL
      Setup=/opt/mstr/MicroStrategy/install/pgsql-11/lib/psqlodbcw.so
      FileUsage=1
      DriverUnicodeType=1[TPCH_PG]
      Driver=/opt/mstr/MicroStrategy/install/pgsql-11/lib/psqlodbcw.so
      Description=PostgreSQL Unicode(x64)
      Database=tpch
      Servername=xxx.xxx.xxx.xxx
      Port=5432
      Protocol=9.3
      ReadOnly=No
      RowVersioning=No
      ShowSystemTables=No
      ConnSettings=
      DriverUnicodeType=1



      Note: 상단의 폴더는 올바른 iserver 설치 폴더로 변경되어야 합니다.
       
    • Odbc.ini를 편집해 새로운 PostgreSQL을 위한 DSN을 생성 해주세요
       
      • vim /opt/mstr/MicroStrategy/odbcinst.ini
         
    • [ODBC Data Sources] 섹션에 PostgreSQL을 위한 아래 구문을 추가 해주세요:
       
      • TPCH_PG=PostgreSQL Unicode(x64)
         
    • Odbc.ini 하단에 새로운 섹션을 추가해 아래와 같이 DSN 정보를 추가 합니다.
       

      Strategy Platform (Early Adopter)
      Database ObjectType of Permissions RequiredTablesSelect, Insert, Update, Create, Drop, DeleteIndexesCreate, DropTriggersCreate, DropFunctionsCreate, ExecutePackagesCreateProceduresCreate, Execute Standard Verification (default - explicit)Standard Verification (default - implicit)JDBCjdbc:exa:exadb1.example.com:8563; validateservercertificate=1jdbc:exa:exadb1.example.com:8563
       ODBCEXAHOST=exadb1.example.com
      SSLCertificate=SSL_VERIFY_SERVER
       EXAHOST=exadb1.example.com
        Connection string examples 1Connection string examples 2JDBCjdbc:exa:exadb1.example.com/<fingerprint>:8563 jdbc:exa:exadb1.example.com:8563; fingerprint=<fingerprint>;ODBCEXAHOST=exadb1.example.com/<fingerprint>:8563 EXAHOST=exadb1.example.com:8563;fingerprint=<fingerprint>; Connection string examples 1JDBCjdbc:exa:exadb1.example.com:8563;validateservercertificate=0 ODBCSSLCertificate=SSL_VERIFY_NONE JDBCjdbc:exa:exadb1.example.com:8563;legacyencryption=1ODBCUseLegacyEncryption=Y Connection string examples 1JDBCjdbc:exa:exadb1.example.com:8563;encryption =0 ODBCencryption=N LanguageDateNumberCurrencyPercentageGermandd.mm.yyyy12.345,00123.456,7812,34%Spanishdd/mm/yyyy12.345,00123.456,7812,34%English (US)mm/dd/yyyy12,345.00123,456.7812.34%English (UK)dd/mm/yyyy12,345.00123,456.7812.34%Frenchdd/mm/yyyy12 345,00123 456,7812,34%Italiandd/mm/yyyy12.345,00123.456,7812,34%Japaneseyyyy/mm/dd12,345.00123,456.7812.34%Koreanyyyy-mm-dd12,345.00123,456.7812.34%Portuguese (Brazil)dd/mm/yyyy12.345,00123.456,7812,34%Swedishyyyy-mm-dd12 345,00123 456,7812,34%COLUMNPURPOSEDATATYPEMR_SUB_IDSubscription Portal generated Subscription IDNumeric/Int (Must be unique)MR_ADDRESS_IDID of the addressText/VarCharMR_USER_IDNarrowcast User IDText/VarCharMR_SUB_SET_IDSubscription Set IDText/VarCharValueEffect1Unicode (UTF-8) support is enabled.0No Unicode support.

      Best Practices



      Authentication ⟩



      Authorization ⟩



      Encryption ⟩



      Web Security ⟩

      [PostgreSQL Unicode(x64)]
      Driver=/opt/mstr/MicroStrategy/install/pgsql-11/lib/psqlodbcw.so
      Description=ODBC for PostgreSQL
      Setup=/opt/mstr/MicroStrategy/install/pgsql-11/lib/psqlodbcw.so
      FileUsage=1
      DriverUnicodeType=1[TPCH_PG]
      Driver=/opt/mstr/MicroStrategy/install/pgsql-11/lib/psqlodbcw.so
      Description=PostgreSQL Unicode(x64)
      Database=tpch
      Servername=xxx.xxx.xxx.xxx
      Port=5432
      Protocol=9.3
      ReadOnly=No
      RowVersioning=No
      ShowSystemTables=No
      ConnSettings=
      DriverUnicodeType=1



      Note: 상단의 폴더는 올바른 iserver 설치 폴더로 변경되어야 합니다.
       
    • 아래 명령어를 실행해 새롭게 생성된 DSN 과의 연결을 시도하세요:
       
      • $: ./bin/mstrtodbcx - >: .cn -d pg_Native_11 -u uid -p pw
         
    • MTDI 인터페이스에서 PostgreSQL 인스턴스에 연결된 DSN을 사용해 데이터 소스를 생성하세요.

ka02R000000bs75QAA_0EM2R000000fO5A.jpeg

Comment

0 comments

Details

Knowledge Article

Published:

April 28, 2020

Last Updated:

April 28, 2020