PLS-00907 Error but referenced package compiled

Hi I am experiencing some problems with Database Link.
In DEV Environment,
I have two database, DB A and DB B.
In DB A I have package name SUPPORT_PKG and inside it I have a function named HISTORY_UPDATE.
Package is compiled correctly in DB A and working fine.
I created a procedure CALL_HIST_UPD in DB B to execute SUPPORT.PKG.HISTORY_UPDATE@A through DB LINK.
and it gave me PLS-00907 error.
UAT environment has the same setup of user and package as DEV.
then I tried to copy the CALL_HIST_UPD to DB B in UAT and it can be compiled sucessfully in UAT.so I do the following
Back to Dev again
I tried to figure what's going on until I decided to replace the header specification SUPPORT.PKG.HISTORY_UPDATE
with the declaration part from the body and recompiled the whole package again, and this time I can compile the procedure in DB B.
I am curious and check the header in UAT and found that UAT Headers is the same exactly with the DEV Headers
before I replaced it with the new one by copying from the body. I am curious why the DEV environment give the PLS-00907 error at the first time, even at that time package in A are compiled nicely.
Let me know if the question is not clear.
thanks for your help

Try this -
CREATE OR REPLACE PACKAGE data_mgmt AUTHID CURRENT_USER
IS
   FUNCTION hy_name (in_dt DATE, in_option_txt VARCHAR2)
      RETURN VARCHAR2;
END data_mgmt;
CREATE OR REPLACE PACKAGE BODY data_mgmt
IS
   FUNCTION hy_name (in_dt DATE, in_option_txt VARCHAR2)
      RETURN VARCHAR2
   IS
      return_txt   VARCHAR2 (25);
   BEGIN
      RETURN return_txt;
   END hy_name;
END data_mgmt;
/

