Powerbuilder에서의 datawindow는 대부분 retrieval parameter를 사용하기때문에
아래와 같은 구성으로 binding처리되어 datasource가 구성됨
*datawindow datasource
select a.flight_code,b.flight_name
from flight a, flightnm b
where a.flight_code = b.flight_code
and a.flight_code = :asFlightCode
binding 변수값을 변경하여 실행하면 Oracle의 shared pool은
아래와 같이 해당 상수값으로 변경되어 처리됨
*Oracle share pool
select a.flight_code,b.flight_name
from flight a, flightnm b
where a.flight_code = b.flight_code
and a.flight_code = 'AAA'
select a.flight_code,b.flight_name
from flight a, flightnm b
where a.flight_code = b.flight_code
and a.flight_code = 'BBB'
*해결책
이런경우 powerbuilder에서 DB 연결시 parameter에 아래와 같이 추가하면
SQL문장에 binding 변수 값이 셋팅되도록 하면 해소 됨
SQLCA.DBParm = 'DisableBind=1'
기존 parementer가 있다면 " , " 추가하고 위의 값을 추가해주면 됩니다.
♥도움 되셨다면 ♥ 공감 부탁드려요~~
Sybase : DisableBind 설명
'PowerBuilder' 카테고리의 다른 글
오라클을 이용한 정기적인 메일 전송 (0) | 2023.07.28 |
---|---|
파워빌더에서 오라클 alter명령 실행하기 (0) | 2023.06.15 |
Powerbuilder datawindow is very slow (0) | 2023.06.13 |
PowerBuilder에서 Local file날짜 가져오기 (0) | 2023.05.12 |