Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem using associative arrays in vb6 with ORAOLEDB for Oracle 10g

625041Feb 25 2008 — edited Mar 7 2008
The following vb6-code works fine with MS OLEDB (in MDAC 2.8) but not with Oracles OLEDB for 10g. Any suggestions for making it work?

'vb6-code:
Set rs = New ADODB.Recordset
Set rs.ActiveConnection = oConn 'oConn is already initiaded - code not included here.
rs.Source = "{call PCK_PW_RF_PERSON.P_PW_BIRTHDAY('BURSDAG','2008','01',{resultset 200000, PARAM1,PARAM2,PARAM3})}"
rs.LockType = vntLockType
rs.CursorLocation = adUseClient
rs.CursorType = vntCursorType
rs.Open


Databaseobjects involved:
PACKAGE "PCK_PW_RF_PERSON" IS

TYPE tpv_param1 IS TABLE OF VARCHAR2 INDEX BY BINARY_INTEGER;
TYPE tpv_param2 IS TABLE OF VARCHAR2 INDEX BY BINARY_INTEGER;
TYPE tpv_param3 IS TABLE OF VARCHAR2 INDEX BY BINARY_INTEGER;

.
.
.

PROCEDURE P_PW_BIRTHDAY
(
pv_i_sreportid IN VARCHAR2,
pv_i_year IN VARCHAR2,
pv_i_month IN VARCHAR2,
PARAM1 OUT tpv_param1,
PARAM2 OUT tpv_param2,
PARAM3 OUT tpv_param2
)
IS

CURSOR X IS select '1' AS PARAM1,'2' AS PARAM2,'3' AS PARAM3 FROM DUAL;
i NUMBER DEFAULT 1;
BEGIN
FOR c IN X LOOP
PARAM1(i) := c.PARAM1;
PARAM2(i) := c.PARAM2;
PARAM3(i) := c.PARAM3;

i := i + 1;
END LOOP;
END P_PW_BURSDAG;

Comments

625041
I receive this error:

"ORA-06550: line 1, column 111:
PLS-00201: identifier 'PARAM1' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored"
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 4 2008
Added on Feb 25 2008
1 comment
3,071 views