Being new to Oracle, I'm almost certain I'm missing something simple here. This is what I'm trying to run:
declare
type string_table IS TABLE OF VARCHAR2(512);
outuser nvarchar2(512);
outrole nvarchar2(512);
result number(38);
usernames string_table;
rolenames string_table;
begin
usernames(1) := 'Administrator';
rolenames(1) := 'Admins';
result := ASPNETDB.ORA_ASPNET_UIR_ADDUSERSTOROLES('/', usernames, 1, rolenames, 1, outuser, outrole);
END;
This is the error:
ERROR at line 11:
ORA-06550: line 11, column 11:
PLS-00306: wrong number or types of arguments in call to
'ORA_ASPNET_UIR_ADDUSERSTOROLES'
This is the output of DESC for the function:
FUNCTION ASPNETDB.ORA_ASPNET_UIR_ADDUSERSTOROLES RETURNS NUMBER(38)
Argument Name Type In/Out Default?
------------------------------ ----------------------- ------ --------
APPLICATIONNAME_ NVARCHAR2 IN
USERNAMES_ TABLE OF VARCHAR2(512) IN
USERNAMES_ARR_SIZE NUMBER(38) IN
ROLENAMES_ TABLE OF VARCHAR2(512) IN
ROLENAMES_ARR_SIZE NUMBER(38) IN
USERNAME NVARCHAR2 OUT
ROLENAME NVARCHAR2 OUT