Package is in hung state

Hi,
Suddenly package is not giving the output if we run manually , please can anyone suggest how i can troubleshoot this ?
Thanks in advance
PGR

Suddenly package is not giving the output if we run manually , please can anyone suggest how i can troubleshoot this ?
You can't - 'packages' do NOT have output. A package is a container. It is code WITHIN the package (procedure, function, etc) that might give output.
So if you want help you have to SHOW us (not just tell us) WHAT you are doing, HOW you are doing it (e.g. sql*plus session) and post the code that you are doing it wigh.
Post a sql*plus session showing the actual function/procedure call, the actual output and the expected output.

Similar Messages

  • Package procedure in invalid state

    Hi all,
    We are having an application in C# and backend oracle 10g placed in Location1.
    There is modification in Packaged procedure. So we remotely (from Location2) connected to Location1 and that Packaged procedure is created.
    This Packaged procedure has been created (in Location1 ) without any errors. But this procedure is in INVALID state. We tried to compile it remotely by using following statements, but still this is in invalid state .
    ALTER PACKAGE my_package COMPILE;
    ALTER PACKAGE my_package COMPILE BODY;
    If we run this package and package body manually, without any modifications after creating it remotly, it is becoming VALID state.
    I am not getting any idea, why it is creating in INVALID state. Any help is appreciated.
    Thanks in advance,
    Pal

    Ok, here's a previous response that I gave re. packages and their "states". Should give you a good idea what a state is...
    Packages tend to fail because of their "package state". A package has a "state" when it contains package level variables/constants etc. and the package is called. Upon first calling the package, the "state" is created in memory to hold the values of those variables etc. If an object that the package depends upon e.g. a table is altered in some way e.g. dropped and recreated, then because of the database dependencies, the package takes on an INVALID status. When you next make a call to the package, Oracle looks at the status and sees that it is invalid, then determines that the package has a "state". Because something has altered that the package depended upon, the state is taken as being out of date and is discarded, thus causing the "Package state has been discarded" error message.
    If a package does not have package level variables etc. i.e. the "state" then, taking the same example above, the package takes on an INVALID status, but when you next make a call to the package, Oracle sees it as Invalid, but knows that there is no "state" attached to it, and so is able to recompile the package automatically and then carry on execution without causing any error messages. The only exception here is if the thing that the package was dependant on has changes in such a way that the package cannot compile, in which case you'll get an Invalid package type of error.
    And if you want to know how to prevent discarded package states....
    Move all constants and variables into a stand-alone package spec and reference those from your initial package. Thus when the status of your original package is invlidated for whatever reason, it has no package state and can be recompiled automatically, however the package containing the vars/const will not become invalidated as it has no dependencies, so the state that is in memory for that package will remain and can continue to be used.
    As for having package level cursors, you'll need to make these local to the procedures/functions using them as you won't be able to reference cursors across packages like that (not sure about using REF CURSORS though.... there's one for me to investigate!)
    This first example shows the package state being invalided by the addition of a new column on the table, and causing it to give a "Package state discarded" error...
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  /
    Table created.
    SQL>
    SQL> insert into dependonme values (5)
      2  /
    1 row created.
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body mypkg is
      2    v_statevar number := 5; -- this means my package has a state
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
    10
    11      myval := myval * v_statevar;
    12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
    13    end;
    14  end mypkg;
    15  /
    Package body created.
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALID
    SQL>
    SQL>
    SQL> alter table dependonme add (y number)
      2  /
    Table altered.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    BEGIN mypkg.myproc; END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "CRISP_INTELL.MYPKG" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "CRISP_INTELL.MYPKG"
    ORA-06512: at line 1
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALIDAnd this next example shows how having the package variables in their own package spec, allows the package to automatically recompile when it is called even though it became invalidated by the action of adding a column to the table.
    SQL> drop table dependonme
      2  /
    Table dropped.
    SQL>
    SQL> drop package mypkg
      2  /
    Package dropped.
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  /
    Table created.
    SQL>
    SQL> insert into dependonme values (5)
      2  /
    1 row created.
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  /
    Package created.
    SQL>
    SQL> create or replace package mypkg_state is
      2    v_statevar number := 5; -- package state in seperate package spec
      3  end mypkg_state;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body mypkg is
      2    -- this package has no state area
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
    10
    11      myval := myval * mypkg_state.v_statevar;  -- note: references the mypkg_state package
    12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
    13    end;
    14  end mypkg;
    15  /
    Package body created.
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALID
    SQL>
    SQL> alter table dependonme add (y number)
      2  /
    Table altered.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.

  • Sqlplus / as sysdba hung state

    Hi All,
    When we try to do a sqlplus / as sysdba it gets into hung state.
    sapkxqap03:oraqs9 2> sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.4.0 - Production on Wed Feb 16 19:06:28 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    We dont get anything after this prompt.Is there a way we can get to know as to what might be the issue.Thanks.

    Hi Michael,
    Nice to hear from you Michael.Long time.Thanks for the response
    Checked no archiver struck since the file systems have enough space.The problem is that alter log has not been updated for the past 1 week.R3trans also gets struck since it also uses sqlplus to login.Thanks.,
    4 ETW000 R3trans version 6.05 (release 46D - 04.12.08 - 14:43:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000 date&time   : 16.02.2011 - 21:11:13
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [developertra,00000]  Wed Feb 16 21:11:13 2011
         232  0.000232
    4 ETW000  [developertra,00000]  db_con_init called
          14  0.000246
    4 ETW000  [developertra,00000]  create_con (con_name=R/3)
          34  0.000280
    4 ETW000  [developertra,00000]  Loading DB library '/usr/sap/QS9/SYS/exe/run/dbo
    raslib.so' ...
    4 ETW000
          30  0.000310
    4 ETW000  [developertra,00000]  load shared library (/usr/sap/QS9/SYS/exe/run/db
    oraslib.so), hdl 0
    4 ETW000
       15933  0.016243
    4 ETW000  [developertra,00000]  Library '/usr/sap/QS9/SYS/exe/run/dboraslib.so'
    sapkxqap03:qs9adm 3> more trans.log
    4 ETW000 R3trans version 6.05 (release 46D - 04.12.08 - 14:43:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000 date&time   : 16.02.2011 - 21:11:13
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [developertra,00000]  Wed Feb 16 21:11:13 2011                             232  0.000232
    4 ETW000  [developertra,00000]  db_con_init called                                    14  0.000246
    4 ETW000  [developertra,00000]  create_con (con_name=R/3)                             34  0.000280
    4 ETW000  [developertra,00000]  Loading DB library '/usr/sap/QS9/SYS/exe/run/dboraslib.so' ...
    4 ETW000                                                                              30  0.000310
    4 ETW000  [developertra,00000]  load shared library (/usr/sap/QS9/SYS/exe/run/dboraslib.so), hdl 0
    4 ETW000                                                                           15933  0.016243
    4 ETW000  [developertra,00000]  Library '/usr/sap/QS9/SYS/exe/run/dboraslib.so' loaded
    4 ETW000                                                                              18  0.016261
    4 ETW000  [developertra,00000]  function DbSlExpFuns loaded from library /usr/sap/QS9/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              22  0.016283
    4 ETW000  [developertra,00000]  Version of library '/usr/sap/QS9/SYS/exe/run/dboraslib.so' is "46D.00", patchlevel (0.2438)
    4 ETW000                                                                              99  0.016382
    4 ETW000  [developertra,00000]  function dsql_db_init loaded from library /usr/sap/QS9/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              12  0.016394
    4 ETW000  [developertra,00000]  function dbdd_exp_funs loaded from library /usr/sap/QS9/SYS/exe/run/dboraslib.so
    4 ETW000                                                                              19  0.016413
    4 ETW000  [developertra,00000]  New connection 0 created                              17  0.016430
    4 ETW000  [developertra,00000]  db_con_connect (con_name=R/3)                         13  0.016443
    4 ETW000  [developertra,00000]  find_con found the following connection for reuse:
    4 ETW000                                                                              10  0.016453
    4 ETW000  [developertra,00000]  Got ORACLE_HOME=/oracle/QS9/102_64 from environment
    4 ETW000                                                                             434  0.016887
    4 ETW000  [developertra,00000]  -->oci_initialize                                     23  0.016910
    4 ETW000  [developertra,00000]  Got ORACLE_SID=QS9 from environment                   24  0.016934
    4 ETW000  [developertra,00000]  Got NLS_LANG=AMERICAN_AMERICA.WE8DEC from environment
    4 ETW000                                                                              13  0.016947
    4 ETW000  [developertra,00000]  Logon as OPS$-user to get SAPR3's password            11  0.016958
    4 ETW000  [developertra,00000]  Connecting as /@QS9 on connection 0 ... (dbsl 46D 220209)
    4 ETW000                                                                              15  0.016973
    4 ETW000  [developertra,00000]  -->oci_logon(con_hdl=0, user='', dbname='QS9')        15  0.016988

  • What could be the reason for Crawl process to take long time or get in to a hung state.

    Hi All,
    What could be the reason for Crawl process to take long time or get in to a hung state? Is it something also related to the DB Server resources crunch? Does this lead to Index file corruption?
    What should be the process to be followed when index file is corrupted? How do we come to know about that?
    Thanks in Advance.

    "The crawl time depends on what you are crawling -- the number of items, the size of the items, the location of the items. If you have a lot of content that needs to be crawled, it will take much time".
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f4cad578-f3bc-4822-b660-47ad27ce094a/sharepoint-2007-crawl-taking-long-time-to-complete?forum=sharepointgeneralprevious
    "The only clean and recommended way to recover from an index corruption is to completely rebuild the index on all the servers in the farm."
    http://blogs.technet.com/b/victorbutuza/archive/2008/11/11/event-id-4138-an-index-corruption-was-detected-in-component-shadowmerge-in-catalog-portal-content.aspx
    Whenever search index file got corrupted it will got the details to Event logs
    http://technet.microsoft.com/en-us/library/ff468695%28v=office.14%29.aspx
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Eschalon_book2 package install: cp: cannot stat error?

    Hi All,
    Trying to install an eschalon2 pkgbuild from the AUR. I already edited the PKGBUILD for the correct source URL and regenerated the correct MD5's, I'm stuck at the below error though, some help would be much appreciated! Please see my terminal output below:
    [user@USER eschalon2]$ yaourt -S eschalon2
    ==> Downloading eschalon2 PKGBUILD from AUR...
    x eschalon2.launcher
    x eschalon2.install
    x EschalonBook2.png
    x PKGBUILD
    x eschalon2.desktop
    Comment by: Thalic on Thu, 28 Oct 2010 14:19:28 +0000
    Fixed
    Comment by: hasufell on Sat, 12 Mar 2011 17:11:41 +0000
    http://pastebin.com/raw.php?i=TkGf9R0S
    Comment by: Abdunur on Wed, 08 Jun 2011 03:35:17 +0000
    Available download link
    http://pastebin.com/raw.php?i=D4xQw2yM
    Comment by: schuay on Sat, 30 Jul 2011 09:59:06 +0000
    Disowned due to out of date flag since Feb 21 with no maintainer action. Feel free to adopt and update.
    Comment by: Anntoin on Tue, 06 Dec 2011 04:32:01 +0000
    The download location has changed to http://www.basiliskgames.com/dl_content/eb2_105_release/eschalon_book_2.tar.gz
    Comment by: schuay on Tue, 06 Dec 2011 05:43:09 +0000
    Updated, thanks
    First Submitted: Wed, 26 May 2010 16:11:38 +0000
    eschalon2 1.05-1
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> y
    Please add $EDITOR to your environment variables
    for example:
    export EDITOR="vim" (in ~/.bashrc)
    (replace vim with your favorite editor)
    ==> Edit PKGBUILD with: nano
    ==> eschalon2 dependencies:
    - lib32-freetype2 (already installed)
    - lib32-libxxf86vm (already installed)
    - lib32-mesa (already installed)
    - lib32-gcc-libs (already installed)
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> Edit eschalon2.install ? [Y/n] ("A" to abort)
    ==> ---------------------------------------------
    ==> n
    ==> Continue building eschalon2 ? [Y/n]
    ==> -----------------------------------
    ==>
    ==> Building and installing package
    ==> Making package: eschalon2 1.05-1 (Sun Jul 15 12:13:24 PDT 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Downloading eschalon_book_2.tar.gz...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 41358 0 41358 0 0 11707 0 --:--:-- 0:00:03 --:--:-- 107k
    -> Found EschalonBook2.png
    -> Found eschalon2.desktop
    -> Found eschalon2.launcher
    ==> Validating source files with md5sums...
    eschalon_book_2.tar.gz ... FAILED
    EschalonBook2.png ... Passed
    eschalon2.desktop ... Passed
    eschalon2.launcher ... Passed
    ==> ERROR: One or more files did not pass the validity check!
    ==> ERROR: Makepkg was unable to build eschalon2.
    ==> Restart building eschalon2 ? [y/N]
    ==> ----------------------------------
    ==>
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> y
    ==> eschalon2 dependencies:
    - lib32-freetype2 (already installed)
    - lib32-libxxf86vm (already installed)
    - lib32-mesa (already installed)
    - lib32-gcc-libs (already installed)
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    ==> Edit eschalon2.install ? [Y/n] ("A" to abort)
    ==> ---------------------------------------------
    ==> n
    ==> Continue building eschalon2 ? [Y/n]
    ==> -----------------------------------
    ==>
    ==> Building and installing package
    ==> Making package: eschalon2 1.05-1 (Sun Jul 15 12:14:52 PDT 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Found eschalon_book_2.tar.gz
    -> Found EschalonBook2.png
    -> Found eschalon2.desktop
    -> Found eschalon2.launcher
    ==> Validating source files with md5sums...
    eschalon_book_2.tar.gz ... Passed
    EschalonBook2.png ... Passed
    eschalon2.desktop ... Passed
    eschalon2.launcher ... Passed
    ==> Extracting Sources...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    cp: cannot stat '/tmp/yaourt-tmp-USER/aur-eschalon2/src/eschalon_book_2/*': No such file or directory
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build eschalon2.
    The revised PKGBUILD is as follows:
    # Maintainer: REMOVED
    # Contributor: REMOVED
    pkgname=eschalon2
    pkgver=1.05
    pkgrel=1
    pkgdesc="Turn-based RPG. Eschalon: Book II is the sequel to 2007’s award winning RPG Eschalon: Book I, although no previous experience is needed to play and enjoy Book II."
    arch=('i686' 'x86_64')
    url='http://basiliskgames.com/eschalon-book-ii'
    license=('custom: "commercial"')
    install=eschalon2.install
    if [ "$CARCH" = "x86_64" ]; then
    depends=('lib32-freetype2' 'lib32-libxxf86vm' 'lib32-mesa' 'lib32-gcc-libs')
    else
    depends=('freetype2' 'libxxf86vm' 'mesa' 'gcc-libs')
    fi
    install=eschalon2.install
    source=("http://www.gamefront.com/files/20844362/eschalon_book_2.tar.gz"
    'EschalonBook2.png'
    'eschalon2.desktop'
    'eschalon2.launcher')
    md5sums=('90bcd453ad20a00686d81d8873e7def3'
    '536ccc508dfc14e89cb87c6d6e35a675'
    '5f10d62310119e64659c24bc01aa16b9'
    '23cbeb1f0c444a48dc5c4a0bf639b21b')
    build() {
    cd $srcdir
    # Create Destination Directory
    install -d $pkgdir/opt/Eschalon2
    # Install the data
    cp -r $srcdir/eschalon_book_2/* $pkgdir/opt/Eschalon2
    # Install Icon
    install -D -m 644 $srcdir/EschalonBook2.png \
    $pkgdir/usr/share/pixmaps/EschalonBook2.png
    # Install Launcher
    install -D -m 644 $srcdir/eschalon2.desktop \
    $pkgdir/usr/share/applications/eschalon2.desktop
    # Install Game Launcher
    install -D -m 755 $srcdir/eschalon2.launcher \
    $pkgdir/usr/bin/eschalon2
    # Install License
    install -D -m 644 $srcdir/eschalon_book_2/license.txt \
    $pkgdir/usr/share/licenses/$pkgname/license.txt
    # Set groupship to :games
    chown -R :games $pkgdir/opt/Eschalon2
    chmod -R g+rwX $pkgdir/opt/Eschalon2
    Best,
    C

    The url is wrong.  That is not a tarball, it is an html file.
    Edit: unless you have a better link, it looks like the source needs to be downloaded manually from the site.
    Edit2: after manually downloading the tarball, it "built" fine.  I did run into an issue of running out of space on my /tmp partition while compressing it though.  The pkg is over 1GB.
    Removing the no longer needed tarballs and running `makepkg -ef` fixed that issue.
    Also note, that this PKGBUILD should be modified.  All the work here should be moved to the "install" function rather than the "build" function as there is nothing to build.
    WARNING: after futzing with that I thought I'd install it to see what the game was.  It is a "trial version only" of a program that, at least in my case, failed miserably, but only after changing my video mode.  Egh, that goes right in the bit bucket.
    Last edited by Trilby (2012-07-15 22:08:02)

  • Package constant in select statement

    In my Package has several consatnt values...
    CREATE OR REPLACE PACKAGE xoec IS
    EXPIRED_DESC CONSTANT VARCHAR2(20) := 'Expired';
    LIVE CONSTANT VARCHAR2(1) := 'L';
    LIVE_DESC CONSTANT VARCHAR2(20) := 'Live';
    CANCELLED CONSTANT VARCHAR2(1) := 'X';
    CANCELLED_DESC CONSTANT VARCHAR2(20) := 'Cancelled';
    END ;
    I want to display the constant in Select statement.
    select xoec.live from dual;
    The above statement through error.
    Please help to fix it.
    Regards
    Mani

    This is one of examples.
    CREATE OR REPLACE PACKAGE xoec IS
      EXPIRED_DESC CONSTANT VARCHAR2(20) := 'Expired';
      LIVE CONSTANT VARCHAR2(1) := 'L';
      LIVE_DESC CONSTANT VARCHAR2(20) := 'Live';
      CANCELLED CONSTANT VARCHAR2(1) := 'X';
      CANCELLED_DESC CONSTANT VARCHAR2(20) := 'Cancelled';
      function get(in_vc varchar2) return varchar2;
    END ;
    CREATE OR REPLACE
    PACKAGE BODY xoec IS
      function get(in_vc varchar2) return varchar2
      is
      begin
        if    upper(in_vc) = 'EXPIRED_DESC' then
           return EXPIRED_DESC;      
        elsif upper(in_vc) = 'LIVE' then
           return LIVE;
        elsif upper(in_vc) = 'LIVE_DESC' then
           return LIVE_DESC;
        elsif upper(in_vc) = 'CANCELLED' then
           return CANCELLED;
        elsif upper(in_vc) = 'CANCELLED_DESC' then
           return CANCELLED_DESC;
        else
           null; -- somthing error raising
        end if;
      end;
    END;
    SQL> select xoec.get('live') from dual;
    XOEC.GET('LIVE')
    L

  • Unable to call a Packaged function in SQL statement??

    I have written a package & overloaded a function 3 times. I am using different parameter name for overloading & call as follows:
    my_pkg.ovrld_func(p_1 => v_val)
    my_pkg.ovrld_func(p_2 => v_val)
    my_pkg.ovrld_func(p_3 => v_val)
    When i use this statement in a sql or DML statement i get the following error.
    ORA-00907: missing right parenthesis
    I searched for limitations on packages but couldn't find this issue.
    FYI: I am using Oracle 9i Rel2
    Thanks

    I think its a bug as Oracle didn't report this limitation anywhere in the documentation & i should open a TAR.Well, it's documented limitation in fact.
    Quote "Oracle9i Application Developer’s Guide - Fundamentals Release 2 (9.2)"
    In a chapter entitled "Syntax for SQL Calling a PL/SQL Function"
    p. 9-53.
    Arguments
    To pass any number of arguments to a function, supply the arguments within the
    parentheses. You must use positional notation; named notation is not currently
    supported. For functions that do not accept arguments, use ().Regards.

  • Is there a built in package show components sql statement

    is there an exisitng package that will break down the components of a sql statement, as in the where clause, columns, etc?

    thanks, i had pointed him to that package but it apparenty didn't meet his needs.
    he may have to write something if there isn't a built in package that work.

  • Package scope and import statements

    Hi everubody,
    I'm studing a code: foo.java written by sb. else. In the code, I have:
    package com.dir1.dir2.dir3;
    import com.dir1.dir4.code1;
    import com.dir1.dir5.code2;
    The code: foo.java exists in the directory: com/dir1/dir2/dir3 as expected. However, in the import statements, there is NO dir4 and dir5 under com/dir1? Shouldn't the import statements be relative to the directory of package?
    Guess I'm missing a point here... Any help is greatly apprecited.

    When you import:
    import co.mycompany.my.MyClass
    then MyClass should reside in the directory:
    co/mycompany/my, right?Right. Somewhere in the classpath there would have to be that directory structure. Again, that could be an actual directory name, or a path name in a Jar.
    Then if the code: foo.java resides in the directory:
    com/dir2/dir3 with the:
    package com.dir1.dir2.dir3;
    How the compiler and JVM finds the code MyClass
    (which you imported in foo.java)?Thru the magic known as the classpath.

  • Packages stuck in pending state on a new DP

    I created a new DP and 80% of all the packages were distributed successfully but there are some packages that did not get copied.  Current status shows that it is still pending.  When I attempt to cancel or re-distribute the package, distmgr.log
    shows "Package xxxxx is in Pending state and will not be processed..."  There are no references to these pending packages in the smsdpprov.log.
    PkgXferMgr.log and PkgXferMgr.lo_ do not date back far enough for me to review.
    I am running SCCM 2012 R2 with no cumulative updates.  I was planning on installing CU4 next week.

    I was able to "fix" this issue by Updating Content from the Software Library.  No idea why the primary server didn't just send these packages the first time.  Time to upgrade to CU4.

  • Using package call in insert statement.

    insert into
    as_portal_credentials_test
    values('id', 'key','expid',UTL_RAW.CAST_TO_RAW('zTMwv2.[[?~d'))                                                                                                                                                                                                               

    Where are you using the insert statement? The ErrorDescription  variable is only available inside OnError,OnWarning and OnInformation event handlers
    http://msdn.microsoft.com/en-IN/library/ms141788.aspx
    Also you need to use insert statement as below
    INSERT INTO dbo.LOAD_ERR (LOAD_ERR_ID,
    LOAD_ERR_DTL,
    loadtime)
    VALUES (NEXT VALUE FOR dbo.LOAD_ERR_SEQ,
    getdate())
    and map parameter0 to  @[System::ErrorDescription] in parameters tab
    another way is to set SQLSourceType
    as Variable and set a variable for the query with below expression as
    "INSERT INTO dbo.LOAD_ERR (LOAD_ERR_ID,
    LOAD_ERR_DTL,
    loadtime)
    VALUES (NEXT VALUE FOR dbo.LOAD_ERR_SEQ,'" +
    @[System::ErrorDescription] + "',
    getdate())"
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Non-global zone in "shutting_down" state.. Hung in this state

    Hi.. My server is running in Sol10. It has got two non-global zones hosted in it in which the database is running.
    There was some complain from the database team that they were not able to login to the server. When I checked, it the status of the local zones were fine. But when tried to "# zlogin" to them, it got hung. So i tried to " # zlogin -S <zone_name>" and i was able to login in the failsafe mode but not able to execute any command in it. Any command from "uptime", "zfs list", gets hung and i had to forcefully logout.
    So I tried to halt the non-global zones first and then boot it. But here, it got stuck in "shutting_down" state.
    When tried to kill the processes of the non-global zones using "kill -9", it failed to kill the processes.
    so I rebooted the global zone which fixed the issue. But then, 10 days later, the same issue came up.
    I followed the same steps to fix the issue but i'm afraid this issue might come up again since i think rebooting the global zone server is a temporary fix.
    I logged a call with Oracle Support for this, but the server looks fine from the explorer output that was provided.
    Has anyone faced this same problem? What can i do to fix this issue permanantly?

    If you encounter the issue again in future, please get a system crash dump by panicing the global zone. This will allow us (support) to review the crash dump and understand why the zone failed to shut down. It will have been waiting on a resource and without the dump there's simply no way to know what or why.
    IIRC we recently (with the past month) did a putback of a bug (which I can't find the ID of right now) whereby if a zone doesn't hang on the way down we'll fork a new instance of the zone and leave the old refs in their hung state. So it's worth ensuring that you're running the latest Patchset.

  • What is the change occured by using the package in select statement

    Hi all,
    Can some one please tell me using the following package in the select statement of the view does it restricts the data or fetches the data
    what is the change occurred using the package for fetching the date column
    hr_discoverer.check_end_date (per_assignments_f.effective_end_date)
    Thanks in advance

    You can check the code -
    -- this function checks to see if a date is equivalent to the end of time(31-Dec-4712)
    -- if this is true it will return null else the actual end-date
    Cheers,
    Vignesh

  • Package is invalid state when called in Trigger

    Hi All,
    We have a trigger in which we are calling procedure(which is created in some package). Every time the trigger is called it returned an error
    'Package is in INVALID State".We tried to clean the app pool and that error went away but now it started coming again.
    Please help as we have been struggling hard for this .
    Database is ORA 10g.
    Please let me know if there are any other questions.
    Thanks in Advance !!!
    Regards

    My question is
    Why do you post 'My car doesn't work, please help me' instead of specifying exactly (with source code) what went wrong?
    Now you are asking people to rub up their broken crystal ball!
    Sybrand Bakker
    Senior Oracle DBA

  • ASM Disk offline - State hung

    Hey in my ASM configuration I setup this
    Disk Path ASM Name Failure Group
    /dev/raw/raw4 Data1 FG1_Data [on SAN1]
    /dev/raw/raw5 Data2 FG2_Data [on SAN2]
    /dev/raw/raw6 Reco1 FG1_Reco [on SAN1]
    /dev/raw/raw7 Reco2 FG2_Reco [on SAN2]
    all good.
    My I switched off SAN1. A query on v$asm_disk shows disk DATA1 & RECO1 as offline - hung state.
    I did in the asm instance in sqlplus:
    ALTER DISKGROUP DATA DROP DISK data1; -> success
    ALTER DISKGROUP RECO DROP DISK reco1; -> success
    ALTER DISKGROUP DATA ADD failgroup DATA3 '/dev/raw/raw4'; -> success
    ALTER DISKGROUP RECO ADD failgroup RECO3 '/dev/raw/raw6'; -> success
    The query on v$asm_disk stills show the DATA1 and RECO1 - but DATA3 and RECO3 as well.
    Is it right, that the "old" entries will disappear, once the ASM instance is restarted ? I can´t do this at the moment.
    In generell - why went the ASM disks to offline ?
    SAN1 was switched off for about 5 minutes - and was then switched back on.
    Is this expected behaviour ?

    Hi Chris,
    as long as the information is still partially valid, the devices will be displayed in v$asm_disk. Main reason is: Some Oracle processes still have handles open on these devices, and as long as they exist the devices can still be seen.
    A Restart of ASM + database will definitely remove these entries (if they cannot be seen by the operating system).
    Regarding your other question: Oracle can only detect if a device is going offline (errors in the database and asm alter log). If a device goes online again, Oracle does not check this (this would be a major overhead to rescan lets say every minute to see if a disk is back online).
    Hence you have to reinclude the dropped/offlined disks yourself.
    Depending on the version (10g or 11g) and depending on the diskgroup compatibility level for rdbms a disk can simply be returned into the diskgroup (11g - alter diskgroup <dg> set disk <disk> online) and resilvered or have to be reincluded into the ASM instance (no resilvering, but a complete rebalance 10g: alter diskgroup <dg> add disk <disk> to failgroup <fg> [force])
    Sebastian

Maybe you are looking for

  • Creative Drivers causing non-stop Blue Screens

    Hey Everyone, I have a very serious problem with my Creative drivers, which is driving me absolutely crazy. I have owned a SoundBlaster Audigy 2 ZS Notebook for quite some time and it has been working just fine in my laptop (I'm aware that this is th

  • Smart mailbox for mails which are not in another smart mailbox

    Hello! I tried to create a smart mailbox for all the mails which doesn't appear in any other smart mailbox. I know that I can tell my smart mailbox not to look for mails who are in the inbox or the other default-boxes of the mail program. But how can

  • BPM Question (File - XI - File )

    I have a typical situation where I like to make use of the BPM functionality. I have 7 different Files( FileA,FileB,FileC,FileD,FileE,FileF,FIleG) I need to start BPM when File A arrives. Aftger FileA arrives, I need to get all remaining 6 files. I n

  • Question about Project Duration

    I have an iMovie project that is 59:38:17, but after importing to iDVD it is now 62:27. I had the encoding set to "Best Performance" prior to the import. Will the project still look good now that it's over 60 minutes. Also, I was hoping to add a slid

  • 2007 Imacs that I want to use for duel screen set up.

    Hello. I have two mid-2007 imacs I want to use as an extended desktop. Given the both have mini DVIs.I want to know if it's possible and what I need to buy? Thank You.