473,466 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Oracle Wrong number or types of arguments error

dmjpro
2,476 Top Contributor
this is my funciton block in oracle .......

Function PIM_TEST
( param1 IN DATE DEFAULT SYSDATE,
param2 IN OUT DATE)
RETURN DATE IS
--
-- To modify this template, edit file FUNC.TXT in TEMPLATE
-- directory of SQL Navigator
--
-- Purpose: Briefly explain the functionality of the function
--
-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------
new_date DATE;
-- Declare program variables as shown above
BEGIN
new_date := param1;
RETURN new_date ;
--EXCEPTION
--WHEN exception_name THEN
--statements ;
END; -- Function PIM_TEST


my java code .......

CallableStatement function = l_con.prepareCall("{call PIM_TEST()}");
//function.setDate(1,new Date(5000));
function.executeQuery();


now my error is ........

java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PIM_TEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
void oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout()
int oracle.jdbc.driver.OraclePreparedStatement.execute Update()
java.sql.ResultSet oracle.jdbc.driver.OraclePreparedStatement.execute Query()
void Pim_Test.main(java.lang.String[])
Exception in thread main


what should i do right now ....

plz help me out ....

many many thanxxx in advance ......
Mar 2 '07 #1
2 9412
r035198x
13,262 MVP
this is my funciton block in oracle .......

Function PIM_TEST
( param1 IN DATE DEFAULT SYSDATE,
param2 IN OUT DATE)
RETURN DATE IS
--
-- To modify this template, edit file FUNC.TXT in TEMPLATE
-- directory of SQL Navigator
--
-- Purpose: Briefly explain the functionality of the function
--
-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------
new_date DATE;
-- Declare program variables as shown above
BEGIN
new_date := param1;
RETURN new_date ;
--EXCEPTION
--WHEN exception_name THEN
--statements ;
END; -- Function PIM_TEST

my java code .......

CallableStatement function = l_con.prepareCall("{call PIM_TEST()}");
//function.setDate(1,new Date(5000));
function.executeQuery();

now my error is ........

java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PIM_TEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
void oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout()
int oracle.jdbc.driver.OraclePreparedStatement.execute Update()
java.sql.ResultSet oracle.jdbc.driver.OraclePreparedStatement.execute Query()
void Pim_Test.main(java.lang.String[])
Exception in thread main

what should i do right now ....

plz help me out ....

many many thanxxx in advance ......
Copied to Oracle forum and changed title
Mar 2 '07 #2
rectoverso
16 New Member
this is my funciton block in oracle .......

Function PIM_TEST
( param1 IN DATE DEFAULT SYSDATE,
param2 IN OUT DATE)
RETURN DATE IS
--
-- To modify this template, edit file FUNC.TXT in TEMPLATE
-- directory of SQL Navigator
--
-- Purpose: Briefly explain the functionality of the function
--
-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------
new_date DATE;
-- Declare program variables as shown above
BEGIN
new_date := param1;
RETURN new_date ;
--EXCEPTION
--WHEN exception_name THEN
--statements ;
END; -- Function PIM_TEST


my java code .......

CallableStatement function = l_con.prepareCall("{call PIM_TEST()}");
//function.setDate(1,new Date(5000));
function.executeQuery();


now my error is ........

java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'PIM_TEST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
void oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout()
int oracle.jdbc.driver.OraclePreparedStatement.execute Update()
java.sql.ResultSet oracle.jdbc.driver.OraclePreparedStatement.execute Query()
void Pim_Test.main(java.lang.String[])
Exception in thread main


what should i do right now ....

plz help me out ....

many many thanxxx in advance ......
i think that your problem is here

l_con.prepareCall("{call PIM_TEST()}")

your function has to parameters wich ar'nt null so you call it without parameters
Mar 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chetan | last post by:
Hi We have Oracle 8.1.7.4 and using .net framework 1.1 with Microsoft client. While executting the stored procedure we are getting an error message. Here is our code. here is the code that...
4
by: Roger Redford | last post by:
Dear Experts, I'm attempting to marry a system to an Oracle 817 datbase. Oracle is my specialty, the back end mainly, so I don't know much about java or javascript. The system uses javascript...
1
by: Mullin Yu | last post by:
hi, i'm using System.Data.OracleClient; but it seems not having Varchar2 and i use Varchar instead. Then when i call a Oracle Procedure update a table with varchar2, i got the following error: ...
12
by: Newbie | last post by:
how can i call an oracle function to get data without using a select statement or stored procedures? given a project_no, i need to call the function: ops$sqltime.pa_new_job_no_fn which will...
0
by: dmiratsky | last post by:
This is what my Oracle Package Call looked like in ADO: strSQL = "{call StkhldrPkg.GetEmployerProfileRS(" & ind_stakeID & ", (resultset 0, pv_result))}" I am a SQL Server guy, so I cannot...
2
by: John | last post by:
My application needs to call Oracle function using oracle client 9.2. The oracle function returns boolean value from its returned parameter. The name space that I used is system.data.oracleclient....
2
by: ssp | last post by:
Hello there, I am trying to do very simple thing in trying to return results from an Oracle (10g) Stored Procedure using the Enterprise Library June 2005 Version. The stored procedure first:...
0
by: cetram | last post by:
Hello! I'm trying to fix an appliaction created using ColdFusion MX and Oracle 9i. The application worked fine until our IT department reinstalled the oracle server. As far as I've been able to...
2
dmjpro
by: dmjpro | last post by:
this is my funciton block in oracle ....... Function PIM_TEST ( param1 IN DATE DEFAULT SYSDATE, param2 IN OUT DATE) RETURN DATE IS -- -- To modify this template, edit file...
3
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I am trying to call a oracle stored proc from .net code and I am getting an error PLS-00306: wrong number or types of arguments in call to KSSP_MEMBER_NEW. I counted all the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.