create or replace PROCEDURE HPNO_INSERTPRC01
(
A_STR_CODE VARCHAR2,
A_DATES DATE ,
A_SEQ_NO VARCHAR2,
A_STATUS VARCHAR2,
A_EMP_NO VARCHAR2,
A_CUS_NAME VARCHAR2,
A_CUS_HP_NO VARCHAR2, --고객휴대폰번호
A_ITM_CODE VARCHAR2,
A_LINK_CODE VARCHAR2,
A_VEN_CODE VARCHAR2,
A_BUY_YM VARCHAR2,
A_FREE_FLAG VARCHAR2,
A_REPAIR_FLAG VARCHAR2,
A_QTY NUMBER ,
A_REPAIR_SPRC NUMBER ,
A_REPAIR_SPRC_REAL NUMBER ,
A_REFUND_PRICE NUMBER ,
A_JUDG_FLAG VARCHAR2,
A_REPAIR_CLS_CODE VARCHAR2,
A_REPAIR_CLS_CODE_CFM VARCHAR2,
A_CFM_DATES DATE ,
A_REPAIR_DATES DATE ,
A_CHUL_DATES DATE ,
A_PUR_DATES DATE ,
A_TRANS_DATES DATE ,
A_HAPPY_DATES DATE ,
A_CFM_EMP_NO VARCHAR2,
A_REPAIR_EMP_NO VARCHAR2,
A_CHUL_EMP_NO VARCHAR2,
A_PUR_EMP_NO VARCHAR2,
A_TRANS_EMP_NO VARCHAR2,
A_HAPPY_EMP_NO VARCHAR2,
A_CHUL_NO VARCHAR2,
A_REMARK01 VARCHAR2,
A_REMARK02 VARCHAR2,
A_REMARK03 VARCHAR2,
A_REMARK04 VARCHAR2,
A_SEQ_NO_SRC VARCHAR2,
A_ADJ_AMT NUMBER ,
A_REPAIR_CLS_CODE2 VARCHAR2,
A_REPAIR_CLS_CODE3 VARCHAR2,
A_MAKE_YM VARCHAR2,
A_SIZE_CODE VARCHAR2,
A_ORD_NUM VARCHAR2,
A_CUS_ADDR VARCHAR2
)
AS
BEGIN
--
--
UPDATE RT010TBL
SET CUS_HP_NO = A_CUS_HP_NO ---petra.pls_encrypt_b64_nm(A_CUS_HP_NO, 'AES')
WHERE STR_CODE = A_STR_CODE
AND CUS_NAME = A_CUS_NAME ;
IF SQL%NOTFOUND THEN
INSERT INTO RT010TBL
(
STR_CODE, DATES, SEQ_NO, STATUS, EMP_NO, CUS_NAME,
CUS_HP_NO, --암호화 대상 컬럼
ITM_CODE, LINK_CODE, VEN_CODE, BUY_YM, FREE_FLAG, REPAIR_FLAG,
QTY, REPAIR_SPRC, REPAIR_SPRC_REAL, REFUND_PRICE, JUDG_FLAG, REPAIR_CLS_CODE,
REPAIR_CLS_CODE_CFM, CFM_DATES, REPAIR_DATES, CHUL_DATES, PUR_DATES, TRANS_DATES,
HAPPY_DATES, CFM_EMP_NO, REPAIR_EMP_NO, CHUL_EMP_NO, PUR_EMP_NO, TRANS_EMP_NO,
HAPPY_EMP_NO, CHUL_NO, REMARK01, REMARK02, REMARK03, REMARK04,
SEQ_NO_SRC, ADJ_AMT, REPAIR_CLS_CODE2, REPAIR_CLS_CODE3, MAKE_YM, SIZE_CODE,
ORD_NUM, CUS_ADDR
)
VALUES
(
A_STR_CODE, A_DATES, A_SEQ_NO, A_STATUS, A_EMP_NO, A_CUS_NAME,
A_CUS_HP_NO, --petra.pls_encrypt_b64_nm(A_CUS_HP_NO,'AES'), --암호화 적용 고객번호 데이터
A_ITM_CODE, A_LINK_CODE, A_VEN_CODE, A_BUY_YM, A_FREE_FLAG, A_REPAIR_FLAG,
A_QTY, A_REPAIR_SPRC, A_REPAIR_SPRC_REAL, A_REFUND_PRICE, A_JUDG_FLAG, A_REPAIR_CLS_CODE,
A_REPAIR_CLS_CODE_CFM, A_CFM_DATES, A_REPAIR_DATES, A_CHUL_DATES, A_PUR_DATES, A_TRANS_DATES,
A_HAPPY_DATES, A_CFM_EMP_NO, A_REPAIR_EMP_NO, A_CHUL_EMP_NO, A_PUR_EMP_NO, A_TRANS_EMP_NO,
A_HAPPY_EMP_NO, A_CHUL_NO, A_REMARK01, A_REMARK02, A_REMARK03, A_REMARK04,
A_SEQ_NO_SRC, A_ADJ_AMT, A_REPAIR_CLS_CODE2, A_REPAIR_CLS_CODE3, A_MAKE_YM, A_SIZE_CODE,
A_ORD_NUM, A_CUS_ADDR
)
;
END if;
END;
해당프로시저의 매개변수값 넣고 실행시
부적합한 SQL 유형입니다. sqlKind = UNINITIALIZED라는 에러가 나오는데 도저히 아무리찾아 봐도 원인을 못찾겠습니다...