Help with error on procedure

Error is
ORA-06550: line 1, column 71:
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
ORA-06550: line 1, column 71:
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 problem is I don't have < or > in my procedure. The error shows when I call procedure from c# using OleDb provider. Any help with this. The procedure works fine from sql developer.

Hi Marcus ,
I did the same thing on my database based on the script you had given.
Please go through it.
SQL> create table location(location_number number, location_id number, usage_id number);
Table created.
SQL> insert into location values(10,20,30);
1 row created.
SQL> insert into location values(11,21,31);
1 row created.
SQL> create table usage( usage_number number, usage_id number);
Table created.
SQL> insert into usage values(50,30);
1 row created.
SQL> insert into usage values(60,40);
1 row created.
SQL> commit;
Commit complete.
SQL> create or replace
PROCEDURE P_GET_ALL(
p_place in number,
2 p_location out number,
3 4 p_usage out number)
5 6 is
begin
7 select loc.location_number into p_location from location loc where
8
loc.location_id=p_place;
select us.usage_number into p_usage from usage us where us.usage_id=(select
loc.usage_id from location loc where loc.location_id=p_place);
end; 9 10 11 12 13 14
15 /
Procedure created.
Hope it would help you. :)
Thanks,
Balaji K.

Similar Messages

  • Need Help With a Stored Procedure

    Help With a Stored Procedure
    Hi everyone.
    I am quite new relative to creating stored procedures, so I anticipate that whatever help I could get here would be very much helpful.
    Anyway, here is my case:
    I have a table where I need to update some fields with values coming from other tables. The other tables, let us just name as tblRef1, tblRef2 and tblRef3. For clarity, let us name tblToUpdate as my table to update. tblToUpdate has the following fields.
    PlanID
    EmployeeIndicator
    UpdatedBy
    CreatedBy
    tblRef1, tblRef2 and tblRef3 has the following fields:
    UserName
    EmpIndicator
    UserID
    In my stored procedure, I need to perform the following:
    1. Check each row in the tblToUpdate table. Get the CreatedBy value and compare the same to the UserName and UserID field of tblRef1. If no value exists in tblRef1, I then proceed to check if the value exists in the same fields in tblRef2 and tblRef3.
    2. If the value is found, then I would update the EmployeeIndicator field in tblToUpdate with the value found on either tblRef1, tblRef2 or tblRef3.
    I am having some trouble writing the stored procedure to accomplish this. So far, I have written is the following:
    CREATE OR REPLACE PROCEDURE Proc_Upd IS v_rec NUMBER;
    v_plan_no tblToUpdate.PLANID%TYPE;
    v_ref_ind tblToUpdate.EMPLOYEEINDICATOR%TYPE;
    v_update_user tblToUpdate.UPDATEDBY%TYPE;
    v_created_by tblToUpdate.CREATEDBY%TYPE;
    v_correct_ref_ind tblToUpdate.EMPLOYEEIDICATOR%TYPE;
    CURSOR cur_plan IS SELECT PlanID, EmployeeIndicator, UPPER(UpdatedBy), UPPER(CreatedBy) FROM tblToUpdate;
    BEGIN
    Open cur_plan;
         LOOP
         FETCH cur_plan INTO v_plan_no, v_ref_ind, v_update_user, v_created_by;
              EXIT WHEN cur_plan%NOTFOUND;
              BEGIN
              -- Check if v_created_by has value.
                   IF v_created_by IS NOT NULL THEN
                   -- Get the EmpIndicator from the tblRef1, tblRef2 or tblRef3 based on CreatedBy
                   SELECT UPPER(EmpIndicator)
                        INTO v_correct_ref_ind
                        FROM tblRef1
                        WHERE UPPER(USERNAME) = v_created_by
                        OR UPPER(USERID) = v_created_by;
                        IF v_correct_ref_ind IS NOT NULL THEN
                        -- Update the Reference Indicator Field in the table TRP_BUSPLAN_HDR_T.
                             UPDATE TRP_BUSPLAN_HDR_T SET ref_ind = v_correct_ref_ind WHERE plan_no = v_plan_no;
                        ELSIF
                        -- Check the Other tables here????
                        END IF;
                   ELSIF v_created_by IS NULL THEN
                   -- Get the EmpIndicator based on the UpdatedBy
                        SELECT UPPER(EmpIndicator)
                        INTO v_correct_ref_ind
                        FROM tblRef1
                        WHERE UPPER(USERNAME) = v_update_user
                        OR UPPER(USERID) = v_created_by;
                        IF v_correct_ref_ind IS NOT NULL THEN
                        -- Update the Reference Indicator Field in the table TRP_BUSPLAN_HDR_T.
                             UPDATE TRP_BUSPLAN_HDR_T SET ref_ind = v_correct_ref_ind WHERE plan_no = v_plan_no;
                        ELSIF
                        -- Check the Other tables here????
                        END IF;
                   END IF;
              END;
         END LOOP;
         CLOSE cur_plan;
         COMMIT;
    END
    Please take note that the values in the column tblToUpdate.UpdatedBy or tblToUpdate.CreatedBy could match either the UserName or the UserID of the table tblRef1, tblRef2, or tblRef3.
    Kindly provide more insight. When I try to execute the procedure above, I get a DATA NOT FOUND ERROR.
    Thanks.

    Ah, ok; I got the updates the wrong way round then.
    BluShadow's single update sounds like what you need then.
    I also suggest you read this AskTom link to help you see why you should choose to write DML statements before choosing to write cursor + loops.
    In general, when you're being asked to update / insert / delete rows into a table or several tables, your first reaction should be: "Can I do this in SQL?" If you can, then putting it into a stored procedure is usually just a case of putting the sql statement inside the procedure header/footers - can't really get much more simple than that! *{;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help with error 16820

    help with error 16820 with trying to update acrobat

    Please refer to following links, might be helpful.
    http://answers.acrobatusers.com/While-updating-acrobat-error-code-showd-16820-solve-q7115. aspx
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_programs/acrobat-co m-will-not-update-getting-error-16820/7bbbef64-df3e-4fbd-b552-fc1c7a5983c3?msgId=dcf838d8- a198-4a3a-b034-94a07c2e8648
    If this doesn't work, we need more information here.

  • Need help with error message 213:8

    Need help with error message 213:8, this error message prompted after re-installing CS5.5 on the same machine (W7 Pro)
    Thanks.

    Hi TKA_,
    Please try the solutions mentioned on following forum thread.
    http://support.muse.adobe.com/thread/1305941?start=0&tstart=0
    Let me know if it works?
    Regards,
    Sumit Singh

  • Adobe help with error FF2F571A-6C54-31E3-B23E-2A60283B08A8

    Adobe help with error FF2F571A-6C54-31E3-B23E-2A60283B08A8

    Nobody can tell you anything without proper system info or other technical details. What you posted is merely an identifier of the error report sent to Adobe, but that is locked away safely on teh servers and nobody here has access to it.
    Mylenium

  • Help with Errors please!

    Hi, I'm building a Flash website.
    I've used frames with names to contain the different 'pages'
    of the site. On the frame called 'SVHS1' I've built an XML mp3
    player with buttons and a volume slider.
    I'm having a couple of problems with this section of the
    site.
    Firstly: when I 'test movie' and navigate to the mp3 player
    section it all works fine, the mp3s load correctly, the playback
    controls work fine, and the volume slider does what it's supposed
    to do. But if I've used the volume slider to adjust the volume (and
    only then) and then navigate to the next frame 'SVHS2' (or any
    frames that are later in the main timeline) I get multiple
    occurrences of the following error in the output pane:
    TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    At PSPWebsite1_fla::MainTimeline/adjustVolume()
    I understand (from reading other posts/help etc.) in
    principle what is causing this, but my knowledge of AS3 is too
    limited to know exactly what is wrong with my script or how to fix
    it.
    Secondly: if I press the stop button on my mp3 player and
    then navigate to another frame (any frame before or after
    ‘SVHS1’) the site works fine, and the mp3 player works
    perfectly if I go to that frame again. But if I navigate to another
    frame without first stopping the song it continues to play even
    though I’m not on the mp3 player frame, and if I go back to
    the mp3 player before the song has finished it starts playing
    automatically from the beginning of the first song in the XML list
    again and simply doubles up the sound, which is horrible. When this
    happens the playback controls only affect the 2nd version
    (understandably).
    I think this is probably quite simple to fix, assuming that I
    have to write some script that tells the mp3 player to stop playing
    if/when the user navigates away from that frame...but I don’t
    know how to do this.
    Any help with either of the above would be much appreciated.
    The attached script is for the mp3 player frame.

    You can consider the trace function as being a "can you hear
    me now" helper (instead of an annoying tv commercial gimmick). It
    displays whatever it's told to in the same output window that you
    see that error message come up in. There are two ways I'll usually
    use it.
    I'll often end up simply using a trace("here"); as a means of
    seeing where a process is getting hung up. I gradually move that
    line of code thru what I know to be the step by step sequence of
    the code until "here" no longer shows up. It normally indicates
    that the preceding line of code is where the ball got dropped.
    In AS3, which is often a little more helpful when it trips on
    something, such as the error message you received which tells you
    there's a problem in the adjustVolume function, you can use it to
    see what element in that function is either undefined or out of
    scope.
    Place... trace(vol); ... just after the first line of code in
    that function to see if vol is a number. If it is, then you know
    that line is okay and you can move on to check the next line. If it
    isn't a number, then move the trace before that line and change it
    to... trace(volume_mc.slider_mc.x); ... and see if it is a value.
    If it isn't, then change the trace to check to see what
    trace(volume_mc); results in.... so on and so on.
    It's basically a process of working your way thru code to
    narrow down what piece is the undefined/out-of-scope (or a syntax
    error) element that is causing the problem.

  • Please help with error message while trying to update i tunes

    Errors occurred while installing the updates, if the problem persists, choose tools, download only and installing manually

    When i try and download i-tunes i get a message about URBCHN1 not being a win32 command, or something similar.
    ... that's an unusual one.
    could you possibly send us a screenshot of the error message box? for instructions, see the following user tip:
    hudgie: Taking screenshots to help with problems

  • Help with error U44M1I210(unable to extract . . . . .)  Also file location of Camera Raw in PS CC and location of compressed CC downloads

    Adobe has not been a big help with this.  If anyone knows what might be causing this error  - great, pls post.  Otherwise, in order to work the problem myself, I need to know the file locations of Camera Raw within PS CC and also the file location of where Adobe CC places the d/l'd compressed version.  Thanks much, Gerry

    U44M update error http://forums.adobe.com/thread/1289956
    --more U44.. discussion http://forums.adobe.com/thread/1275963

  • Need help with error: No bootable device -- insert boot disk and press any key

    Hello, I need help will my laptop and the error, the message says "no bootable device ", I have tried taking out the hard drive but it still doesn't work. My laptop is a Satillite C55D-A5372. I need help with this; if you know about this ans know how to fix it please reply or email me @ [email protected]
    If needed more clarifications ask me.
    Thank you,
    Jkmano

    if you got into the bios/uefi and have determined that the hdd is being detected then that is good.  At least the hdd is operating to some extent, although still may be corrupt OS or the like.
    Eagle asked you what OS your using (i.e., Windows 8.1 64-bit, Windows 7 32-bit, etc.).  I see that English is not your native language so we'll just have to work with that as best we can. 
    Did you make any changes to the operating system (OS) as a result of the link you posted, and what were they? 
    L305-S5955, T9300 Intel Core 2 Duo, 4GB RAM, 60GB SSD, Win 7 Ultimate 64-bit

  • Need help with error code 150:30

    need help with finding out what error code 150:30 is and how to fix it

    See the following:
    Error 150:30 - Error "Licensing has stopped working" | Mac OS :
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html

  • Need help with error: XML parser failed: Error An exception occurred! Type:......

    <p>Need help with the following error.....what does it mean....</p><p>28943 3086739136 XML-240304 3/7/07 7:13:23 PM |SessionNew_Job1<br /><font color="#ff0000">28943 3086739136 XML-240304 3/7/07 7:13:23 PM XML parser failed: Error <An exception occurred! Type:UnexpectedEOFException, Message:The end of input was not expected> at</font><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM line <7>, char <8> in <<?xml version="1.0" encoding="WINDOWS-1252" ?><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfigurations><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfiguration default="true" name="Configuration1"><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <case_sensitive>no</case_sensitive><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <database_type>Oracle</database_type><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_alias_name1>ODS_OWNER</db_alias_name1><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_ali>, file <>.<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM |SessionNew_Job1<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM XML parser failed: See previously displayed error message.</p><p>Any help would be greatly appreciated.  It&#39;s something to do with my datasource and possibly the codepage but I&#39;m really not sure.</p><p>-m<br /></p>

    please export your datastore as ATL and send it to support. Somehow the internal language around configurations got corrupted - never seen before.

  • Help with Command - Stored Procedure

    Hi all,
    I'm having a great deal of difficulty getting my head around
    an update command / stored procedure, I've pulled out all of my
    books and spent the last two days on Google which has made my
    confusion worse. In simple terms what I'm trying to do is update a
    field in a table with the value y, but based on certain criteria.
    So my table has the following fields -
    JBAID
    JBASiteID
    JBADatePosted
    JBAPostFor
    JBANotified
    What i want to do is update the value of field JBANotified on
    all records that meeting the following criteria to Y
    The criteria is -
    WHERE DATEADD(d,JBAPostFor,JBADatePosted) BETWEEN DATEADD(d,
    -7, GETDATE()) AND GETDATE() AND JBANotified = 'n' AND JBASiteID =
    MMColParam (where MMColParam is Session("SITEID"))
    So I've just tried building a command / stored procedure -
    which reads (see attached code)(more than likely all wrong)
    The things that I cant get my head around are -
    Firstly getting the code right in the first place, running
    the command on page load and then when the command has run
    redirecting to the next page.
    I really would appreciate some help with this -
    thanks all

    Ed Stewart wrote:
    > Are you using CS3 with ASP/VBScript? There is a bug in
    the command
    > implementation that has this function broken.
    >
    > I asked about it in this forum several months ago, but
    now I can't find my
    > original post, but I did find another post that talks
    about the same thing:
    >
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=26
    > 3&threadid=1281539&enterthread=y
    >
    > My solution is to drop back to DW8 for command editing,
    but use CS3 for
    > everything else. I don't know what you're supposed to do
    if you don't have an
    > earlier version.
    >
    > It looks like your sql is correct, but the bug prevents
    the second code block
    > is not being updated with the correct values.
    >
    > I hope a solution is forthcoming....
    >
    Create a stored procedure and then use a recordset to
    exectute it,
    making sure the recordset has matching parameters that the
    stored
    procedure expects.
    Commands are broken, I reported it to Adobe and they said it
    might get
    fixed in the next version.
    Steve

  • Help with error:"ora-27101 shared memory realm does not exist"

    Hello friends of the forum:
    I would like to help me with a question imortante I am very new to this aspect of oracle:
    And install Oracle 11g on win "view" and followed the steps in the installation of l at the start page www.oracle.com funcionava all fine, but after a month of any change:
    The database does not start qe and get an error "ora-27101 shared memory realm does not exist".
    At first and solved momentarily reboot oracle service ...... but after a while does not work but I can not conextar to leave the base because this errror ......
    The database is a lapto instalao .... and I have 100gb of free space and 4 gb of memory do not understand why this happens .....
    I have to do so you can have acces oracle based ...
    I can help with this problem .... thanks ....
    I like to see that show me with pictures as I am new in this aspect of oracle .... and want to learn it .... thank you very much

    Hello friend..
    The error you are getting *"ORA-27101: shared memory realm does not exist"* may be coz you are trying to connect to your database which is already shutdown not as sysdba user but as some other user, becoz of which you are getting this error. It sometimes happen that the service of the database is already started but when you try to connect to a shutdown database as users other then sys even having the DBA priviledges you cannot connect to database.
    Try to connect as SYS user hope your problem will be resolved.
    Deepak Sharma

  • HELP WITH ERROR 2095

    Can any one help me with error message 2095 on quicktime? i have tryed to uninstall it with add/remove programs but it says the following file does not exist or is not a valid uninstallation log file C:\WINDOWS\system32\quicktime\uninstall.log
    ???!!!??? and because of this i can not open itunes and everytime i try to it tells me that itunes as ran into a problem and has to close
    i have read online that i can uninstall quicktime manually with safemode or something like that but i have no idea how to, so if any one at all has any helpful advice please reply
    thanks

    I posted this link to you yesterday, did it not work?
    http://discussions.apple.com/thread.jspa?threadID=799482&tstart=15
    Safe Mode is probably not going to be of much help. If the computer was re-starting on its own than it would help to stabilize the computer(in safe mode) to remove the driver causing it to re-start, your able to access the computer.

  • My macbook pro intel core duo 2 keeps restarting intermittenly. Help with error code.

    I have run a Hardware Test, and it gives the follwing error code. Can anyone tell me what this is? I recently had my logic board replaced within the last 3 months, so it shouldn't be a problem there.
    Thank you very much for any and all help.
    Error code:
    4SNS/I/40000000:TGOH-128.00

    Online references possible memory issue? Sensors?
    https://discussions.apple.com/thread/3140607?start=0&tstart=0
    Keep taking it back and they keep switching parts until the problem is gone.

