PL SQL Compilation with error

Hi guys,
Sorry that i'm quite new to PL SQL and oracle. I having some issue on pl sql function as i implementing a CREATE OR REPLACE FUNCTION. Below is my syntax for my function.
create or replace function auth_Name ( v_auth_state IN varchar)
return varchar2 is
v_authName varchar;
BEGIN
select name into v_authName from employee
where
name= v_auth_state;
return v_authName;
end auth_Name;
But whenever I compile it will show "Function created with compilation errors". Isn't it supposed to show "Function created successfully"? anyone can guide me along with this?

Hi,
Welcome to the forum!
The immediate problem is that the local variable v_authName can't be declared as just VARCHAR. That's how you give the datatype of an argument (like v_auth_state) or the function's return type, but the local variable has to be given a length.
You could say something like:
v_authName varchar (20);but, since v_authName has to match a specific column from a specific table, it's better to define it as that column's type and length directly.
You might want to do the same for the argument and the return type, like this:
create or replace function auth_Name ( v_auth_state IN employee.name%TYPE)
return employee.name%TYPE is
     v_authName     employee.name%TYPE;
BEGIN
     select      name
     into      v_authName
     from     employee
     where
          name     = v_auth_state;
     return v_authName;
end auth_Name;
show errorsIt looks the function is just returning it's argument. Is that what you want? If not, describe what the function is supposed to do.
As written, the function will have a run-time error if there is not exactly one row in the employee table with the given name. What would you like to happen if there is no matching row in the table? How about if there are several?

