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]
개인폴더 [195]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [18]
MySQL [40]
DB2 [79]
ORACLE [2917]
PostgreSQL [103]
기타정보 [151]
운영체제 [584]
04.Q/A Book
Q/A [53]
05.방명록
방명록 [54]
레벨업 [37]
구인/구직 [2]

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

 회원가입

oracle to psql dblink
최길호 [LIST]   2021-11-09 13:57:50, 조회 : 155

# ORACLE
export NLS_LANG=.AL32UTF8
export LANG=en_US.UTF-8
# sw encoding UTF-8

sqlplus user_000/user_000@db18
select * from user_000.zipcode where rownum < 10;

https://www.oracle.com/kr/database/technologies/releasenote-odbc-ic.html
ODBC driver shared library file:
For 19c: $ORACLE_HOME/lib/libsqora.so.19.1
For 18c: $ORACLE_HOME/lib/libsqora.so.18.1
For 12c: $ORACLE_HOME/lib/libsqora.so.12.1
For 11g: $ORACLE_HOME/lib/libsqora.so.11.1

# login test
sqlplus system/oracle@localhost:1521/db18

cat >> /etc/odbcinst.ini
#
[Oracle]
Description = Oracle ODBC driver for Oracle
Driver = /oracle/product/18/lib/libsqora.so.18.1

cat >> /etc/odbc.ini
#
[Oracle]
Driver = /oracle/product/18/lib/libsqora.so.18.1
ServerName = //localhost:1521/db18
UserID = user_000
Password = user_000

## 연결 , 한글 확인
export NLS_LANG=.AL32UTF8
isql -v oracle user_000 user_000
select '한글' from dual;
+-------------+
| **ERROR**   |
+-------------+
select * from user_000.zipcode where rownum < 10;
잘보임.

## oracle 다른 계정 사용시 에러
isql -v oracle user_000 user_000
[01000][unixODBC][Driver Manager]Can't open lib '/oracle/product/18/lib/libsqora.so.18.1' : file not found
[ISQL]ERROR: Could not SQLConnect
ldd /oracle/product/18/lib/libsqora.so.18.1 | grep not
        libclntsh.so.18.1 => not found
        libclntshcore.so.18.1 => not found
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/oracle/product/18/lib
## core dump 발생
isql -v oracle user_000 user_000
Segmentation fault (core dumped)

## 조치
. oraenv
ORACLE_SID = [root] ? db18
[root ~]# isql -v oracle user_000 user_000
+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL>

진행중....
3.239.112.140


  LIST

제목 작성자 작성일 조회
Admin  odbc_fdw test    최길호 2021/11/22 139
Admin  ERROR: cross-database references are not implemented / postgres_fdw / psql dblink    최길호 2021/11/15 186
Admin  CREATE EXTENSION postgres_fdw; [ source install ]    최길호 2021/11/15 292
Admin  psql [ 8.4.20 , 8.4.22 ] 여러 Version 운영, upgrade 8.4.20 to 8.4.22 [ 뒤 Version 다르면 그냥 시작 ]    최길호 2021/11/12 117
Admin  source make install [ 8 ~ 14 ]    최길호 2021/11/11 171
Admin  psql odbc make install    최길호 2021/11/09 135
Admin  oracle to psql dblink    최길호 2021/11/09 155
Admin  /usr/bin/initdb -D /var/lib/pgsql/test [ Instance 추가 ]    최길호 2021/11/05 107
Troubleshoot  connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?    최길호 2021/11/04 168
Troubleshoot  ERROR: current transaction is aborted, commands ignored until end of transaction block; [ postgresql-odbc upgrade ]    최길호 2021/11/04 183
Troubleshoot  pg_ctl start $PGDATA/pg_log/ 한글/영어 메세지 [ $PGDATA/postgresql.conf lc_messages ]    최길호 2021/10/29 206
Admin  pg_dumpall pg_upgrade    최길호 2021/10/21 149
Admin  통계정보    최길호 2021/10/21 125
Admin  pg_dump / pg_restore[ psql (8.4.20) to psql (14.0) ]    최길호 2021/10/20 170
Admin  PostgreSQL 14 / pgadmin Install [ lc_collate 'ko_KR.UTF-8' order by 정상 ]    최길호 2021/10/17 236
Admin  psql dblink to oracle [ odbc test ] 한글    최길호 2021/04/19 2499
Admin  postgres , enterprisedb(EDB) / [ ERROR: type "number" does not exist ]    최길호 2020/09/01 273
Admin  install postgresql on docker centos:7    최길호 2020/08/31 383
Troubleshoot  psql: server closed the connection unexpectedly [ vi $PGDATA/postgresql.conf / listen_addresses='*' ]    최길호 2020/08/31 413

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

Copyright 1999-2022 Zeroboard / skin by 최길호(gilho.kr@gmail.com)
최근 댓글
최근 게시물
11/23
[ORACLE]
acfsutil size: ACFS-03006: sma....
by 최길호
11/07
[운영체제]
Job for sshd.service failed be....
by 최길호
11/04
[ORACLE]
jsp error 위치 확인 [ debug ].
by 최길호