ORA-00900 while compiling package in 11gR1(11.1.0.7)

Hello Folks,
In our apps(Ebs) instance we are recently encountering an issue,we have some packages(seeded ones) which are invalid one of them I am mentioning below:
SQL> select object_name,object_type,status from dba_objects where object_name='MSC_AATP_PVT';
OBJECT_NAME
OBJECT_TYPE STATUS
MSC_AATP_PVT
PACKAGE BODY INVALID
MSC_AATP_PVT
PACKAGE VALID
Now when I am trying to compile this package I get the following message:
SQL> alter package MSC_AATP_PVT compile body
2 /
alter package MSC_AATP_PVT compile body
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-00900: invalid SQL statement
ORA-00900: invalid SQL statement
Even If I try to compile the body which is been shown as Valid I get the same:
SQL> alter package MSC_AATP_PVT compile;
alter package MSC_AATP_PVT compile
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-00900: invalid SQL statement
ORA-00900: invalid SQL statement
This can't be an Apps issue as we have the same version of package running(Valid) in our other instances which is on same configuration as this one .
Is this a Database Bug on 11g and anybody around here is aware of any workaround which can helps us get out of this issue.
Thanks

It means package body MSC_AATP_PVT has an invalid sql statement. Get package body source code and compile it. Check line number giving you the error.
SY.

