Error Message "PLS:707, unsupported construct or internal error "

I am having a Stored Procedure which runs most of the times successfully when executed.But all of a sudden it throws a error message
ERROR at line 1:
ORA-06553: PLS-707: unsupported construct or internal error [2601]
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
So to correct this problem, i just compile the procedure again without doing any change.After doing this it works fine.When i logout from Oracle and relogin and try to execute the same SP , it again throws the error message.I am in need of a solution for this problem at the earliest.So request you to provide the feedback at the earliest.
I am using
Oracle8 Release 8.0.5.0.0
PL/SQL Release 8.0.5.0.0
I have attached the source code below.
CREATE OR REPLACE PROCEDURE Gen_SinPrjEff(Sp_Proj_Id IN NUMBER,
Sp_Emp_Id IN VARCHAR2,
Sp_Start_Date IN VARCHAR2,
SP_End_Date IN VARCHAR2)
IS
Date_Null NUMBER(1) := 0;
CURSOR prjeff IS
SELECT aa,
bb,
dd,
sum(ee)
FROM ( SELECT 'ProjectEffort' aa,
RPAD(SUBSTR(b.employeename,1,20),20,' ') bb,
'' dd,
SUM(a.hourstoday) ee
FROM timesheetentry a,
employeemst b,
project c,
project d
WHERE a.entryfromprojectid = Sp_Proj_Id
AND a.projectid = Sp_Proj_Id
AND c.projectid = a.entryfromprojectid
AND d.projectid = a.projectid
AND b.employeeno = a.employeeno
AND ((Date_Null = 9) OR ((Date_Null = 1) AND
(a.entrydate BETWEEN TO_DATE(Sp_Start_Date,'DD-Mon-YYYY') AND
TO_DATE(Sp_End_Date,'DD-Mon-YYYY'))))
GROUP BY RPAD(SUBSTR(b.employeename,1,20),20,' '),
SUBSTR(d.projname,1,30)
UNION
SELECT 'ProjectEffort' aa,
RPAD(SUBSTR(b.employeename,1,20),20,' ') bb,
'' dd,
SUM(a.hourstoday) "ee"
FROM timesheetentry a,
employeemst b,
project c,
project d
WHERE a.entryfromprojectid <> Sp_Proj_Id
AND a.projectid = Sp_Proj_Id
AND c.projectid = a.entryfromprojectid
AND d.projectid = a.projectid
AND b.employeeno = a.employeeno
AND ((Date_Null = 9) OR ((Date_Null = 1) AND
(a.entrydate BETWEEN TO_DATE(Sp_Start_Date,'DD-Mon-YYYY') AND
TO_DATE(Sp_End_Date,'DD-Mon-YYYY'))))
GROUP BY RPAD(SUBSTR(b.employeename,1,20),20,' '),
SUBSTR(d.projname,1,30)
GROUP BY aa,bb,dd
UNION
SELECT 'ProjectOthers',
RPAD(SUBSTR(b.employeename,1,20),20,' ') "Employee Name",
RPAD(SUBSTR(d.projname,1,30),30,' ') dd,
SUM(a.hourstoday) "Effort Spent"
FROM timesheetentry a,
employeemst b,
project c,
project d
WHERE a.entryfromprojectid = Sp_Proj_Id
AND a.projectid <> Sp_Proj_Id
AND c.projectid = a.entryfromprojectid
AND d.projectid = a.projectid
AND d.swonflag = 0
AND b.employeeno = a.employeeno
AND ((Date_Null = 9) OR ((Date_Null = 1) AND
(a.entrydate BETWEEN TO_DATE(Sp_Start_Date,'DD-Mon-YYYY') AND
TO_DATE(Sp_End_Date,'DD-Mon-YYYY'))))
GROUP BY RPAD(SUBSTR(b.employeename,1,20),20,' '),
SUBSTR(d.projname,1,30)
UNION
SELECT 'SwonEffort',
RPAD(SUBSTR(b.employeename,1,20),20,' ') "Employee Name",
RPAD(SUBSTR(d.projname,1,30),30,' ') "Project To",
SUM(a.hourstoday) "Effort Spent"
FROM timesheetentry a,
employeemst b,
project c,
project d
WHERE a.entryfromprojectid = Sp_Proj_Id
AND a.projectid <> Sp_Proj_Id
AND c.projectid = a.entryfromprojectid
AND d.projectid = a.projectid
AND d.swonflag = 1
AND b.employeeno = a.employeeno
AND ((Date_Null = 9) OR ((Date_Null = 1) AND
(a.entrydate BETWEEN TO_DATE(Sp_Start_Date,'DD-Mon-YYYY') AND
TO_DATE(Sp_End_Date,'DD-Mon-YYYY'))))
GROUP BY RPAD(SUBSTR(b.employeename,1,20),20,' '),
SUBSTR(d.projname,1,30);
Eff_Type admin32.prjeffdata.prjefftype%type;
Proj_Name admin32.prjeffdata.projname%type;
Emp_Name admin32.prjeffdata.empname%type;
Proj_Eff admin32.prjeffdata.projeff%type;
Tmp_Dind admin32.prjeffdata.del_ind%type;
BEGIN
-- dbms_output.put_line('Begin');
Tmp_Dind := NULL;
TmP_Dind := LPAD(LTRIM(RTRIM(Sp_Emp_Id)),6,'0') || LPAD(LTRIM(RTRIM(TO_CHAR(Sp_Proj_Id))),5,'0');
IF (Sp_Start_Date IS NULL) THEN
Date_Null := 9;
ELSE
Date_Null := 1;
END IF;
dbms_output.put_line(to_char(date_null));
DELETE prjeffdata
WHERE del_ind = LPAD(LTRIM(RTRIM(Sp_Emp_Id)),6,'0') || LPAD(LTRIM(RTRIM(TO_CHAR(Sp_Proj_Id))),5,'0');
COMMIT;
OPEN prjeff;
LOOP
Eff_Type := NULL;
Proj_Name := NULL;
Emp_Name := NULL;
Proj_Eff := NULL;
FETCH prjeff
INTO Eff_Type,
Emp_Name,
proj_Name,
proj_Eff;
EXIT WHEN prjeff%NOTFOUND;
INSERT INTO prjeffdata(prjefftype,
empname,
projname,
projeff,
del_ind)
VALUES (eff_type,
emp_name,
proj_name,
proj_eff,
Tmp_Dind);
--dbms_output.put_line(eff_type || ',' || emp_name || ',' || proj_name );
END LOOP;
CLOSE prjeff;
COMMIT;
--dbms_output.put_line('End');
EXCEPTION
WHEN NO_DATA_FOUND THEN
dbms_output.put_line('Error');
WHEN OTHERS THEN
dbms_output.put_line('Error');
END

This is what works on 8.1.7. I don't know the svrmgrl name in 8.0.5, but it should be in your %ORACLE_HOME%/bin
> cd %oracle_home%\rdbms\admin
>svrmgr sys/<password>@dbname
SVRMGR> @standard
Statement processed.
Statement processed.
Statement processed.
SVRMGR> @UTLRP
if this doesn't work then do this
SVRMGR> @catalog
good luck

Similar Messages

  • Use SDO_NN in procedure: ERROR: PLS-00707: unsupported construct or internal error [2603]

    Hi,
    I have a problem with use SDO_NN function in a procedure. In case that I use SDO_NN in a SELECT command, it works. In case that I create an anonymous PL/SQL block, it works. But when I create a procedure, it doesn't work and there is an error: ERROR: PLS-00707: unsupported construct or internal error [2603].
    Here is the PL/SQL block, that works:
    BEGIN
    INSERT INTO K3_BlizkeDFB(SO1, SO2, VZDALENOST)
    SELECT  distinct
       ISO.kod AS SO1, SO.kod AS SO2, MDSYS.SDO_NN_DISTANCE(1) AS VZDAL
       FROM StavebniObjektDFB SO, StavebniObjektDFB_INDEX ISO 
       WHERE SDO_NN(ISO.geom,  SO.geom,
          'sdo_num_res=4', 1) = 'TRUE'
          AND ISO.kod<>SO.kod
          AND MDSYS.SDO_NN_DISTANCE(1)<=2;
    END;
    Here is an attempt to create a procedure that doesn't work:
    CREATE OR REPLACE PROCEDURE K1_BlizkeDFB AS
    BEGIN
    INSERT INTO K3_BlizkeDFB(SO1, SO2, VZDALENOST)
    SELECT  distinct
       ISO.kod AS SO1, SO.kod AS SO2, MDSYS.SDO_NN_DISTANCE(1) AS VZDAL
       FROM StavebniObjektDFB SO, StavebniObjektDFB_INDEX ISO 
       WHERE SDO_NN(ISO.geom,  SO.geom,
          'sdo_num_res=4', 1) = 'TRUE'
          AND ISO.kod<>SO.kod
          AND MDSYS.SDO_NN_DISTANCE(1)<=2;
    END;
    Can someone explain, what's wrong?
    Thanks
    Jindra

    Hi Jindra,
    Googling your error message says that this is sqldeveloper issue.  You can verify this by compiling your procedure with sqlplus.  Sounds like you need to update your software.
    Cheers,
    Paul

  • [SOLVED] Error: PLS-00707: unsupported construct or internal error [2603]

    Hi all,
    I have a SP, when I try to compile with sqldeveloper I have this error
    Error: PLS-00707: unsupported construct or internal error [2603]
    If I change "CREATE OR REPLACE PROCEDURE getsimilar AS" with DECLARE (anonymous block) the code work perfectly...
    What am I doing wrong?
    this is SP
    CREATE OR REPLACE PROCEDURE getsimilar AS
    id NUMBER;
    score NUMBER;
    image ORDSYS.ORDImage;
    query_signature ORDSYS.ORDImageSignature;
    queryimg ORDSYS.ORDIMAGE;
    CURSOR getphotos IS
    SELECT id, ORDSYS.IMGScore(123) SCORE FROM imgstable WHERE
    ORDSYS.IMGSimilar(sign, query_signature,
    'color="1.00" shape="1.00" texture="1.00" location="1.00"',20,123) = 1 order by SCORE desc;
    BEGIN
    queryimg := ORDSYS.ORDIMAGE.init('FILE','BDMVFSUPLOADSEARCHTMP','test.jpeg');
    query_signature := ORDSYS.ORDIMAGESIGNATURE.init();
    DBMS_LOB.CREATETEMPORARY(query_signature.signature, TRUE);
    query_signature.generateSignature(queryimg);
    OPEN getphotos;
    LOOP
    FETCH getphotos INTO id, score;
    EXIT WHEN getphotos%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE('Image with ID ' || id || ' matches query image. score:' || score);
    END LOOP;
    CLOSE getphotos;
    DBMS_LOB.FREETEMPORARY(query_signature.signature);
    END;
    Edited by: Reny on 4-apr-2011 6.22

    Hi
    Try creating the procedure without the positional notation in your function call in the cursor (BTW, the positional params should be specified as <param> => <value>, not <param> = <value>). i.e just pass the values to your functional call as shown below and see if it works. Is this what you intend to do?
    I also suggest that you try and compile the procedure in SQLPLUS.
    CREATE OR REPLACE PROCEDURE getsimilar AS
    id NUMBER;
    score NUMBER;
    image ORDSYS.ORDImage;
    query_signature ORDSYS.ORDImageSignature;
    queryimg ORDSYS.ORDIMAGE;
    CURSOR getphotos IS
    SELECT id, ORDSYS.IMGScore(123) SCORE FROM imgstable WHERE
    ORDSYS.IMGSimilar(sign, query_signature,
    '1.00', '1.00', '1.00','1.00',20,123) = 1 order by SCORE desc;
    BEGIN
    queryimg := ORDSYS.ORDIMAGE.init('FILE','BDMVFSUPLOADSEARCHTMP','test.jpeg');
    query_signature := ORDSYS.ORDIMAGESIGNATURE.init();
    DBMS_LOB.CREATETEMPORARY(query_signature.signature, TRUE);
    query_signature.generateSignature(queryimg);
    OPEN getphotos;
    LOOP
    FETCH getphotos INTO id, score;
    EXIT WHEN getphotos%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE('Image with ID ' || id || ' matches query image. score:' || score);
    END LOOP;
    CLOSE getphotos;
    DBMS_LOB.FREETEMPORARY(query_signature.signature);
    END;Edited by: GG on Apr 4, 2011 11:25 AM
    Edited by: GG on Apr 4, 2011 11:34 AM

  • PLS-00707: unsupported construct or internal error [2603] XML%Type

    I'm currently using SQL Developer 3.0.4 (Details at bottom of thread) and get the following error when compiling a package:
    PLS-00707: unsupported construct or internal error [2603]
    The problem lies with an IN parameter which has a datatype of mytable.myxmlcolumn%type where the underlying myxmlcolumn has a datatype of SYS.XMLTYPE.
    This compile fine in SQL Plus and also in PL/SQL Developer but not in SQL Developer.
    Any ideas or assistance would be appreciated.
    About
    Oracle SQL Developer 3.0.04
    Version 3.0.04
    Build MAIN-04.34
    Copyright © 2005, 2011 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.4.37.59.31
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.2.04.34
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.6.0_25
    Oracle IDE     3.0.04.34
    Versioning Support     3.0.04.34

    Just an FYI: the status of the bug I logged for you is "Closed, Could Not Reproduce".
    As you can see, to pursue these potential bugs we really must have well-defined test cases. Searching, I can find other complaints of similar cases (compiles in SQL*Plus but not SQL Developer) on the web (but without any code details), so a bug probably does exist. Perhaps someone will eventually provide a reproducible test case.
    Thanks,
    Gary

  • 0 PLS-00707: unsupported construct or internal error [2603]

    I have several packages and their bodies which can be correctly imported into XE. However, when I recompile the body of some of the packages I get the PLS-00707... error. If I drop the body and then issue a "create or replace package body ..." with the same exact code, I do not get the error, but then again, on recompile I get the error.
    If before recompile, I execute the code, it runs correctly (apparently).
    Any idea?
    Thanks.

    Hakan,
    Likely you are hitting a bug in 10gR2, as you are not on the last patch release,10.2.0.4
    I recommend you visit Metalink and search for PLS-0707 to check whether my assumption is true and whether there is a fix available in 10gR2. You may of course request a backport, if it has been fixed in 11gR1 only.
    Sybrand Bakker
    Senior Oracle DBA

  • Unsupported construct or internal error (2601)

    Hi all,
    I use forms6i patch 17 with Oracle8i Enterprise Edition Release 8.1.7.4.1 .
    My four datablocks are based on packaged stored procedures , and yesterday I modified the packaged stored procedure source block and some of the package procedures and functions. I modified my form according to the new package procedures and functions signatures. But when compiling I got errors saying :
    Error 707 at line 1 , column 1
    Unsupported construct or internal error (2601)
    I tried to delete the query-procedures triggers and recompiling the form , but same results.
    So what to do ?
    Thank you very much indeed

    I found the solution !
    I realized that there were default values in the stored packaged procedures , and I added another defaulted argument to the the stored packaged procedure source block , but forms does not support this construct. Because I set value to this argument only for the second block , and for the others I do not set any value so I supposed that the default value was used. But forms does not support this , so I was forced to hardcode the value to set for the remaining argument.

  • "unsupported construct or internal error"

    I'm trying to call a procedure (via a concurrent request) using the FND_REQUEST.SUBMIT_REQUEST procedure in a WHEN-BUTTON-PRESSED trigger in my form and I keep getting an error when I try to compile the trigger code:
    Error 707 at line 1, column 1
    unsupported construct or internal error [2601]
    Below is the part of the code that is causing the problem (the call to the FND_REQUEST package). It will compile if I replace the "chr(0)" at the end of the parameter list with 80 or so "" (null) parameters to match the number of arguments specified in the SUBMIT_REQUEST procedure. But, this should not be necessary and causes problems then, b/c the procedure that is being called errors out with an error of "wrong number or types of arguments in call". This compiles fine with the chr(0) if i compile this type of construct in a database procedure. But, forms (6i) won't let me.
    This is very frustrating. Is there any way around this?
         v_req_id := FND_REQUEST.SUBMIT_REQUEST('XXROT','BHR_INV','',
                                                      '',FALSE,     v_no_param,v_trx_date_param,v_org_param,v_print_type,v_cust_param,v_trx_source_param,v_sort,v_email_cust,chr(0));

    I don't know the fnd_request.submit_request procedure, but i think the problem is related to a bug in forms 6i. If you call a stored procedure which has an optional date parameter, without supplying this parameter, then you will get this error.
    Include the default value explicitly in your call, and your problem should go away.

  • Ora-06553: pls-707 error

    Hi all,
    There was 8.1.5 of oracle 8i installed. Later I removed 8.1.5 and installed
    8.1.7 on the same pc. I am using the same database which was created at the time
    of installation of 8.1.5. Now when I am connecting to the database the following
    error message is appearing :
    ORA-06553: PLS-707 unsupported construct or internal error [2603]
    Error accessing package DBMS_APPLICATION_INFO
    Due to the above error I am unable to run some of my pl/sql codes from forms.
    Please, advise me how to solve the problem.
    Thanks,
    Firoz Ali

    This should fix it
    > cd %oracle_home%\rdbms\admin
    >svrmgr sys/<password>@dbname
    SVRMGR> @standard
    Statement processed.
    Statement processed.
    Statement processed.
    SVRMGR> @UTLRP
    if this doesn't work then do this
    SVRMGR> @catalog
    good luck

  • ERROR ORA-06553:PLS-707

    AFTER MIGRATION FROM 8.1.5 TO 8.1.7 VERSION
    USING WIZARD MIGRATION,
    THE MESSAGE ORA-06553:PLS-707 INTERNAL ERROR [2603] IS CONSTANT ON QUERYS
    null

    This should work
    > cd %oracle_home%\rdbms\admin
    >svrmgrl sys/<password>@dbname
    SVRMGR> @standard
    Statement processed.
    Statement processed.
    Statement processed.
    SVRMGR> @UTLRP
    if this doesn't work then do this
    SVRMGR> @catalog
    good luck

  • Can't access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser no

    When I try to access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser not supported at this time". This happened to me while using my IPhone 5, a friend that uses an IPhone 6, and another friend that uses a Samsung Galaxy S5. I just need for my employees to be able to access, complete and submit work orders created in formscentral from their phones. I would like to use the data collection feature in formscentral but at this point any suggestions on how to accomplish this are welcomed. Thank you

    Further info - I changed my security settings to allow apps from anywhere, and again tried to install.  I again got an error message
    that the update failed to install, and to contact Customer Support.

  • App store review page:billing add-country : i choose SL (Selangor). Error message: pls enter at most 3 letter or number for country. But there all is 2 letter. Cannot type ourself, all is preset. so can't create a review

    App store review page:billing address - country : i choose SL (Selangor).
    Error message: pls enter at most 3 letter or number for country.
    But what i can choose is all in 2 letter. Cannot type ourself, all is preset. so can't create a review and cannot use my app id to download or update application.

    madeline leo wrote:
    App store review page:billing address - country : i choose SL (Selangor).
    Error message: pls enter at most 3 letter or number for country.
    But what i can choose is all in 2 letter. Cannot type ourself, all is preset. so can't create a review and cannot use my app id to download or update application.
    Please enter at most 3 letters or numbers.  Two letters is fine with that instruction.

  • We are unable to sign in to iMessages, wifi connection is fine but we get the error message, pls check your network connection

    we are unable to sign in to iMessages, wifi connection is fine but we get the error message, pls check your network connection.  Does anyone know how to fix this

    there has been a big problem with facetime and imessage. The best solution for this case is to restore your device http://support.apple.com/kb/HT1414
    Make sure you back it up. and I would set up facetime before you reinstall your backup and  make sure its working.

  • Sometimes I get a message that reads " UNSUPPORTED Accessory is not supported" when I plug in my bluetooth transmitter to my gen 6 nano. Other times it works fine. Is there a fix for this?

    Sometimes I get a message that reads " UNSUPPORTED Accessory is not supported" when I plug in my bluetooth transmitter to my gen 6 nano. Other times it works fine. Is there a fix for this?

    Have you checker the connectors on both the transmitter and Nano for any signs of damaged, corroded pins?  It might help to take a can of compressed air to each.  The error message may be simply a result of the iPod Nano not getting a full connection with the transmitter at first.
    B-rock

  • Asset under construction in internal order

    Dear All,
        can any one tell me how to create Asset under construction in internal order...
    Suresh patipati.

    You must have a separate asset class for Asset Under construction(OAOA) with line item settlement selection.
    Create an asset(AS01) under AUC asset class
    Then create internal order through KO01 and in Settlement rule mention the
    Category as FXA
    Settlement Receiver: AUC Asset
    % as 100% or as you require
    Save the entries.
    Now enter the capital expenditure using this Internal order.  After you finish with the postings settle the internal order(KO88).  On Settlement the values are transferred to AUC asset from Internal order.
    Now use AIAB & AIBU to distribute and Settle the AUC asset values between Main asset(s).  Here also in the settlement rule you must enter the settlement receivers.

  • Error message in download.  Says 500 internal server error.  Anyone know why?

    I am updating my version of pages from the app store the download is almost complete and now I'm getting a error message that says 500 internal server error.  Does anyone know what's the cause of this?

    Basically the download has broken, keep it open and see if you can continue it later.
    Failing that you will have to restart, which Apple thinks is a trivial matter for everyone for such large downloads.
    Peter
    PS Such matters are best dealt with by the MAS support people, we are not Apple here.

Maybe you are looking for

  • IPhone 5 Not Recognised By iTunes 10.7

    Really have no idea here, just bought the phone and went to plug into itunes to restore from my old iPhone 4 back up and  the phoe does not get recognised by iTunes. Tried searching for the Apple Mobile Device USB Driver but looks like i do not have

  • Connect Gallery buttons rather than thumbnails?

    This seems like it should be easy, but I cannot figure out how to do this in AS3. And after pouring through several books and lots of sample projects, no one quite seems to be using this method to create galleries. The goal: A gallery with circles fo

  • I may have inadvertantly downloaded to Firefox 5 instead of 4 and can not open the application because it is not supported. Can I still download Firefox 4, which I intended to do?

    I wanted to upgrade from Firefox 3 to Firefox 4. But, after I completed the download and then tried to open the Firefox application, I received a pop-up message saying, "You cannot open the application "Firefox" because it is not supported on this ar

  • OpenGL.framework crashes

    hi everyone, my friend's mac is having a problem and i'm a pc system admin so my possibilities to help them are very limited. everytime they plug in the webcam to use with skype or even try to mount a dvd they get following error message: (command an

  • Wifi signal in my m4

    Hello, only i can to use the wifi conection at 3 meter maxim of my router, only when i have full signal. If i have medium signal or low i have not data or havent conection. I can use other phones without problem and with low signal. Thank.