Similar Messages

  • PLS-00907

    We're getting an intermittent PLS-00907 error in one of our applications and I've been assigned to track down the cause.
    The Oracle version is 10.2.0.2 and the error text is
    PLS-00907: cannot load library unit SCHEMA_NAME.TABLE_NAME (referenced by SCHEMA_NAME.PACKAGE_NAME)
    All the references to this error I have found either had to do with compiling a package or the library unit named was either a package or procedure.
    In this case the library unit named is a table and when I find the error in our log file, I can see that the application had previously successfully completed the same operation about an hour earlier and if I query the LAST_DDL_TIME from DBA_OBJECTS for the table, the package, and the package body, all three are earlier than the time when the application had successfully completed the task.
    It has been our observation that once the error occurs once, it will happen intermittantly every four to six hours until we have the DBA flush the shared pool. After flushing the shared pool the problem goes away for about a week.
    Does anyone have any ideas where I should start looking?
    Edit: Another bit of information: The first non-comment line in the package source is a variable declaration :
    variable_name    TABLE_NAME.column_name%TYPE;Where "TABLE_NAME" is the same table name as in the error message.
    Edited by: kendenny on Sep 28, 2009 1:13 PM

    Try below solution.
    Cause
    Issue is caused by sequencing problem during the application of the patch
    as discussed in bug 945478
    Solution
    To implement the solution, please execute the following steps:
    1. Recompile the failing package:
    for ex:-
    alter package ABC_PACK compile;
    alter package ABC_PACK compile body;
    2. Restart the failed worker
    Regards
    Click here for [Block Corruption and recovery|http://www.oracleracexpert.com/2009/08/block-corruption-and-recovery.html]
    Click here for [Redo log corruption and recovery|http://www.oracleracexpert.com/2009/08/redo-log-corruption-and-recovery.html]
    http://www.oracleracexpert.com

  • Cyclic PLS-00538 and PLS-00539 errors?

    I've defined a supertype, t_cliente, and derived two subtypes, t_cliente_pers and t_cliente_soc. The first one has 6 member functions and the latter ones override only two of them.
    Every time I launch the script for creation I get PLS-00538 and PLS-00539 errors, but I'm not able to find out why.
    The explanation for PLS-00538 is: subprogram or cursor "string" is declared in an object type specification and must be defined in the object type body.
    For PLS-00539 is: subprogram "string" is declared in an object type body and must be defined in the object type specification.
    It's a cycle! And after all I defined these 2 functions in type specification and type body.
    I'm using 10g XE. Here's the code:
    create TYPE t_indirizzo AS OBJECT (
    via VARCHAR(45),
    numero NUMBER(4),
    cap INTEGER(5),
    citta VARCHAR(30),
    provincia VARCHAR(30),
    regione VARCHAR(30),
    MEMBER FUNCTION indirizzoCompleto RETURN VARCHAR
    create TYPE t_telefono AS OBJECT (
    num_tel NUMBER(15)
    create TYPE t_telefono_array IS VARRAY(3) OF t_telefono
    create TYPE t_anagrafica AS OBJECT (
    nome VARCHAR(45),
    cognome VARCHAR(45),
    sesso CHAR(1),
    cod_fiscale VARCHAR(16),
    data_nascita DATE
    create TYPE t_ragioneSociale AS OBJECT (
    nome_soc VARCHAR(45),
    data_cost DATE,
    part_iva NUMBER(11)
    create TYPE t_persona AS OBJECT (
    dati_anagrafici t_anagrafica,
    indirizzo t_indirizzo,
    email VARCHAR(45),
    telefono t_telefono_array
    create TYPE t_societa AS OBJECT (
    ragione_sociale t_ragioneSociale,
    indirizzo t_indirizzo,
    email VARCHAR(45),
    telefono t_telefono_array,
    persona_rif REF t_persona
    create TYPE t_cliente AS OBJECT (
    cod_cliente NUMBER(8),
    MEMBER FUNCTION incFatti RETURN NUMBER,
    MEMBER FUNCTION incSubiti RETURN NUMBER,
    MEMBER FUNCTION incFattiPeriodo RETURN NUMBER, /* this is the first function that gives me problems */
    MEMBER FUNCTION incSubitiPeriodo RETURN NUMBER, /* this is the second one */
    MEMBER FUNCTION nomeCliente RETURN VARCHAR,
    MEMBER FUNCTION tipoCliente RETURN VARCHAR
    ) NOT FINAL
    create or replace
    TYPE BODY t_cliente AS
    MEMBER FUNCTION incFatti RETURN NUMBER
    IS incidenti NUMBER;
    BEGIN
    SELECT count(i. cod_incidente) INTO incidenti
    FROM incidente i, mezzo m
    WHERE SELF.cod_cliente = m.proprietario.cod_cliente AND m.num_targa = i.mezzo. num_targa AND i. responsabilita = 'c';
    RETURN (incidenti);
    END;
    MEMBER FUNCTION incSubiti RETURN NUMBER
    IS incidenti NUMBER;
    BEGIN
    SELECT count(i. cod_incidente) INTO incidenti /* here's the first PLS-00538 error */
    FROM incidente i, mezzo m /* here's the second PLS-00538 error */
    WHERE SELF.cod_cliente = m.proprietario.cod_cliente AND m.num_targa = i.mezzo. num_targa AND i. responsabilita = 's';
    RETURN (incidenti);
    END;
    MEMBER FUNCTION incFattiPeriodo(da DATE, a DATE) RETURN NUMBER /* here's the first PLS-00539 error */
    IS incidenti NUMBER;
    BEGIN
    SELECT count(i. cod_incidente) INTO incidenti
    FROM incidente i , mezzo m
    WHERE SELF. cod_cliente = m.proprietario.cod_cliente AND m. num_targa = i.mezzo. num_targa AND i. responsabilita = 'c' AND (i.data_inc BETWEEN da and a);
    RETURN (incidenti);
    END;
    MEMBER FUNCTION incSubitiPeriodo(da DATE, a DATE) RETURN NUMBER /* here's the second PLS-00539 error */
    IS incidenti NUMBER;
    BEGIN
    SELECT count(i. cod_incidente) INTO incidenti
    FROM incidente i , mezzo m
    WHERE SELF. cod_cliente = m.proprietario.cod_cliente AND m. num_targa = i.mezzo. num_targa AND i. responsabilita = 's' AND (i.data_inc BETWEEN da and a);
    RETURN (incidenti);
    END;
    MEMBER FUNCTION nomeCliente RETURN VARCHAR
    IS
    BEGIN
    RETURN TO_CHAR(cod_cliente);
    END;
    MEMBER FUNCTION tipoCliente RETURN VARCHAR
    IS
    BEGIN
    RETURN ('u');
    END;
    END;
    create TYPE t_cliente_pers UNDER t_cliente (
    persona REF t_persona,
    OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR,
    OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
    ) NOT FINAL
    create or replace
    TYPE BODY t_cliente_pers AS
    OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR
    IS nc VARCHAR(90);
    BEGIN
    SELECT concat(DEREF(SELF.persona).dati_anagrafici.nome, concat(' ',DEREF(SELF.persona).dati_anagrafici.cognome)) INTO nc
    FROM DUAL;
    RETURN (nc);
    END;
    OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
    IS
    BEGIN
    RETURN ('p');
    END;
    END;
    create TYPE t_cliente_soc UNDER t_cliente (
    societa t_societa,
    OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR,
    OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
    ) NOT FINAL
    create or replace
    TYPE BODY t_cliente_soc AS
    OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR
    IS
    BEGIN
    RETURN (societa.ragione_sociale.nome_soc);
    END;
    OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
    IS
    BEGIN
    RETURN ('s');
    END;
    END;
    /

    The declarations of functions incFattiPeriodo and incSubitiPeriodo differ between type specification and type body (the ones in the type body have formal parameters).

  • Getting package compilation error

    Hi
    When I am compiling the package in TOAD it is compiling without any error but the same code when compile from sqlplus I am getting error saying that
    PLS-00103: Encountered the symbol "END" when expecting one of the
    following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe
    Could someone please help me on this.
    Thanks,
    Y

    Hi Y;
    Did you try to run below?
    SQL>ALTER PACKAGE [schema.]package_name COMPILE
    [DEBUG PACKAGE|SPECIFICATION|BODY];
    SQL>show errors
    For more details please check:
    How to show errors in compiling package body
    Re: How to show errors in compiling package body
    Please also check below and see its helpful:
    PLS-00103 When trying to generate a Procedure [ID 122587.1]
    Common Reasons for PLS-00103 [ID 199421.1]
    Invalid Packages For BNE [ID 455454.1]
    Regard
    Helios

  • SSIS Job is getting failed with an error "0x00000005 : Failed to compiled scripts contained in the package.

    Hi All. Could anyone resolve my issue.
    I was created a package with an Script task written in VB.Net.
    The Package was executing Successfully in BIDS.
    But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
    "Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  5:12:27 PM  Error: 2013-03-13 17:12:32.33    
    Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. 
    End Error  Error: 2013-03-13 17:12:32.33     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
    in class 'ScriptMain'., ScriptMain.vb, 156, 22  End Error  Error: 2013-03-13 17:12:32.36     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: The binary
    code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:34.28     Code: 0x00000005    
    Source: Formating Excel Sheet Formating Excel Sheet     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2013-03-13 17:12:34.28    
    Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22  End Error 
    Error: 2013-03-13 17:12:34.29     Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: The binary code for the script is not found. Please open the script in the
    designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0x00000004     Source: Checking Alcon Files      Description:
    The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0xC0024107    
    Source: Checking Alcon Files      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  5:12:27 PM  Finished: 5:12:51 PM 
    Elapsed:  24.336 seconds.  The package execution failed.  The step failed."
    Please give some solution to this.
    Thanks in advance

    Are you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
    /FILE "\"D:\yourPathGoesHere.dtsx\""  /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
    That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
    line manually:
    /FILE "D:\yourPathGoesHere.dtsx"  /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
    Please write back whether that helps you. David Dye's answer didn't help me at all.

  • Script Task Builds Successfully But Still Has Compile Error (SQL 2012)

    This is repost in a way but the problem has not gone away and I really need to find a solution.
    I have some script from SSIS 2008 that uses the ReportExecution2005
    web service to execute SSRS reports and save the results to Excel. There were some initial problems with confusion between Web Service Reference (legacy?) and Service Reference (WCF) but I think that I have that sorted out
    now.
    The remaining problem is that, while the VB script (which I have pasted in from a working SSIS 2008 Script Task) builds/complies without error, I get a compile error when I close the Script Task and it has the dreaded "Red X" in the Control
    Flow. If I attempt to run the package I get a message box saying that there is a compile error.
    How can I identify the problem and fix the error? The script itself has no errors in SSIS 2008.
    R Campbell

    This is the code by the way (see below) as pasted into the Main sub.
    I have added
    http://localhost/reportserver/reportexecution2005.asmx as a Web Service
    Reference (under the  "Advanced" button) not just a Service Reference (WCF).
    I can build the code without error but I get an error, saying that there is compile error, when I close the Script Task.
    ReportExecutionService definitely shows up in Object Explorer, not the
    WCF "equivalent" of ReportExecutionServiceSoapClient.
    I have always had the impression, that when you close a Script Task, a compiler kicks in to auto-generate some internal script. Could it be (as seems likely) that this compiler is picking up errors that "Build" doesn't (when the script is open)?
    I think that there was once an explicit Compile rather than just Build option in the Script editing environment but I can't find it in SQL 2012 Database Tools (nee BIDS).
    Dim objRSExec As New localhost.ReportExecutionService
    Dim objParam0 As New localhost.ParameterValue
    Dim objParam1 As New localhost.ParameterValue
    Dim objParam2 As New localhost.ParameterValu
    Dim objParam3 As New localhost.ParameterValue
    Dim objParam4 As New localhost.ParameterValue
    Dim objParam5 As New localhost.ParameterValue
    Dim objParam6 As New localhost.ParameterValue
    Dim objParams() As localhost.ParameterValue
    Dim objResult() As Byte
    Dim objStream As FileStream
    Dim FileType As String
    Dim FileExtension As String
    Dim FilePath As String
    Dim NumberOfParameters As Integer
    Dim ReportName As String
    Dim TaskSuccess As Boolean = True
    FileType = Dts.Variables("FileType").Value.ToString()
    FileExtension = Dts.Variables("FileExtension").Value.ToString()
    FilePath = Dts.Variables("FilePathNameExt").Value.ToString()
    ReportName = Dts.Variables("ReportPathName").Value.ToString()
    NumberOfParameters = CInt(Dts.Variables("NumberOfParameters").Value) - 1
    ReDim objParams(NumberOfParameters)
    If NumberOfParameters >= 0 Then
    objParam0.Name = Dts.Variables("P0Name").Value.ToString()
    objParam0.Value = Dts.Variables("P0Value").Value.ToString()
    objParams(0) = objParam0
    End If
    If NumberOfParameters >= 1 Then
    objParam1.Name = Dts.Variables("P1Name").Value.ToString()
    objParam1.Value = Dts.Variables("P1Value").Value.ToString()
    objParams(1) = objParam1
    End If
    If NumberOfParameters >= 2 Then
    objParam2.Name = Dts.Variables("P2Name").Value.ToString()
    objParam2.Value = Dts.Variables("P2Value").Value.ToString()
    objParams(2) = objParam2
    End If
    If NumberOfParameters >= 3 Then
    objParam3.Name = Dts.Variables("P3Name").Value.ToString()
    objParam3.Value = Dts.Variables("P3Value").Value.ToString()
    objParams(3) = objParam3
    End If
    If NumberOfParameters >= 4 Then
    objParam4.Name = Dts.Variables("P4Name").Value.ToString()
    objParam4.Value = Dts.Variables("P4Value").Value.ToString()
    objParams(4) = objParam4
    End If
    If NumberOfParameters >= 5 Then
    objParam5.Name = Dts.Variables("P5Name").Value.ToString()
    objParam5.Value = Dts.Variables("P5Value").Value.ToString()
    objParams(5) = objParam5
    End If
    If NumberOfParameters >= 6 Then
    objParam6.Name = Dts.Variables("P6Name").Value.ToString()
    objParam6.Value = Dts.Variables("P6Value").Value.ToString()
    objParams(6) = objParam6
    End If
    Try
    With objRSExec
    .Credentials = System.Net.CredentialCache.DefaultNetworkCredentials
    .Url = "http://localhost/reportserver/reportexecution2005.asmx"
    .LoadReport(ReportName, Nothing)
    .SetExecutionParameters(objParams, "en-us")
    objResult = .Render(FileType, Nothing, FileExtension, Nothing, Nothing, Nothing, Nothing)
    End With
    objStream = File.Create(FilePath, objResult.Length)
    With objStream
    .Write(objResult, 0, objResult.Length)
    .Close()
    End With
    Catch e As Exception
    Dts.Log("ERROR - RSExec - " & e.Message.ToString(), 100, Nothing)
    TaskSuccess = False
    End Try
    If TaskSuccess Then
    Dts.TaskResult = ScriptResults.Success
    Else
    Dts.TaskResult = ScriptResults.Failure
    End If
    R Campbell

  • PLS-00201 error calling function in package member

    Hello,
    I'm trying to call a function defined in a PL/SQL package, but receiving a PLS-00201 error.

    Sorry, a finger-controller error caused me to submit before I was ready. I'm having the module replaced today. :)
    After rethinking my decision to post here, I decided not to. I've never received a helpful answer, probably because the issues are not simple... Too bad.

  • SSUS 2012 Script Component (VB) Build But Still Has Compile Error

    The title says it all really.
    The Script Component builds without error but when I close the editor (and when I execute the package), I get a message saying that there is a compile error. There is of course a big red "X on the script component. No errors are indicated in the edit
    window or when building the script. Can anyone help? this is really holding me up.
    The script has been copied from a working SSIS 2008 package. It uses the report execution web method. I have successfully changed the web reference to ReportExcution2010, there doesn't seem to be a RepprtExcution2012.
    R Campbell

    It's probably best to close thread and that I start a new one. I think that I have gone off on a tangent here. Yes SSIS isn't doing much of a job in reporting errors but my main concern is the error itself.
    I am trying to port an SSIS Script Task from SQL 2008 to SQL 2012. Is uses the ReportExecution2005 web service to run SSRS reports. The really strange thing is that, even though the same web reference is used, different methods seem
    to be available in SQL 2008 and SQL 2012. This doesn't sound right to me, if you refer to the same Web Service you should see the same metros or am I wrong about that.
    For example in SQL 2008 there is ReportExecutionService
    object but on the SQL 2012 to service there only seems to be
    ReportExecutionServiceSOAPClient.
    R Campbell

  • Errors were found when compiling the workflow. The workflow files were saved but cannot be run.

    Greetings All,
    I am having issues with a SharePoint Designer workflow.  This is a SharePoint 2013 environment, I'm using SharePoint Designer 2013 and working on a SharePoint 2010 workflow.  I'm developing this as a SharePoint 2010 workflow because I need to do
    impersonation.
    The environment and workflow have been running, in the past week, without issue.  I went to add a couple steps and now I cannot publish the workflow.  While in SharePoint Designer, I receive the error:
    "Errors were found when compiling the workflow.  The workflow files were saved but cannot be run."  When I click the Advanced button on the error dialog, the message is "Unexpected error on server associating the workflow." 
    That is all the error information I have available; nothing is in the log files.
    I have investigated this error and tried the following:
    Cleared the SharePoint Designer cache.
    The WebApp.UserDefinedWorkflowMaximumComplexity was at 7000 so I increased it to 10000.  Restarted the servers (which may not have been necessary) and tried again receiving the same error.  I then increased it to 30000 with the same error result.
    Since this is a large workflow, I tried created a workflow with a single action, write to workflow log, with the same error results.
    I reboot the servers and try again and now I can publish the small test workflow but not the original.  However, neither will run.  When I attempt to manually run the small test workflow on an item, I get an error: "Sorry something went wrong.
    An unexpected error occurs.  I checked the log files for the correlation id and nothing, nothing was logged for the error. ~arg~
    Also, now no workflows can be published in this web app.  Not just the one I was working on but none of them!
    Does anyone have a clue what has happened to the SharePoint 2010 workflow service?  Or some suggestions for me to try?
    Thank you in advance for your help!
    Bob Mixon

    try these links:
    http://sp2013.pro/2013/04/solution-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run-cannot-set-unknown-member/
    http://code2care.org/pages/sharepoint-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run/
    http://sharepoint.stackexchange.com/questions/119909/sharepoint-designer-error-errors-were-found-when-compiling-the-workflow
    http://stackoverflow.com/questions/26413125/errors-were-found-when-compiling-the-workflow-in-sharepoint-2013
    Hi Sagar,
    I appreciate it but if you see my original post, this is a SharePoint 2010 workflow that cannot be published; which has now caused all SharePoint 2010 workflows in the same web app to error.
    Your first link is specific to SharePoint 2013 workflows.
    Your second link refers to the UserDefinedWorkflowMaximumComplexity.  If you read my original post, I've already tried this and I've tried to publish a small (single activity) workflow.
    Your third link also refers to large workflows with many approval activities.  My workflow doesn't contain any approval activities.
    And you fourth link refers to 2013 workflows not 2010.
    My issue is with publishing and running a SharePoint 2010 workflow in SharePoint 2013.
    Thank you...

  • I tried updating iTunes to version 11.1.1, but installation fails each time even when I did it manually as was suggested.  The message I receive is: "The installer has encountered an unexpected error installing this package.  This may indicate a problem"

    I tried updating iTunes to version 11.1.1, but installation fails each time even when I did it manually as was suggested.  The message I receive is: "The installer has encountered an unexpected error installing this package.  This may indicate a problem with this package.  The error code is 2324."

    Hi hongkongpom,
    Just wanted to say that after posting the problem, I had a chat with an iTunes' Tech Support, her name is Rebekah.  My problem was resolved after that.  Will list the chat history below in hopes that it may help you as well.
    Good luck!
    Samia  
    Chat Transcript
    Friday, October 4, 2013 05:55 AM
    Duration: 81 minutes 28 seconds
    Rebekah:
    Welcome to AppleCare chat support. Please give me a moment to look over your information.
    Rebekah:
    Hi, Samia! My name is Rebekah. If we get disconnected, please chat us back. http://www.apple.com/support/ipod/contactEnter the case number from the initial email we sent you. This gives the next advisor you chat with immediate access to your case history.
    Rebekah:
    Could you please confirm your serial number? I want to be sure we provide the best service possible for you, Samia!
    SAMIA:
    Sure, it's 8L8395UY2C5
    SAMIA:
    My problem is with iTunes.
    Rebekah:
    Thanks for that confirmation. Just a heads up, this is iOS Tech Support. We do support iPod touches, iPads, and iPhones, but not the iPod classic. But no worries! I can get you in touch with a phone Advisor who can get you in touch with the department that specializes in iPod classics and would be able to better assist you. Would that be OK?
    SAMIA:
    I wasn't able to install the new version of iTunes (version 11.1.1). The installation keeps failing. The they suggested the I install it manually and that failed too. I will attach the message I received.
    SAMIA:
    I don't have a problem with iPod.
    SAMIA:
    Just iTunes
    Rebekah:
    No problem! We can certainly troubleshoot iTunes as much as possible. It may come to the point that you may have to transferred, but we can do as much as possible during this chat!
    Rebekah:
    Thanks for the screenshot. It is a bit small so I am unable to fully see the message that you are receiving. What is the error message you are receiving?
    SAMIA:
    This is the message I received in case you weren't able to open the attachment: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2324."
    Rebekah:
    Thanks for that info!
    SAMIA:
    Pleasure!
    Rebekah:
    What version of Windows (XP, Vista, 7) do you have?
    SAMIA:
    Windows 7
    SAMIA:
    Windows 7 Home Premium
    Rebekah:
    Thanks for that confirmation. I do apologize for the delay, Samia. I am researching this error code now. You mentioned trying to install iTunes manually. To be sure I am on the same page, what steps did you take to do that?
    SAMIA:
    Well when the indsatalltion failed I was given instructions to select Download Only from Tools and then install manually. When I did it, I window popped up with the following items: - AppleApplicationSupport
    SAMIA:
    - AppleMobileDeviceSupport64
    SAMIA:
    - Bonjour64
    SAMIA:
    iTunes64
    SAMIA:
    SetupAdmin
    SAMIA:
    I selected Repair in all of them instead of Remove and all worked but iTunes64
    SAMIA:
    That's when I received the message that I sent you earlier.
    SAMIA:
    By the way, this is the fir st time something like this occured. I never had problems with installation before.
    Rebekah:
    I completely understand what you're saying. Since that Repair did not resolve the issue, our best option is to uninstall iTunes and its components and redownload it. To do this, we will follow the steps in this article: Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    Rebekah:
    First, we will want to quit iTunes and/or Apple Software Update if those are open at this time.
    SAMIA:
    Rebekah, the instructions you gave says, "For Windows XP, follow these steps to remove and reinstall iTunes and other software components for Windows XP."
    SAMIA:
    I closed all applications
    SAMIA:
    Also, my iTunes doesn't open anymore after the new failed installation.
    Rebekah:
    The section that says "For Windows XP…" is in case we opened up the wrong article, as we have the one for Windows Vista, 7, or 8. There is a link to click ("these steps") in those directions that would take us to the article for uninstalling on a Windows XP.
    Rebekah:
    So no worries! We have the right article!
    Rebekah:
    On the computer, we will want to click on Start > Control Panel. In Control Panel, we will click the "Uninstall a program" link.
    SAMIA:
    I thought so after doing a little exploration.
    SAMIA:
    done
    Rebekah:
    Alright, we'll want to select iTunes from the list of currently installed programs. Then we will click Uninstall. When asked if you would like to remove iTunes, let's click Yes.
    Rebekah:
    After the uninstallation is complete, we don't want to restart your computer if you're prompted.
    SAMIA:
    Done
    Rebekah:
    Then if you see other iTunes entries on the list, we'll want to remove them the same way.
    Rebekah:
    Then we will remove all instances of Apple Software Update the same way you removed iTunes.
    SAMIA:
    Okay, but do I have to remoce iCloud as well?
    SAMIA:
    Rebekah, I received the same error message again when uninstalling
    Rebekah:
    We actually do not need to remove iCloud. After the Apple Software Update, we will want to remove all instances of Apple Mobile Device Support
    Rebekah:
    How strange! Are you able to click past that and allow the process to continue or has it stopped it completely?
    SAMIA:
    I am unable to uninstall iTunes either
    SAMIA:
    Stopped completely
    SAMIA:
    I treied clicking Repair
    Rebekah:
    Alright, after trying the Repair option, let's see if it will allow us to continue uninstalling or not.
    SAMIA:
    I tried that but unfortunately, it isn't working. I still get that same message with error code 2324.
    Rebekah:
    This error code is not something that I am finding in my sources, Samia. So there is a chance that it is being caused with the Windows computer itself. However, I did find a link that may be able to help with uninstalling iTunes from Windows' support site: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    SAMIA:
    Rebekah, you're a genius! It worked! iTunes is no longer there. What next?
    Rebekah:
    Awesome! I'm glad that worked!
    Rebekah:
    To be sure I am on the same page, what was the last component we uninstalled?
    SAMIA:
    iTunes
    SAMIA:
    Shall I remove the Apple Application Support, Apple Mobile Device Support, and Apple Software Update
    Rebekah:
    That is correct! However, we do want to uninstall it in the order I mentioned above. So Apple Software Update first, Apple Mobile Device Support next, and then Apple Mobile Device Support.
    SAMIA:
    Got it, but is the second one to uninstall Apple Mobile Device Support OR Apple pplication Support?
    Rebekah:
    The second one is Apple Mobile Device Support.
    Rebekah:
    The Application Support will be the last component we uninstall.
    SAMIA:
    Thanks! I'm on it.
    SAMIA:
    Done! ll 3 are gone, well 4 with iTunes. Now what?
    Rebekah:
    Awesome! Also, I just noticed that I accidentally typed Apple Mobile Device Support twice, I do apologize for any confusion! Now we will remove all instances of Bonjour and then remove all instances of Apple Application Support.
    SAMIA:
    There was only 1 instance with Bonjour. I don't know what the instances are for Apple Application Support
    Rebekah:
    Yes, Bonjour is often only listed once. Is the Apple Application Support listed at all?
    SAMIA:
    No
    SAMIA:
    Since I removed it
    Rebekah:
    Oh, perfect! If it was removed, we should be set!
    Rebekah:
    We have removed iTunes and its components now! From here, our next step is to restart the computer. Then once you reboot, you can redownload iTunes from apple.com/itunes
    Rebekah:
    That should allow you to download iTunes!
    SAMIA:
    Shall I downloaad the latest vesion?
    Rebekah:
    You will want to first restart the computer as shown in the article. That will ensure that this process goes smoothly and that everything was removed correctly! Then you can try downloading iTunes again.
    SAMIA:
    Okay, thanks Rebekah!
    Rebekah:
    You're very welcome! I'm glad I could help! And of course if you have any issue after the reboot and download, you can always chat us back, as chat is open 24 hours! You will just need to give your case number and the next Advisor would have all my notes!
    SAMIA:
    Thanks again for all your help, for I couldn't have managed with out it. Have a nice day!
    Rebekah:
    You're very welcome! I know how important iTunes is and I'm glad we could get you on a path to resolution!
    Rebekah:
    I hope you have a lovely day!
    Rebekah:
    It's been a pleasure speaking with you! Thanks for chatting with us Samia. If you don't have any more questions, select End Chat from the upper left corner of the chat window.
    SAMIA:
    Will do, thanks.

  • No Compiling Error but doesn't work NEW

    import java.awt.*;
    import java.awt.geom.*;
    import java.awt.event.*;
    import java.applet.*;
    public class javacw extends Applet implements KeyListener, Runnable
         Area pandaArea;
         Graphics2D g2d;
         // Providing coordinate control for the Panda
         int pandax=20, panday=50;
         // Animation condition. True = animate, False = static.
         boolean pandabool=false, laidOut=false;
         boolean left;
         boolean right;
         boolean up;
         boolean down;
    Thread animThread;
    Dimension offDimension;          // Defines an offscreen Dimension
    Image offImage;                    // Defines an offscreen Image
    Graphics offGraphics;          // Defines an offscreen Graphics
         Image panda;                    // Defines an Image object for panda
         public void init()
              // Set the layout of the applet to null
              setLayout(null);
              panda = getImage(getCodeBase(), "panda.gif");
              pandax=0;
              panday=0;
              addKeyListener(this);
              public void Move ()
                   if (left) {
                        pandax = pandax - 10;
                   if (right) {
                        pandax = pandax + 10;
                   if (up){
                        panday = panday + 10;
                   if (down){
                        panday = panday - 10;
              public void keyTyped(KeyEvent event){}
              public void keyPressed(KeyEvent event)
                   if (event.getKeyCode() == KeyEvent.VK_LEFT) left = true;
                   if (event.getKeyCode() == KeyEvent.VK_RIGHT) right = true;
                   if (event.getKeyCode() == KeyEvent.VK_DOWN) down = true;
                   if (event.getKeyCode() == KeyEvent.VK_UP) up = true;
                   repaint();
              public void keyReleased(KeyEvent e)
                   if (e.getKeyCode() == KeyEvent.VK_LEFT) left = false;
                   if (e.getKeyCode() == KeyEvent.VK_RIGHT) right = false;
                   if (e.getKeyCode() == KeyEvent.VK_UP) up = false;
                   if (e.getKeyCode() == KeyEvent.VK_DOWN) down = false;
                   repaint();
    public void start()
              // Make sure the thread hasn already been created
         if (animThread == null) {
         animThread = new Thread(this, "anim");
         animThread.start();
    public void run() {
              // Create a current thread.
              Thread myThread = Thread.currentThread();
         // As long as the thread is created, keep redrawing the
         // canvas and then pausing for 10 miliseconds.
         while (animThread == myThread) {
                   repaint();
         try {
              Thread.sleep(10);
         } catch (InterruptedException e){}
    public void paint(Graphics g)
              if (offImage != null) {
              g2.drawImage(offImage, 0, 0, null);
         // Overide the update() method
    public void update(Graphics g) {
              Dimension d = getSize();
              // Create the offscreen graphics context
              if ((offGraphics == null)
              || (d.width != offDimension.width)
              || (d.height != offDimension.height)) {
              offDimension = d;
              offImage = createImage(d.width, d.height);
              offGraphics = offImage.getGraphics();
              // Erase the previous image
              offGraphics.setColor(getBackground());
              offGraphics.fillRect(0, 0, d.width, d.height);
              offGraphics.setColor(Color.black);
              paintFrame(offGraphics);               // Paint the frame into the image
              g.drawImage(offImage, 0, 0, null);     // Paint the image onto the screen
    public void paintFrame(Graphics g) {
              Graphics2D g2d = (Graphics2D)g;
              g2d.drawImage(panda, pandax, panday, this);
              if (pandabool) {               // If pandabool==true, animate the panda =)
                   if (pandax>400) pandax=0;
                   if(pandax<0)pandax=400;
    public void stop()
         animThread = null;
              offImage = null;
              offGraphics = null;
    public void destroy(){}
    hi everyone, i'm new to java and i'm trying to wirte a keyListener to makes my image move. btw there are no compiling errors but the key is not working. hope that someone can help me. appreciate

    You have a Move() function that you're not calling! Not much use unless you place a call to it in your run() function, eh?
    Next time you post code, use the  tags.

  • Compile error at call Package with type parameter

    Hello!
    I have a problem.
    I have a package PKG_ARRAY_PARAMETER. This package has a procedure with an array parameter.
    PACKAGE PKG_ARRAY_PARAMETER IS
    -- Define Record and Record-Table (array)
    TYPE my_rec is record
    ( v_column1 VARCHAR2(5));
    --Array from my_rec
    TYPE my_rec_table is table of my_rec
    INDEX BY BINARY_INTEGER;
    v_rectable my_rec_table;
    PROCEDURE my_array_proc(p_array my_rec_table);
    END;
    PACKAGE BODY PKG_ARRAY_PARAMETER AS
    PROCEDURE my_array_proc (p_array my_rec_table)IS
    v_index BINARY_INTEGER;
    v_count number;
    BEGIN
    v_count := 1;
    END;
    END;
    The package compiled without errors.
    The problem ist the call of the package procedure.
    DECLARE
         -- Define Record and Record-Table (array)
    TYPE my_rec is record
    ( v_column1 VARCHAR2(5));
    --Array from my_rec
    TYPE my_rec_table is table of my_rec
    INDEX BY BINARY_INTEGER;
    v_rectable my_rec_table;
    BEGIN
         v_rectable(1).v_column1:='aaa';
         PKG_ARRAY_PARAMETER.my_array_proc(v_rectable);
    --null;     
    END;
    I get the error "Error 306.... wrong number or types of arguments in call to 'MY_ARRAY_PROC'"
    Can anybody help me. I have no idea wh I get this error.
    Thanks

    As you have discovered, even if the definitions are identical Oracle treats them as different objects. I recommend "Oracle PL/SQL Programming" by Steven Feuerstein which has a couple of chapters on collections and specifically warns against this.
    I have that section bookmarked as I can never remember how to manipulate collections.

  • PLS-00907: cannot load library unit PREORDER.GLOBALS@PREORDER

    Hi all, I am getting below error while compiling the package in oracle 11g.
    SQL> select version from v$instance;
    VERSION
    11.2.0.3.0
    SQL> !uname -a
    SunOS ghb1s311 5.10 Generic_142900-13 sun4u sparc SUNW,Sun-Fire-V890
    SQL> SELECT owner,
           object_type,
           object_name,
           status
    FROM   dba_objects
    WHERE  status = 'INVALID'
    ORDER BY owner, object_type, object_name;
      2    3    4    5    6    7
    OWNER                OBJECT_TYPE   OBJECT_NAME                    STATUS
    KOMPIMP              PACKAGE BODY  IMPORT_NI_STAMMDATEN           INVALID
    SQL> alter package KOMPIMP.IMPORT_NI_STAMMDATEN compile body;
    Warning: Package Body altered with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY KOMPIMP.IMPORT_NI_STAMMDATEN:
    LINE/COL ERROR
    0/0      PLS-00907: cannot load library unit PREORDER.GLOBALS@PREORDER
             (referenced by PREORDER.MANAGE_DATEN@PREORDER)
    1201/5   PL/SQL: Statement ignored
    SQL> select object_name,object_type,owner,status  from dba_objects where object_name like 'GLOBALS';
    OBJECT_NAME                         OBJECT_TYPE                         OWNER                          STATUS
    GLOBALS                             PACKAGE                             KOMPIMP                        VALID
    SQL> select object_name,object_type,owner,status  from dba_objects where object_name like 'PREORDER';
    OBJECT_NAME                         OBJECT_TYPE                         OWNER                          STATUS
    PREORDER                            DATABASE LINK                       KOMPIMP                        VALID
    These package(GLOBALS') is  valid then also this is not compiling.
    Please suggest to solve this problem.
    Thanks in Advance

    Hi
    Without commenting on the specific HR packages, it sounds like you are causing invalidations when you recompile.
    The first thing to do is to try to minimize the scope of each recompilation. So if the body of a package A is invalid, don't recompile the specification (which will invalidate any other package B that references a function, procedure, type or package variable in A). Just recompile the body (which afaik NEVER invalidates anything else).
    alter package A compile body;If you have invalid package specs (which you do now) try to recompile them in dependency order. So if package (spec) A depends on (eg references a package (header) variable or type definition in) package B, then be dure to compile B before A.
    In general, you should recompile invalid specifications first, then invalid package bodies.
    The tricky objects are Views - a view can depend on a package spec (if the view SQL includes a reference to a package function) and a package spec or body can of course depend on a view. Good developers try to avoid circular dependencies! So our compilation order becomes:
    * Views (unless dependent on packages)
    * Package specs
    * Views that depend on packages
    * Package bodies
    (Stand-alone stored procedures and functions are a pain in the neck, as they can depend on each other and on views, packages etc).
    You can try using utlrp.sql (in rdvms/admin) which calls utl_recomp.recomp_parallel - but I don't know how good this is at sorting out dependencies.
    HTH
    Regards Nigel

  • PLS-00201 error when trying to pass an OUT parameter

    Hi,
    Please help me to resolve the below error:
    I am trying to pass an OUT parameter in a package.
    I have declared it in package specs as
    ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2)
    In package body
    I have created the procedure as
    Create or Replace procedure ProcABC(p_val IN varchar2, p_val2 IN varchar2, p_val3 OUT varchar2) AS
    v_LogDir varchar2(40);
    v_message varchar2(200);
    BEGIN
    SELECT directory_path into v_LogDir FROM ALL_DIRECTORIES WHERE directory_name = 'ABC';
    v_message := v_LogDir ;
    some sql statements..
    p_val3 := v_message;
    Return p_val3;
    End procABC;
    SQL> exec pkg_A.procABC('Stage2', NULL, p_val3);
    Package compiles successfully but while execution it returns error as:
    ORA-06550: line 1, column 74:
    PLS-00201: identifier 'p_val3 ' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Please advise.

    Hi Suresh,
    Thanks for the information and help. I was able to run the package with this usage.
    Now, the issue is
    I need to return a v long string by the OUT parameter so I defined the datatype of OUT parameter as CLOB.
    But, when I declare local variable to run the package with this OUT paramater I get the error :
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 1
    When I pass a shorter string it works.
    Kindly advise me how to resolve this issue while using CLOB as datatype of OUT parameter.

  • PLS-00907: cannot load library unit

    I have a problem with a stored procedure that runs via cron to insert records into a large partitioned table. This was running fine until a week back it stopped working.
    The error it mentioned during execution is
    PLS-00907: cannot load library unit
    MET.CLINICAL_DATA (referenced by MET.INSERT_CLINICAL_DATA)
    MET is the owner of the CLINICAL_DATA table and the INSERT_CLINICAL_DATA procedure. This procedure is run by a user called MET_USER who has an execute privilege on MET's INSERT_CLINICAL_DATA and its tables.
    So what might have caused this error. I did spend atleast 2 hours looking in the metalink and as those articles mentioned, I am neither using a database link here nor I am calling a remote procedure.
    Any thoughts?
    Thanks

    355099,
    No, not to my knowledge. But I do have another stored procedure that also runs everyday that has got DDL statements on the CLINICAL_DATA table. Some of the DDLs in that are ----
    execute immediate 'alter table clinical_data drop partition part' || part_rec_l.id || ' update global indexes';
    execute immediate 'alter table clinical_data split partition ' || 'last_values at ( ''' || (temp_day_l * ms_per_day_l)|| ''') into (partition part' || new_id_l
    || ', partition last_values) update global indexes';
    execute immediate 'alter table clinical_data modify partition '|| 'part' || new_id_l || ' rebuild unusable local indexes';
    execute immediate 'alter table clinical_data modify partition ' || 'last_values rebuild unusable local indexes';
    Thank you

Maybe you are looking for