Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ORA-6502: numeric or value error. 8.1.5, NT

RE: ORA-6502: numeric or value error. 8.1.5, NT

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Tue, 04 Sep 2001 12:37:48 -0700
Message-ID: <F001.003825A6.20010904125153@fatcity.com>

Chris,
want to try something?

Create a local variable for the TITLE column (local to this procedure. Select the data into the local variable, then reassign it to your OUT variable and see if the same thing happens.

like::

l_study_title_out study.title%TYPE;

begin

select title into l_study_title_out from....;

study_title_out := l_study_title_out;

end;

see if you get the same error.
You can use DBMS_OUTPUT to depbug the steps if it helps.

I've seen stuff with selects and out variables that don't make sense sometimes.....

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
Sent: Tuesday, September 04, 2001 3:57 PM To: Multiple recipients of list ORACLE-L

Let's try that once more...

procedure get_study_info (study_id_in IN study.study_id%TYPE,
                          study_title_out OUT study.title%TYPE,
                          brief_title_out OUT study.brief_title%TYPE,
                          study_number_out OUT study.client_study_no%TYPE,
                          protocol_number_out OUT
study.sponsor_protocol_no%TYPE,
                          sponsor_out OUT company.company_name%TYPE,
                          cro_out OUT company.company_name%TYPE,
                          therapeutic_agent_out OUT
therapeutic_agent.therapeutic_agent%TYPE,
                          clinical_state_out OUT indication.indication%TYPE,
                          study_status_out OUT current_status.label%TYPE,
                          target_number_of_sites_out OUT
study.target_num_of_sites%TYPE,
                          target_number_of_subjects_out OUT
study.target_num_of_subjects%TYPE)
 IS
 BEGIN
    select title, brief_title, client_study_no, sponsor_protocol_no,
         sponsor_company.company_name sponsor_name,
         cro_company.company_name cro_name, ta.therapeutic_agent, 
         i.indication indication,
         cs.label current_study_status, nvl(target_num_of_sites, 0)
target_num_of_sites, 
         nvl(target_num_of_subjects, 0) target_num_of_subjects
    into study_title_out, brief_title_out, study_number_out, protocol_number_out,
         sponsor_out, cro_out, therapeutic_agent_out, clinical_state_out,
         study_status_out, target_number_of_sites_out,
target_number_of_subjects_out

    from study s, company sponsor_company, company cro_company, therapeutic_agent ta,

         indication i, current_status cs     where s.sponsor=sponsor_company.company_id

    and s.cro=cro_company.company_id (+)
    and s.therapeutic_agent_id=ta.therapeutic_agent_id
    and s.indication_id=i.indication_id

    and current_study_status_id=cs.current_status_id     and s.study_id=study_id_in;
 end get_study_info;

Hopefully, that will come out in a better format on the list...

BTW, per Tom's question the calling procedure also TYPE's the study title to the STUDY.TITLE table/column.

Chris

-----Original Message-----
Sent: Tuesday, September 04, 2001 3:10 PM To: Multiple recipients of list ORACLE-L

Chris,

Need to see the whole procedure ...

Raj



Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art !

*********************************************************************1

This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.

*********************************************************************1

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Grabowy, Chris
  INET: cgrabowy_at_fcg.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Sep 04 2001 - 14:37:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US