Invalid Packages question

Hi All,
First of all, here the background information about the database:
Oracle EBS R12.0.4
RDBMS 10.2.0.2
AIX 5L 5.3 64 bits
I have a question about invalid packages. When looking at ssome invalid package in TOAD, when I click on "ERROR" tab (or query dba_errors), I can see this message:
PLS-00923: native compilation failed: C compilation or linking failed:spdzj.c:Could not invoke program /usr/local/bin/gcc: No such file or directory
For now, I got the sysadmin to create a soft link from /usr/local/bin to point to /usr/bin/gcc and I could compile the packages.
When I log on the server as the RDBMS owner, and do the following:
env | grep gcc -> return nothing
which gcc -> /usr/bin
Considering the gcc should be going to /usr/bin and that when I type "which gcc" it return the one in /usr/bin, where in Oracle is it set to be in /usr/local/bin?
I looked into some configuration files and didn't find anything that would 'hardcode' the path to GCC.
Anyone ever got this issue?
Thank you,
Felix

Pl see if MOS Doc 269012.1 (PL/SQL Native Compilation in Oracle 10g) can help you
HTH
Srini

Similar Messages

  • Compile all invalid packages together + connect as sysdba only

    Hi
    I've installed a Ora 10.2, and imported a dump. This dump contained some users, a lot of tables and stored procs.
    My first question: There is an imported user with I can connect as sysdba only. I can't connect as normal... it is problem because there is an application upper the db and I can't tell the applicataion that connect as sysdba. (it is only a sandbox for me...) What should I modify on this user to connect as normal user?
    The second question: The schema (upper) contains lot of invalid packages. I have only the free Toad and I can't compile all of them only step by step... (I don't want do this step by step because there are about 300 packages...). How could I complile all of them e.g. from Sqlplus? Any other solution?
    Thanks in advance!
    Alex

    ok, there is a user e.g. "xxxx"
    I can connect with this user as sysdba only. "CONNECT xxxx/yyyy@db as sysdba". Without "as sysdba" I got "ORA-01017: invalid username/password; logon denied" So I can connect only as sysdba... but this is a simple user so I don't want to connect as sysdba...

  • Package load Failed! Invalid package Title, manifest file cannot be found

    Greetings. I am new to UPK and am seeking guidance on an upgrade to 11.1.
    A little background on what we are trying to do:
    We have two machines:
    Windows 2003 machine in domain 'X' | UPK 11.0.0.1.
    Windows 2008 R2 virtual machine in domain 'Y' | UPK 11.0 on the new machine first, install the 11.0.0.1 patch, and then upgrade to 11.1.
    We are using the same database as the old machine. Developer Server is Standard Authentication, Knowledge Center is Windows authentication.
    ==========================================================================================
    So far we have installed 11.1 with the respective database upgrades, but are lost as to how to migrate the old Content Root data. We have copied all the content to the new Content Root, added it to IIS like the old machine, and verified that the UPK database Content Root path is correct and working.
    For the rest of the post, I am remoted into the server from my local workstation, and then using IE to access KCenter on the server's FQDN, not via localhost.
    Since I am green, so I presumed that I would need to import the titles under Manager in KCenter. I zipped each content folder individually (they are named "1", "9", etc), and then attempted to import each zip file.
    NOTE: At this stage sometimes we are prompted to authenticate again. When it does, sometimes the credentials that we know work, get rejected and we are prompted again. This will repeat until we get a 401 and we have to start over. We have verified that the Windows account currently in session with the site is valid and has administrator authority within KC.
    NOTE2: On the first few tries, .NET complained that maxRequestLength was not large enough. I had our servers team increase it on the actual server in order for us to proceed.
    Provided we don't have to authenticate again, or that it actually accepts our credentials, we get to the 30% mark and then receive the error: *"Package load Failed! Invalid package Title, manifest file cannot be found"*
    Does anyone have any wisdom for this process? The title importation section in the deployment manual is not helping, and the administrator from whom I am taking over this software has not had to deal with this before.
    Thank you,
    Ian
    Edited by: 986290 on Feb 5, 2013 10:21 AM

    Hi Marc, thanks for the post,
    I have gone through an extensive troubleshooting process with Oracle, including their development team, in order to fully complete our project setup. As a supplemental bit of information, we also were having connection errors when attempting to publish directly to the knowledge center.
    As far as the context of this post, here is the solution in brief:
    1) Verify that the package being imported was published from the same version of the Developer Client as the Knowledge Center installation's.
    2) Check for database consistency issues. In our case we were using a database that was built in another domain. After numerous attempts with Oracle support on the line to determine the inconsistency, it was decided to completely reinstall and build a new database from scratch in the new domain.
    3) Check application pool identities and access (while we had some inconsistencies here, correcting them did not change the behavior of the import/publish errors)
    In review, a lot of what we had setup was correct. Our primary point of failure, we feel, was using the old database. Technically this should not have been a problem, but Murphy likes to get his way sometimes.
    Cheers,
    Ian

  • Invalid Package error (limits?) - SQL*Loader

    I seem to have reached a limit on SQL*Loader in 8.1.6 on the number of columns I am trying to load. The table has 97 columns - if I try to specify more than 92 columns I get an invalid package error - it doesn't matter which column I pick. The row width is close to 2K bytes. Does anyone know the max size - and is there a default that can be increased somehow?

    It maybe your BUFFER size.
    Buffer Size = Rows in Array * Max row size
    this is the formula to estimate your BUFFER size for the import.
    Look in your Parameter File for 'INCTYPE' this is the parameter name for Buffer for importing with SQL*Loader.
    Hope this helps.
    Tony

  • Error while installign AIR Application (invalid package signature errorID=5022)

    Hi All,
    I am new to Adobe AIR and facing error while Installing AIR application. This specially happens when in include a folder named "htmls" in the assets directory in my project.
    This folder have lots of html files and others folders. These file names have some special characters as well like ". & - _".
    However I can install the Application when I exclude this folder and everything works fine. Not able to find out the exact problem.
    Looking forward for help !!
    Log contents:
    .airappinstall
    failed while unpackaging: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="invalid package signature" errorID=5022]
    starting cleanup of temporary files
    application installer exiting
    .airinstall
    App installer failed; exit code 7
    begin quitting

    You may have found a bug in the AIR installer or packager. Given that the signature is an XML file, the "&" character seems the most likely culprit.
    The only short-term workaround is to identify which characters cause the problem and avoid using it.
    You should avoid the following characters in any case, since these cannot be used in file names on all platforms:
    Character            Hexcode
    various     0x00 - x1F
    *           x2A
    "           x22
    :           x3A
    >           x3C
    <           x3E
    ?           x3F
    \           x5C
    |           x7C

  • Adobe air invalid package on android 4.2.1

    I have android 4.2.1 on transformer pad tf300t and when I try to update adobe air it says invalid package.

    here's the stack trace from your app.
    E/AndroidRuntime( 2967): FATAL EXCEPTION: main
    E/AndroidRuntime( 2967): java.lang.RuntimeException: Unable to start receiver com.sputnik.wispr.NetworkScanReceiver: java.lang.StringIndexOutOfBoundsException: length=0; index=0
    E/AndroidRuntime( 2967): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2383)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.access$1500(ActivityThread.java:141)
    E/AndroidRuntime( 2967): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1310)
    E/AndroidRuntime( 2967): at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime( 2967): at android.os.Looper.loop(Looper.java:137)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.main(ActivityThread.java:5039)
    E/AndroidRuntime( 2967): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 2967): at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime( 2967): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    E/AndroidRuntime( 2967): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    E/AndroidRuntime( 2967): at dalvik.system.NativeStart.main(Native Method)
    E/AndroidRuntime( 2967): Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=0
    E/AndroidRuntime( 2967): at com.sputnik.wispr.util.WiFiPrioritisation.QuoteSSID(WiFiPrioritisation.java:65)
    E/AndroidRuntime( 2967): at com.sputnik.wispr.util.WiFiPrioritisation.enablePreferredNetwork(WiFiPrioritisation.java:335)
    E/AndroidRuntime( 2967): at com.sputnik.wispr.NetworkScanReceiver.onReceive(NetworkScanReceiver.java:65)
    E/AndroidRuntime( 2967): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2376)
    E/AndroidRuntime( 2967): ... 10 more
    W/ActivityManager( 574): Force finishing activity com.bt.mnie.wispr/.CoreActivity
    W/ActivityManager( 574): Activity pause timeout for ActivityRecord{4293be88 u0 com.bt.mnie.wispr/.CoreActivity}

  • Package owner - invalid packages

    Hello guys,
    I have this problem: I have two DB schemes A and B. I modified the code in both schemes. After compilation, many packages were invalidated. So I compiled all invalid packages, no compilation errors, everything ok.
    Now if I run this query in scheme A:
    SELECT *
    FROM ALL_OBJECTS
    WHERE OBJECT_TYPE IN ('PACKAGE', 'PACKAGE BODY')
    AND STATUS = 'INVALID';I get two records.
    The first one shows an invalid package where owner is scheme C - this is ok, because in scheme C is really such invalid package which has granted execute to scheme A.
    The second one shows an invalid package body, where owner is scheme A. But in scheme A, there is no such package. The "invalid" package is in fact in scheme B, it is in fact not invalid and it has no grants at all. So scheme A has no access to that package at all.
    Recompilation of this package in scheme B has no impact on the result. Why is the package marked as invalid and why is scheme A assigned as an owner???
    Now I run exactly same query in scheme B and get one record.
    One package is marked as invalid where owner is scheme B. However this package is in scheme A and scheme A is the owner of this package. Again the package is not invalid and recompilation of that package has no impact... In this case the package has granted execute to scheme B, so scheme B has the access to this package.
    Can anyone help me with this?
    Thanks, Dan

    I found the problem...
    After I did those changes to that packages, I first compiled the bodies to wrong schemes. So the bodies were created without specifications. I didn't see those packages because SQL Developer doesn't display them in such case...
    So I droped them now.

  • Invalid package bodies in SYS

    I have a couple of package bodies that will not compile. One of these is sys.dbms_aqadm_sys which get the error "PLS-00753: malformed or corrupted wrapped unit" when compile is run.
    Is there a way to recreate the package bodies since the compile will be work? Does anyone have a better solution?

    Do not know how this happened. I am reviewing invalid packages to prepare for a DB upgrade. I do have other databases with the same version.
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    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

  • Getting invalid packages when installing support for stored java objects

    I am getting invalid packages notices when installing support for stored java objects in Forms 9i that can with the Oracle 9iDS Suite. In the post installation notes it says to locate a few SQL files, PLB files and a JAR file and run them. On executing the SQL package that will install the rest , I am logged in as SYSTEM as the instructions stated, I get an error when it tries to load the PLB files ( which are encrypted from Oracle). Any one else have this problem or know of a solution?
    If you need more information please let me know and I will try to respond promptly.
    Thanks
    Chad Leath

    The PLB package is called ORA_DE_REFLECTION. I forgot to mention this in the previous post.

  • Invalid package declaration:

    If you read my post a few messages down, I asked how to add a package in NetBeans. Solved (THANKS).
    But now I get this error when I mouseover the items in the package. Can I get an exact walkthrough on what to do to enable a package to work in NetBeans?
    l'll be more specific. I downloaded the jpb package from http://knking.com/books/java/ (Near the bottom)
    NetBeans saves my projects in C:\Documents and Settings\Administrator. So (In accordance with the instructions given in the book) I made the dir. C:\Documents and Settings\Administartor\jpb and inserted 3 .java files in it (SimpleIO.java Convert.java and DrawableFrame.java). From this point, what do I do so that (in netbeans) I can type import jpb.* and not get any errors?
    THANKS AGAIN FOR EVERYONE WHO HELPS

    You must compile these files, and I suggest you to
    create a jar library:
    New project -> General -> Java Class Library
    Copy your sources in it and build project. This will
    generate a .jar in the dist folder in mounted
    filesystem.
    Now add this builded jar in your project library as
    commented before.
    mariOHey there, I'm also a newb facing a similar error...
    I backed up a package by copy - pasting it and now i mounted it. However, when i mouseover any of its classes it says "Invalid package declaration" and i can't solve it....
    pls help
    THX!!!

  • Installation failing due to invalid packages

    During installation of Oracle 10G designer the repository installation fails due to invalid packages. When I examine the packages they are failing to compile based on dependencies on dbms_lock. I am running against a fresh installation of 11g on the database. I verified that the package exists and a public synonym has been created but I cannot see the package from any other user aside from sys. (system cannot see the package).
    Is there anyway I can open up sys.dbms_lock to allow it to be used in compiling these objects?

    How did you create the repository?
    Did you follow the steps of the installation guide?
    In this guide you find the folloiwing statements:
    grant execute on dbms_rls to repos_owner;
    grant execute on dbms_lock to repos_owner;
    grant execute on dbms_pipe to repos_owner;
    grant create table to repos_owner;
    grant create view to repos_owner;
    grant create procedure to repos_owner;
    grant create synonym to repos_owner;
    grant create sequence to repos_owner;
    grant select on sys.v_$nls_parameters to repos_owner with grant option;
    grant select on sys.v_$parameter to repos_owner;
    grant select on dba_rollback_segs to repos_owner;
    grant select on dba_segments to repos_owner;
    grant create any synonym to repos_owner;
    grant drop any synonym to repos_owner;
    In the statement you will see that the dbms_lock package is granted to the repos_owner. (repos_owner is the username of the repository owner, if you installed under a different user use that username)

  • Invalid package WWSBR_IMT_SERVICES after apply patch 3.0.9.8.1

    After applying patch 3.0.9.8.1, get an invalid package.
    Upon trying to compile the package WWSBR_IMT_SERVICES the following error
    occurs
    SQL> show err
    Errors for PACKAGE BODY WWSBR_IMT_SERVICES:
    291/7 PL/SQL: Statement ignored
    291/20 PLS-00201: identifier 'CTX_DOC.PKENCODE' must be declared
    293/8 PL/SQL: Statement ignored
    293/21 PLS-00201: identifier 'CTX_DOC.PKENDCODE' must be declare
    We have NOT installed oracle intermedia... why is this error occuring?

    According to BUG 2120388 this is ok!

  • Invalid package status

    Hi all,
    I have following problem:
    To speed up some checking I created a cache inside package body. But everytime portal uses different session to serve show request I get ORA-04068 error.
    It's saying something about invalid state. I thought that
    private data in package body remain same tgrough a session
    and that each session has it's own copy. But it looks like some session change state of the package and others receive mentioned error. When I try it second time within same session it's ok.
    I tried to find some information in PL/SQL Guide, but there is nothing about this error.
    Can you help me with this problem?
    Is it my fault or is this "normal" behaviour?
    Thanks
    David

    Hi David,
    YES it's your fault. Answer is hidden inside your question. Portal is using different sessions to server your requests. After you made some change and recompiled the package . Most of the sessions had old information and thus rised the error message. So be patient and try all sessions to get uptodate information.
    Sorry for wasting your time.
    David

  • Causes of invalidated package

    Hi,
    I've found on the forums some information about why a package could become invalidated.
    We are encountering the 'ORA-04068: existing state of packages has been discarded' error (see stack trace at the bottom of this message).
    We get this error at random (not at a specific moment in time). And always with the same package.
    I found on the forums that a cause could be:
    - a view, used in the package, that gets renamed (this is not the case).
    - package level variables (I can not check this myself. Our client, who runs the Oracle instance, is doing that now).
    1. Are there any other causes of a package becomming invalid?
    2. Related: does a synonym become invalid when it's underlying package is invalid, or can a synonym be invalid, while it's underlying package is not?
    3. Can our client, who is reluctant in accepting the fact that the problem lies with their Oracle database (i.e. packages being invalidated), check the exact reason of the invalidation in more detail (logs, ...)?
    Thanks in advance for any insights,
    Vincent
    Stack:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "MYCLIENT.THEPACKAGE" has been invalidated
    ORA-04065: not executed, altered or dropped package body "MYCLIENT.THEPACKAGE"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1

    Packages become invalidated when any database object (table, view etc.) that that package has dependecies on is altered in any way.
    When a Package is being used it is loaded into memory and a "session state" is created for that package. This session state holds all of the package level variables for that session (different sessions running the same package will have their own copy of the package variables). If a dependency object is altered then the package is invalidated automatically by Oracle. If the package doesn't have any package level variables then Oracle will automatically recompile the package when the next call is made to anything within it by the session in question, but if variables exist then Oracle determines that these variables are now out of date because of the need for it to recompile the package. Because of this it has to discard the session state, which is why you get the error saying that the state has been discarded.
    One way to get around this is to not have any package level variables.
    If you need to have some variables (constants and types too) that are accessible by many procs/fns inside your package then a way to do this is to create another package spec containing these variables and alter the package to reference them in that package. That way, the package that has the dependencies and needs recompiling can do so without having any "state" to worry about being discarded and the variables in the other package are just variables and don't have any dependencies so that other package doesn't get invalidated or need recompiling.
    Hope that's clear.
    Edit:
    Examples...
    With package variables in dependency package...
    SQL> create table a (x number);
    Table created.
    SQL> create package pkg_a is
      2    procedure mydependantproc;
      3  end;
      4  /
    Package created.
    SQL> create package body pkg_a is
      2    state_var number;
      3    procedure mydependantproc is
      4      local_var number;
      5    begin
      6      select x into local_var from a;
      7      state_var := local_var;
      8    end;
      9  end;
    10  /
    Package body created.
    SQL> insert into a values (1);
    1 row created.
    SQL> exec pkg_a.mydependantproc;
    PL/SQL procedure successfully completed.
    SQL> alter table a add (y number);
    Table altered.
    SQL> exec pkg_a.mydependantproc;
    BEGIN pkg_a.mydependantproc; END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "CRISP_INTELL.PKG_A" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "CRISP_INTELL.PKG_A"
    ORA-06512: at line 1
    SQL>And with the package variables dissassociated into another package spec...
    SQL> create table a (x number);
    Table created.
    SQL> create package pkg_a is
      2    procedure mydependantproc;
      3  end;
      4  /
    Package created.
    SQL> create package pkg_b is
      2    state_var number;
      3  end;
      4  /
    Package created.
    SQL> create package body pkg_a is
      2    procedure mydependantproc is
      3      local_var number;
      4    begin
      5      select x into local_var from a;
      6      pkg_b.state_var := local_var;
      7    end;
      8  end;
      9  /
    Package body created.
    SQL> insert into a values (1);
    1 row created.
    SQL> exec pkg_a.mydependantproc;
    PL/SQL procedure successfully completed.
    SQL> alter table a add (y number);
    Table altered.
    SQL> exec pkg_a.mydependantproc;
    PL/SQL procedure successfully completed.
    SQL>;)
    Message was edited by:
    blushadow

  • Oracle package questions

    Kindly answer me the questions below
    1) Advantages of packages over individual procedures( other than modularity,better performance,information hiding)
    2) why do we want to create oracle package spec without body.? what is the purpose of creating the package without body?
    Kindly give ur valuable suggestions..
    S

    oraclehema wrote:
    Kindly answer me the questions below
    1) Advantages of packages over individual procedures( other than modularity,better performance,information hiding)To break dependencies. You can create or replace a package body, without invalidating objects that depend upon this package. Because those objects will depend on the package specification.
    >
    2) why do we want to create oracle package spec without body.? what is the purpose of creating the package without body?To facilitate team-development. Once the 'interface' of packaged objects has been agreed upon, the package specifications can already be created. Enabling other team developers to start building objects that depend upon them. While at the same time the implementation, the package body, is still under development.
    Or, to hold global persistent variables. I.e. to create state-only packages.

Maybe you are looking for