Similar Messages

  • Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service -- Error 1335

    Hello,
    I am getting an error while using windows update or manually downloading and running
    SQLServer2012-KB2793634-x64.exe
    Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service  -- Error 1335. The cabinet file 'Redist.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from installation media,
    or a problem with this package.
    What can be done?
    Thanks
    Bye

    Hello,
    I am getting an error while using windows update or manually downloading and runningT
    SQLServer2012-KB2793634-x64.exe
    Product: Microsoft SQL Server 2012 Transact-SQL Compiler Service  -- Error 1335. The cabinet file 'Redist.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from installation media,
    or a problem with this package.
    What can be done?
    Thanks
    Bye
    This KB article was issued as fix for known Issue as per below link.
    http://support.microsoft.com/kb/2793634
    Now I assume you are getting this error because downloaded file seems corrupt to me.Can you download again and copy it to local disk and start running  from there.
    http://www.microsoft.com/en-in/download/details.aspx?id=36215
    Also make sure your installer is not corrupt.If you find it corrupt please download it from below link and install after that run the setup again
    http://support.microsoft.com/kb/942288
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • The Function TRACKIT65.SMSP_CHECKINANSWER has been compiled with errors

    I am trying to create a function, as listed below, and when it compiles it compiles with errors. The errors it lists are as follows:
    1) Line # = 1 Column # = 187 Error Text = PL/SQL: SQL Statement ignored
    2) Line # = 1 Column # = 222 Error Text = PL/SQL: ORA-00906: missing left parenthesis
    Here is the create function statement:
    CREATE FUNCTION "TRACKIT60"."SMSP_CHECKINANSWER" (p_answer_id NUMBER, p_user_id NUMBER, p_edit_token VARCHAR2, p_wasModified VARCHAR2 := 'N') RETURN NUMBER IS v_chkout VARCHAR(32);
    BEGIN
    SELECT CAST(checked_out AS VARCHAR2) INTO v_chkout FROM smAnswers
    WHERE answer_id = p_answer_id;
    IF (v_chkout = p_edit_token) THEN
    IF (p_wasModified = 'Y') THEN
    UPDATE smAnswers
    SET checked_out = NULL, edited_by = p_user_id, published_on = SYSDATE
    WHERE answer_id = p_answer_id;
    ELSE
    UPDATE smAnswers
    SET checked_out = NULL
    WHERE answer_id = p_answer_id;
    END IF;
    RETURN 0;
    ELSE
    RETURN 1;
    END IF;
    END smsp_CheckInAnswer;
    If anyone can see what I am missing I would really appreciate it.
    Thank you
    Chicago

    One thing your code is missing is formatting, enclosing code in { code } without spaces will allow formatting.
    Another is the precision of the VARCHAR2 size in your CAST statement.
    ME_XE?select cast('hi' as varchar2) from dual;
    select cast('hi' as varchar2) from dual
    ERROR at line 1:
    ORA-00906: missing left parenthesis
    Elapsed: 00:00:00.03
    ME_XE?select cast('hi' as varchar2(10)) from dual;
    CAST('HI'ASVARCHAR2(10))
    hi
    1 row selected.
    Elapsed: 00:00:00.01

  • Procedure with recursive query working in 11g compiles with error in 10g

    Hi, All,
    I have a procedure that recursively selects tree-like table (with ID-ParentID relationship). Query itself works perfectly and exactly like I need in 11g and procedure containing it compiles well. But when I try to create the same procedure in 10g then I get a message that procedure compiled with error. I have no other suspicions but on the WITH part of the procedure.
    The exact query is here (destination_tariff_zones is the tree-like table which refers to itself by parent_destination_tariff_zone_id):
    + open dtzl_cur FOR
    with dtree (nm, iid, alevel, wldcard, dtzindex)
    as (select dtz.iname, dtz.iid, 0, dtz.wildcard, rcdi.iindex
    from destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
    where dtz.parent_tariff_zone_id is null and
    dtz."rc_dimension_index_id" = rcdi.iid and
    rcdi."rc_dimension_id" = rcd.iid and
    rcd.rating_cube_id = rc_id and
    rcd.dimension_type_id = dim_type
    union all
    select dtz.iname, dtz.iid, dtree.alevel + 1,
    cast ((dtree.wldcard || dtz.wildcard) as varchar2(20)), rcdi.iindex
    from dtree, destination_tariff_zones dtz, rating_cube_dimension_indices rcdi, rating_cube_dimensions rcd
    where dtree.iid = dtz.parent_tariff_zone_id and
    dtz."rc_dimension_index_id" = rcdi.iid and
    rcdi."rc_dimension_id" = rcd.iid and
    rcd.rating_cube_id = rc_id and
    rcd.dimension_type_id = dim_type)
    select iid, nm, wldcard, dtzindex
    from dtree
    order by wldcard;+
    Is there any difference between how 11g and 10g handle WITH statements?
    Please advise.
    Thank you very much in advance,
    Max

    Max Afanasiev wrote:
    then is there any alternative to implement what I need?You can look at using CONNECT BY to emulate a recursive query. If you can post the following we may be able to help:
    1. Sample data in the form of CREATE / INSERT statements.
    2. Expected output
    3. Explanation of expected output (A.K.A. "business logic")
    4. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Area or view of sql sentences with error??

    Hi Gurus!
    I wanna know if is there any view or something like that, where I can look for a sql sentence with error?
    The views V$SQL, V$SQLAREA, V$SQLTEXT doesn't work for that because they have de last rigth sql sentences and I need the last with error.
    Thanks in advance.

    SQL Developer maintains a history of the SQL statements that it has issued over time. That is a purely client-side function, though, it just tells you what SQL has been issued by the local client. It doesn't tell you anything about what SQL has been sent to the server by other client applications on the client machine or from other client machines.
    Justin

  • Compiled with errors ... but "no errors" ... ?!

    Hi all,
    I am going crazy here.
    I am trying to migrate our code to 10g ...
    I have an issue with a package. I compile it with SQLDeveloper (hate that thing) and get some warnings, but no errors. Trying to start the package in sqlplus I get the message "invalid package" ...
    Then I type "alter package xxx compile debug" and get the info "compiled with errors". But when I type "show errors" it says "no errors" ...
    Does someone know how I teach this thing some sense?
    Thanks and merry Xmas and stuff,
    Steffi

    Usage: SHOW ERRORS [{ FUNCTION | PROCEDURE | PACKAGE
    |
    PACKAGE BODY | TRIGGER | VIEW
    | TYPE | TYPE BODY | DIMENSION
    | JAVA SOURCE | JAVA CLASS } [schema.]name]
    how err schema.package_nameRegards
    SinghThis really did it, thank you so much!!
    Unfortunately it does not really help me ... only some warnings on bind-variables ...
    LINE/COL ERROR
    110/24   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    110/30   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    114/24   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    114/30   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    LINE/COL ERROR
    118/24   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    118/30   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    122/24   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    122/30   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
    LINE/COL ERROR
             Spaltentyp führen
    186/12   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    186/34   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    187/12   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    LINE/COL ERROR
    187/34   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    227/12   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    229/12   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    229/34   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    LINE/COL ERROR
    230/12   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    230/34   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen
    357/53   PLW-07204: Konvertierung vom Spaltentyp weg kann zu einem
             nicht-optimalen Abfrageplan führen
    357/70   PLW-07204: Konvertierung vom Spaltentyp weg kann zu einem
    LINE/COL ERROR
             nicht-optimalen Abfrageplan führen
    364/30   PLW-07202: Bind-Typ würde zu einer Konvertierung weg vom
             Spaltentyp führen

  • @@/oracle/RSS/102_64/rdbms/admin/catproc.sql  Executed with error.

    Hi All,
    We are in process of  CU&UC  during the unicode process , we have exported the DB and during Import during  create database phase  we are facing this problem..
    Please suggest.....
    @@/oracle/RSS/102_64/rdbms/admin/catproc.sql
    exit;
    Executed with error.
    Thanks,
    Subhash.G

    Some more errors:
    Below error from sapinst.log for reference .
    INFO 2007-11-03 06:19:35 Removing file /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/SYSTEM/CENTRAL/AS-ABAP/ora_query3_tmp0_1.sql. INFO 2007-11-03 06:19:35 Creating file /tmp/sapinst_instdir/NW04S/LM/COPY/ORA/SYSTEM/CENTRAL/AS-ABAP/ora_query3_tmp0_1.sql. ERROR 2007-11-03 06:43:42 CJS-00084 SQL statement or script failed.
    DIAGNOSIS: Error message: ORA-955 for defaultdest ERROR 2007-11-03 06:43:45 MUT-03025 Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined. ERROR 2007-11-03 06:43:47 FCO-00011 The step runCatprocSql with step key |NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|runCatprocSql was executed with status ERROR . INFO 2007-11-03 06:53:37 An error occured and the user decide to stop.\n Current step "|NW_ABAP_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|runCatprocSql"
    Error from ora_sql.log
    @@/oracle/RSS/102_64/rdbms/admin/catproc.sql exit; Executed with error.
    Thanks

  • Dynamic SQL run with error 'ORA-29275: partial multibyte character'

    Hi All,
    In daily work, we use daynamic SQL to load data from another database through DB Link. However, even if I run the following simple statement in our DB, it will raise the error.
    CREATE TABLE TEST_TMP
    AS
    SELECT TRANSACTION_REASON
    FROM [email protected] --it is using db link.
    WHERE LAST_UPDATE_DATE>=TO_DATE('18-12-2012 22:01:58', 'dd-mm-yyyy hh24:mi:ss');
    This statement had been workng correctly before OCT-2012 and there was no change with the source. Afterwards, there was just a change which upgraded the DB version from 10g to 11g on our side. I have browsed my technical articles, but I still cannot find the root cause. Is it due to the updgrading of the DB which practice stricter sanity check?
    I don't know.
    I'd appreciate of you can give me suggestion if you know such case.
    Thanks,
    David

    David Paul wrote:
    Hi,
    Can you give me a full explaination about the DL http://vibhorkumar.wordpress.com/2011/02/27/fix-of-ora-29275-partial-multibyte-character/ you mentioned?
    I don't understand the query in it well.
    Thanks,
    DavidDon't confuse yourself... It's just saying to convert data into your local DB type...
    Check these queries -
    1] /* check this in both your LOCAL and REMOTE databases */
    select dump('a',1010) from dual;
    I got --
    Typ=96 Len=1 CharacterSet=AL32UTF8: 97
    So, my charset encoding is AL32UTF8. Similarly, find yours for both Local & Remote DBs.
    2]
    /* Then do */
    CONVERT(transaction_reason,'<local_charset>','<remote_charset>')Edited by: ranit B on Dec 22, 2012 5:46 PM

  • Function compiled with error

    can someone please assist
    CREATE OR REPLACE FUNCTION HR.is_leap_year (   date_in IN DATE)
        RETURN NUMBER
        AS   
        result NUMBER := 0;   
    BEGIN
            SELECT
                        CASE WHEN (
                                    MOD(EXTRACT(YEAR FROM date_in), 4) = 0 AND MOD(EXTRACT(YEAR FROM  date_in) ,100) != 0)                               
                                        OR MOD(date_in, 400) = 0   THEN 1   ELSE 0  END AS bit
                        INTO result
             FROM DUAL;
                RETURN result;
    END is_leap_year ;
    /

    ricard888 wrote:
    can someone please assistDo not use SQL when SQL is not needed - context switching from the PL/SQL engine to the SQL engine can be expensive.
    Do not code in ugly uppercase. There is NO programming standard in use today that states that reserved words need to be coded in uppercase. Have a look at Java standards, .Net standards, Pascal standards, C/C++ standards.
    The function should look as follows (assuming it is a wise decision to return a number when a boolean or Y/N flag value is expected) - as already shown previously in the thread:
    SQL> create or replace function isLeapYear( d date ) return integer is
      2  begin
      3          return(
      4                  case
      5                          when    ( mod(extract(year from d),4) = 0 and
      6                                    mod(extract(year from d),100) != 0
      7                                  )
      8                                  or
      9                                  mod(extract(year from d),400) = 0 then
    10                                  1
    11                  else
    12                          0
    13                  end
    14          );
    15  end;
    16  /
    Function created.
    SQL>
    SQL> select isLeapYear(sysdate) as BIT from dual;
           BIT
             1
    SQL> select isLeapYear(sysdate+300) as BIT from dual;
           BIT
             0
    SQL>

  • Package compile faile with error ORA-03113: end-of-file on communication..

    Hi There,
    We're trying to compile a package and we're getting this error that we're not sure how to debug and/or tackle. Your assistance is highly appreciated.
    create or replace
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 4252
    Session ID: 1149 Serial number: 5910
    The package use to compile without any issues; also we have it working in other environments. We can't see any differences at this stage.
    Oracle Version:11.2.0.1 x64
    OS: Windows 2008 Server R2
    Thanks in advance for your help.
    Thanks

    I have tried dropping the package and re-compiling it but to no avail. I can compile other packages/procedures/functions without any issues.
    Also, trying to run either EXEC UTL_RECOMP.recomp_parallel(4, 'SCHEMA_NAME'); or @?/rdbms/admin/UTLRP.SQL gives the following erros:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7040
    Session ID: 388 Serial number: 9039
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of errors caught during
    DOC> recompilation. If this number is non-zero, please query the error
    DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
    DOC> are due to misconfiguration or resource constraints that must be
    DOC> fixed before objects can compile successfully.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE

  • Trigger compile with after migrated from 8i to 10g

    Hi All,
    We try to migrate a 8i database to 10g by using the exp and imp. All tables and data are already migrated by imp. During the imp, there are errors said the trigger compile with errors.
    When login to the em to check, I found these 2 errors.
    Line # = 2 Column # = 1 Error Text = PL/SQL: SQL Statement ignored
    Line # = 2 Column # = 60 Error Text = PL/SQL: ORA-00942: table or view does not exist
    My trigger is a very simple one:
    BEGIN
    Select TB_COUNTER_SEQ.NEXTVAL INTO :NEW.INCREMENT_NUM FROM DUAL;
    END;
    And I'm sure the "TB_COUNER_SEQ" is there.
    Do I need to change anything on the trigger when migrating from 8i?
    In fact, besides this trigger, all other trigger imp to this schema are having the same error. The schema in the 10g is a newly created one, is there any special right I need to create grant to this new user?
    Thanks a lot.
    Mike

    Hi, Mike,
    user3211655 wrote:
    Hi All,
    We try to migrate a 8i database to 10g by using the exp and imp. All tables and data are already migrated by imp. During the imp, there are errors said the trigger compile with errors.
    When login to the em to check, I found these 2 errors.
    Line # = 2 Column # = 1 Error Text = PL/SQL: SQL Statement ignored
    Line # = 2 Column # = 60 Error Text = PL/SQL: ORA-00942: table or view does not exist
    My trigger is a very simple one:
    BEGIN
    Select TB_COUNTER_SEQ.NEXTVAL INTO :NEW.INCREMENT_NUM FROM DUAL;
    END;
    And I'm sure the "TB_COUNER_SEQ" is there.
    Do I need to change anything on the trigger when migrating from 8i?
    In fact, besides this trigger, all other trigger imp to this schema are having the same error. The schema in the 10g is a newly created one, is there any special right I need to create grant to this new user?Grant the necessary privileges on the tables (and any other objects used, like sequences) directly to the owner of the triggers. Privileges granted to a role don't count in AUTHID OWNER stored procedures; the privileges have to be granted to the owner of the stored procedure (or to PUBLIC).
    It the error is occurring at position 60, then it looks like you don't have privileges on dual. Login as SYS and
    GRANT SELECT ON dual TO PUBLIC;You may need synonyms (perhaps public synonyms) for the objects, too.

  • PCC-S-02014 error while compiling with in Sun Solaris

    We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.
    PRECOMP set: /u01/app/oracle/product/10.2.0/bin/proc dbms=native code=cpp mode=ansi include=/u01/app/oracle/product/10.2.0/precomp
    ireclen=255 oreclen=255
    define=__sparc define=__SUNPRO_C include=/usr/include include=. include=/u01/app/SUNWspro/prod/include/CC/stlport4 include=/u01/app/oracle/product/10.2.0/rdbms/public/ include=/u01/app/oracle/product/10.2.0/network/public/ include=/u01/app/oracle/product/10.2.0/rdbms/demo/ errors=yes select_error=no
    sqlcheck=limited ltype=NONE
    release_cursor=no hold_cursor=no
    Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 18 03:09:59 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg
    Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm:
    Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a
    lgorithm
    # include STLPNATIVE_HEADER(algorithm)
    .............................1
    PCC-S-02014, Encountered the symbol "(" when expecting one of the following:
    : [ ] + / . .. an identifier, a numeric constant, newline,
    define, elif, else, endif, error, if, ifdef, ifndef, include,
    line, pragma, undef, exec, sql, begin, end, var, type,
    oracle, an immediate preprocessor command, a C token, create,
    function, package, procedure, trigger, or, replace,
    Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion. Any idea what is missing in the compiler option.
    regards
    Vinu

    Hi Vinu,
    I'm not sure if this is still an issue for you. When I have encountered issues like this with Pro*C I have ended up specifying parse=none to the proc command and then putting all declarations between "EXEC SQL BEGIN DECLARE SECTION" and "EXEC SQL END DECLARE SECTION" markers. I have also moved any "special" declarations into a specific header file and then placed the "#include <special header file>" inside the declare section as well.
    Perhaps that will help a bit,
    Regards,
    Mark

  • Pl/sql block with "insert into" and schema qualified table throws "error"

    Simplified test case:
    Oracle9i EE Release 9.2.0.3.0
    Oracle JDeveloper 9.0.3.2 Build 1145
    create user u1 identified by u1
    default tablespace users
    quota unlimited on users;
    grant connect, resource to u1;
    revoke unlimited tablespace from u1;
    create user u2 identified by u2
    default tablespace users
    quota unlimited on users;
    grant connect, resource to u2;
    revoke unlimited tablespace from u2;
    As user u2:
    create table u2.t
    c1 number
    grant select, update, insert, delete on u2.t to u1;
    As user u1:
    create or replace package test_pkg as
    procedure do_insert (p_in number);
    end;
    create or replace package body test_pkg as
    procedure do_insert (p_in number) is
    begin
    insert into u2.t values (p_in);
    commit;
    end;
    end;
    All of the above works fine using command-line sql*plus, and is clearly a simplified version of the actual code to demonstrate the issue at hand. Using JDeveloper, it complains about 'expected ;' at the 'values' keyword in the insert statement. Removing the schema qualification from the table name allows JDeveloper to not flag the statement as an error, but I do not want to create synonyms (private or public) to point to all the tables in the real packages. Since JDeveloper flags the insert statement as an error, I can not browse the package structure etc, even though it compiles with no problems. What gives?
    Thanks in advance for any suggestions, etc...

    Hi Bryan,
    Thanks for following up on this. I will look for the bug fix to be published.
    - Mark

  • PL/SQL will compile with warnings but will not run

    I have a pl/sql package that will compile with warnings but no errors but when i try to run it I get an ORA-6508 error telling me there is an error somewhere in the package but I can't find it.
    I have two user schemas that use 2 slightly different versions of the package. I had to make slight code changes to one of the versions and when I made those changes it stopped running. The second version compiles and runs correctly.
    After going through a line by line comparison the first copy was still not running. I copied the second version of the code into the broken schema and commented out the additional lines of code that are not needed in this version.
    When I tried to compile and run this version it still fails with the same error.
    I am using Oracle XE and the databases are small.
    I can send on the code if necessary.
    Can anyone point me in the right direction?
    Thanks
    Susan

    I tried doing what you suggested but there are no errors as it is compiling correctly.
    It is only when I run the package through the debugger that I get the error. I have posted it below
    Connecting to the database Hess S3.
    Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
    Executing PL/SQL: CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '127.0.0.1', '2086' )
    Debugger accepted connection from database on port 2086.
    Processing 59 classes that have already been prepared...
    Finished processing prepared classes.
    Exception breakpoint occurred at line 10 of BnmSkOTQ3jz5I52ZOxC4QNw.pls.
    $Oracle.EXCEPTION_ORA_6508:
    ORA-04063: package body "SHIPPING.LIFTINGSCHEDULE" has errors
    ORA-06508: PL/SQL: could not find program unit being called: "SHIPPING.LIFTINGSCHEDULE"
    ORA-06512: at line 10
    Process exited.
    Disconnecting from the database Hess S3.
    Debugger disconnected from database.
    Regards
    susan

  • SOLVED: SQL Developer Code Compilation with warnings

    Hi, I think I found one bug in sql developer.
    I have one pl/sql package, that contains a lot of code. In the previous SQL Developer releases (prior to 1.2) when you compile the code, first appears the errors and then the warnings. Because of some type conversion in my sql statements i have more than 20 warnings, and now i cannot see the errors (i think that they will appear if i'm able to increase this "20 messages" limit). I was searching for some option in SQL Developer to increase the number of displayed warnings or errors (or turn off the warnings) but i cannot find such parameter.
    Is this a bug, or i'm missing something ?
    PS: because of this, i'm not able to compile my package with sql developer, and i'm compiling via sqlplus.
    null

    Yes, you're missing something: the forum's search feature.
    See:
    compile with many warnings causes compiler dont show errors correctly
    Compiling an invalid packagebody without errormessage
    SQL Developer says Compile sucessful but it is not
    K.

Maybe you are looking for

  • Can i recover a lost document in Pages in Icloud

    Help, I had started working on a document and when i logged on to Icloud I had saw in the preview my notes that I took, once I double click on the document, it opened to a previous states where I had only a basic template. So I lost the majority of m

  • Web site not visible in iweb, where did it go?

    I created 2 web sites in iWeb. Posted 1 to mobilme. Now when i open iweb nothing appears and everything is greyed out in the top menu bar. Any idea where it has disappeared to and why i can't see it? Please help.

  • After updates, wireless keyboard stopped working.

    HI... All was going along swimmingly, setting up my new iMac... I did some updates and then for some strange reason my wireless keyboard stopped working? I know it's not the keyboard because delete works, my widgets work and some other keys work - an

  • How to disable arrow keys in JTable.

    Hi , I'm using Jtable and when pressing shift + arrow keys the rows get selected. I want to avoid this situation. Thanks Manjula

  • Journalctl don't show logs before transmission-daemon crash

    Hello, When I'm checking systemd's logs after transmission segfault it shows only the latest entries: $ sudo journalctl -b -- Logs begin at Sun 2013-12-15 17:48:08 SAMT, end at Sun 2013-12-15 18:06:31 SAMT. -- Dec 15 17:48:08 gensokyo mpd[292]: playe