Similar Messages

  • [SOLVED] Strange error while compiling packages via AUR

    I've been facing this error while compiling packages via AUR. I'm also posting the output of my /etc/makepkg.conf
    Error
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether cc supports -O2... yes
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GSTREAMER... yes
    checking for GSTREAMER_GTK... yes
    checking for XOpenDisplay in -lX11... yes
    checking for ncursesw5-config... /usr/bin/ncursesw5-config
    checking for initscr in -lncurses... yes
    checking whether gcc supports -Wall... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating docs/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    fatal: Not a git repository (or any of the parent directories): .git
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /tmp/yaourt-tmp-hellknight/aur-gst123/src/gst123-0.2.0/build-aux/missing --run aclocal-1.11 -Wno-portability
    sh: autom4te: command not found
    aclocal-1.11: autom4te failed with exit status: 127
    make: *** [aclocal.m4] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build gst123.
    ==> Restart building gst123 ? [y/N]
    ==> -------------------------------
    ==>
    /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=amdfam10 -mtune=generic -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j8"
    # 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 tarun.hellknight (2011-04-12 15:45:26)

    That's strange... it wasn't installed.. although I had never,ever faced a problem while compiling packages via AUR.. maybe, I should be careful when uninstalling orphans.. thanks for the help..

  • Help! ORA-03113 while compiling certain packages!

    Hello everyone
    Recently we migrated our PLSQL code from Oracle 8.1.7.0 to 9.2.0.4.
    While compiling our packages in 9i, we are getting the ORA-03113: end-of-file on communication channel error.
    This happens only when we compile two particular packages.
    And then when we connect again immediately, and recompile the same package, it gets compiled.
    This is only happening for two packages, frequently. All other packages are not giving this error.
    Why could this be happening? Any pointers to this would really help.
    Thanks
    Bob

    ORA-3113 often throws a .TRC file in the USER_DUMP_DEST directory. That might give you a clue.
    Cheers, APC

  • Error while compiling package

    Hi,
    While compiling an invalid package i get this error, But the coding in the package has no error.
    ORA-00600: internal error code, arguments: [psdtyfnd_with_suffix],[],[],[],[],[],[],[]

    I have similar problem.
    I droped all object from scheme but one package won't drop.
    Now when I try drop this package or user,
    I get ORA-00600: internal error code, arguments: [psdtyfnd_with_suffix], [], [], [], [], [], [], []
    There is no possibility to drop, recompile, replace this package. Everithing ends with error. There is no other object in scheme.
    Even package has no body. So I try to create it. Package body was created with warnings but I still can't see it. When I create it again then I get ORA-00955: name is already used by an existing object.
    I use Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 on Linux
    All experiments I do as SYSDBA.

  • Errors not showing up while compiling package spec

    Version :11g
    While compiling a package specification, i get the message
    Warning: Package created with compilation errors.But when i type
    SQL> show errors
    No errors.Why can't i see the errors?

    Weirdly enough, using double quotes around the proc/package name can cause this issue
    SQL> select * from v$version where rownum=1;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    SQL> create procedure "proc1" as
      2     begin
      3       null -[
      4     end;
      5    
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    No errors.
    SQL> create procedure proc1 as
      2     begin
      3       null -[
      4     end;
      5    
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE PROC1:
    LINE/COL ERROR
    3/11     PLS-00103: Encountered the symbol "-" when expecting one of the
             following:
    3/11     PLS-00103: Encountered the symbol "-" when expecting one of the
             following:
             ;

  • PLS-00801: internal error [1401] while compiling Package body

    I am getting the error PLS-00801: internal error [1401] while compiling the package.
    recently upgraded to version 11.1.0.7 database .
    Any pointer to this ..

    935026 wrote:
    I am also getting the same error while compiling a procedure which use a remote object over db_link.
    Let me know if this needs to be run on source db or destination db
    1. RUN as SYS
    $ORACLE_HOME/rdbms/admin/utlirp.sql
    $ORACLE_HOME/rdbms/admin/utlrp.sql
    RegardsYES
    post results from SQL below from both DBs
    SELECT * FROM V$VERSION;

  • Error while compiling packages

    Hi All,
    i have been asked to execute some packages. so i took the backup of the existing package by using dbms_metadata and spool.
    Now i have been asked to revert it again back to the original.
    When i am executing the old backup one again i am getting error. It was valid before. I know the error is due to not proper fromatting, as in vi editor when i am seeing it its coming like this may be due to improper pagesize and linesize setting while spooling
      CREATE OR REPLACE PACKAGE "STGPUB1"."BP_RELATED_CONTENT_PKG" AS
    * Package Name    : BP_RELATED_CONTENT_PKG
    * This package is called to get all the information about all related content
    * New Procedure "GET_TEASER_IMG_TXT_PRC" is created for BPR2. Date: 15-Mar-04,
    */could you plz help me how to get rid of this...by using vi or notepad or wordpad or by any other process.
    Edited by: user8850066 on Jun 28, 2010 1:03 AM

    As i told you no dependencies failed the error is due to improper formatting as it was valid earlier.
    below is the error
    TEXT
    PL/SQL: ORA-00923: FROM keyword not found where expected
    PLS-00103: Encountered the symbol "AS" when expecting one of the following:
       , from
    PLS-00103: Encountered the symbol "M" when expecting one of the following:
       . ( ) , * @ % & | = - + < / > at in is mod remainder not
       range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
       and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
       SUBMULTISET_
    TEXT
    The symbol "." was substituted for "M" to continue.
    PLS-00103: Encountered the symbol "NULL" when expecting one of the following:
       , * & - + / at mod remainder rem <an identifier>
       <a double-quoted delimited-identifier> <an exponent (**)> as
       from || multiset
    The symbol "," was substituted for "NULL" to continue.
    PLS-00103: Encountered the symbol "NULL" when expecting one of the following:
    TEXT
       . ( , * @ % & - + / at mod remainder rem <an identifier>
       <a double-quoted delimited-identifier> <an exponent (**)> as
       from || multiset
    The symbol "," was substituted for "NULL" to continue.
    PL/SQL: SQL Statement ignored
    6 rows selected.

  • While compiling package '±' change to '?'

    Hi,
    I try to compile a package with special character set '±' inside the package. The package is taken in windows platform. While I try to compile this package in Linux environment; the character '±' change to '?'.
    Pls help how to resolve the problem.
    Subir

    Try setting NLS_LANG environment variable :
    $ sqlplus test/test
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 27 09:43:14 2008
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    TEST@db102 > select '±' from dual;
    TEST@db102 > exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $ export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
    $ sqlplus test/test
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 27 09:43:26 2008
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    TEST@db102 > select '±' from dual;
    ±
    TEST@db102 >

  • Got Error While Compiling Packages with TOAD (URGENT)

    Dear Experts,
    Please help me to resolve this erroe this is very criticla.
    ORA-20000: You have insufficient privileges for an objects in this schema
    ORA-06512: at "SYS.DBMS.UTILITY" LINE 422
    ORA-06512: Line 1

    You should be connected to the user that owns the packages, or SYS.

  • ORA-06550 - while compiling the PL/SQL block.

    I am trying a to populate a table based on the below pl/sql block
    Declare
    temp source.source%type;
    tregion varchar2(40);
    tversion varchar2(40);
    tsource varchar2(100);
    Cursor c1 is
    Select * from Source;
    Begin
    Open c1;
    Loop
    fetch c1 into temp;
    select REGION, VERSION, SOURCE into tregion, tversion, tsource from QUOTE_LETTERS_MASTER where SOURCE = temp AND REGION = 'eSource';
    insert into esource values(tregion, tversion, tsource);
    Exception
    when no_data_found then
    insert into esource values('No eSource',' ',temp.source);
    exit when c1%notfound;
    End Loop;
    close c1;
    end;

    yes, there are more than one rows that is returned when i do a Select Into statement.
    I am trying to resolve by using a cursor C2 inside the already existing cursor C1, i will use a inner loop to get the select statement value to cursor c2 then i will assign the vlaues the variables, then once i read all the values of cursor c2 i will exit inner loop and go to outer loop to read the next value of c1 and then again go to cursor c2 and inner loop.
    Do you think it will work ?
    Thank you,
    rakesh
    I have pasted the code below.
    Declare
    temp1 source.source%type;
    temp2 QUOTE_LETTERS_MASTER%rowtype;
    Cursor c1 is
    Select * from Source;
    Begin
    open c1;
    loop
    fetch c1 into temp;
    cursor c2 is
    select region, version, source from QUOTE_LETTERS_MASTER where SOURCE = temp AND REGION = 'eSource';
    open c2;
    loop
    begin
    fetch c2 into temp2;
    insert into esource values(temp2.region, temp2.version, temp2.source);
    Exception
    when no_data_found then
    insert into esource values('No esource',' ',temp);
    exit when c2%notfound;
    end loop;
    close c2;
    exit when c1%notfound;
    end loop;
    close c1;
    end;
    But is giving this error : - ORA-06550: line 10, column 13:
    ***PLS-00103: Encountered the symbol "C2" when expecting one of the following:
    ***:= . ( @ % ;
    ***1. Declare***
    ***2. temp1 source.source%type;
    ***3. temp2 QUOTE_LETTERS_MASTER%rowtype;
    Edited by: rakesh119 on Apr 10, 2013 11:08 AM

  • Re: ORA-06550 - while compiling the PL/SQL block.

    yes, there are more than one rows that is returned when i do a Select Into statement.
    I am trying to resolve by using a cursor C2 inside the already existing cursor C1, i will use a inner loop to get the select statement value to cursor c2 then i will assign the vlaues the variables, then once i read all the values of cursor c2 i will exit inner loop and go to outer loop to read the next value of c1 and then again go to cursor c2 and inner loop.
    Do you think it will work ?
    Thank you,
    rakesh
    I have pasted the code below.
    Declare
    temp1 source.source%type;
    temp2 QUOTE_LETTERS_MASTER%rowtype;
    Cursor c1 is
    Select * from Source;
    Begin
    open c1;
    loop
    fetch c1 into temp;
    cursor c2 is
    select region, version, source from QUOTE_LETTERS_MASTER where SOURCE = temp AND REGION = 'eSource';
    open c2;
    loop
    begin
    fetch c2 into temp2;
    insert into esource values(temp2.region, temp2.version, temp2.source);
    Exception
    when no_data_found then
    insert into esource values('No esource',' ',temp);
    exit when c2%notfound;
    end loop;
    close c2;
    exit when c1%notfound;
    end loop;
    close c1;
    end;
    But is giving this error : - ORA-06550: line 10, column 13:
    ***PLS-00103: Encountered the symbol "C2" when expecting one of the following:
    ***:= . ( @ % ;
    ***1. Declare***
    ***2. temp1 source.source%type;
    ***3. temp2 QUOTE_LETTERS_MASTER%rowtype;
    Edited by: rakesh119 on Apr 10, 2013 11:08 AM

    Inner BEGIN block is missing DECLARE:
    Declare
    temp1 source.source%type;
    temp2 QUOTE_LETTERS_MASTER%rowtype;
    Cursor c1 is
    Select * from Source;
    Begin
    open c1;
    loop
    fetch c1 into temp;
    <font color=red>Declare</font><br>
    cursor c2 is
    select region, version, source from QUOTE_LETTERS_MASTER where SOURCE = temp AND REGION = 'eSource';
    open c2;
    loop
    begin
    fetch c2 into temp2;
    insert into esource values(temp2.region, temp2.version, temp2.source);
    Exception
    when no_data_found then
    insert into esource values('No esource',' ',temp);
    exit when c2%notfound;
    end loop;
    close c2;
    exit when c1%notfound;
    end loop;
    close c1;
    end;For example:
    SQL> declare
      2      cursor c1 is select * from dual;
      3  begin
      4      open c1;
      5      cursor c2 is select * from dual;
      6      begin
      7          open c2;
      8      end;
      9  end;
    10  /
        cursor c2 is select * from dual;
    ERROR at line 5:
    ORA-06550: line 5, column 12:
    PLS-00103: Encountered the symbol "C2" when expecting one of the following:
    := . ( @ % ;
    SQL> declare
      2      cursor c1 is select * from dual;
      3  begin
      4      open c1;
      5      declare
      6          cursor c2 is select * from dual;
      7      begin
      8          open c2;
      9      end;
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Error with Oracle10G Sql Browser while execute package with exec clause

    Dear Experts,
    Please tell me why i am getting Error ORA- 00900 while executing this script with Oracle10G Sql Browserbut not getting error with Oracle9i Sql Browser
    var r1 refcursor;
    var r2 refcursor;
    exec ETKT_CANCEL_TICKET_PCK.GET_DATA(:r1,:r2,'05052007/00000003/0000994','23');

    It would be interesting to know, what Sql Browser is.

  • ORA-00900: invalid SQL statement error while running jobs in APEX 4.2

    Hi,
    the following procedure compiled successfully in Apex 4.2:
    create or replace procedure "DEVLOE" AS
    L_TEMPLATE VARCHAR2(32000);
    L_base_TEMPLATE VARCHAR2(32000);
    begin
    l_base_template := '<html>
    <head>
    <title>HTML Editor Sample Page</title>
    </head>
    <body>
    <p>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span class="plsql-literal" style="line-height: 14.65625px; white-space: nowrap;">Hi #Contact#,</span></span></span></p>
    <p>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span class="plsql-literal" style="line-height: 14.65625px; white-space: nowrap;">This is a notification message to inform you that <strong>Development </strong>effort </span><span class="plsql-literal" style="line-height: 14.65625px; white-space: nowrap;">and milestones are yet to be updated for ECR: </span><span class="plsql-operator" style="line-height: 14.65625px; white-space: nowrap;"></span><span class="plsql-word" style="line-height: 14.65625px; white-space: nowrap;">#ECR_NAME#. This ECR has priority #p#. </span></span></span></p>
    <table align="center" border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
    <tbody>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="color: rgb(255, 0, 0);"><span style="font-family: verdana, geneva, sans-serif;"><u><strong>Department</strong></u></span></span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(255, 0, 0);"><u><strong><span style="background-color: rgb(255, 255, 255);">Contact Name</span></strong></u></span></span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Product Management Contact</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#pdm#</span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">PMO Contact</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#PMO#</span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Dev Contact</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#Dev#</span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">QA Contact</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#QA#</span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Infodev Contact</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#Info#</span></span></td>
    </tr>
    </tbody>
    </table>
    <p>
     </p>
    <span fckbookmark="1" style="display: none;"> </span><span fckbookmark="1" style="display: none;"> </span>
    <table align="center" border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
    <tbody>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">Team</span></span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">Start Date</span></span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">End Date</span></span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;"><span style="color: rgb(0, 0, 255);">Effort(in person days)</span></span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Development</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#d1#</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#e1#</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#L1#</span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Quality Assurance</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#d2#</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#e2#</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#L2#</span></span></td>
    </tr>
    <tr>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">Information Development</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#d3#</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#e3#</span></span></td>
    <td>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">#L3#</span></span></td>
    </tr>
    </tbody>
    </table>
    <p>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">The ECR application is located</span> at </span>: https://apex.oraclecorp.com/pls/apex/f?p=1472:1<span fckbookmark="1" style="display: none;"> </span></p>
    <span fckbookmark="1" style="display: none;"> </span>
    <p>
    <span style="font-family: verdana, geneva, sans-serif; font-size: 14px;">Regards,</span></p>
    <p>
     </p>
    <p>
    <span style="font-size:14px;"><span style="font-family: verdana, geneva, sans-serif;">ECR Team</span></span></p>
    </body>
    </html>
    FOR c1 IN (select ECR_NAME,PMO_CONTACT, QE_LOE,INFODEV_LOE, DEV_START_DATE, DEV_END_DATE, QE_CONTACT,QE_START_DATE,INFODEV_START_DATE,INFODEV_END_DATE, QE_END_DATE, INFODEV_CONTACT, PDM_CONTACT, DEV_LOE,ECR_PRIORITY, DEV_CONTACT from ECR_NAME WHERE DEV_LOE IS NULL AND ECR_STATUS = 'Effort Estimation is in Progress' AND ECR_PRIORITY <=5)
    LOOP
    l_template := l_base_template;
    l_template:= replace(l_template, '#Contact#', c1.DEV_CONTACT);
    l_template:= replace(l_template, '#ECR_NAME#', c1.ECR_NAME);
    l_template:= replace(l_template, '#p#', c1.ECR_PRIORITY);
    l_template:= replace(l_template, '#PMO#', c1.PMO_CONTACT);
    l_template:= replace(l_template, '#pdm#', c1.PDM_CONTACT);
    l_template:= replace(l_template, '#Dev#', c1.DEV_CONTACT);
    l_template:= replace(l_template, '#QA#', c1.QE_CONTACT);
    l_template:= replace(l_template, '#Info#', c1.INFODEV_CONTACT);
    l_template:= replace(l_template, '#d1#', c1.DEV_START_DATE);
    l_template:= replace(l_template, '#L1#', c1.DEV_LOE);
    l_template:= replace(l_template, '#e1#', c1.DEV_END_DATE);
    l_template:= replace(l_template, '#d2#', c1.QE_START_DATE);
    l_template:= replace(l_template, '#L2#', c1.QE_LOE);
    l_template:= replace(l_template, '#e2#', c1.QE_END_DATE);
    l_template:= replace(l_template, '#d3#', c1.INFODEV_START_DATE);
    l_template:= replace(l_template, '#L3#', c1.INFODEV_LOE);
    l_template:= replace(l_template, '#e3#', c1.INFODEV_END_DATE);
    htmldb_mail.Send(p_to => '[email protected]',
    p_cc => '[email protected]',
    p_from => '[email protected]',
    p_body => l_template,
    p_body_html => l_template,
    p_subj => 'cxxxx:' ||c1.ECR_NAME );
    END LOOP;
    end;
    the when I ran:
    begin
    devloe();
    end;
    I received the mail as well.
    However, when I try to schedule this in the job:
    declare
    JobNo user_jobs.job%TYPE;
    begin
    dbms_job.submit(JobNo, 'BEGIN
    DEVLOE();
    END;', sysdate, 'sysdate + 1/24/60'); commit; end;
    The job status shows failures every minute.
    dbms_job.run(job_no);
    It gave : ORA-00900: invalid SQL statement

    First of all I don't see a procedure header.
    Secondly I see you commit inside your procedure. This is a bug.
    Thirdly I see you also commit inside a loop. This is also a bug, and needs to be removed asap.
    The error indicates a statement doesn't parse. As you don't post the error stack, nor a table definition no one can reproduce the problem.
    You need to isolate the statements, one by one, and run them through sql*plus to see what happens.
    Sybrand Bakker
    Senior Oracle DBA

  • Compilation probelm  while using package.

    Hi Friends,
    I have one package Alert.java which stored and compiled class file is kept in MyPack directory.
    I am in Projec directory . The MyPack directory is subdirectory of Projec directory.
    My main java program has import statement like this
    import MyPack.*;
    While compiling the main program, it thows error as follows in Windows XP.
    C:\project>javac -d bin -sourcepath src src\sagent_reg.java
    src\sagent_reg.java:29: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Unable to Connect Database",this);
    ^
    src\sagent_reg.java:40: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Database Error....!!"+e.toString(),this);
    ^
    Note: src\sagent_reg.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    2 errors
    Can anybody please help in this regard.
    I tried many mothods to compile.
    javac -d , javac -sourepath etc. Still this error comes.

    I tried by compiling *.java option. The above mentioned eror is again displayed.
    My directory structure is
    C;\project
    c:\project\src (source java files)
    c:\project\bin (all class files)
    c:\project\bin\MyPack (class files of package)
    my source file is c:\project\src\sagent-reg.java
    my_package files are at c:\project\src\MyPack\Alert.java
    my_package files are at c:\project\src\MyPack\db_connect.java
    I am now in the directory c:\project.
    I compiled the package files as
    c:\project:> javac -d bin -sourcepath src src\MyPack\*.java
    It has copiled the two packages successfully and class files are generated in
    C:\projec\bin\MyPack\Alert.class
    C:\project\bin\MyPack\db_connect.class
    Now I tried to compile the main program as like this
    c:\project> javac -d bin -sourcepath src src\sagent_reg.java
    I get the same errorsC:\project>javac -d bin -sourcepath src src\sagent_reg.java
    src\sagent_reg.java:29: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Unable to Connect Database",this);
    ^
    src\sagent_reg.java:40: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Database Error....!!"+e.toString(),this);
    ^
    Note: src\sagent_reg.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    2 errors
    my class path defined in System environment variable is
    C:\>set classpath
    CLASSPATH=.;c:\Program files\QuickTime\QTJava.zip;d:\oracle\ora92\jdbc\lib\class
    es12.zip;d:\oracle\ora92\jdbc\lib\classes12.jar;d:\oracle\ora92\jdbc\lib\classes
    111.zip;d:\oracle\ora92\jdbc\lib\classes111.jar;d:\oracle\ora92\jdbc\lib\ojdbc14
    .jar;;.;c:\project;c:\Program files\QuickTime\QTJava.zip;d:\oracle\ora92\jdbc\li
    b\classes12.zip;d:\oracle\ora92\jdbc\lib\classes12.jar;d:\oracle\ora92\jdbc\lib\
    classes111.zip;d:\oracle\ora92\jdbc\lib\classes111.jar;d:\oracle\ora92\jdbc\lib\
    ojdbc14.jar;
    Kindly tell me where I have gone wrong. Should I include calsspath while compiling.

  • ORA-01031 error while executing package..

    Hi All,
    user is getting an error ORA-01031 while executing a procedure (i.e create or replace procedure).
    Please let me know how I can trobuleshoot it..let me know the script to check the required privileges..
    Thanks a lot.......

    It's not a bug, check Oracle doc,
    System Privileges Needed to Create or Alter a Procedure
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/authoriz.htm#i1009241
    To create a procedure, you must have been explicitly granted the necessary privileges (system or object) on all objects referenced by the procedure. You cannot have obtained the required privileges through roles. This includes the EXECUTE privilege for any procedures that are called inside the procedure being created.

Maybe you are looking for

  • Mac Pro to MacBook Pro -  File transfer problem

    I just bought a new Mac Pro. It is connected to my Airport Extreme via ethernet. The Airport Extreme is connected to my cable modem vis ethernet. The Mac Pro and the MacBook Pro appear in the others Shared part of the side bar. I have checked the per

  • MB1B Transfer posting 311Q ( Material provided to vendor ) ......

    Hello Subcontracting process useing movement type (311 Q) in the trasaction MB1B. i wold like to fetch the components from the PO , like 541. error "Combination of movement type 311 Q and function selected not possible " please help me

  • SCCM 2012 R2 5.0.7958.1000

    I am standing up a new site but my Management point is at 0 bytes.  I applied the CU 1 update and tried to apply the update 2 but it says it does not apply to the version of SCCM I have installed.  I am getting the following error: Site Component Man

  • Live Corners and Smart Guides

    I am so in love with the fact that live corners are a thing now in Illustrator. I have been waiting for this forever. Or at least, something close it. Unfortunately they're missing a major component that would unclock so many opportunities with them-

  • Lion Photo booth effects dizzy and lovestruck are broken.

    I just got lion and I think it is really cool. But when I go to photobooth the dizzy and lovestruck effects have black boxes around the birds and hearts. I have the more photo booth effects pack installed, but one of my friends who also has lion does