How to clear this type of runtime error

good day,
I'm migration procedures sql server to oracle procedures
I am trying to run tank (39) plsql function is the correct way which follows and if this path is correct I am
Run the error as
create or replace 
procedure Sel_subgroup(key in varchar2,gradename in varchar2)
as
gid res_grades.grade_id%type;
gn res_grades.gradename_en%type;
stid sub_topics.subtopic_id%type;
stn sub_topics.subtopicname_en%type;
cc res_grades.countrycode%type;
estid exsub_topics.exsub_topics_id%type;
estn exsub_topics.exsubtopicname_en%type;
d_stmt varchar2(500);
type ref_cursor is ref cursor;
rc ref_cursor;
begin
d_stmt :='SELECT RG.Grade_ID,RG.Gradename_'||key||',ST.SubTopic_ID,ST.SubTopicname_'||key||', RG.CountryCode, 
Est.ExSub_Topics_ID, Est.ExSubTopicname_'||key||' from 
Res_Grades RG INNER JOIN Sub_Topics ST ON RG.Grade_Id= ST.Grade_ID 
INNER JOIN ExSub_Topics Est ON ST.SubTopic_ID = Est.Sub_Topics_Id 
Where Gradename_'||key||' = '''||gradename||'''';

open rc for d_stmt;
loop
fetch rc into gid,gn,stid,stn,cc,estid,estn;
if rc%found then
dbms_output.put_line(gid||gn||stid||stn||cc||estid||estn);
else 
exit;
end if;
end loop;
close rc;
commit;
end Sel_subgroup;
the screen output result:
Connecting to the database rasool.
Process exited.
Disconnecting from the database rasool.
Can u please help me,


thanking you,
Prakash

jeenesh sorry I am fresh I don't know it is case sensitive.i tried with "Pre - K" instead of "PRE - K" now, my code is working.sorry to bother guys
my code as follows...

create or replace
procedure Sel_subgroup(key in varchar2,gradename in varchar2,rc out sys_refcursor)
as
gid res_grades.grade_id%type;
gn res_grades.gradename_en%type;
stid sub_topics.subtopic_id%type;
stn sub_topics.subtopicname_en%type;
cc res_grades.countrycode%type;
estid exsub_topics.exsub_topics_id%type;
estn exsub_topics.exsubtopicname_en%type;
d_stmt varchar2(500);

begin
d_stmt :='SELECT RG.Grade_ID,RG.Gradename_'||key||',ST.SubTopic_ID,ST.SubTopicname_'||key||', RG.CountryCode,
Est.ExSub_Topics_ID, Est.ExSubTopicname_'||key||' from
Res_Grades RG INNER JOIN Sub_Topics ST ON RG.Grade_Id= ST.Grade_ID
INNER JOIN ExSub_Topics Est ON ST.SubTopic_ID = Est.Sub_Topics_Id
Where Gradename_'||key||' = '''||gradename||'''';

open rc for d_stmt;
loop
fetch rc into gid,gn,stid,stn,cc,estid,estn;
dbms_output.put_line(gid||gn||stid||stn||cc||estid||estn);
exit when rc%notfound;
end loop;
close rc;
commit;
end Sel_subgroup;
DECLARE
  KEY VARCHAR2(200);
  GRADENAME VARCHAR2(200);
  RC sys_refcursor;
BEGIN
  KEY := 'en';
  GRADENAME := 'Pre-K';

  SEL_SUBGROUP(
    KEY => KEY,
    GRADENAME => GRADENAME,
    RC => RC
  );
  /* Legacy output:
DBMS_OUTPUT.PUT_LINE('RC = ' || RC);
*/
  :RC := RC; --<-- Cursor
END;

Thank you for all your responses guys

Prakash

Tags: Database

