PLS-00167: keyword BULK is used in a wrong context

What kind of exception it suggest?
Also can any1 give me the link where i can find info abt error codes.. i dont have access to google,etc.

Hi Guys
Thanx for ur cool responses..neways as askd for, m pasting that code snippet which is a part of a procedure.
IF SYSDATE >= l_modified_date + INTERVAL '||pwd_exp_interval||' DAY THEN
                                   UPDATE user SET STATUS = 'PASSWORD_EXPIRED', LAST_UNSUCCESS_LOGIN_DATE = SYSDATE WHERE login_ID = p_login_id;     
                                   ath_status := '3';
Now i guess i am getting the error coz am some way putting the value for INTERVAL of day i.e., pwd_exp_interval at run time in a wrong fashion as seen here :
l_modified_date + INTERVAL '||pwd_exp_interval||' DAY
Am i right?..can u suggest me what can i do to use the value of pwd_exp_interval at run time

Similar Messages

  • Number of rows inserted is different in bulk insert using select statement

    I am facing a problem in bulk insert using SELECT statement.
    My sql statement is like below.
    strQuery :='INSERT INTO TAB3
    (SELECT t1.c1,t2.c2
    FROM TAB1 t1, TAB2 t2
    WHERE t1.c1 = t2.c1
    AND t1.c3 between 10 and 15 AND)' ....... some other conditions.
    EXECUTE IMMEDIATE strQuery ;
    These SQL statements are inside a procedure. And this procedure is called from C#.
    The number of rows returned by the "SELECT" query is 70.
    On the very first time call of this procedure, the number rows inserted using strQuery is *70*.
    But in the next time call (in the same transaction) of the procedure, the number rows inserted is only *50*.
    And further if we are repeating calling this procedure, it will insert sometimes 70 or 50 etc. It is showing some inconsistency.
    On my initial analysis it is found that, the default optimizer is "ALL_ROWS". When i changed the optimizer mode to "rule", this issue is not coming.
    Anybody faced these kind of issues?
    Can anyone tell what would be the reason of this issue..? any other work around for this...?
    I am using Oracle 10g R2 version.
    Edited by: user13339527 on Jun 29, 2010 3:55 AM
    Edited by: user13339527 on Jun 29, 2010 3:56 AM

    You have very likely concurrent transactions on the database:
    >
    By default, Oracle Database permits concurrently running transactions to modify, add, or delete rows in the same table, and in the same data block. Changes made by one transaction are not seen by another concurrent transaction until the transaction that made the changes commits.
    >
    If you want to make sure that the same query always retrieves the same rows in a given transaction you need to use transaction isolation level serializable instead of read committed which is the default in Oracle.
    Please read http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_sqlproc.htm#ADFNS00204.
    You can try to run your test with:
    set  transaction isolation level  serializable;If the problem is not solved, you need to search possible Oracle bugs on My Oracle Support with keywords
    like:
    wrong results 10.2Edited by: P. Forstmann on 29 juin 2010 13:46

  • Over the last few wks, i have lost several important file. Even the support team has not been able to recover them. Pls offer advice. I use microsoft office on my macbook pro, which is less than a year old.ce.

    Over the last few wks, i have lost several important file. Even the support team has not been able to recover them. Pls offer advice. I use microsoft office on my macbook pro, which is less than a year old.

    pklfromarlington wrote:
    Bob, Hate to steal your thunder but am hooked to an external hard drive using Time Machine and er information is where it shoudl be. Yes, I have combed the files, used Finder and any other tools I know.
    You did not steal my thunder. You asked for advice, I provided advice. I assumed that since you nor the "support team" could find your files that you did not have any backup. You should have told us you do regular backups. We have no way to know otherwise unless you tell us.

  • In the process of reformatting my macbook pro, I saved everything but my keyword list.  The keywords are with the images, but the total list I use under "Keywords" is not present.  Is there a way to re-create all my keywords I've used over the last 6 year

    In the process of reformatting my macbook pro, I saved everything but my keyword list.  The keywords are with the images, but the total list I use under "Keywords" is not present.  Is there a way to re-create all my keywords I've used over the last 6 years.

    I accomplished what I needed last night.  I remembered I had picked my favorite images from each year and put them in a "favorite" folder by year.  These folders included 500 to 1200 images per year.  I pulled up the folder for each year and highlighted all images and clicked on "Keywords" and all keywords used for all images were listed.  I made those keywords persistent.  It took me a while to realize I had to click on each keyword to make it persistent.  After doing this for all years, I assume 95% of all keywords I have used over the many years were back in my list.  I'm sure there is probably a more "technical" way to accomplish what I needed, but this seems to have worked.  I also exported my list into a word document and is saved on my hard drive.
    If I had not made folders with my favorite images for each year, I could not have used this method, so if you figure out a better way, I like to hear it.  Thanks for your comments and willingness to help.

  • Which java keyword cannot be used inside the body of a static method?

    Which java keyword cannot be used inside the body of a static method, but may be used without problems in a non-static method?

    But javac doesn't complain. So I was not partially wrong -- I was completely wrong.It's still better not to use the "this", though. When you explictly reference a static member via an instance reference (theFoo.bar or this.bar, as opposed to Foo.bar) the JLS requires a check that the reference is non-null. Clearly "this" is always non-null, but javac still puts in half of the check. Take the simple class public class Test {
        static int field;
        public void setField(int i) {this.field=i;}
        public void staticSetField(int i) {field=i;}
    } and observe the bytecodes produced: $ javap -c Test
    Compiled from "Test.java"
    public class Test extends java.lang.Object{
    static int field;
    public Test();
      Code:
       0:   aload_0
       1:   invokespecial   #1; //Method java/lang/Object."<init>":()V
       4:   return
    public void setField(int);
      Code:
       0:   aload_0
       1:   pop
       2:   iload_1
       3:   putstatic       #2; //Field field:I
       6:   return
    public void staticSetField(int);
      Code:
       0:   iload_1
       1:   putstatic       #2; //Field field:I
       4:   return
    }The JIT will get rid of it, but you may as well avoid the waste in the first place. (And if you really do want to check that the reference is non-null, do the check explicitly so that maintainers know it's intentional).

  • Error msg = pls. install/uninstall the product using setup.exe in the root folder

    unable to install photoshop elements v10 on a windows 7, ultimate 64bit computer, get:
    error msg = pls. install/uninstall the product using setup.exe in the root folder

    yes, I am installing as the administrator.  I have tried to install from
    two different folders;
    1. c://adobe photoshop elements 10.msi
    and
    2. c://program files/adobe/adobe photoshop elements 10.msi
    get the same error message from both locations.
    the error message is not specific as to "root folder"
    someone please help with this.  I would like to be able to install this app.

  • IS-OIL TD - bulk transportation using Plant intransit.

    Hi,
    I need an advice on using TD bulk transportation scenario (IS-OIL).
    We are implementing industry solution "SAP for Mining" in our company. I'm trying to setup TD bulk transportation using intransfer plant. But I can't use Plant from Vehicle master data (trn O4V2) if it is differs from the Loading plant. It is possible to use intransit storage location only. Business requirement is to create transfer postings from Loading plant to Intransit plant during Load confirmation.
    Does anybody knows how to reach this requirement? I'll appreciate any ideas!
    my e-mail: [email protected]
    Vadim

    Hi Vadim - Under the two plant to plant config under MM - Transaction OMGN tou will see that can activate the tick for one step. if it is activated you the system will then post a 647 movement for the outbound delivery e.i. issue the product from plant and receive it in the to plant at the same time.
    transaction flow.
    1.) Create a plant to plant PO. ME21N
    2.) Create a outbound delivery VL10D
    3.) Post Goods Issue (with the indicator set for the one step the system will post a 647 movement (from plant / to plant in one step instead of two step, 641 , 101)
    Hope this helps

  • How many Keywords can I use

    Hello A question about Keywords.
    How many keywords can  I use for each page?
    And is there a loot for HTML <head> optimalization?
    Ton

    Hi,
    Take a look to this Article,
    http://forums.adobe.com/message/6042953#6042953

  • Converting a delete statement using VPD policies and context

    Hello,
    I'm trying to convert a delete statement in a update statement using VPD policies and context.
    +/* Supose the user 'user1' already exists. This is an application user */+
    conn user1/pwd
    create table user1.test_a (
    id                number(4),
    description       varchar2(100),
    deleted           number(1)
    +);+
    alter table user1.test_a add constraint test_a_pk primary key (id);
    insert into user1.test_a (1, 'abc', 0);
    insert into user1.test_a (2, 'def', 0);
    commit;
    I'd like to convert each physical deletion into a logical deletion: statements like "delete from user1.test_a where id = 1" must be converted into "update user1.test_a set deleted = 1 where id = 1".
    I've found the following way: I will create a policy to avoid physical deletion. Additionally, the policy function should update the deletion flag too.
    conn user1/pwd
    +/* Create context package */+
    create or replace package user1.pkg_security_context is
    procedure p_set_ctx(
    i_test_a_id      in   user1.test_a.id   %type
    +);+
    end;
    +/+
    create or replace package body user1.pkg_security_context is
    procedure p_set_ctx (
    i_test_a_id      in   user1.test_a.id   %type
    +) is+
    begin
    dbms_session.set_context( 'user1_ctx', 'test_a_id', i_test_a_id );
    end;
    end;
    +/+
    show errors
    +/* Create trigger to set the context before deletion */+
    create or replace trigger user1.test_a_bef_trg
    before delete on user1.test_a
    for each row
    declare
    pragma autonomous_transaction;
    begin
    -- only commits the preceding update, not the delete that fired the trigger.
    commit;
    user1.pkg_security_context.p_set_ctx( :old.id );
    end;
    +/+
    show errors
    create context user1_ctx using user1.pkg_security_context;
    +/* Policy function */+
    create or replace function user1.f_policy_chk_dels (
    object_schema in   varchar2,
    object_name   in   varchar2
    +) return varchar2+
    is
    out_string                 varchar2(400)   default '1=2 ';
    +/*+
    * out_string is the return value.
    *  - 'WHERE 1=2' means 'nothing to access'
    begin
    if ( loc_logged_usr_authorized > 0 ) then
    +/*+
    * Set the flag deleted to 1
    update user1.test_a set deleted = 1 where id = sys_context( 'user1_ctx', 'test_a_id' );
    out_string := out_string || 'or 1=1 ';
    end if;
    return out_string;
    end;
    +/+
    show errors
    +/*+
    * Create policy
    begin
    dbms_rls.add_policy(
    object_schema   => 'user1'                   ,
    object_name     => 'test_a'                  ,
    policy_name     => 'policy_chk_dels'         ,
    function_schema => 'user1'                   , -- function schema
    policy_function => 'f_policy_chk_dels'       , -- policy function
    statement_types => 'DELETE'
    +);+
    end;
    +/+
    When I try to delete a record of the table test_a:
    conn user1/pwd
    SQL> delete from ilogdia.oplsimulaciones sim       where sim.id = 9999;
    +0 rows deleted+
    No rows has been deleted, but the update stmt does not work. That means, the "deleted" flag has not been updated.
    Any ideas?
    Thank you in advance.
    Marco A. Serrano
    Edited by: albrotar on Oct 15, 2012 8:42 AM
    Edited by: albrotar on Oct 15, 2012 8:42 AM
    Edited by: albrotar on Oct 15, 2012 8:43 AM

    The policy function is applied once per statement execution. The policy function executes first and the UPDATE statement, presumably, updates no rows because the context is not yet populated. The row-level populates the context (I'm assuming that your session can even see context values populated by an autonomous transaction-- I would guess it could but I'd have to test that) after the UPDATE statement is already complete. The COMMIT in the row-level trigger is also pointless-- it only applies to changes made by the current autonomous transaction, of which there are none-- it cannot apply to changes made in other autonomous transactions. Declaring the row-level trigger to use autonomous transactions doesn't seem to accomplish anything other than to open the question of whether the values set in the context by the autonomous transaction are visible in the caller's transaction.
    Even if this, somehow, did work, using autonomous transactions would be a very bad idea since Oracle is free to roll-back a partially executed statement (and the work done by its triggers) and re-execute it. Oracle does that with some regularity to maintain write consistency.
    Justin

  • Ever since I got the new update 5.1 my iPod's been dying faster. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason(even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? lagging too

    Ever since I got the new update 5.1 my iPod's been dying faster, even after I charge it. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason (even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? It's lagging as well..

    Some Users have Reported that a  Restore as New  has helped Resolve issues...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • Use of window's context node in sap crm

    Hi friends.,
        Could anybody explain what is the use of window's context node and overview page's context node?Because i use up to context nodes of views,component controller and custom controller.
    Thanks in Advance.

    Hi,
    It is used to perform save/check at the page level. Usually the root object context nodes will be created in the
    overview page or window. This can be used to access context node entities such as for the purpose of save, copy,
    checks/validations.
    Regards,
    Leon

  • [svn:osmf:] 9829: Extending ILayoutContext with an ' updateIntrinsicDimensions' method, that the ILayoutRender uses to inform the context that context' s intrinsical dimensions may have changed because its children got layed-out .

    Revision: 9829
    Author:   [email protected]
    Date:     2009-08-31 06:38:08 -0700 (Mon, 31 Aug 2009)
    Log Message:
    Extending ILayoutContext with an 'updateIntrinsicDimensions' method, that the ILayoutRender uses to inform the context that context's intrinsical dimensions may have changed because its children got layed-out. Adding implementing code to LayoutContextSprite and LayoutRendererBase.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/ILayoutContext.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/LayoutContextSprite.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/layout/LayoutRendererBase.as

    A slow boot time can be caused by login items.
    User Login Items:
        Flux
        NoSleep
        ClipMenu
        Canon IJ Network Scanner Selector2
        BetterTouchTool
        USBOverdriveHelper
        TotalFinder
        Gmail Notifr
    Open System Preferences > Users & Groups > Login Items
    Remove one login item noted above then restart your Mac to test. It may be one or multiple items causing the slow boot.

  • BULK COLLECT using Dynamic PL/SQL???..pls help!!!

    Hi All,
    Here is PL/SQL block i tried ...unfortunetly failed to execute.
    Can anyone put some light on how this can be achieved....no matter even if its a work around job!!
    Thanx in advance,
    Anita
    DECLARE
    RCODE VARCHAR2(30):='TBS1B';
    RLCODE VARCHAR2(10):='1U6';
    RLSQL     CLOB;
    VSQL CLOB;
    TYPE TTABLE IS TABLE OF VARCHAR2(20) INDEX BY BINARY_INTEGER;
    TRCODE TTABLE;
    BEGIN
    SELECT RL_SQL INTO RLSQL FROM COGNOS_RL WHERE RL_CODE=RLCODE;
    VSQL:='SELECT DISTINCT '||RCODE||' BULK COLLECT INTO TRCODE FROM CBTABLE WHERE '||RLSQL;
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(VSQL));
    EXECUTE IMMEDIATE TO_CHAR(VSQL);
    END;
    ERROR::
    03001. 00000 - "unimplemented feature"
    *Cause:    This feature is not implemented.
    *Action:   None.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    Try with the following code....
    DECLARE
    RCODE VARCHAR2(30):='TBS1B';
    RLCODE VARCHAR2(10):='1U6';
    RLSQL CLOB;
    VSQL CLOB;
    TYPE TTABLE IS TABLE OF VARCHAR2(20) INDEX BY BINARY_INTEGER;
    TRCODE TTABLE;
    BEGIN
    SELECT RL_SQL INTO RLSQL FROM COGNOS_RL WHERE RL_CODE=RLCODE;
    VSQL:='SELECT DISTINCT '||RCODE||' FROM CBTABLE WHERE '||RLSQL;
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(VSQL));
    EXECUTE IMMEDIATE TO_CHAR(VSQL) BULK COLLECT INTO TRCODE;
    END;
    Regards,
    Sailaja

  • What should i do i buy a second hand iphone 4s but its lock to the previous owner in find my iphone pls help me i cant use my iphone for a year already

    pls. help me about find my iphone lock. because i buy a second hand iphone 4s but still lock to the previous owner when i restore factory settings still searching for the previous owner of this phone still now i cant use this phone

    Hello jimmy ii
    The only option is to contact that person to have them remove Activation Lock from the iPhone. They can do it online and do not have to come to you. Check out the article below for more information.
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    Regards,
    -Norm G.

  • Needed help in bulk collect using collections

    Hi,
    I have created a schema level collection like "CREATE OR REPLACE TYPE T_EMP_NO IS TABLE OF NUMBER ;
    will i able to use this in a where clause which involves bulk collect?
    Please share ur thoughts.
    My oracle version is 10g

    user13710379 wrote:
    Will i be able to do a bulk collect into a table using this collection of my sql type?Bulk fetches collects into an array like structure - not into a SQL table like structure. So calling a collection variable in PL/SQL a "+PL/SQL table+" does not make much sense as this array structure is nothing like a table. For the same reason, one needs to question running SQL select statements against PL/SQL arrays.
    As for your SQL type defined - it is a collection (array) of numbers. Thus it can be used to bulk fetch a numeric column.

Maybe you are looking for

  • How do I delete OS X install data

    I have installed OS X Mavericks on a external hard drive. It gives me the ability to see my macintosh hd hard drive but I can't delete anything. On another forum it said it would fix everything with the hard drive if the 'os x install data' folder wa

  • How to enable keyboard shortcuts for configuration entry point?

    Hello All,     In my process model, I have a configuration entry point sequence (sequence). I can able to select the corresponding entry from the menu bar ie. configure --> options (for eg). Now I need to have a keyboard shortcut for the same. In my

  • To configure Own Error page in Web Tier

    Hi, I am using jdev version 11.1.1.6. We have a error page for the application that we built which we can show to the User if the application pages comes up with an error. However if the Application itself is down.. We want to show the Users a error

  • Accouny key & G/L Account

    Hi My pricing procedure is ZCBID maintained for PR00, service tax, edu cess, higher edu cess.In ZCBID i have only assigned ERL account key to PROO and i did not assign  account keys for any  tax condition type.But in VOKA, MW1, MW2 and MWS are assign

  • Suitability of RAC for an application profile

    Hi, were looking to possibly move to RAC as a solution for outgrowing our current servers capacity. However, were unsure if the application profile is suited for RAC or not, specifically with regard to how our app currently uses the buffer cache in t