설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 187건, 최근 0 건
   

create extension oracle_fdw; undefined symbol 관련 에러

글쓴이 : 거니 날짜 : 2023-11-07 (화) 10:59 조회 : 752
Oracle에서 PostgreSQL로 마이그레이션 하는 과정에서 아래와 같이 환경정보와 파일설치, 환경변수 설정까지 완료한 상태입니다.

환경정보
Red Hat Enterprise Linux release 8.4 (Ootpa)
PostgreSQL 15.0
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0
설치자료 및 다운로드 정보
Oracle Instant Client for Linux x86-64 (64-bit) 다운로드
https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
Postgresql 15 관련 LIbrary 파일 다운로드
https://download.postgresql.org/pub/reps/yum/15/redhat/rhel-8-x86_64/
oracle_fdw-ORACLE_FDW_2_6_0 다운로드
https://github.com/laurenz/oracle_fdw/releases/tag/ORACLE_FDW_2_6_0
환경변수 설정
export PG_HOME=/usr/pgsql-15
export ORACLE_HOME=/usr/lib/oracle/12.2/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LB_LIBRARY_PATH
export PATH=$LD_LIBRARY_PATH:$PG_HOME/lib:$PG_HOME/bin:$ORACLE_HOME/bin:$PATH
 

 


아래부터 에러 항목입니다.



1. make를 실행했을 때,



[postgres@...oracle_fdw-ORACLE_FDW_2_6_0]$ make

oracle_fdw.c: In function 'oraclePlanForeignModify':

oracle_fdw.c:1589:18: warning: implicit declaration of function 'get_rel_all_updated_cols'; did you mean 'get_rel_tablespace'? [-Wimplicit-function-declaration]

oracle_fdw.c:1589:16: warning: assignment to 'Bitmapset *' {aka 'struct Bitmapset *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]



위와 같은 경고가 뜹니다.



2. psql에서 CREATE EXTENSION oracle_fdw; 실행



postgres=# CREATE EXTENSION oracle_fdw;

ERROR: could not load library "/usr/pgsql-15/lib/oracle_fdw.so": /usr/pgsql-15/lib/oracle_fdw.so: undefined symbol: get_rel_all_updated_cols



위와 같은 에러가 뜹니다.



비슷한 상황은 겪어보신 분들 도움 부탁드립니다.

PostgresDBA 2023-11-10 (금) 09:50
postgres 유저로 pg_config 명령어 치시고
LIBDIR 의 경로를 .bash_profile 의 LD_LIBRARY_PATH 환경변수에 추가하세요.
그리고 postgres os user logout/login  해서 환경변수 먹인 다음에
postgres 재기동하시고 해보세요 ^^
결과 알려주세요!
댓글주소
   

postgresdba.com