Maybe you are looking for

  • Variable Engine crashes when querying a tag that doen't exist with OPC client

    Hi! I'm working on a system based on LV 2011 DSC.  The system is multi-node and uses Sahred Variables. We have a node that has everything available in the system and we would like to use the embedded OPC server in the Variable Engine to grab everythi

  • SAP SSM Standard vs SAP SSM Enterprise

    Hi Everyone, We would like to utilize SAP Strategy Management, however, we are still in the process of reviewing the functionality. Right now we are tangled between SSM Standard and SSM Enterprise. Can anyone give us an idea what's the difference bet

  • How to implement autocomplete?

    Hello, I have a String array with strings in non-alphabethical order. I would like to implement autocomplete (just like in IE address line) on a JTextField. I guess I'll need to put some listener on textfield, but which? And how to handle array - sor

  • Reinstallng mail 1.3

    When i set up the mail account something went wrong when entering my password. Now the account will not accept any password when i startup the program and hence i can not use the program. Is there a way to uninstall and reinstall this software? thank

  • Display issue-2006 Intel iMac

    Hi all. This just started today and it seems to only happen (twice now) after awaking from sleep mode and power-up. After waking from sleep, I can't use any keyboard shortcuts to restart my system, thus requiring me to "hard" boot the machine. Then i