Packaged function not compiling

This one is driving me mad as I cannot see any possible
reason for it.
I have two packages containing functions. They are both owned by one schema, different to the schema I am using to build my form. They are both granted execute to public and have public synonyms which are the same as the package name.
The schema I am using to build my form can access the functions in sqlplus by specifying package.function.
In my form I have:
variable1 := package1.function1;
variable2 := package2.function2;
The first line compiles OK. The second comes up with function2 must be declared. If I prefix it with owner. it is OK.
I cannot find any difference between the packages to explain this behaviour. Any ideas anyone please.

Steve
I had discussed it with someone else. He claimed afterwards that he had thought of that solution but it was so obvious he didn't like to insult me by suggesting it. I don't know if I believe him.
Pavel
Nice idea but we have too much code to retrospectively tidy up. Also with changes of personnel over the years we have such a mixture of different naming conventions that they are pretty meaningless. However, I do prefix my pll procedures with lib to give a clue where to look for them.

Similar Messages

  • Standard SQL function not compiling in formula

    I'm getting an error trying to use nvl2 inside a formula. It's returning an "identifier nvl2 must be declared" error. I'm connected to a database while trying to compile. What could be the problem?

    I've got:
    Report Builder 10.1.2.0.2
    ORACLE Server Release 10.1.0.4.2
    Oracle Procedure Builder 10.1.2.0.2
    Oracle ORACLE PL/SQL V10.1.0.4.2 - Production
    Oracle CORE     10.1.0.4.0     Production
    Oracle Tools Integration Services 10.1.2.0.2
    Oracle Tools Common Area 10.1.2.0.2
    Oracle Toolkit 2 for Windows 32-bit platforms 10.1.2.0.2
    Resource Object Store 10.1.2.0.2
    Oracle Help 10.1.2.0.2
    Oracle Sqlmgr 10.1.2.0.2
    Oracle Query Builder 10.1.2.0.2 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle ZRC 10.1.2.0.2
    Oracle XML Developers Kit 10.1.0.4.2 - Production
    Oracle Virtual Graphics System 10.1.2.0.2
    Oracle Image 10.1.2.0.2
    Oracle Multimedia Widget 10.1.2.0.2
    Oracle Tools GUI Utilities 10.1.2.0.2
    Connecting to an 11g database and it does not work.

  • Package does not compile from 10g to 11g

    On the 10g instance I don't get any errors. When I created the package on the 11g instance, I get this :
    PACKAGE BODY SYSTEM.SIEBEL_ACCOUNT_MANAGEMENT
    On line:  102
    PL/SQL: ORA-00942: Table ou vue inexistante
    Here's the lign 99 to 108 :
    BEGIN
    SELECT    Count()*
    INTO    Counter
    FROM    DBA_Role_Privs
    WHERE    Grantee
    *= Upper(Name)*
    AND    Granted_Role
    *= Upper(SIEBEL_Role);*
    RETURN  Counter > 0;
    END "SIEBEL User?";

    783643 wrote:
    PACKAGE BODY SYSTEM*.SIEBEL_ACCOUNT_MANAGEMENT*Problem the first. Don't use the SYSTEM account .. for anything. Oracle owns that, if you do development there you're asking for trouble.
    783643 wrote:
    On line:  102
    PL/SQL: ORA-00942: Table ou vue inexistante
    Here's the lign 99 to 108 :
    BEGIN
    SELECT    Count()*
    INTO    Counter
    FROM    DBA_Role_Privs
    WHERE    Grantee
    *= Upper(Name)*
    AND    Granted_Role
    *= Upper(SIEBEL_Role);*
    RETURN  Counter > 0;
    END "SIEBEL User?";
    Just as the error says, you don't have access to the object. You need a direct grant on the SYS view DBA_ROLE_PRIVS.

  • OWB_WORKSPACE_MANAGER Package - Won't Compile

    Hello,
    I have installed OWB11gR2 on a Linux Server. Got no errors during installation.
    When trying to start the Control Center Service it would error out with Java exceptions.
    After some research I discovered that the OWB_WORKSPACE_MANAGER package would not compile.
    This is the error message: Error(1): PLS-00753: malformed or corrupted wrapped unit
    Encrypted packages are great if they've been correctly formed ....
    If there any way to fix this beside totally reinstalling OWB and hoping it will be OK?
    Thanks,
    Bob Larsen

    I've read there is a patch with 9i wrappers about, but can't seem to find or locate it Can you point in a direction? I've already posted a message out onto the apex site.
    Thanks for any assistance.

  • Function not found when package name exists with same name as schema name

    Hi all, any help would be appreciated :)
    I found an issue with pl/sql resolving a functions location when the db has a package name with the same as the db schema name.
    My example:
    -- arbitrary test function, not in any package
    create or replace FUNCTION testFunc
         inTest     IN VARCHAR2
    RETURN VARCHAR2
    AS
    BEGIN
    RETURN 'a';
    END;
    -- There is a package called "FM" with functions that are not referenced or used in this example and the db schema is "FM".
    -- The following PL/SQL fails with the message: "ORA-00904: "FM"."TESTFUNC": invalid identifier"
    select cursor (select testFunc('a') from dual) from dual;
    -- The following PL/SQL works:
    select * from (select testFunc('a') from dual);
    As mentioned the function testFunc is NOT in the FM package. This issue does not happen when I remove the FM package. So it seems like there is an issue with cursors calling functions when there exists any package with the same name as the db schema.
    Can anyone tell me why this happens and also what I can add to force the function that is not in any package to be referenced (without Oracle trying to look in the FM package)?
    DB: Oracle 11.2.0.2
    thanks!
    Paul

    Hi Paul,
    In general I would not advice to have schema and objects with the same name.
    Here is what documentation is saying here: How Name Resolution Differs in PL/SQL and SQL
    PL/SQL uses the same name-resolution rules as SQL when the PL/SQL compiler processes a SQL statement, such as a DML statement. For example, for a name such as HR.JOBS, SQL matches objects in the HR schema first, then packages, types, tables, and views in the current schema.
    PL/SQL uses a different order to resolve names in PL/SQL statements such as assignments and subprogram calls. In the case of a name HR.JOBS, PL/SQL searches first for packages, types, tables, and views named HR in the current schema, then for objects in the HR schema.As you can see above when using PL/SQL for your case Oracle searches first for packages, types, tables, and views named FM in the current schema, then for objects in the FM schema.
    And because a package FM is found it is raising an error due to the fact that the procedure could not be found in that package.
    I hope this clarify.
    Regards.
    Al

  • AIR 3.3 and compiling/packaging IPA not working any more. Why?

    Hello,
    I use a custom ANE that worked without any problems on AIR 3.0, 3.1 and 3.2. Since I updated the ipa doesn't even compile any more. I get the following output on the command line on Windows and MacOS:
    K:\MyFiles\src\iOS\word smith pro>c:\air\bin\adt -package  -target ipa-test -storetype pkcs12 -keystore iphone_dev.p12 -provisioning-profile development.mobileprovision  wordSmithPro.ipa wordSmith-app-xml.xml WordSmithMob.swf icons sounds dicts -extdir "native"
    password:
    ld: warning: -ios_version_min not specificed, assuming 4.0
    ld: warning: ignoring file C:\\Users\\Henning\\AppData\\Local\\Temp\\ca8c0034-79
    68-44dd-9859-0abb8a07e41b/libcom.devarai.MyAD.a, file was built for archive whic
    h is not the architecture being linked (armv7)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/cr
    t1.o
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_addsubdf3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_fixunsdfdi.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_udivdi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_umoddi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_modsi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_udivsi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_umodsi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_divsi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_dvmd_tls.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_clz.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_fixdfsi.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_fixunsdfsi.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_divdi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_addsubsf3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_fixdfdi.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_moddi3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_cmpdf2.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_muldivdf3.o)
    ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: C:\\air\\lib\\aot/lib/gc
    c/libgcc.a(_unorddf2.o)
    ld: warning: ARM function not 4-byte aligned: _IDctSlow_ARM from C:\\air\\lib\\a
    ot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowProcessRowLoop from C:\\ai
    r\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowSkipArithmeticInRow from C
    :\\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowProcessColumnLoop from C:\
    \air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC1S7 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantTable from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC7S1 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC3S5 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC5S3 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC4S4 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC2S6 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDctSlowConstantxC6S2 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: _IDct10_ARM from C:\\air\\lib\\aot
    /lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10ComputeRow0 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10ComputeRow1 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10ComputeRow2 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10ComputeRow3 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10_skip_Row3 from C:\\air\\lib
    \\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10ProcessColumns from C:\\air\
    \lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10ProcessColumnLoop from C:\\a
    ir\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10Fill2WithZero from C:\\air\\
    lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10Fill1WithZero from C:\\air\\
    lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDct10Fill0WithZero from C:\\air\\
    lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: _IDct1_ARM from C:\\air\\lib\\aot/
    lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: _IDCT1_plus_ReconBlock_ARM from C:
    \\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDCT1_plus_ReconBlock_loop from C:
    \\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: _IDCT1_plus_ReconInter_ARM from C:
    \\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: IDCT1_plus_ReconInter_loop from C:
    \\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(idct_part.o)
    ld: warning: ARM function not 4-byte aligned: _FilterBlock1dH_ARM11 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: loop1 from C:\\air\\lib\\aot/lib/l
    ibRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: _FilterBlock1dV_ARM11 from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: loop3 from C:\\air\\lib\\aot/lib/l
    ibRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: loop4 from C:\\air\\lib\\aot/lib/l
    ibRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: _FilterBlock2dFirstPass_ARM11 from
    C:\\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: loop5 from C:\\air\\lib\\aot/lib/l
    ibRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: _FilterBlock1dBilH_ARM11 from C:\\
    air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: FilterBlock1dBilH_next_row from C:
    \\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: _FilterBlock1dBilV_ARM11 from C:\\
    air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: FilterBlock1dBilV_outer_loop from
    C:\\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: FilterBlock1dBilV_inner_loop from
    C:\\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: _FilterBlock2dBil_FirstPass_ARM11
    from C:\\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: FilterBlock2dBil_FirstPass_next_ro
    w from C:\\air\\lib\\aot/lib/libRuntimeAOT.arm-air.a(predfilters.o)
    ld: warning: ARM function not 4-byte aligned: _Copy12x12_ARM9E from C:\\air\\lib
    \\aot/lib/libRuntimeAOT.arm-air.a(copy12x12.o)
    ld: warning: ARM function not 4-byte aligned: Copy12x12_CSrcAlign0 from C:\\air\
    \lib\\aot/lib/libRuntimeAOT.arm-air.a(copy12x12.o)
    ld: warning: ARM function not 4-byte aligned: Copy12x12_CSrcAlign1 from C:\\air\
    \lib\\aot/lib/libRuntimeAOT.arm-air.a(copy12x12.o)
    ld: warning: ARM function not 4-byte aligned: Copy12x12_CSrcAlign2 from C:\\air\
    \lib\\aot/lib/libRuntimeAOT.arm-air.a(copy12x12.o)
    ld: warning: ARM function not 4-byte aligned: Copy12x12_CSrcAlign3 from C:\\air\
    \lib\\aot/lib/libRuntimeAOT.arm-air.a(copy12x12.o)
    ld: warning: ARM function not 4-byte aligned: _ReconIntra_ARM11 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(reconstruct-F6251070C86EBC8D.o)
    ld: warning: ARM function not 4-byte aligned: loop from C:\\air\\lib\\aot/lib/li
    bRuntimeAOT.arm-air.a(reconstruct-F6251070C86EBC8D.o)
    ld: warning: ARM function not 4-byte aligned: _ReconInter_ARM11 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(reconstruct-F6251070C86EBC8D.o)
    ld: warning: ARM function not 4-byte aligned: loop1 from C:\\air\\lib\\aot/lib/l
    ibRuntimeAOT.arm-air.a(reconstruct-F6251070C86EBC8D.o)
    ld: warning: ARM function not 4-byte aligned: _ReconBlock_ARM11 from C:\\air\\li
    b\\aot/lib/libRuntimeAOT.arm-air.a(reconstruct-F6251070C86EBC8D.o)
    ld: warning: ARM function not 4-byte aligned: ReconBlock_ARM11_LOOP from C:\\air
    \\lib\\aot/lib/libRuntimeAOT.arm-air.a(reconstruct-F6251070C86EBC8D.o)
    ld: warning: ARM function not 4-byte aligned: _tDecodeBool from C:\\air\\lib\\ao
    t/lib/libRuntimeAOT.arm-air.a(tDecodeBool.o)
    ld: warning: ARM function not 4-byte aligned: _tDecodeBool128 from C:\\air\\lib\
    \aot/lib/libRuntimeAOT.arm-air.a(tDecodeBool.o)
    Undefined symbols for architecture armv7:
      "_ExtInitializer", referenced from:
          _g_com_adobe_air_fre_fmap in extensionglue.o
         (maybe you meant: _ExtInitializer_name)
      "_ExtFinalizer", referenced from:
          _g_com_adobe_air_fre_fmap in extensionglue.o
         (maybe you meant: _ExtFinalizer_name)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64

    I'm getting this error
    Is that error is because of armv6 symbols? If so,how can i rectify it

  • Compiler exception - package does not exist?

    I am new to NWDS and J2EE.  I followed the steps in the tutorial as indicated in the below link:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/netweaver-application-server/_netweaver-application-server/a-c/Creating%20your%20First%20J2EE%20Application.pdf
    I did everything inside up to the last moment after I deployed my EAR and tried to run from the portal but got Application error.  I checked the defaultTrace log file from the portal server and notice these errors:
    #1.5 #001A6431E0FE0020000000750000155C0004B9B284863A19#1330076285575#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#sap.com/CalculatorEar#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#Guest#0##40C36AF65ECB11E18721000000978DDA#40c36af65ecb11e18721000000978dda-0#40c36af65ecb11e18721000000978dda#SAPEngine_Application_Thread[impl:3]_21##0#0#Error#1#/System/Server/WebRequests#Plain###application [Calculator] Processing HTTP request to servlet [jsp] finished with error.
    The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:41: package com.sap.examples.calculator.beans does not exist
              com.sap.examples.calculator.beans.CalcProxy calc = null;
                                                     ^
    G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:42: package com.sap.examples.calculator.beans does not exist
                   calc = (com.sap.examples.calculator.beans.CalcProxy)pageContext.getAttribute("calc", PageContext.SESSION_SCOPE);
                                                                     ^
    G:/usr/sap/EPD/JC00/j2ee/cluster/server0/apps/sap.com/CalculatorEar/servlet_jsp/Calculator/work/jsp_Calculator1330076284538.java:48: package com.sap.examples.calculator.beans does not exist
                        calc = (com.sap.examples.calculator.beans.CalcProxy) Beans.instantiate(getClass().getClassLoader(), "com.sap.examples.calculator.beans.CalcProxy");
                                                                             ^
    3 errors
    The thing I don't understand is the "comp.sap.examples.calculator.beans" class has already been included inside the EAR (I used my zip tool to check the EAR file and confirmed it's there), why did the compiler still complain that the package does not exist?  Any great guys & gals out there can help this poor newbie who spent the past 5 hours searching for Google for answers but couldn't find any??
    Thank you.
    Brian

    Perhaps I should give out more information about this problem.
    The EAR file contains a WAR file and a JAR file. 
    The WAR file contains a JSP and it contains codes to refer to a java proxy class of package comp.sap.examples.calculator.beans.CalcProxy.
    So it seems the compilation error is triggered when it tries to compile the WAR file.
    I checked the structure of the WAR file using a zip tool.
    At the base it contains this:
    WEB-INF (a folder)
    Calculator.jsp (the JSP file)
    Inside the WEB-INF folder is these:
    classes (a folder)
    web-j2ee-engine.xml
    web.xml
    Inside the classes folder is a tree of subfolders to describe the structure of the CalcProxy class:
    classes -> comp -> sap -> examples -> calculator -> beans -> CalcProxy.class
    So the java class file and the JSP file is in the same bundle of the WAR file.
    Why the compiler is not able to find the class file inside the JSP?

  • Package body greater than 2160 bytes does not compile in Object Browser

    Hi there,
    I initially created a package in Apex 2.1.0.0.39 using the Object Browser and it compiled OK. The message in the box above the source code says "PL/SQL code successfully compiled (17:51:08)". I then added more code and eventually when I clicked the "Compile" button" the message to say successfull compilation or any error message was not displayed. The box above the source code remains blank. After much trial and error I found that by adding just one more letter to the end of a comment that it would not compile, but by removing the letter then it would compile most of the time. I downloaded the package and found that the size of the download .PLB file was 2160 bytes. Editing the PLB file using a text editor to increase the size and executing it in SQL*PLUS does work.
    Is this a fundamental limit on the size of packages that can be compiled using the Object Browser, or is there an Apex configuration parameter that can be modified to allow larger packages? If this is a limit then why isn't an informational message displayed? Or is this in fact an installation issue or an issues with Apex Object Browser?
    Further information:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I installed this version back at the beginning of the year for training purposes and have not made any conifiguration changes that I am aware of, or installed any further upgrades/software since.
    All help gratefully received by this "definitely a nubie".
    Regards.
    John.

    John,
    If you are using, as you said, Application Express version 2.1.0.0.39, be aware that this is a very old (and not a supported) version. If you have trouble with the latest version (currently 3.2), feel free to report them here.
    Scott

  • 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

  • When i export schema Packages,function will export or not??

    Hi,
    i am importing schema so in that schema, i have Packages,function, Procedure, is there, so all packages and proedure etc.. will export or not??? pls tell me sir...
    Thank you,

    Hi,
    >>will export or not??? pls tell me sir...
    Yourself can see the results ...
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user LEGATTI
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user LEGATTI
    About to export LEGATTI's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export LEGATTI's tables via Conventional Path ...
    . . exporting table                     TEST
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.Cheers

  • Package Not Compiled?

    I am trying to INSERT into a table that is called LMR_TENANTS. When I try to INSERT via Oracle APEX I get the following error:
    >
    ORA-04063: package body "LILLEYMAN.CG$LMR_TENANTS" has errors ORA-06508: PL/SQL: could not find program unit being called: "LILLEYMAN.CG$LMR_TENANTS" ORA-06512: at "LILLEYMAN.CG$BIS_LMR_TENANTS", line 1 ORA-04088: error during execution of trigger 'LILLEYMAN.CG$BIS_LMR_TENANTS'
    I assume this is because the package it is referring to is not compiled properly.
    If I got to the actual package it is referring to, I see it has the following errors:
    >
    Line Position Text
    19 8 PLS-00201: identifier 'LMR_TENANTS' must be declared
    19 8 PL/SQL: Declaration ignored
    23 16 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    22 1 PL/SQL: Declaration ignored
    51 16 PLS-00320: the declaration of the type of this expression is incomplete or malformed
    50 1 PL/SQL: Declaration ignored
    56 32 PLS-00201: identifier 'LMR_TENANTS' must be declared
    56 1 PL/SQL: Declaration ignored
    Here is a link to a pastebin of the package, since it is rather large. This is something that has been generated by Oracle APEX.
    I am unable to understand why I am getting this error at all.
    http://pastebin.com/m58df134a
    Any ideas as to what the problem may be? What I should try to do to fix it?
    Edited by: apexdev88 on 10-Aug-2009 03:33

    I figured out that apparrently LMR_TENANTS was not owned by the schema.
    Now I am getting the following error in relation to the package body:
    22 20 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    22 5 PL/SQL: Statement ignored
    27 20 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    27 20 PL/SQL: Statement ignored
    40 20 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    40 5 PL/SQL: Statement ignored
    45 5 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    45 5 PL/SQL: Statement ignored
    74 7 PLS-00201: identifier 'CG$ERRORS.PUSH' must be declared
    74 7 PL/SQL: Statement ignored
    76 7 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    76 7 PL/SQL: Statement ignored
    90 5 PLS-00201: identifier 'CG$ERRORS.PUSH' must be declared
    90 5 PL/SQL: Statement ignored
    92 5 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    92 5 PL/SQL: Statement ignored
    110 24 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    110 9 PL/SQL: Statement ignored
    117 24 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    117 9 PL/SQL: Statement ignored
    22 20 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    22 5 PL/SQL: Statement ignored
    27 20 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    27 20 PL/SQL: Statement ignored
    40 20 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    40 5 PL/SQL: Statement ignored
    45 5 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    45 5 PL/SQL: Statement ignored
    74 7 PLS-00201: identifier 'CG$ERRORS.PUSH' must be declared
    74 7 PL/SQL: Statement ignored
    76 7 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    76 7 PL/SQL: Statement ignored
    90 5 PLS-00201: identifier 'CG$ERRORS.PUSH' must be declared
    90 5 PL/SQL: Statement ignored
    92 5 PLS-00201: identifier 'CG$ERRORS.RAISE_FAILURE' must be declared
    92 5 PL/SQL: Statement ignored
    110 24 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    110 9 PL/SQL: Statement ignored
    117 24 PLS-00201: identifier 'CG$ERRORS.MSGGETTEXT' must be declared
    117 9 PL/SQL: Statement ignored

  • Package does not exist when compile in Jgrasp 1.8.3

    I have a package called jpb stored in a folder called jpb. The package has two files SimpleIO.java and Convert.java. My program has 1 of the line like this
    import jpb.*;
    I put the path and classpath in Jgraps pointing to the folder jpb but when I compile the program, it keeps saying the package does not exist. Even when i took all the files outside and place it in the same folder with the file that i am compiling. It says that bad class file. The heck?????????.
    Can some1 please help. I even made an autoexec.bat to set up the path to the folder and run it. it keeps saying the package does not exist.

    Classpaths reference things like jar files or directories that contain .class files. Change your classpath to have the .jar files.

  • Compiling Procedures/Packages/Functions

    I'm fairly new to the arena of compiling Procedures/Packages/Funcitons but I was given the task of updating a development DB with a lot of newly created/updated Objects. I have created a shell script to go through all the new files and create or replace all the new objects in sqlplus. My question is how to compile all the newly created objects and their dependencies correctly? I have been using SQL Developer to verify that everything has compiled but I see that some are marked invalid which I assume is because a dependency was compiled after it. What would be my best way to making sure everything is valid? I hope this makes sense but any help would be appreciated.

    You can use a script like this to build your own sql statement to compile the invalid objects. You can add your own statement for other object types at the end with a union, ie TYPE body.
    You will probably need to run it repeated until all objects are VALID. You can put it in a PL/SQL block with a loop and execute immediate so reduce the manual work.
    --PACKAGE
    select 'alter package ' || object_name || ' compile;' from user_objects
    WHERE Status = 'INVALID'
    and object_type= 'PACKAGE'
    union
    -- PACKAGE BODY
    select 'alter package ' || object_name || ' compile body;' from user_objects
    WHERE Status = 'INVALID'
    and object_type= 'PACKAGE BODY'
    union
    --PROCEDURE
    select 'alter procedure ' || object_name || ' compile;' from user_objects
    WHERE Status = 'INVALID'
    and object_type= 'PROCEDURE'
    union
    --FUNCTION
    select 'alter function ' || object_name || ' compile;' from user_objects
    WHERE Status = 'INVALID'
    and object_type= 'FUNCTION'
    union
    --TRIGGER
    select 'alter trigger ' || object_name || ' compile;' from user_objects
    WHERE Status = 'INVALID'
    and object_type= 'TRIGGER'
    union
    --VIEW
    select 'alter view ' || object_name || ' compile;' from user_objects
    WHERE Status = 'INVALID'
    and object_type= 'VIEW'

  • Package not compiling

    I am trying to compile a package, it takes long time to compile how can I check the session that is blocking it ?

    user650888 wrote:
    I am trying to compile a package, it takes long time to compile how can I check the session that is blocking it ?It is probably you that is blocking it.
    If procedure does DML, package can not be changed while uncommitted DML exists.
    One way to clear the log jam is to terminate all sessions & then start a new session that compiles the code.

  • Petition to add "Package" functionality to CS6 (and not require CC)

    Can we start a petition to request (read: pressure) Adobe to include Package functionality inside Illustrator CS6 without the need for CC membership?  I realize they're in the business of making money, but requiring CC membership for such a basic (and frankly way overdue) function is... well, kind of a jerk move.  There's no real justification to require CC for this, IMO.
    Here's my signature.

    Love the idea of getting some upgrades but short of a corporate miracle its not going to happen. I think adobe is missing out on 1 awesome idea. They see perpetual licence and they see subscription almost at other ends of the spectrum for several things. They need to pull from what corel did in response to cc and stop thinking you are either perpetual or subscription, do as corel and allow for both. If they did both and at a more reasonable price I would do cc without question. If cc allowed a perpetual licence and I could still sell my old cd thats way better. I have peace of mind and some of my investment back. If they also reduced the monthly cost say 10-20% and/or 1 more cc buy option as buy per program or a mid buy of say 35 for your favorite 3-4 programs I would have no reason not to go cc.
    Corel is also doing perpetual and subscription but they have a 3rd option, perpetual + subscription. Here is how it works you get your cd/download perpetual copy and then you pay 100/YEAR for premium cloud. The funny thing is they have their pricing correct. The upgrades are generally every 2 years and cost for coreldraw 200 so that is 100/year which is the exact same cost. You get your stuff early and upgrades and cloud features. The only 2 down sides I can think of are being forces to get every upgrade but you chose it as their 3rd buy options and other is I highly dough you could sell your original cd/key to others with the upgrades on it, but you should still be able to sell the cd/key of when you bought it.
    As is they dropped their well tried perpetual buy and replaced it with the one that even after 1 year people were not really buying into and not offer a hybrid buy. Adobe please offer a hybrid buy. Then you can ease us into the cloud if you want. Give us some options, price, perpetual (some how), perpetual + cloud, or anything.

Maybe you are looking for

  • Instant Portal Look'n'Feel

    Hi, is there any easy way to transfer the Instant Portal Look'n'Feel into Enterprise Portal? Are there specific stylesheets that could be plugged into Enterprise Portal? Any info would be much appreciated? Thanks, Peter

  • Conversion of page maker document into PDF format

    I am a professional translator. I translate books from English to telugu.The DTP professional typed my translation work in page maker using Anu fonts (Priyanka & priyanka bold). it has to be converted into PDF format. But the DTP fellow can not do it

  • SQL Server Non default Instance

    Hi I believe that the Installer for the Server Package, 2005 2007 whatever isn't able to script SBO-COMMON database in an SQL instance other than the default one. Em I right? I also believe that moving databases after having created other SQL Server

  • Freeze columns and rows easily

    I am new to numbers and although I had some difficulties, I have yet to freeze columns and rows in a simple way as in excel. I need to find a tool to focus titles without merging cells, this is something like "Center Across Selection". There is this

  • Input items on a dynamic page

    I think there must be a simple way to do this but I cant seem to find how. So any help would be most appreciated. I have created a dynamic page which contained a html <FORM>. I have created a function that is called by the onsubmit method that I then