Package compilation

hi. I have only sqlplus. I perfoemed the following operation:
alter package mister.crete_account_technology compile;
Warning: Package altered with compilation errors.
How can i see these errors in sqlplus?

Hi,
C:\oracle\ora92\bin>sqlplus hr_1/hr_1
SQL*Plus: Release 9.2.0.1.0 - Production on Dom Nov 23 10:45:47 2008
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> set serveroutput on
SQL> alter package pack_test compile;
Warning: Package altered with compilation errors.
SQL> show errors
No errors.
SQL> SELECT * FROM USER_ERRORS UE WHERE ue.NAME = 'PACK_TEST';
NAME                           TYPE           SEQUENCE       LINE   POSITION
TEXT
PACK_TEST                      PACKAGE BODY          1         49         21
PLS-00103: Encountered the symbol "ADD" when expecting one of the following:
   . ( ) , * @ % & | = - + < / > at in is mod not range rem =>
   .. <an exponent (**)> <> or != or ~= >= <= <> and or like as
   between from using ||
SQL>Regards,

Similar Messages

  • Suppose in a Package Spec there are 3 functions and Package Body there are 5 functions will the package compile?

    Suppose in a Package Spec there are 3 functions and Package Body there are 5 functions will the package compile?

    Rather than asking these basic one-liner questions (When a package is created how many database objects are created?) why don't you explain what issues you are experiencing after you've read the documentation and tried things yourself.
    The forums are for people to help when they experience issues, not when they can't be bothered to read the documentation or searcht the web for the basic information that's already explained.
    Re: 2. How do I ask a question on the forums?
    Re: 1. Where can I find Oracle Documentation?

  • Package compiling error

    Hello,
    So I"m continuing to study java and I've been trying to create my first package but I keep getting problems whenever compiling via my java editor (JGrasp) and when trying to compile via the command prompt. I was hoping somebody could help me understand what I'm doing wrong with the code or compilation process. Thanks in advance for any help anybody could provide. (oh as one other sidenote these problems started happening after i'd done this at the command prompt to try to compile as well javac -d C:\ Entertainment.java)
    Josh
    JGrasp compiler problems
    ----jGRASP exec: javac -g C:\Entertainment.java
    ----at: Jun 23, 2006 7:35:32 AM
    ----jGRASP wedge: pid for wedge is 2788.
    ----JGRASP wedge2: pid for wedge2 is 3476.
    ----JGRASP wedge2: CLASSPATH is ".;;.;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\Program Files\jGRASP\extensions\classes".
    ----jGRASP wedge2: working directory is [C:\] platform id is 2.
    ----jGRASP wedge2: actual command sent ["C:\javac.exe" -g C:\Entertainment.java].
    ----JGRASP wedge2: pid for process is 3496.
    Can't determine application home
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    Actual program
    import javax.swing.*;
    package com.eventhandlers.entertainment2;
    public abstract class Entertainment
    protected String entertainer=("");
    protected int fee=0;
    public Entertainment()
    setEntertainerName();
    setEntertainmentFee();
    public String getEntertainerName()
    return entertainer;
    public double getEntertainerFee()
    return fee;
    public void setEntertainerName()
    entertainer=JOptionPane.showInputDialog(null,
    "Enter Name of entertainer ");
    public abstract void setEntertainmentFee();
    }

    Actual program
    import javax.swing.*;
    package com.eventhandlers.entertainment2;I don't know if it will solve your problem, but these two lines should be
    the other way around, like this:package com.eventhandlers.entertainment2;
    import javax.swing.*;IOW, the package statement (if present) should be the first statement
    in your compilation unit (.java file).
    kind regards,
    Jos

  • Package compilation error

    Hi all,
    Just tried to compile a package in which the package definition and package body did not match. I was expecting an error. However I didnt get any. The "Script Output" windows states that the package and its body have been compiled successfully. Can anyone guide me if I am missing out something or is this a bug?
    Thanks in advance.

    The package definition has the stored procedure as below
    PROCEDURE spu_uTest(
    p_inot           IN NUMBER);
    The package body is as below
    PROCEDURE spu_Test(
    p_inot           IN NUMBER)
    IS
    --Updating Namo
    BEGIN
    UPDATE TEMPO
    SET NAMO = p_inot;
    END spu_Test;
    If you can see the procedure names do no match in the defintion and the body. However on compilation I do not get any error. Can you outline the steps for compiling a package sql file?

  • SSIS Package compiled successful, in SQL Server Integration Service package executed sucessful, But fail to run in MS SQL Job Scheduler

    Hi Everyone,
    I having a problem to transfer data from MS SQL 2005 to IBMAS400. Previously my SSIS was running perfectly but there is some changes I need to be done in order for the system to work well. Considers my changes are minimal & just for upgrades (but I did
    include DELETE statements to truncate AS400 table before I insert fresh data from MS SQL table to the same AS400 table), so I compile my SSIS package & it run successfully & I passed it into MS SQL Integrated Service as 1 of the packages & manually
    executed the package & the result is the same, that mean it was successful again but when I try to run it in a MS SQL Job Scheduler, the job failed with these message shown below as extracted from the job View history. 
    Date today
    Log Job History (MSSQLToAS400)
    Step ID 1
    Server MSSQLServer
    Job Name MSSQLToAS400
    Step Name pumptoAS400
    Duration 00:00:36
    Sql Severity 0
    Sql Message ID 0
    Operator Emailed
    Operator Net sent
    Operator Paged
    Retries Attempted 0
    Message
    Executed as user: MSSQLServer\SYSTEM. ... 9.00.4035.00 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    
    Started:  today time  
    Error: on today time     
    Code: 0xC0202009     Source: SSISMSSQLToAS400 Connection manager "SourceToDestinationOLEDB"     
    Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. 
    Error code: 0x80004005.  An OLE DB record is available.  
    Source: "IBMDA400 Session"  
    Hresult: 0x80004005  
    Description: "CWBSY0002 - Password for user AS400ADMIN on system AS400SYSTEM is not correct ".  End Error  
    Error: today     
    Code: 0xC020801C     
    Source: Data Flow Task OLE DB Destination [5160]     
    Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "DestinationClearData" failed with error code 0xC0202009.  There may be error messages posted before
    this with more information on why the AcquireConnection method ca...  The package execution fa...  The step failed.
    So I hope somebody can shed some hints or tips for me to overcome time problem of mine. Thanks for your help in advance. As I had scoured thoroughout MSDN forums & found none solution for my problem yet. 
    PS: In the SQL Integrated Services when I deployed the package I set the security of the packages to Rely on server... 
    Hope this will help.

    Hi Ironmaidenroxz,
    From the message “Executed as user: MSSQLServer\SYSTEM”, we can see that the SQL Server Agent job ran under the Local System account. However, a Local System account doesn’t have the network rights natively, therefore, the job failed to communicate with
    the remote IBMAS400 server.
    To address this issue, you need to create a proxy account for SQL Server Agent to run the job. When creating the credentials for the proxy account, you can use the Windows domain account under which you executed the package manually.
    References:
    How to: Create a Credential
    How to: Create a Proxy
    Regards,
    Mike Yin
    TechNet Community Support

  • No modules found in kernel26 package compiled via ABS

    Hi,
    I have been experiencing problems building kernels recently.  I've used ABS and AUR pkgbuilds to build kernels since 2.6.30, mostly to enable the proper USB scheduler for my hub and to try outside kernel patches, see kernel26-ck.  However, since the release of 2.6.35.2, more likely a mere coincidence, I've been compiling small kernels (~4MB) from the default .configs without any modifcations to the PKGBUILDs or the config files.  Looking at the compiled packages, I noticed the omission of the kernel modules that are normally located in /lib/modules/[kernelname]/kernel.  The missing kernel modules obviously causes my machine to be unable to boot (https://bbs.archlinux.org/viewtopic.php … 15#p872215).  My makepkg.conf is below.  Any explanation on what is going on?  Thanks
    ~$ cat /etc/makepkg.conf
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j2"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color !ccache)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Directories to be searched for the strip option (if strip is specified)
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Last edited by ssri (2011-01-15 05:56:17)

    Ran linpack and noticed that my CPU temp peaked at 74C, well below the critical threshold of 100C (according to intel).  Usually, my CPU runs at arounr 48-55C unless I am doing some CPU-intensive task.  When that happens, it will run up to the upper 70s.
    ~ $ cat /etc/lininput_xeon64
    Sample Intel(R) LINPACK data file
    Intel(R) LINPACK data
    1 # number of tests
    21000 # problem sizes
    21000 # leading dimensions
    20 # times to run a test
    4 # alignment values (in KBytes)
    # Change the problem sizes and leading dimensions to suite your free physical memory
    # Memory use = 8 x (problem size)^2
    # or
    # Problem size = sqrt (memory use / 8)
    # For 1 GB use a problem size and leading dimensions of 7000
    # For 2 GB use a problem size and leading dimensions of 13700
    # For 4 GB use a problem size and leading dimensions of 21000
    # For 8 GB use a problem size and leading dimensions of 29600
    ~ $ cat lin_xeon64.txt
    Fri Dec 31 21:30:38 PST 2010
    Intel(R) LINPACK data
    Current date/time: Fri Dec 31 21:30:38 2010
    CPU frequency: 1.800 GHz
    Number of CPUs: 1
    Number of cores: 2
    Number of threads: 2
    Parameters are set to:
    Number of tests : 1
    Number of equations to solve (problem size) : 21000
    Leading dimension of array : 21000
    Number of trials to run : 20
    Data alignment value (in Kbytes) : 4
    Maximum memory requested that can be used = 3528424096, at the size = 21000
    ============= Timing linear equation system solver =================
    Size LDA Align. Time(s) GFlops Residual Residual(norm)
    21000 21000 4 666.408 9.2659 3.591869e-10 2.884103e-02

  • 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;
    /

  • "program too large" on package compile

    Hi,
    I am trying to compile a package (which has around 3000+ lines), and I am getting an error "program too large".
    I believe I would need to split into 2 packages, but is there any other solution than splitting the code?
    I am building a dynamic package from here using system.ad_ddl. Can I use system.ad_ddl in two different packages and in the end create the object in one of the packages? (will it take the statements added from both the packages?)
    Thanks,
    Sharad

    system.ad_ddl is not a Oracle documented program unit name. How did it get into the SYSTEM schema?
    Can you post a Oracle doc link to this code unit where it is available?

  • Package compilation problem in WinXP

    I am creating a simple program to throw a dice but have some problem with packages.
    I have 2 files, in the directory, C:\Dgame\Dgame\Dice.java and C:\Dgame\Dgame\Dealer.java .
    I packaged both of them into a package called Dgame (using "package Dgame;" at the first line of the file).
    The Dealer class creates a few NTDice instances. I tried to compile both a whole load of errors came out.
    Something like:
    cannot resolve symbol
    class NTDice
    location Dgame.Dealer
    Dice A = new Dice(1,2,3,4,5,6);
    any ideas on how to solve this problem will be greatly appreciated =)
    nb:i did not set any classpath settings

    Look up your error message here
    http://www.mindprod.com/errormessages.html and review
    the possible causes.
    If you still have problems post relevant portions of
    the code for review.Heres the code:
    I changed the file names abit. Dice == NTDice
    Any idea on how to solve the problem?
    Dealer.java
    package Dgame;
    import Dgame.*;
    import java.util.*;
    public class Dealer{
    //set the values for the dice
    NTDice A = NTDice( "A", 5, 6, 7, 38, 39, 40);
    NTDice.java
    package Dgame;
    import java.util.*;
    public class NTDice{
    //data members
    private String name;
    private ArrayList faceValues = new ArrayList();
    private Integer throwResult;
    static private int NTDiceCounter=0;
    //constructor
    public NTDice(String aName, Integer f1, Integer f2, Integer f3, Integer f4, Integer f5, Integer f6){
    name = aName;
    faceValues.add(f1);
    faceValues.add(f2);
    faceValues.add(f3);
    faceValues.add(f4);
    faceValues.add(f5);
    faceValues.add(f6);
    ++NTDiceCounter;
    public void roll(){
    ArrayList theDice = new ArrayList(faceValues);
    Collections.shuffle(theDice);
    setThrowResult(theDice);
    public void setThrowResult(ArrayList aDice){
    throwResult = (Integer) aDice.get(0);
    public Integer getThrowResult(){
    return throwResult;

  • Java package compile errors

    I use a batch file to compile a java package. And I got the following errors:
    TabPages: Java: 29: Cannot solve symbol
    Symbol: class JSPFactory
    Location: package JSP
    JSPFactory = javax.Servlet.jsp.JSPFactory.getDefaulfFactory();
    Note: Some input files use or override a deprecated APT.
    Note: Recompile with -deprecation for details.
    I am using New Atlanta servletExec 3.1 and IIS server. Can anyone help me figure our the above errors? Thanks!

    if I add the "set classpath=".,C:/javax" to the begining of the batch file, will this override the classpath that I set in the Environment window? I am worried about this since we have a bunch of environment variables already been set there.
    I tried to add the ";c:\javax" at the end of the classpath on my Environment window, and rebooted the server, but still got the same error message. Did I have some syntax error? What does the dot before ";C:/javax" mean? I deleted it when I added them to the classpath.
    It will cause too much trouble to add the "javac XXX.java -classpath=".;C"/javax" to each file that needs this package because we don't have a single command for compiling a single java file. We have a huge amount of java files and we just use a single "javac -d" to compile every file under several folders. Our batch file is as follows:
    del /F/Q ..\classes
    javac -d ..\classes *.java htmltool\html\*.java ises\*.java DropDown\*.java frmselection\*.java grid\*.java treeView\*.java reportTreeMenu\*.java hs\types\*.java
    del /F ..\lib\grid.jar
    del /F ..\lib\TreeView.jar
    cd ..\classes
    jar cf ..\lib\grid.jar grid
    rmdir /S/Q grid
    jar cf ..\lib\TreeView.jar treeView
    rmdir /S/Q treeView
    cd ..\javasrc
    Another thing is that: we have exact the same classpath and batch file on another server which works fine, and its classpath doesn't include explicitly stuff like";c:\javax", but we never have prolbem compiling the java source. So do I miss something else?

  • Hanging package compile

    Hi,
    We have a large schema and packages that compile find on Oracle 11.1.
    When I try the same procedure to build our schema and packages on a
    new Oracle 11.2 on a new box it hangs during the compilation of a
    package:
    sqlplus -S xxx/[email protected]:1521/sid @xxx_body.sql
    SELECT DECODE(request,0,'Holder: ','Waiter: ')||sid sess,
    id1, id2, lmode, request, type
    FROM V$LOCK
    WHERE (id1, id2, type) IN
    (SELECT id1, id2, type FROM V$LOCK WHERE request>0)
    ORDER BY id1, request
    shows nothing and
    select * from v$sql where users_executing > 0
    shows:
    BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2, :3); END;
    select TIME_WAITED_MICRO from V$SYSTEM_EVENT where event = 'Shared IO
    Pool Memory'
    select 1 from obj$ where name='DBA_QUEUE_SCHEDULES'
    Any ideea?
    Regards
    Sandeep

    query v$sess_io, v$session_events and v$session_waits
    Sybrand Bakker
    Senior Oracle DBA

  • Package Compiler Issues

    Hey
    I am trying to compile a simple as3 file
    [code]
    package {
    import flash.display.MovieClip;
    class Test extends MovieClip{
    public function Test(){
    trace("Hello");
    [/code]
    It compiles ( with a warning) but I get this runtime error
    TextReferenceError: Error #1065:
    Variable Test is not defined.
    The compile time warning was
    C:\Applications\AS3Examples\Test\tst\Test.as(5): col: 8
    Warning: class 'Test' will be scoped to the default namespace:
    internal
    class Test extends MovieClip{
    So I decided to create a package
    I created a directory tst and put the class Test.as in that
    directory
    [code]
    package tst{
    import flash.display.MovieClip;
    class Test extends MovieClip{
    public function Test(){
    trace("Hello");
    [/code]
    Now I try to compile using mxmlc
    mxmlc actionscript-classpath tst\ Test.as
    I get this
    Loading configuration file
    C:\Applications\Flex_sdk_2_0_beta3\frameworks\flex-config.xml, root
    element flex-config
    Error: unable to open 'Test.as'
    Can someone point out where I am going wrong ??
    thanks
    cheers :)
    firdosh

    put "public" in this line:
    public class Test extends MovieClip{

  • Packages  compiled with debug info

    Hi,
    How do we check if a package has been compiled with DEBUG information or not?
    The package could have been compiled like this:
    ALTER PACKAGE pk1 COMPILE DEBUG
    Is there any table that I can check?
    Thanks in advance.
    Sanal Krishnan

    Is this a 10g feature?It seems only user_plsql_object_settings is new in 10g.
    all_plsql_object_settings is available in 9i:
    michaels>  select * from dict where table_name like '%PLSQL%'
    TABLE_NAME                     COMMENTS                               
    ALL_PLSQL_OBJECT_SETTINGS      Compiler settings of stored objects acce
                                   ssible to the user                   
    1 row selected.
    michaels>  select name, type,plsql_debug from sys.all_plsql_object_settings where owner = 'SYSTEM'
    NAME                           TYPE         P
    DEF$_PROPAGATOR_TRIG           TRIGGER      
    REPCATLOGTRIG                  TRIGGER      
    michaels>  select * from v$version
    BANNER                                                         
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production                          
    CORE     9.2.0.8.0     Production                                      
    TNS for HPUX: Version 9.2.0.8.0 - Production                   
    NLSRTL Version 9.2.0.8.0 - Production                          

  • Package compilation and ORA-06575

    Hi,
    I've created a package & body that compiles OK (without errors or warnings) in Oracle SQL Developer and also works afterwards OK.
    When created by PL/SQL statements there are no errors but STATUS in USER_OBJECTS is 'INVALID' and ORA-06575 is issued when the package is called.
    Nevertheless Oracle SQL Developer sees the created package as INVALID,
    I can compile it (again no errors or warnings) and then it works
    I tried ALTER PACKAGE ... COMPILE & COMPILE BODY but it is still INVALID
    Can somebody help me?
    I want to be able to do all by PL/SQL statements (issued by a program)
    Thanks
    Nikolay

    Thank you Kamal,
    USER_ERRORS contains 5 messages (same MESSAGE_NUMBER, all from PACKAGE BODY)
    from more than one version of my code
    so I'm unable to find out the corresponding error. There is no date in the errors
    Question 1. How to clear USER_ERRORS before compiling - or is it cleaed automatically?
    Obviously the messages remain after closing a connection and opening a new one
    Question 2. Maybe one of my problems is - the statements CREATE PACKAGE "X"."CODE" and CREATE PACKAGE BODY "X"."CODE" are executed as user SYSTEM but the package/body is created under user "X"
    Question 3. I don't really expect, but there might be a problem that I'm using "" quotations to have lower case in identifiers; I'm using also Windows 0x0D0A CRs etc. One of the errors in USER_ERRORS says (again manually translated from german) PLS-00103 Found the symbol "" where expected some of begin end ... current cursor
    Another error says PLS-00103 found ";" where expected ....
    and the other 3 messages say my variables after " begin declare" are unexpected...
    Hope someone helps, thanks
    Nikolay

  • Package Compilation Slow

    When I try to compile D/B Package, it takes 40-45 minutes to get compile.
    After some hard work I found that the probable reason might be that the unix file system is 97% full.
    /dev/mhk/mhkseorcldata 111353856 107758120 3567688 97% /mhkse/oracle/data/mhkse
    All my physical *.dbf files resides in this location.
    I tried cleaning up some of my d/b tables but no use.
    Kindly suggest what can the possible solution.
    I don't have much Unix knowledge.

    I would suggest having /tmp (or where oracle keeps its temp files) , ORACLE_HOME at most 80% full. Also take a look at the root (/) filesystem and make sure it has at least 20% free space. Also it cna be cause by a busy DB and lots of INVALID objects.
    You can check them by "SELECT count(*) from all_objects where status <> 'VALID'". if that is the case then you can look into using utlrp.sql (or something like that) in your ORACLE_HOME/rdbms/admin.

  • Package compilation problem

    Hi,
    I'm presently trying to learn packages in java. I have two example classes I want to compile to learn to use packages. One is Dice class and on is ThrowDice. ThrowDice uses Dice by creating two Dice objects. If i put them in the same directory and compile them without any package declaration they compile fine. If I put ThrowDice into the directory home/antlaw/java/Applications with "import Parsons.Dice" and Dice into home/antlaw/java/Applications/Parsons with package declaration "package Parsons" they compile and work fine. However, because I'm wanting to learn how to compile packages I've experimented a bit, and found that 1) if i declare ThrowDice as a package also of "Applications" (i.e. the directory it's in) by adding "package Applications" the two classes compiles but won't run (throws a load of exceptions) 2) if I create another directory "Apps" and move ThrowDice into this subdirectory (i.e. home/antlaw/java/Apps) and make the following package and import declaration changes to both Dice and ThrowDice classes
    Dice = "package Applications.Parsons"
    ThrowDice = "package Apps" and "import Applications.Parsons.Dice"
    ThrowDice won't compile as it gives the following errors:
    ThrowDice.java:2: cannot resolve symbol
    symbol : class Dice
    location: package Parsons
    import Applications.Parsons.Dice;
    ^
    ThrowDice.java:8: cannot resolve symbol
    symbol : class Dice
    location: class Apps.ThrowDice
    Dice dice1 = new Dice();
    ^
    ThrowDice.java:8: cannot resolve symbol
    symbol : class Dice
    location: class Apps.ThrowDice
    Dice dice1 = new Dice();
    ^
    ThrowDice.java:9: cannot resolve symbol
    symbol : class Dice
    location: class Apps.ThrowDice
    Dice dice2 = new Dice();
    ^
    ThrowDice.java:9: cannot resolve symbol
    symbol : class Dice
    location: class Apps.ThrowDice
    Dice dice2 = new Dice();
    5 errors
    indicating that it cannot find the Dice class.
    In my home profile (I'm a linux user Suse 7.3) I've declared the classpath as follows:
    export PATH=/home/antlaw/java:$PATH
    I'm a bit "stumped" with what's wrong i.e. am i using packages incorrectly or is there something wrong with my classpath? Any help/advice would be gratefully received.
    Cheers -- Tony.

    Hi YATArchivist,
    Firstly, thanks for the response - it's appreciated :-)
    Secondly, I've put Dice (and it's package directory) into the following directory :
    home/antlaw/java/Parsons
    so now both package directories "Parsons" (with Dice class) and "Applications" (with ThrowDice class) are subdirectories of home/antlaw/java
    Thirdly, I've tried all of your suggestions and there is a big improvement as both ThrowDice and Dice now compile (i don't know for sure what's improved it - but I took your advice and have now inserted "export CLASSPATH=/home/antlaw/java:$CLASSPATH" and i'm now thinking this was at fault).
    However, I'm still not able to run ThrowDice (which calls Dice) as every time I do I get the following exception being thrown:
    antlaw@linux:~/java> java ThrowDice
    Exception in thread "main" java.lang.NoClassDefFoundError: ThrowDice
    if I try out your various compile options I get the same "NoClassDefFoundError".
    if I cd "Applications" and go into the same directory as ThrowDice and try and compile there I get:
    Exception in thread "main" java.lang.NoClassDefFoundError: ThrowDice (wrong name: Applications/ThrowDice)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    Here's a copy of both the java classes - in case there's something wrong here I'm not aware of
    First Dice (home/antlaw/java/Parsons)
    package Parsons;
    public class Dice
         // class attribute
         private int dice_value;
         // public methods
         public void throwDice()
              double random_number = Math.random();
              random_number *= 6;
              random_number++;
              dice_value = (int) random_number;
         public int getDiceValue()
              return dice_value;
    Here ThrowDice class
    package Applications;
    import Parsons.Dice;
    public class ThrowDice
         public static void main(String args[])
              Dice dice1 = new Dice();
              Dice dice2 = new Dice();
              dice1.throwDice();
              dice2.throwDice();
              int dice1_score = dice1.getDiceValue();
              int dice2_score = dice2.getDiceValue();
              int total_score = dice1_score + dice2_score;
              System.out.println("The first dice shows " + dice1_score);
              System.out.println("The second dice shows " + dice2_score);
              System.out.println("Your total score is " + total_score);
    Any ideas why this is happening? - thanks for your help so far too.
    Cheers -- Tony.

Maybe you are looking for

  • Lightroom 1.0 not recognizing CS2

    I just purchased LR 1.0 and once installed, did not recognize the copy of CS2 that I have been running on my computer. Even after a reboot, it did not recognize CS2. Any way to fix this other than manually selecting it as the other program?

  • Indeed Adobe flash player for my I pad

    When will we get adobe flash player for my I pad

  • Will this be removed...?

    This post is going to be feedback (to Apple devs & moderators) on a specific topic that has to do with the use of the discussion forums - strictly, according to the TOS, it may get yanked but that's part of the feedback, to point out a possible drawb

  • Profit center to vendor/customer reconciliation accounts

    Hi All, Dummy Profit center has already been assigned to customer/vendor reconciliation accounts in 3KEH in PCA.  Will that affect F.5D  - post balance sheet adjustment process? Thanks! Rajesh

  • How Can I Improve the Readability of the Keyword List?

    I've often wondered if you guys actually test this stuff in real-world conditions. This white-on-gray and gray-on-gray (!) micro small font stuff may be the cool du jour UI look and work great for you bloodshot-eyed youngsters beavering away 24/7 in