Similar Questions

  • How to clear the Ref Cursor runtime error

    Hello everyone,
    the code as follows
    create or replace 
    procedure Country_sel(key in varchar2)
    as
    cc Res_RelcountryLan.countrycode%type;
    len Res_Language.langname_en%type;
    lid Res_Language.langid%type;
    ab Res_Language.Abrivation%type;
    type refcursorr is ref cursor;
    cur refcursorr;
    d_stmt varchar2(100);
    begin
    d_stmt := 'select RCL.countrycode,RL.langid,RL.langname_'||key||',
    RL.Abrivation from  Res_RelCountryLan RCL inner join Res_Language RL ON RCL.LangId = RL.LangId';
    open cur for d_stmt;
    loop
    fetch cur into cc,lid,len,ab;
    if cur%found then
    dbms_output.put_line(cc||lid||len||ab);
    else
    exit;
    end if;
    end loop;
    close cur;
    commit;
    end  Country_sel;
    When I run this code im getting
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "RASOOL.COUNTRY_SEL", line 11
    ORA-06512: at line 6
    can you please help me get rid of this problem.


    thanking you,
    Prakash
    
    d_stmt varchar2(100); 
    

    Increase the size of d_stmt. Your an a larger string assignment

    
    d_stmt := 'select RCL.countrycode,RL.langid,RL.langname_'||key||',RL.Abrivation from  Res_RelCountryLan RCL inner join Res_Language RL ON RCL.LangId = RL.LangId'; 
    

    The size of the string above is more than 100 characters.

  • How to create this type of drop shadow to a vector

    Hello!

    I wanted to ask you how to create this type of drop shadow to a vector in illustrator. I've seen these files and tried a lot to create that effect

    123.jpg

    The shadow under the letters make this beautiful banner.

    Any help would be appreciated.

    I wouldn't have the effect of "vector". I could do this:

    1. Select the text object
    2. The background/contour value 'None '.
    3. Add 2 attributes of filling level of the objects in the "appearance" Panel
    4. Give the top of the page a 'white' and low 'Black.
    5. Select the fill 'Black' and it has an effect of "blur".
    6. Set the transparency of the fill black to "multiply".
    7. Save the appearance as a 'chart' Style and assign to each character separately

    If you want to change the character of a select skin, make the changes, and 'Option' drag the thumbnail from the appearance on the graphical Style available today. The changes will appear at any location, the Style is used.

  • In Adobe Acrobat 10.0.0 comparing two pdf files, it automatically locks. Can you please share how to avoid this type of comparison file accidents?

    Hi all

    In Adobe Acrobat 10.0.0 comparing two pdf files, it automatically locks. Can you please share how to avoid this type of comparison file accidents? If anyone with the idea, please share it.

    Hi sathishk15640596,

    Follow this thread to reset the Acrobat preferences:- How to reset preference settings in format Acrobat.

    If you are on Windows OS, open Acrobat, go to the Help menu and repair the installation.

    I would like to know is what happening to the entire document or certain act.

    Please check with another account user as well as to reproduce the problem.

    Kind regards

    Christian

  • How to make this type of graphical overlays

    does anyone know how to do this type of overlays?

    Vehicle Systems Engineering B.V. - YouTube

    After Effects, possibly in parallel with a 3D software.

    Mylenium

  • How to add this type of effect in photoshop plugin

    How to add this type of effect in photoshop plugin

    facebook-20150225-193846.png

    There are commercial Photoshop actions available for this type of effect, if you search on GraphicRiver Photoshop-> Actions-> and then do a search for 'Paint' within these results. Here is an example:

    Effect of paint 20 - Photoshop Action | GraphicRiver

    I am not affiliated with that one either by the way, I just did a quick search there and it was one of the first results. You can also find people offering similar actions for free, you can follow step by step and see how it's done.

  • Please help me how to read this type of XML document that resids in clob

    Hello

    I am very new to this XML thing in the oracle. My question is I have the XML file that is stored in my table as the clob data type and I want to read this data XML file and insert them into different tables.
    We use a server Oracle version 9.2.0.2
    Any body can help me how to do this... It is very urgent. Here is the XML file that is stored in the table as a clob column.
    <? XML version = "1.0" encoding = "UTF-8"? >
    < base = 's1' id >
    < WalkList >
    < work >
    < WalkPath id = "wp1" >
    < debug >
    < name > < / name >
    < language > < / language >
    < / debug >
    < / WalkPath >
    < id Walker = "w1" >
    < debug > <!-include only when debug mode is on->
    < name > < / name >
    < language > < / language >
    < / debug >
    < / Walker >
    < UnidentifiedLocationList >
    < UnidentifiedLocation >
    < UnidentifiedRFID > < / UnidentifiedRFID >
    < sub > < / sub >
    < / UnidentifiedLocation >
    < UnidentifiedLocation >
    < UnidentifiedRFID > < / UnidentifiedRFID >
    < sub > < / sub >
    < / UnidentifiedLocation >
    < / UnidentifiedLocationList >
    < InspectedLocation id = "l1" > <!-WalkIn freezer->
    < > 0 x 00020001 RFID < / RFID >
    < sub > 25/05/2010 13:44:03 < / sub >
    < debug > <!-include only when debug mode is on->
    < name > < / name >
    < language > < / language >
    < / debug >
    < UnidentifiedInspectableItemList >
    < UnidentifiedInspectableItem >
    < UnidentifiedRFID > < / UnidentifiedRFID >
    < sub > < / sub >
    < / UnidentifiedInspectableItem >
    < UnidentifiedInspectableItem >
    < UnidentifiedRFID > < / UnidentifiedRFID >
    < sub > < / sub >
    < / UnidentifiedInspectableItem >
    < / UnidentifiedInspectableItemList >
    < InspectedItem id = "i1" > <!-example of automatic detection; Temp of freezer->
    < InspectedItemDebug > <!-include only when debug mode is on->
    < name > < / name >
    < language > < / language >
    < InspectableCategory >
    < id > < / ID >
    < name > < / name >
    < / InspectableCategory >
    < / InspectedItemDebug >
    < MeasurementEvent > <!-Doesnot apply to InspectableType - 'Manual of a pick list'->
    < > 0 x 00030001 RFID < / RFID >
    < sub > 25/05/2010 13:45:01 < / sub >
    <! - value only.no units - >
    < MeasuredValue > 45 < / MeasuredValue >
    <!--
    Only for the model manual-sense, meaning automatic and manual-entry
    ->
    < / MeasurementEvent >
    < ValidationEvent id = "v4" > <! - more high-end - >
    < sub > 25/05/2010 13:45:55 < / sub >
    <!-Not < ExceptionCondition > < / ExceptionCondition >->
    < / ValidationEvent >
    < FollowUpActionEvent id = "f1" > <! - adjusted to location - >
    < FollowUpActionComments > the temp is scope now. < / FollowUpActionComments >
    < sub > 25/05/2010 13:51:45 < / sub > <!-time recorded when user click-> next
    < / FollowUpActionEvent >
    < / InspectedItem >
    < InspectedItem id = "i2" > <!-yes/no/PR Type-->
    < InspectedItemDebug >
    < name > < / name >
    < language > < / language >
    < InspectableCategory >
    < id > < / ID >
    < name > < / name >
    < / InspectableCategory >
    < / InspectedItemDebug >
    < MeasurementEvent > <!-Doesnot apply to InspectableType - 'Manual of a pick list'->
    < RFID > < / RFID >
    < UnidentifiedInspectedItemRFID > < / UnidentifiedInspectedItemRFID >
    < sub > < / sub >
    < MeasuredValue > < / MeasuredValue > <! - only for manual-sense, meaning automatic and manual-entry types - >
    < / MeasurementEvent >
    < ValidationEvent id = "v2" > <!-user selects 'No'->
    < sub > 25/05/2010 13:53:02 < / sub >
    <!-Not < ExceptionCondition > < / ExceptionCondition >->
    < / ValidationEvent >
    < FollowUpActionEvent id = "f2" >
    < FollowUpActionComments > has called the concierge team. Wait for the cleanup.
    < / FollowUpActionComments >
    < sub > 2010-05-25 14:04:43 < / sub >
    < / FollowUpActionEvent >
    < ManagerClearanceEvent >
    < ManagerRFID > 0 x 00010002 < / ManagerRFID >
    < ManagersComments > cleaning confirmed < / ManagersComments >
    < sub > 25/05/2010 14:06:39 < / sub >
    < / ManagerClearanceEvent >
    < / InspectedItem >
    < / InspectedLocation >
    < / market >
    < / WalkList >
    < HealthCheckInfo >
    < SystemStats >
    < AvailableMemory > < / AvailableMemory >
    < AvailableDiskSpace > < / AvailableDiskSpace >
    < UsedDiskSpace > < / UsedDiskSpace >
    < / SystemStats >
    < WalkDataUplaod >
    < timeStampSinceLastUpload > < / TimeStampSinceLastUpload >
    < numberOfFailedUploads > < / NumberOfFailedUploads >
    < / WalkDataUplaod >
    < storeConfigDownload >
    < timeStampSinceLastDownload > < / TimeStampSinceLastDownload >
    < numberOfFailedDownloads > < / NumberOfFailedDownloads >
    < / storeConfigDownload >
    < errors > < / errors >
    < StoreConfigXML > < / StoreConfigXML > <!-include only when debug mode is on->
    < / HealthCheckInfo >
    < / store >
    -----

    Please help me how to play this file from this column and insert into different tables. Please answer me urgently...

    Thanks in advacne.

    Sudhakar

    Hello

    Any body can help me how to do this... It is very urgent. Here is the XML file that is stored in the table as a clob column.

    There are many examples here on the forum, you may have found yourself through the search function.
    I bet that any Internet search engine could also give useful answers.

    Anyway, here's a start with your sample xml (assuming that the document is stored in the column T.DOC):

    SELECT extractvalue(x1.column_value, 'InspectedLocation/@id') as "ID",
           extractvalue(x1.column_value, 'InspectedLocation/RFID') as "RFID",
           extractvalue(x1.column_value, 'InspectedLocation/EventTimeStamp') as "TIMESTAMP",
           extractvalue(x2.column_value, 'InspectedItem/@id') as "ITEM_ID",
           extractvalue(x2.column_value, 'InspectedItem/MeasurementEvent/RFID') as "ITEM_RFID",
           extractvalue(x2.column_value, 'InspectedItem/MeasurementEvent/MeasuredValue') as "ITEM_VALUE"
    FROM t,
         table(
           xmlsequence( extract(xmltype(t.doc), 'Store/WalkList/Walk/InspectedLocation') )
         ) x1,
         table(
           xmlsequence( extract(x1.column_value, 'InspectedLocation/InspectedItem') )
         ) x2
    ;
    

    He breaks some elements of your document into columns and relational rows so that you can just insert directly into your final tables.
    Let us know if it does not meet your needs or if you have problems with some fields.

    Edit: BluShadow was faster. I'm a slow typist, however...

    Published by: odie_63 on 9 July. 2010 11:36

  • How to clear the form after the error

    Hi friends

    Use oracle 10 g forms in windows xp sp2, I'm doing a form accepting the user input to the editor only for practice because it is a first time I use the editor and all that just for the test and I need your help. to display the editor when the press operator in the text element, that I use (integrated Show_Editor) then the value entered in the editor will display in the text element, and there is a problem of query by this value. so far it's very well.

    If the operator to enter a wrong value the request that I made the alert for this message and I pulled the trigger of the error alert, but after the user press the button in the alert in the event of failure message incorrect value even in the text element.


    This is the first screen, now I insist in the EMP is
    http://i48.Tinypic.com/28us1l4.jpg

    It is the second screen. Here, you need to clear the message and enter a valid value, but assume that you enter
    an invalid value.
    http://i46.Tinypic.com/29pup07.jpg

    you get this message if you have entered an invalid value
    http://i50.Tinypic.com/2wg6gj6.jpg

    After, I press (OK) in the alert message. How can I delete an incorrect value in the text element
    I tried the clear_form in the trigger for the error, but I get the error
    http://i50.Tinypic.com/1znue1l.jpg

    Please show me how I can delete the text without error element

    any help or advice, that I enjoyed

    Thank you

    Hello

    Just use the following to clear the value of a text element:

     :block_name.field_name := NULL; 
    

    I hope this helps.

    Best regards

    Arif Khadas

  • How to get this type of photo colour balance?

    Hey guys, I am trying to find a way to get this type of photo, I guess I would call it the color balance, don't know how are at - it front of post-processing or how much is added in in post processing. Here is the site I've seen this "color balance" Designskolen Kolding , if you scroll down to the banner to enlarge photos with titles "Mode", "Industrielt Design", "Hacker Lab", "Tryk" is those that I will speak and I saw this kind of post processing all over the web, the only way I can describe it as is the colors white and rich; like the white balance is very neutral, maybe it's just a bit in the blue spectrum and there are many whites present but not completely blown, and the real colors are still very rich, but not saturated. This is an unaltered jpeg from my picture, I am trying to make it look like.yaka.jpg

    Hi mblaney,

    Go to Image > adjustments > Color Balance and try to play with colors to see a similar result, because there is no specific color for this type of effect setting

    It will vary according to the pictures

    Kind regards

    Tanuj

  • I was wondering how to get this type of transititon

    Hello

    I edit several images and I wanted to know if there was a way to get this type of transition: http://cdn.makeagif.com/media/9-12-2015/pDRvUu.gif

    If so, how?

    Thank you

    It resembles a dissolution on the lower rail and melted on the top track.

  • "No program can be found to open this type of file" error trying to download CS6 Web and Design Premium

    I have CS6 Web and Design Premium I downloaded from a store of educational software in 2012. I have the serial numbers and the product key. I am trying to install the software on my new laptop computer and after I download the first two files on the CS6 downloads page as my computer opens with a message like "no program are to open this type of file. The file is not found on my computer either. It takes 3-4 hours to download and I tried it twice. My computer using Windows 7 Professional. He meets more than all the installation requirements. Can anyone help? I need for a course that starts today!

    Download the .7z and the instructions .exe file:

    Start the program installation after the download Acrobat X, CS5.5 and earlier versions

    Then double-click on the .exe file and follow the prompts on the screen.

    Important: Some Windows product downloads include two files: a file .exe and .7z file. To install the software, it is necessary that the two files are downloaded and located in the same folder. Otherwise, an error may occur when you start the Setup program. Errors are "Windows cannot open this file" and "file archive part Adobe [product name] is missing."

  • Type mismatch runtime error 800a00d MSVBScript

    Title: MSVBScript original error

    Error: Type mismatch 800a00d to TIME MSVBScript error 'Open Conn' / includes/content_left to 11 asp.line

    Please respond to the * address email is removed from the privacy * I can not enter or find my main email account either. I've added files

    My each of my other accts containing in the newly created hotmail and I just can't find them. Windows says contact

    MS because they cannot fix.  I'm a newbie... Anyway this time I guess I can ask for that much help. I have

    know you people need EXACT wording error :)   If I need to fix it manually with your advice, remember pls I

    don't know much thing to do anything whatsoever.

    Hello

    1. what operating system is installed on the system?

    2. when exactly you get this error message?

    3. did you of recent changes to the system?

    4. Since when are you facing this problem?

    If you receive this error while browsing the Internet with Internet Explorer, then you can follow the steps below.

    (a) click the Start button

    (b) Select all programs

    (c) , click on Accessories

    (d) right-click on the command prompt

    (e) select run as administrator

    Type regsvr32 jscript.dll /u and press enter
    type regsvr32 jscript.dll , press enter
    type regsvr32/u vbscript.dll , and then press enter
    type regsvr32 vbscript.dll , and then press enter

    (f) close the command prompt and look for the question.

    See also:

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

    If you have any problem with Hotmail, you can post the question on the link below for assistance.

    http://windowslivehelp.com/product.aspx?ProductID=1

  • How to unlock in case of runtime error

    Hello

    I have a block of not locked using two steps to lock mode Lock and Unlock start synchronization. If a step in the section errors out and the operator selects go to cleaning, the lock remains locked, because the unlock step is skipped. What is a good way to handle this? If I put an unlock to clean, it will generate an error when the section is executed without error and lock is already unlocked. There seems to be no way to check the lock status / unlocked a sluice.

    The only thing I can think of is to just unlock the cleaning steps.

    CC

    DowNow,

    It works for me.

    Consider this example:

    Hope this helps,

  • How to make this type of curve on top only?

    How do you get the type of curve on top and always flat on the base line?

    thermography,

    How about a negative curvature?

  • How to clear this?

    I started a few weeks ago in Lightroom and imported the photos without understanding how do so consistently. Not that I have the knowledge I would like to start over. So how do "reset" and get all imports and created files deleted without disturbing my HD in C:?

    Thank you

    Lightroom.jpg

    The simplest method is to start a new, empty catalog.

    Choose file > new catalog.

    Specify the name and location of the new catalog folder and choose Save.

    Then you are ready to import. For existing folders on your hard drive using import > Add.

Maybe you are looking for