473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

PLS-00306 wrong number or types of arguments in call to

Hi
i am getting this error message when the following script is running

execute sp_GetTrialInfo();

Expand|Select|Wrap|Line Numbers
  1.  
  2. create or replace procedure sp_GetTrialInfo
  3.   (
  4.  
  5.     parStudy_Name OUT  mivrs_studyinfo.study_name %type,
  6.     parContact_Name OUT mivrs_studyinfo.contact_name %type,
  7.     parPhone_Number OUT mivrs_studyinfo.phone_number %type,
  8.     parDescription OUT mivrs_studyinfo.description %type
  9.   )
  10.   AS
  11.   BEGIN
  12.     SELECT study_name,contact_name,phone_number,description
  13.     INTO
  14.            parstudy_name,parcontact_name,parphone_number,pardescription
  15.     FROM mivrs_studyinfo;
  16.  
  17. END sp_GetTrialInfo;
  18.  
  19.  
Oct 19 '10 #1
1 2564
amitpatel66
2,367 Expert 2GB
Becuase you ar einvoking a procedure that has four OUT parameters without mentioning the parameter names to which the values will be returned by the procedure.

You have to do something like:

Expand|Select|Wrap|Line Numbers
  1. declare
  2. study_name mivrs_studyinfo.study_name%type;
  3. c_name mivrs_studyinfo.contact_name%type;
  4. v_ph mivrs_studyinfo.phone_number%type;
  5. v_desc mivrs_studyinfo.description%type;
  6. BEGIN
  7. sp_GetTrialInfo(study_name,c_name,v_ph,v_Desc);
  8. DBMS_OUTPUT.PUT_LINE(study_name||','||c_name||','||v_ph||','||v_Desc);
  9. END;
  10. /
  11.  
Oct 19 '10 #2

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

Similar topics

2
by: Michael Hogan | last post by:
I want to pars a playlist file for three different varibles, so I can save them as mp3 files. I am using: strTEMPURL = GetUrlSource(Text1.Text) to put the entire .pls file into a strTEMPURL...
0
by: Rama krishna | last post by:
Hi All: I got the same problem what u got. Could u pls explain me hoe can i proceed. I saw some sites on this issue, which actually not worked with me. Iam using System.Directoryservices dll in...
1
by: windos | last post by:
Guys, I'm newbie here and tryin to create a simple procedure : ---- CREATE OR REPLACE PROCEDURE update_status IS CURSOR cekstat is select b.CREATOR_PROC_INST_ID, b.MANAGED_FILE_ID,...
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
3
by: bangaw | last post by:
i'm currently using c++ on windowsXP, unistd.h doesnt work for windows what other substitute for it could i use to replace it Pls. Help me Pls pls the code goes as follows #include <stdio.h>...
0
by: naheed javaid | last post by:
I m student and doing my final project. My project is related to screen capturing. my project captures screen and save the captured screen as bitmaps in a folder. while the screen recording audio...
0
by: sathyakvani | last post by:
hi al i wrote a code (LOgin form) that checks the user id and if it exists validates the password but this is not all validating and simply displaying user does not exist i am sending the code...
17
by: Riaaaa | last post by:
Pls check my code for the stored procedure which i created for the companydetails including companyid P.K. Not Null int(4), companyname Not Null varchar (20), address varchar(30) where...
1
by: vbsoft | last post by:
Hello My Name is Mike Am from Nigeria a student of computer Science, Pls i want your You to help in Using VISUAL BASIC 6.0 AND MS SQL SERVER AS DATABASE AS A CLIENT SERVER SIDE pLS: I...
0
by: sonuindia88 | last post by:
Some common confusions .I am reading Ritchie and Deitel and practising questions from Yashwant Kanetkar...Here are some of the confusions i am having..your help is required.... Q1) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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...

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.