30EA1: PLS-00172 when compiling package body

Hi there,
I'm having a strange bug when compiling a package body in SQL Developer 3.0 EA1, while the same package body compiles well in production version (2.1).
The error code returned is Error: ORA-06550: line 1, column 64: PLS-00172: string literal too long
Does anyone have the same problems?

yes: SQL*Developer 3EA1 - Not Compiling package Body
Hope that helps,
K.

Similar Messages

  • How to turn off validation when compiling Packages...!

    Hello,
    How do I turn off the validation when compiling Packages in SQLPLus?
    Thanks
    Rao

    I'm guessing at what you're after here, but maybe this?
    ME_XE?create or replace procedure one
      2  as
      3  begin
      4     null;
      5  end;
      6  /
    Procedure created.
    Elapsed: 00:00:00.73
    ME_XE?set feedback off
    ME_XE?create or replace procedure one
      2  as
      3  begin
      4     null;
      5  end;
      6  /
    Elapsed: 00:00:00.61

  • Error when Compiling package header and body - how change pkb file associat

    Hi everyone,
    it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
    Is this bug still open?
    Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
    I would appreciate any ideas!
    Thanks in advance,
    user8632123.

    For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
    Have fun,
    K.

  • Compiling package body problem

    hello
    i have a problem with portal 9.0.2.2.22(win2k server). When i try to log in i get the error
    Error: Could not open web cache connection. The portal use-web-cache setting is set to ON while web cache may be down. (WWC-40019)
    after that i run oracle enterprise manager console, logged into iasdb and tried to compile different package bodies(dbe_build_sql, wwv_qbe,...) and get the error:
    Line # = 0 Column # = 0 Error Text = PLS-00801: internal error [56106]
    inside this package body there is only one word
    wrapped
    and nothing else
    on a different machine i have in the same package body tons of code(dbe_build_sql consists of 20622 lines), inside my package only one word
    wrapped
    where is the problem?
    can anybody help me? please
    need help
    thanks
    Marjan

    Marjan,
    Try to post your question in the Portal Caching forum.

  • SQL*Developer 3EA1 - Not Compiling package Body

    Don't know if this is best place to post this, if not tell me where.
    In some packages i'm getting: Error: ORA-06550: linha 1, coluna 64:PLS-00172: literal de cadeia de caracteres demasiado extenso; Sorry about the portuguese error message but it's cpopy paste from compiler log.
    The strange about this is that the package is compiling with no errors on Version 2.1.1.64 and also on others editors. In both packages i had this was after formatting the code.
    So far is the only bug i got, keep on the good work.
    António Cunha

    Just tried from pl/sql node. The package body does not compile from there either. The issue seems to be the size of the package. The package size is 35,000 characters and spaces. I can remove any combination of source lines to get it down to 32,000 characters and spaces and it will compile.
    Edited by: dagtech on Oct 21, 2010 9:34 AM

  • Can't compile package body

    hello. i ran in to little issue today. After patch 13839550 was applied to one of our test enviroments, we get one invalid package body. but when i try to compile it shows warrning!
    SQL> alter package APPS.AP_ACCTG_DATA_FIX_PKG compile body;
    Warning: Package Body altered with compilation errors.
    SQL>
    SQL> show err
    Errors for PACKAGE BODY APPS.AP_ACCTG_DATA_FIX_PKG:
    LINE/COL ERROR
    3899/3 PL/SQL: SQL Statement ignored
    3899/3 PLS-00394: wrong number of values in the INTO list of a FETCH
    statement
    Could you please explain what should i do?
    Database - 11.2.0
    eBS - 12.1
    Linux x86
    Thx

    i dont understand how can ichange something here?In this case, you can't.
    If this is one of the standard packages built into an Oracle Apps database, you need to log a tar/sr with Oracle support. (which will probably result in more patches)

  • Error report:No more data to read from socket  when compile package

    We are going to migrate db from oracle 10g to oracle 11g. But when compile a package which is fine on oracle 10g, an exception "Error report:No more data to read from socket" throws on sql developer and break the connection. We have researched the issue and found if modify some code on a cursor, the issue will not happen.
    code:
    PROCEDURE DELETE_MANU_INTERV_BORROWS(
    p_borrow_id IN NUMBER,
    p_asset_id IN NUMBER,
    p_nsb_coll_type IN VARCHAR2,
    p_nsb_coll_code IN VARCHAR2,
    p_branch_code IN VARCHAR2,
    p_settle_date IN NUMBER,
    p_trans_type IN VARCHAR2,
    p_status OUT VARCHAR2,
    p_shorts_cursor OUT SYS_REFCURSOR
    IS
    var_end_settle_date GEC_IM_ORDER.SETTLE_DATE%type;
    CURSOR exist_allocation IS
    SELECT out_a.ALLOCATION_ID FROM
    GEC_ALLOCATION out_a,
    GEC_BORROW b,
    GEC_IM_ORDER o,
    GEC_TRADE_COUNTRY gc,
    (SELECT f.FUND_CD, f.BRANCH_CD, tc.TRADE_COUNTRY_CD, NVL(gc.COLLATERAL_CURRENCY_CD, gbk.COLLATERAL_CURRENCY_CD) as COLLATERAL_CURRENCY_CD
    FROM GEC_FUND f
    LEFT JOIN GEC_G1_BOOKING gbk ON f.fund_cd = gbk.fund_cd AND gbk.TRANSACTION_CD = 'G1L' AND gbk.POS_TYPE = 'NSB'
    LEFT JOIN GEC_G1_COLLATERAL gc ON gc.G1_BOOKING_ID = gbk.G1_BOOKING_ID
    LEFT JOIN GEC_TRADE_COUNTRY tc ON gc.TRADE_COUNTRY_CD = tc.TRADE_COUNTRY_CD
    ) loan_info
    WHERE b.BORROW_ID = out_a.BORROW_ID AND
    out_a.IM_ORDER_ID = o.IM_ORDER_ID AND
    o.FUND_CD = loan_info.FUND_CD AND
    o.ASSET_ID = p_asset_id AND
    gc.TRADE_COUNTRY_CD = o.TRADE_COUNTRY_CD AND
    o.TRANSACTION_CD = p_trans_type AND
    loan_info.COLLATERAL_CURRENCY_CD = p_nsb_coll_code AND
    loan_info.BRANCH_CD = p_branch_code AND
    o.SETTLE_DATE >= p_settle_date AND
    o.SETTLE_DATE <= var_end_settle_date AND
    b.STATUS = GEC_CONSTANTS_PKG.C_BORROW_MANUAL
    ORDER BY out_a.ALLOCATION_ID ASC
    FOR UPDATE OF out_a.ALLOCATION_ID;
    If delete the "OF out_a.ALLOCATION_ID" of the for update clause of CURSOR exist_allocation, this prolbem will not happen, and the code is comple succesfully on sql developer for oracle 10g.
    Does anybody have any idea? I've googled the similer problems but still can't find a clue. I'll appreciate any help.

    Welcome to the forum!
    Please provide the 4 digit Oracle version (result of SELECT * FROM V$VERSION) for the source and target servers; 10g and 11g are not versions. You also mention sql developer so what is the exact version you are using?
    >
    If delete the "OF out_a.ALLOCATION_ID" of the for update clause of CURSOR exist_allocation, this prolbem will not happen, and the code is comple succesfully on sql developer for oracle 10g.
    >
    Please clarify what works and what doesn't work because your statements are both incorrect and misleading.
    You can't delete the "OF out_a.ALLOCATION_ID" of the for update clause or you would get a syntax error by leaving FOR UPDATE OF with nothing specified after it.
    Also you original statement said
    >
    But when compile a package which is fine on oracle 10g
    >
    But now you say that if you delete the "OF..." the problem doesn't happen and the code compiles on 10g.
    Does the original code compile on 10g or not? Does it compile on 11g or not? After the original code is migrated to 11g does it compile? That is, the code is there can you manually compile it?

  • Error when compile package.

    create or replace package body test_data is
    V_STARTDATE DATE;
    PROCEDURE CATEGORY_EXPORT aS
    cursor C1 is
    select expdate from local_Category_Data loc;
    end category_us_export;
    end test_data;
    gives error "encountered the symbol end when expecting the following begin function..
    help is appreciated.

    Hi,
    in package body there must be full definition of procedures (and before package body there must be package specification), so something like
    create or replace package test_data is
    procedure category_export;
    end;
    create or replace package body test_data is
    V_STARTDATE DATE;
    PROCEDURE CATEGORY_EXPORT aS
    cursor C1 is
    select expdate from local_Category_Data loc;
    begin
    -- something to do
    for rec in c1 loop
    null; -- something with cursor records
    end loop;
    end category_export;
    end test_data;
    HTH, Jirka

  • 3.0EA4: NPE when open package body from file.

    What I did:
    1. start sqldeveloper
    2. goto Files tab
    3. dblclick a package body file (a_pkg.pkb) in recent file list.
    4. dblclick another package spec file (a_pkg.pks) in recent file list.
    5. error !
    Here is the stack trace.
    java.lang.NullPointerException
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1420)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1337)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1263)
         at oracle.ideimpl.navigator.OpenEditorController.whenOpenEditor(OpenEditorController.java:41)
         at oracle.ideimpl.navigator.OpenEditorContextMenuListener.handleDefaultAction(OpenEditorContextMenuListener.java:51)
         at oracle.ide.controller.ContextMenuListenersHook$LazyContextMenuListener.handleDefaultAction(ContextMenuListenersHook.java:200)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:434)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1835)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:2176)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:2205)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:211)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2059)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2118)
         at java.awt.Component.dispatchEvent(Component.java:4244)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2441)
         at java.awt.Component.dispatchEvent(Component.java:4244)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    I have several schemas but let us just look at the 2 .
    I have open connections to both of the 2 schemas.
    I do some work in the A schema and then returns
    to the B-Schema, but forget to change the connection in the connection drop down list.
    So now my connection points at the A-schema.
    I open a package body file (from the file system !!!! not from the database)
    do some corrections in the package body and then compiles the package body (belonging to the B-schema)
    erroneously in the A-schema. I do not do this on purpose, but because i forgot to change the connection
    and the connection in the "drop-down connection list" still points to the A-schema and I'm not prompted for
    a password as the connection is open.)
    The compiler compiles my package body in the A-schema with an error and tells me "package spec"
    does not exist which is true - the package spec exists in the B-schema and not in the A-schema.
    Therefore I choose the B-schema connection in the connection drop-down list in order to compile
    the package body in the right schema (the B-schema).
    Now I receive a message "your priviliges are insufficient" - which they are not.
    The only way I can get back into business is to close down sqldeveloper re-open it and now
    compile the package body in the right schema.
    Sqldeveloper compiles the pck-body in the A-schema as it was told to do, it is not a random schema
    I have to remove the pck-body afterwards !!
    The annoying thing about this is I have to close down sqldeveloper in order to be able to compile my package.
    I do not have explicit schema object reference in my declaration
    regards

  • PLS-00801: internal error [1401] while compiling Package body

    I am getting the error PLS-00801: internal error [1401] while compiling the package.
    recently upgraded to version 11.1.0.7 database .
    Any pointer to this ..

    935026 wrote:
    I am also getting the same error while compiling a procedure which use a remote object over db_link.
    Let me know if this needs to be run on source db or destination db
    1. RUN as SYS
    $ORACLE_HOME/rdbms/admin/utlirp.sql
    $ORACLE_HOME/rdbms/admin/utlrp.sql
    RegardsYES
    post results from SQL below from both DBs
    SELECT * FROM V$VERSION;

  • Java.lang symbols not found when compiling package classes

    I have a set of classes that I have wrapped up in a package. The package name and
    directory structure follow the standard required for each. These classes contain many
    java.lang.Math functions and java.lang.Double calls.
    Am I correct in that the java.lang functions will be imported automatically? When I
    compile a class that is in the package, it looks for the Math.pow (for example)
    function in the package instead of java.lang. I have tried putting the following include
    at the top:
    include java.lang.*;and I still get the "cannot resolve symbol" error. Only when I use
    include java.lang.Math;
    include java.lang.Double;does it compile properly. Is this indicative of a problem with my classpath? It is
    currently set to look in whatever the current directory is, the directory with src.jar,
    and my dev directory that contains the package I am working on.
    Please advise! Thanks in advance!
    Rodman

    Thanks for the quick reply! I looked in the package directory and found the Math.java and
    Double.java files. I'm not sure why they were there. Thanks again!

  • Virtual memory exhausted when compiling packages from AUR

    Recently I've seen this error more and more often. When I tried compiling some packages from AUR, I ended up getting "virtual memory exhausted" error. The first time it happened with clementine-git, then android-studio. Can I do something about it?

    I am also facing the same problem.  I am trying to install a package, and the installations aborts saying 'virtual memory exhausted'. The RAM is 2 GB and i have alloted 2 GB as swap.  Things i have tried so far
    -install  using yaourt
    -install using  makepkg.
    -change  TMPDIR to HDD.
    Even when i tried it without any window manager to start, limiting the RAM usage, the problem still persists. The only way is to allot an extra swap space, but that would mean that i will have to delete a partition, which is not a feasible solution. Is there anything else one could do. ?
    if it helps,
    ulimit -a
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 20
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 16033
    max locked memory       (kbytes, -l) 64
    max memory size         (kbytes, -m) unlimited
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 8192
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 16033
    virtual memory          (kbytes, -v) unlimited
    file locks                      (-x) unlimited

  • EA 3.0 returns error on compiling of package body

    Hi,
    I got the following error
    Error: ORA-06550: line 1, column 64:
    PLS-00172: string literal too long
    when I was trying to compile package body.
    In previous version of SQL DEV the package is compiled without any problems.
    I have a procedure in package with more than 120 parameters.
    Edited by: user635344 on Oct 15, 2010 10:54 AM

    This problem is a bug : SQL*Developer 3EA1 - Not Compiling package Body
    regards Karsten

  • Connection Reset when compiling PL/SQL Package

    Recently a strange issue appeared on my office PC. When I try To compile a PL/SQL package on specific Oracle instance I get an error message:
    Error: Io exception: Connection reset by peer: socket write error
    And the connection is reset. I even cannot reconnect to database schema. To open connection again I have to restart SQL Developer. In spite of this issue I can execute SELECT queries in SQL worksheet and view data in tables. Error message appears only when compiling packages in any schema on database instance in our local network and only on my PC. Other office PCs works fine without any errors. I am able to compile packages on remote database from my PC.
    Same error message shows up in different SQL Developer versions and also in JDeveloper. SQL Developer restart, Windows restart, database instance restart doesn't help.
    Used software:
    SQL Developer versions: 1.2.1 and 1.1
    JDeveloper version: 10.1.3.2
    Oracle Database on local network: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    Remote Oracle Database: Oracle Database 10g Release 10.2.0.3.0 - Production
    OS: Windows XP Pro SP2
    Thanks,
    Raymond

    I am trying to convert the values in a selected
    column into 1 and 0 so that I can display all 1s in
    one column, all 0s in another. I am doing this in a
    PL/SQL package. However ORACLE compiler does not
    like the CASE construct.
    Does anyone know how to group values in a column into
    several new columns. If CASE WHEN construct is not
    doable in PL/SQL, what alternatives are there?
    Thanks.
    CURSOR v_Cursor IS
    SELECT A.D_CODE, A.M_CODE, TEST_START ,
    , C.C_NAME,C.P_ID,
    SUM(CASE WHEN MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
    40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 ANDB.B_CODE IN '11.1','222.2','272.4') THEN 1 ELSE 0
    END) QUALIFIEDUse the Decode function. This has been around in oracle SQL for ages and works like a case construct.
    You would do something like
    select ...
    sum( decode (MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 >
    40 AND MONTHS_BETWEEN(SYSDATE, D.P_DOB)/12 <85 AND
    B.B_CODE IN ('11.1','222.2','272.4') 1,0 )

  • REUSE SETTINGS supresses error messages when compiling an invalid object

    Hello,
    my test:
    Create a table and a packaged procedure referencing the table. Then drop the table and recompile the package:
    CREATE TABLE x (
        y     NUMBER
    CREATE OR REPLACE PACKAGE y
    AS
    PROCEDURE z;
    END y;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY y
    AS
    PROCEDURE z
    IS
      v_count PLS_INTEGER;
    BEGIN
      SELECT COUNT(*)
      INTO v_count
      FROM x;
    END z;
    END y;
    SHOW ERRORS
    DROP TABLE x;
    PROMPT 1.Compile package
    ALTER PACKAGE y COMPILE;
    SHOW ERRORS
    PROMPT 2.Compile package body
    ALTER PACKAGE y COMPILE BODY;
    SHOW ERRORS
    PROMPT 3.Compile package with "REUSE SETTINGS"
    ALTER PACKAGE y COMPILE REUSE SETTINGS;
    SHOW ERRORS
    PROMPT 4.Compile package body with "REUSE SETTINGS"
    ALTER PACKAGE y COMPILE BODY REUSE SETTINGS;
    SHOW ERRORS
    SELECT object_name
          ,object_type
    FROM   user_objects
    WHERE  status = 'INVALID';
    --DROP PACKAGE y;Partly unexpected output
    Tabelle wurde erstellt.
    Package wurde erstellt.
    Keine Fehler.
    Package Body wurde erstellt.
    Keine Fehler.
    Tabelle wurde gelöscht.
    1.Compile package
    Warnung: Paket wurde mit Kompilierungsfehlern geõndert.
    Keine Fehler.
    2.Compile package body
    Warnung: Paketrumpf wurde mit Kompilierungsfehlern geõndert.
    Fehler bei PACKAGE BODY Y:
    LINE/COL ERROR
    8/3      PL/SQL: SQL Statement ignored
    10/8     PL/SQL: ORA-04044: procedure, function, package, or type is not
             allowed here
    3.Compile package with "REUSE SETTINGS"
    Warnung: Paket wurde mit Kompilierungsfehlern geõndert.
    Keine Fehler.
    4.Compile package body with "REUSE SETTINGS"
    Warnung: Paketrumpf wurde mit Kompilierungsfehlern geõndert.
    Keine Fehler.
    OBJECT_NAME     OBJECT_TYPE
    Y               PACKAGE BODY
    1 Zeile wurde ausgewõhlt.It says
    - Table created
    - Package created
    - Package body created
    - Table dropped
    - Package header compiled with errors (why?)
    - Package body compiled with errors (shown error is expected)
    - Package header compiled with errors (again why?)
    - Package body compiled with errors (no errors shown)
    So why is the header compiled with errors, when the object is valid.
    And why is no error shown for COMPILE REUSE SETTINGS when there are errors for the body?
    I use REUSE SETTINGS when recompiling invalid objects that were compiled for debug with
    ALTER PACKAGE abc COMPILE PLSQL_DEBUG = TRUE REUSE SETTINGSRegards
    Marcus
    Version:
    SQL*Plus: Release 10.2.0.1.0 - Production on Di Jan 27 12:45:20 2009
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options

    Hi,
    From SQL Reference Manual [REUSE SETTINGS|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1007.htm#BGBGEIGD]:
    Specify REUSE SETTINGS to prevent Oracle from dropping and reacquiring compiler switch settings. With this clause, Oracle preserves the existing settings and uses them for the recompilation of any parameters for which values are not specified elsewhere in this statement.
    For backward compatibility, Oracle Database sets the persistently stored value of the PLSQL_COMPILER_FLAGS initialization parameter to reflect the values of the PLSQL_CODE_TYPE and PLSQL_DEBUG parameters that result from this statement.
    Regards,

Maybe you are looking for