PL/SQL packages containing DB Links suddenly becomes invalid

Hi all --
I was wondering in anyone has come accross the issue my data warehouse team has been experiencing with PL/SQL packages utilizing DB Links. We currently use db links to load some of the data from our transactional databases into the data warehouse tables. The packages once compiled remain valid for a short period of time and then suddenly become invalid. When attempting to recompile the package we receive ORA-00904 errors even though running the statement through SQL Plus works fine. We've tried dropping the database link and re-creating it, but the package still will not recompile. The only way to correct the issue is to shutdown and restart the database. The db links in question are from a 10G Release 2 database to a 8.1.7.4 database. Any insight would be helpful.

We often had similar issues over dblinks between two 8.1.7.2 databases. The result was ORA 600 errors which could only be corrected by shutdown/re-start. Our DBAs eventually came up with flushing the shared pool, instead of the shutdown/re-start.
ALTER SYSTEM FLUSH SHARED_POOL;

Similar Messages

  • Leopard Server License Key suddenly becomes invalid after update to 10.5.8

    After doing the update to 10.5.8, when I go into Server Admin, it says my License Key is a duplicate and locks me out of all services and only allows ten clients to connect. I tried switching the license to another, and the same thing happens. And both keys work perfectly fine on a different server. Any suggestions as to what may be going on?

    Here is a copy of what keeps appearing in the Server Admin log file if that helps at all:
    Aug 11 12:17:02 spub /usr/sbin/serialnumberd[146]: MulticastListener(): conflicting serial number from 129.130.29.128
    Aug 11 12:17:06 spub servermgrd[55]: servermgr_info: [55] SNCheck() failed with 1 (spub.ksu.edu: )
    Aug 11 12:17:06 spub [0x0-0x36036].com.apple.ServerAdmin[5939]: * ERROR: -[GRAxes computeLayout]:1124 - plotRect height = 0.000000 <= 0.0 *
    Aug 11 12:17:06 spub [0x0-0x36036].com.apple.ServerAdmin[5939]: * ERROR: -[GRChartView computeLayout]:1194 - Layout for overlay axes (0xab1c290) failed. *
    Aug 11 12:17:06 spub [0x0-0x36036].com.apple.ServerAdmin[5939]: * ERROR: -[GRAxes computeLayout]:1124 - plotRect height = 0.000000 <= 0.0 *
    Aug 11 12:17:06 spub [0x0-0x36036].com.apple.ServerAdmin[5939]: * ERROR: -[GRChartView computeLayout]:1194 - Layout for overlay axes (0xab2b6a0) failed. *
    Aug 11 12:17:34 spub postfix/smtpd[5641]: warning: 125.160.151.41: hostname 41.subnet125-160-151.speedy.telkom.net.id verification failed: nodename nor servname provided, or not known
    Aug 11 12:17:51 spub postfix/smtpd[5641]: warning: 189.135.192.35: hostname dsl-189-135-192-35-dyn.prod-infinitum.com.mx verification failed: nodename nor servname provided, or not known
    Aug 11 12:18:02 spub /usr/sbin/serialnumberd[146]: Conflict found for tag xsvr: local (pid = 55, extra= ); remote (host = spub.ksu.edu, extra = )
    Aug 11 12:18:02 spub /usr/sbin/serialnumberd[146]: MulticastListener(): conflicting serial number from 129.130.29.128
    Aug 11 12:19:00 spub postfix/smtpd[6166]: warning: 189.169.250.244: hostname dsl-189-169-250-244-dyn.prod-infinitum.com.mx verification failed: nodename nor servname provided, or not known
    Aug 11 12:19:00 spub imap[6167]: TLS server engine: cannot load CA data
    Aug 11 12:19:00 spub imap[6167]: TLS server engine: No CA file specified. Client side certs may not work
    Aug 11 12:19:00 spub imap[6167]: STARTTLS negotiation failed: 213.spub.ksu.edu [129.130.29.213]
    Aug 11 12:19:02: --- last message repeated 3 times ---
    Aug 11 12:19:02 spub /usr/sbin/serialnumberd[146]: Conflict found for tag xsvr: local (pid = 55, extra= ); remote (host = spub.ksu.edu, extra = )
    Aug 11 12:19:02 spub /usr/sbin/serialnumberd[146]: MulticastListener(): conflicting serial number from 129.130.29.128

  • Can we create pl/sql code over database link?

    Hi All,
    We are using Oracle 9i database.
    I want to know if we can create or modify pl/sql code (procedue, package, etc) over the database link? That means - can we create a procedure in remote database using the db link?
    Thanks,
    Dnyanesh

    yes, I can connect to the remote database directly and create/modify the packages.
    But I want the users not to create them using the db link.
    Is there any way to create the pl/sql package over database link?
    Thanks,
    Dnyanesh

  • Objects using dblinks become invalid

    I am using numerous functions / procedures / synonyms which point to other databases via dblinks. All was well when the dbLinks / synonyms were public. Last week I was asked to put up a test schema on the same database so I duly made all the public dblinks & synonyms private. All seemed well, everything compiled so I made it live.
    Now we get intermittent problems whereby the procedures using the synonyms & dblinks suddenly become invalid. They refuse to automatically compile, causing errors in the applications using the database. SOmetimes they automatically recompile after a time, sometimes they refuse to compile until I do them manually in SQL developer.
    anybody have any idea why this should be happening?
    Main database is Oracle Enterprise 11.1.0.7 64 bit, connecting to one of same version, one of 10.2.0.4 64 bit. All running on AIX 6.1.

    Hi,
    Same thing is happening here.
    DB A with PROC_SP (Strore procedure)
    DB B with 2 users; user TEST1 referencing PROC_SP@A and user TEST2 referencing also PROC_SP@A.
    When compiling code on user TEST1 that uses PROC_SP@A, the code on TEST2 becames invalid, and vice-versa.
    Did you solve your problem ?
    My Database version is 11.2.0.2.0, both DB (A and B) use the same version (Exadata with 11R2)
    Thanks in advance.

  • Link to PL/SQL packages

    Does any one have the link that shows various pl/sql packages...oracle supplied PL/SQL packages manual (ex: FND_MESSAGE etc)?
    Thanks,
    Chiru
    Message was edited by:
    Megastar_Chiru

    - Oracle Integration Repository, Search for 'Interface Type: PL/SQL'
    http://irep.oracle.com/index.html
    - Oracle Applications Developer’s Guide - Release 11i
    http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115devg.pdf

  • Combination of packages repeteiively becoming invalid

    Hello all,
    We are using Oracle 9.2.0.7.0 on Toad and SQL Developer on a database with a vast number of packages. At the moment for no clear reason 7 packages repetitively become invalid for no transparent reason. When we recompile using dbms_utility.compile_schema all object will reinstate themselves, and become valid. The next moment you look and want to use the packages they will be invalid again.
    We have tried to compare the packages with a comparable database, where the same revisions of the packages exist. On the test database these are correct and valid, on the acceptance database they (the 7 mentioned before) fall over.
    Can anybody give us any indications on where to find the problem? We have tried recompiling the forms that are part of the applications, but these are all valid. We are out of ideas now.
    Any help is greatly appreciated.
    Thanks,
    -victorbax-

    http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/general007.htm#
    This link might give you a clue on what might have happend inside
    http://it.toolbox.com/blogs/database-solutions/keep-track-of-oracle-object-dependences-2521
    Edited by: Maran Viswarayar on Sep 24, 2008 4:28 PM

  • The -dataSource parameter in assemble a web service from a PL/SQL package

    When I use Web Service Assembler to assemble a Web Service from a PL/SQL package, I need to specify the dataSource parameter, e.g.:
    java -jar wsa.jar -plsqlAssemble -sql pkgname -dataSource jdbc/MyDS -dbConnection ... -dbUser scott/tiger ....
    The dataSource also needs to be pre-configured in the data-sources.xml in OC4J.
    I am wondering why dataSource is needed here because the database connection information is already specified on the commandline ( dbConnection and dbUser).
    If I have to specify dataSource, how do I configure data-sources.xml dynamically at run-time (e.g., adding entries)?
    Thanks,
    Jim

    The -dataSource parameter specifies the data-sources.xml entry used at runtime. The database connection info is only for design time use. Typically you make sure data-sources.xml contains an entry with jndi-location of the same name you specifies for -dataSource. To configure data-sources.xml at runtime, it is out of the scope of web services. Please refer to OC4J admin guide. You can probably modify the data-sources.xml file and force OC4J to reconfigure based on the new data-sources.xml file.

  • Creating PL/SQL packages

    Hello,
    The problem I am confronted with is reusing generated models.
    In the process of DataMinig several steps are used: prepare data, Attribute selection (using AI), and building, testing and applying models.
    If PL/SQL packages are used two problems occur:
    First: Long, hand driven process of building:
    Model generation in ODM,
    PL/SQL package building in ODM and Export to SQL file,
    importing package to DB, compiling and running.
    I am sorry, but I don't understand why is it necessary to export PL/SQL packages in a file? As if these products aren't both Oracle products?
    Second: If data (in time) changes and AI selects new attributes, then all next steps fail, since column names, and even some values, are hard coded! Therefore it is necessary to go trough the build and export process all over again. This really hurts.
    Do you have a suggestion how to get around this problem?
    I already considered using a SPSS Clementine, but since it is not an Oracle product I still believe, the original Oracle solution should give me some advantages.
    Oh and another issue.
    I tried using PL/SQL generator (Ver.: 10.1.3.0.17) in JDeveloper (ver.: 10.1.3.0.4), but it gave me an error:
    java.lang.NoClassDefFoundError: oracle/dmt/dm4j/DM4JConnectionManager
         at oracle.dmt.dm4j.extension.CodeGenerator.invoke(Unknown Source)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:310)
         at oracle.ide.wizard.WizardManager$2.run(WizardManager.java:358)
         at oracle.ide.util.IdeUtil.invokeAfterRepaint(IdeUtil.java:1093)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:366)
         at oracle.ide.util.IdeUtil$1$1.run(IdeUtil.java:1073)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Thanks for the reply,
    Igor

    Hi,
    The code generation available in ODMr would allow you to deploy the build, apply or test process as generated code.
    I am not sure what your application goal is, but if you simply want to deploy a model be used in an apply process that is rather straight forward.
    You would build the model using ODMr. Then create an Apply Activity, again using ODMr.
    The Apply Activity can then be used to generate code (pl/sql) using the JDev RTM release (10.1.3.2 or above). We will also have a version that will work with SQLDev shortly.
    The generated code is immediately placed into the db for you.
    If you want to score in a separate db you can either create a db link from that db or move both the model and the apply pl/sql code to the new db (using dba utilities).
    If you want to rebuild a model, where you would add/remove attributes, change transformations etc. then you will have to regenerate the code.
    If you simply want to rebuild the model without changing any transformations and settings you could also deploy the model build generated code.
    As for the JDev failure, we are going to look into that. Have you tried the JDev 10.1.3.3 release available on the Oracle web site?
    Thanks, Mark

  • Creating PL/SQL package in SQL Developer 4.0.0.12

    Hi,
    I have built a model in SQL Developer 4.0.0.12 and I want to create it's PL/SQL package.
    In ODMiner 11.1.0.4 from "Tools" > "Create pl/sql package" I can get a script for creating package and every thing is OK.
    but in SQL Developer I select "Deploy" from every node's context menu and it generates a folder containing some scripts related to every node. I don't see any relevant script for creating any package.
    How can I create relevant PL/SQL package from my workflow?
    Thank you for any help you can provide in this situation.

    Please refer to this White paper for how to generate PL/SQL package for workflow deployment:
    Oracle Data Miner (Extension of SQL Developer 4.0)
    Generate a PL/SQL script for workflow deployment
    http://www.oracle.com/technetwork/database/options/advanced-analytics/odmrcodegenwhitepaper-2042206.pdf

  • Package contained old version of indd (CS3) file

    Has anyone had this happen to them.
    I packaged a job and sent it away - only to hear back from the printer to say the file was an earlier version of that publication. Huh?
    That job folder containing the linked images had one .indd file which should have been packaged containing the most recent changes that were saved that day. Yet it did not. The package contained a file at least two days old - one that logically no longer exists.
    Is there a cache issue here? This has me flummoxed. Any suggestions would be great. It's a worry because you rely on this package feature to use the most recent saved version of your file!
    Thanks. JETNZ

    I think it is pretty clear from your reference to InDesign insisting on saving.... yes I find that slightly annoying too, but it is common to end up with 2 files, one in the package and one where you started the job and it is very easy to open the wrong one, especially if you use multiple for saving packages.
    If you use the 'open recent' function, it is very easy to open the wrong version.
    When you have changes after first packaging you are forced to make a decision to either delete the original package set or open the new indd file in the packaged version and resave, leaving the original file floating around.
    Either way, there are 2 files and the potential to use the wrong one. I would probably never use the 'open recent' menu because of the risk of opening the wrong file if saving to various versions/locations because there is no indication of the path.
    I know there is no substitute for good work practices in versioning files, but 'open recent' is an obviously high-risk option.
    JETNZ, it is impossible for a file to revert itself, you have likely jumped to the packaged file and then hopped back to the original and repackaged....avoid (re)working on the previous packaged file, delete old packages and keep working on the original set and create fresh packages and when ID wants you to resave, make sure you save over your original.

  • Problems with PL/SQL packages

    Hello,
    I face the following problem with PL/SQL stored procedures. The Oracle
    version is 8.0.5 on Windows NT 4. The PL/SQL package has a set of procedures and functions.
    The main procedure of the PL/SQL package is triggered from VC++ executable. If for some reason,
    an exception is caught in the stored procedure (like no_data_found
    exception), then the following problem occurs.
    If we try to trigger the stored procedure again through the VC++ executable,
    the variables in the stored procedures have the values as in the previous
    execution. They are not getting initialised. (The same database connection
    is used in VC++ executable).
    Currently, only if a new connection to the database is used , the problem is
    solved.
    Also, change in the input parameters of the procedure is not reflected, once the procedure fails because of any exception. Only the input which was given during the time of execution when the procedure failed,is considered.
    What could be the reason for this problem and how can this be corrected?
    Please send in your suggestions.
    Thanks and Regards,
    Ramya Priya
    null

    Hi Keith,
    I am connecting to the database as the package owner..
    I have noticed earlier that I have problems when capturing triggers also.. The content of one large trigger contains 36371 characters and when capturing it from DB, the content was truncated to 28020 characters in Designer.
    Our ideas with capturing the DB packages/procedures were to use the Designer as version control system.
    We wanted to have all objects used in a project in Designer.. entities, tables, triggers, packages, procedures, Forms files, etc. in order to make a configuration for a project release.
    Thank you,
    Claudia

  • JS Validation for Drop down List is not working in Oracle PL/SQL Package

    Hi All,
    I am facing an issue with JavaScript validation done in Oracle PL SQL package.
    System Requirement:
    There is one screen which contains two fields viz. FLD 1 & FLD 2 and one 'Submit' button.
    FLD 1 and FLD 2 fields are drop down list boxes.These are mandatory fields.
    The screen is developed in Oracle Mod PL SQL package.
    The html coding and java scripting are embedded in the respective Oracle PL SQL Package procedure which generates this screen,takes the input values provided by user,does the
    field validations and submits the form.
    Issue:
    The javascript validation for FLD 2 dropdown is working successfully.
    When the user leaves this field as blank,the embedded javascript pops up an error message 'Selection of FLD 2 is manadatory before submitting the form!'.
    As FLD 1 is also a mandatory field,the javascripting validation should pop up the similar error message 'Selection of FLD 1 is manadatory before submitting the form!'.
    But,this first field validation is not at all working.
    The system allows to submit the form even if the 'FLD 1' is left blank.
    The javascript code sysntax for validation of FLD 1 & FLD 2 drop down list boxes as follows:
    function validate_form_fields()
    if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
    [0].p_fld_1.selectedIndex < 1 )
    alert("Selection of FLD 1 is manadatory before submitting the form!!!");
    return false;
    else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
    [0].p_fld_2.selectedIndex < 1 )
    alert("Selection of FLD 2 is manadatory before submitting the form!!!");
    return false;
    return true;
    I am viewing the screen from the web browser IE version 8.0.
    Your timely help will really be appreciated.
    Regards & Thanking in advance,
    Alka

    Hi,
    1. Your problem is actually related to JavaScript, not SQL and PL/SQL. So, this is the wrong forum to post. The closest to JS is the Application Express forum {forum:id=137}. Clearly state that it is not an Apex issue and that you are looking for JS help.
    2. Your JS code, the way you has posted it, is syntactically incorrect, so if you post on Apex forum put the correct code and in tags as described in the FAQ
    {quote}
    function validate_form_fields()
    if (document.forms[0].p_fld_1.selectedIndex == 0))) || (document.forms
    [0].p_fld_1.selectedIndex < 1 )
    alert("Selection of FLD 1 is manadatory before submitting the form!!!");
    return false;
    else if (document.forms[0].p_fld_2.selectedIndex == 0))) || (document.forms
    [0].p_fld_2.selectedIndex < 1 )
    alert("Selection of FLD 2 is manadatory before submitting the form!!!");
    return false;
    return true;
    {quote}
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Where or how do I find the installation package containing "iTunes.msi"?

    I have iTunes 10.5.3.3 installed on my computer with a Windows XP operating system.  I have tried to download the new itunes 10.6 but continually get a pop up which states "The feature you are trying to use is on a network resource that is currently unavailable.  Enter an alternate path to a folder containing the installation package "iTunes.msi".  I have tried  and failed to find this package. 
    I have also tried the support page suggestion by uninstalling the old itunes and then install the new one.  This did not work.  Another pop up also tells me that I cannot remove the old (10.5.3.3) itunes...because..." the feature I am trying to use is on a network resource that is currently unavailable". I am caught in a loop.  It appears that I need to locate the "iTunes.msi" installation package in order to be able to uninstall the old and replace with the new iTunes upgrade.
    Where or how do I find the installation package containing "iTunes.msi"?  Secondly, when I find it is there anything special I need to do or be aware of?

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • TS5376 I did as this article described.  The download was going smoothly until I got this error message "Click OK or enter alternate path to folder in installation package containing the file itunes.msi"   Where can I get "itunes.msi"  ??

    I did as this article described.  The download was going smoothly until I got this error message "Click OK or enter alternate path to folder in installation package containing the file itunes.msi"   Where can I get "itunes.msi"  ??

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Syntax for calling html page in PL/SQL package

    Hi,
    I'm trying to call html page (stored on server) in my pl/sql package!
    I have already create html page in pl/sql package code and it's works fine.
    Now create better html page (interface design) and stored on server. I would like to call that stored html page in my pl/sql package.
    What is syntax for calling html page in PL/SQL or could you suggest me some literature.
    In first option I had created ces and stored it on server. Then I call it in pl/sql package like htp.p('<link rel="stylesheet" href="\download\table_style.css" type="text/css">');
    I try someting like that for calling html page but it doesn't works.
    htp.p('<link rel="form" href="\download\interface.htm" type="text/html">');
    Does anyone know syntax for calling html page in pl/sql?!?
    Thanks!

    hello
    I normally use htp.anchor(URL,linkname);
    it works
    ammar sajdi
    www.e-ammar.com/Oracle.htm

