Home » SQL & PL/SQL » SQL & PL/SQL » Error when stored proc called from vb.net (Oracle 10g XE)
Error when stored proc called from vb.net [message #399208] |
Tue, 21 April 2009 02:17  |
NewToOracle10g
Messages: 34 Registered: April 2009 Location: Adelaide
|
Member |
|
|
I've simple procedure to insert record in a table. It compiles on oracle. But I call from vb.net setting all in and out parameters I get error as below,
Exception: ORA-06550: line 1, column 388:
PLS-00103: Encountered the symbol ">" when expecting one of the following:
. ( ) , * @ % & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol "( was inserted before ">" to continue.
ORA-06550: line 1, column 465:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( ) , * % & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset
ORA-06550: line 1, column 388:
PLS-00103: Encountered the symbol ">" when expecting one of the following:
. ( ) , * @ % & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset member SUBMULTISET_
The symbol "( was inserted before ">" to continue.
ORA-06550: line 1, column 465:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( ) , * % & = - + < / > at in is mod remainder not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like LIKE2_
LIKE4_ LIKEC_ between || multiset
Exception Source: Microsoft OLE DB Provider for Oracle
procedure INS_PLIB_CATALOG (
P_CAT_TITLE in varchar2,
P_CAT_DESCRIPTION in varchar2 default null,
P_CATEGORY_ID in varchar2,
P_CAT_AUTHOR in varchar2 default null,
P_CAT_PUBLISHED_DATE in varchar2 default null,
P_CAT_PUBLISHER in varchar2 default null,
P_CAT_EVAL_RELEVANT_KEYWORDS in varchar2,
P_CAT_REG_NUMBER in varchar2,
P_CAT_REG_SUBNUMBER in varchar2,
P_CAT_CREATED_BY in varchar2,
P_CAT_CREATED_DATE in varchar2,
P_CAT_MODIFIED_BY in varchar2 default null,
P_CAT_MODIFIED_DATE in varchar2 default null,
P_CAT_RESTRICTION_LEVEL in varchar2,
P_LOCN_SITE in varchar2,
P_CAT_ID out number
) is
begin
insert into PLIB_CATALOG
(CAT_TITLE, CAT_DESCRIPTION, CATEGORY_ID, CAT_AUTHOR,
CAT_PUBLISHED_DATE, CAT_PUBLISHER, CAT_EVAL_RELEVANT_KEYWORDS,
CAT_REG_NUMBER, CAT_REG_SUBNUMBER, CAT_CREATED_BY,
CAT_CREATED_DATE, CAT_MODIFIED_BY, CAT_MODIFIED_DATE,
CAT_RESTRICTION_LEVEL, LOCN_SITE)
values (P_CAT_TITLE,
P_CAT_DESCRIPTION,
P_CATEGORY_ID,
P_CAT_AUTHOR,
to_date(P_CAT_PUBLISHED_DATE, 'YY-MM-DD'),
P_CAT_PUBLISHER,
P_CAT_EVAL_RELEVANT_KEYWORDS,
P_CAT_REG_NUMBER,
P_CAT_REG_SUBNUMBER,
P_CAT_CREATED_BY,
to_date(P_CAT_CREATED_DATE, 'YY-MM-DD'),
P_CAT_MODIFIED_BY,
to_date( P_CAT_MODIFIED_DATE, 'YY-MM-DD'),
P_CAT_RESTRICTION_LEVEL,
P_LOCN_SITE);
select max(cat_id) into P_CAT_ID from PLIB_CATALOG;
end INS_PLIB_CATALOG;
How to correct this error?
[Updated on: Tue, 21 April 2009 02:18] by Moderator Report message to a moderator
|
|
|
|
|
Re: Error when stored proc called from vb.net [message #399214 is a reply to message #399212] |
Tue, 21 April 2009 02:47   |
NewToOracle10g
Messages: 34 Registered: April 2009 Location: Adelaide
|
Member |
|
|
following anonymous block works perfectly.
declare
i number(5);
begin
PLIB_LIBRARIAN_PKG.INS_PLIB_CATALOG('P_CAT_TITLE', 'P_CAT_desc', 'Common', 'P_CAT_AUTHOR', sysdate, 'P_CAT_PUBLISHER', 'P_CAT_EVAL_RELEVANT_KEYWORDS',
'123', '1', 'leena', sysdate, null,null, 'public', 'QNMP', i);
DBMS_OUTPUT.PUT_LINE(i);
end;
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Jul 17 10:32:14 CDT 2025
|