http://iotn.co.kr 연락처: gilho.kr@gmail.com [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / 日本政府は日本軍の性的奴隷?牲者に謝罪すべき. ]

사용자

ID:
PW:

INDEX
01.게시판
게시판 [69]
02.File Book
File 자료실 [95]
Site Link [18]
개인폴더 [200]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [18]
MySQL [41]
DB2 [79]
ORACLE [2942]
PSQL [132]
기타정보 [151]
운영체제 [588]
04.Q/A Book
Q/A [53]
05.방명록
방명록 [54]
레벨업 [37]
구인/구직 [2]

기념일
Search
LINK
+ 가족 Hompy
+ DNSEver
IOTN :: Field Book :: PostgreSQL

 회원가입

ERROR: current transaction is aborted, commands ignored until end of transaction block; [ postgresql-odbc upgrade ]
최길호 [LIST]   2021-11-04 11:00:48, 조회 : 235

SQL> select * from "test"@psql;
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ERROR:  current transaction is aborted, commands ignored until end of transaction block;
No query has been executed with that handle {HY000,NativeErr = 1}
ORA-02063: preceding 3 lines from PSQL

ODBC Version postgresql-odbc-08.04 문제
출처: https://kb.tableau.com/articles/issue/Error-error-Current-Transaction-Is-Aborted-Commands-Ignored-Until-End-Of-Transaction-Block-Error-While-Executing-The-Query-when-connecting-or-interacting-with-Postgresql-Data-Source?lang=ko-kr

yum erase postgresql-odbc
====================================================================================================================================
Package                           Arch                     Version                             Repository                     Size
====================================================================================================================================
Removing:
postgresql-odbc                   x86_64                   08.04.0200-1.el6                    @C6.10-base                   668 k

조치 download
https://www.postgresql.org/download/linux/redhat/ [ script 제공 ]
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-6-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum install postgresql96-odbc


====================================================================================================================================
Package                            Arch                    Version                                   Repository               Size
====================================================================================================================================
Installing:
postgresql96-odbc                  x86_64                  12.01.0000-1PGDG.rhel6                    pgdg96                  311 k
Installing for dependencies:
postgresql96-libs                  x86_64                  9.6.23-1PGDG.rhel6                        pgdg96                  294 k
Transaction Summary
====================================================================================================================================
Install       2 Package(s)
Total download size: 605 k
Installed size: 2.0 M
Is this ok [y/N]: yes
Downloading Packages:
(1/2): postgresql96-libs-9.6.23-1PGDG.rhel6.x86_64.rpm                                                       | 294 kB     00:00    
(2/2): postgresql96-odbc-12.01.0000-1PGDG.rhel6.x86_64.rpm                                                   | 311 kB     00:00    

psqlodbc.so 위치 확인
rpm -ql postgresql96-odbc
---------------------------------------------------------
/usr/pgsql-9.6/lib/psqlodbc.so
/usr/pgsql-9.6/lib/psqlodbca.so
/usr/pgsql-9.6/lib/psqlodbcw.so
/usr/share/doc/postgresql96-odbc-12.01.0000
/usr/share/doc/postgresql96-odbc-12.01.0000/license.txt
/usr/share/doc/postgresql96-odbc-12.01.0000/readme.txt


cat /etc/odbcinst.ini
[PostgreSQL]
Description     = ODBC for PostgreSQL
Driver          = /usr/pgsql-9.6/lib/psqlodbc.so
Driver64        = /usr/pgsql-9.6/lib/psqlodbc.so
FileUsage       = 1


cat $ORACLE_HOME/hs/admin/initpsql.ora
HS_FDS_CONNECT_INFO = psql
HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME=/oracle/product/18/hs/admin/psql.log
HS_FDS_SHAREABLE_NAME =/usr/pgsql-9.6/lib/psqlodbc.so
set ODBCINI=/etc/odbc.ini

3.236.209.138


  LIST

제목 작성자 작성일 조회
Admin  HA 복구 test    최길호 2023/03/03 5
Admin  log: COPY public.xxxx (xxx, xxx, xxx) TO stdout; / pg_dump 백업시 발생    최길호 2023/03/03 4
Admin  requested timeline x is not a child of this server's history    최길호 2023/03/02 5
Admin  recovery_target_action / archive log 받아서 계속 복구    최길호 2023/02/28 7
Admin  recovery_target_action = 'pause' / select pg_wal_replay_pause(); / select pg_get_wal_replay_pause_state();    최길호 2023/02/27 4
Admin  memory buffer cache    최길호 2023/02/06 5
Admin  active session, pid, lock sql , kill pid / pg_terminate_backend    최길호 2023/02/06 13
Admin  psql HA    최길호 2023/02/05 13
Admin  pg_ctl start -D . | postmaster.pid | /tmp/.s.PGSQL.5432 |    최길호 2023/02/03 4
Admin  pg_waldump    최길호 2023/02/03 4
Troubleshoot  $PGDATA/pg_wal/00000002.history 없는경우 [ ERROR: could not open file "pg_wal/00000002.history": ENOENT ]    최길호 2023/02/02 4
Admin  pg_basebackup 복구 test lv:9   최길호 2023/02/02 14
Admin  shmem_exit(0): 0 before_shmem_exit callbacks to make [ 로그 기록용 ]    최길호 2023/02/01 2
Troubleshoot  LOG: invalid resource manager ID in primary checkpoint record    최길호 2023/02/01 7
Admin  pg_restore [ 다른 계정, 다른 DB, sql 파일로 저장 ]    최길호 2023/01/30 3
Admin  pg_basebackup pg_dump pg_dumpall backup script    최길호 2023/01/30 16
Admin  session 정보    최길호 2023/01/27 11
Admin  limit fetch offset rows    최길호 2023/01/21 7
Admin  pg_resetwal -D $PGDATA --wal-segsize 2 [ wal size 변경 ]    최길호 2023/01/20 8

    목록보기   다음페이지 1 [2][3][4][5][6][7]
       

Copyright 1999-2023 Zeroboard / skin by 최길호(gilho.kr@gmail.com)
최근 댓글
최근 게시물
03/28
[운영체제]
listView.getChildAt(i).setEnab....
by 최길호
03/14
[ORACLE]
Java (1.7) could not be locate....
by 최길호
03/10
[ORACLE]
EXP-00111: Table CREATE$JAVA$L....
by 최길호