Maybe you are looking for

  • Small window preview question

    Hi all, In some graph/diagram drawing applications there is the possibility of showing the whole "diagram" in a small window in a corner even if in the main window only a portion of its is visible. This small window shows also the visible part of the

  • Replaced HDD, now MacBook Pro won't power on.

    Just bought a new HDD, Seagate Momentus 750Gb (link below). Installed it in my MacBook Pro, replacing the old 160Gb drive (also a Seagate Momentus, older version though) and when I tried to boot my laptop back up it won't even power on. I don't hear

  • Slow response switching programs

    Should I be buying antivirus software, if so which one is best? I am used to having these programs open at all times, mail, firefox, preview, word and address book. On my old laptop, I also had both yahoo and msn messenger running. I find that clicki

  • Budgetting report

    Dear IM expert, Hi... i'm newbie for SAP. I'm working on budgetting and upload to SAP using abap program. I'm require to check if budgets i have already uploaded, are right or not. I'm using KPF6, KPD6, CJR2, CJS2 to check and i tried to make a custo

  • Timeout on First Attempt of a Request - Network Issue?

    Hi, I have a test client app (Axis Java generated by WSDL). When I send out a request for a 'product' I get the SocketTimeoutException/Read timed out (please, see below.), but it happens only when I request that particular product for the very first