Lock in Insert?

Hi,
I have a job in my Oracle Forms 10g/ Oracle DB 10g application that runs every minute to identify if there is a Blocking Lock in the database.
I have been getting an INSERT statement as the cause of the blocking lock every day! How can an insert statement create a blocking?
I have not used LOCK TABLE tab1 IN EXCLUSIVE MODE;
The query I use in my job to get the Blocking SQL text is:
SELECT vs.SID, vs.username, vs.logon_time, vs.machine, vs.sql_hash_value,
vsql.piece, vsql.sql_text, vs.prev_hash_value
FROM v$session vs, v$sqltext vsql
WHERE SID IN (SELECT LPAD (' ', DECODE (vl.request, 0, 0, 1)) || SID
FROM v$lock vl
WHERE id1 IN (SELECT id1
FROM v$lock vl2
WHERE vl2.lmode = 0))
AND vs.sql_hash_value = vsql.hash_value
ORDER BY 2, 5, 6;
Please advice
Warm Regards
Sajan

Do you know the issues that can happen due to the nolock hint usage?
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Error message "disk is locked" when inserting blank DVD

    My G4 is supposed to be able to burn a DVD, but when I insert the sample DVD that came with the computer when it was new, I keep getting the "disk is locked" message. It also happens with other DVD's that I bought specifically to use with the G4. I would appreciate your suggestions.
    G4   Mac OS 9.2.x  

    VenturaGutek
    Any optical drive software that is worth its salt should enable burning of data discs (4.7GB or 8.5GB in the case of DVDs) as well as of specialized file formats. That said, however, one of the commonest reasons for failure to burn, even failure to recognize an optical drive, is extension conflict. This was especially true of Roxio's Toast v5.x, when using which it was necessary to disable all Apple extensions, USB and FireWire, so that control of the drive could be taken by Toast extensions. I had to do this only recently to get a friend's LaCie DVD-R burner to be recognized as a DVD (rather than CD) burner by a B&W under OS 9.2.2, let alone to burn DVDs. That possibility was the reason for asking about your software. However, if you are using only Apple software, there should be no issue of software conflicts of this nature.
    Without wishing or intending to fob you off, I suggest that you will get much more up-to-the-moment guidance from active fellow-sufferers than is likely in this antediluvian category if you approach them in the iDVD specialist forums, which are divided into iDVD 6, 5, and 4 and under.
    Apple IIe; 68K: 11DT + 4PB; PPC: 5DT + 3PB; G3: 6DT     System 6.0.8 to OS 10.4.x

  • Detect row lock during insert

    Hello, is there a way to detect whether another process is inserting same row into same table, at the point of insert?
    For eg
    create table p1 ( col varchar2(10) );
    alter table p1 add constraint p1_pk primary key (col);
    Session 1:
    Insert into p1 values ('1');
    Session 2: (how to detect session 1 is inserting same row, before session 1 commits?)
    Insert into p1 values('1');Message was edited by:
    MWJ

    You could test for a share lock:
    SQL> lock table p1 in share mode nowait;
    lock table p1 in share mode nowait
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified
    SQL> You could catch this exception and do whatever you wanted to do.
    But IMHO this is the wrong approach. For me the question is, why session 1 is allowed to wait (how long? forever?) until it commits. The application (i.e. the client, browser applet, <you name it>) should immediately commit. Why to do an insert and then a rollback? Then better do nothing.

  • Screen locked after inserting sim card

    The Ipad mini (wifi+celular) screen got locked after i installed sim card from Bangladesh. Apple store said it is unlocked and can insert any sm card. Please help.

    Is the iPhone "locked" to a particular mobile carrier, and are you inserting the Sim that they supplied? 
    Hope this helps

  • Row Level Locking while inserting a record.

    It is a good practice to lock the whole table or do the row level locking while performing any DELETE / UPDATE / MODIFY actions on a database table. Is it necessary to do the same thing while inserting a record via INSERT statement?
    One point may arise if two  users are inserting same records at a same time....
    Well i am little bit confused here bcos if a record doen't exist in a table what is the point of locking it.
    Please help me.

    create a lock object using SE11 for that perticular table and include field names in Lock parameters. Then it will generate two FMs one for locking and another for unlocking.
    Call the lock FM before updating the table and pass that row key value(For fields which taken in lock parameters for creating lock objects) to the exporting parameters.
    Then do the updation.
    Reward if useful...................

  • Lock Insertion of new position in a Sales Order

    Hi guru!
    I've to lock the insertion of new position in a Sales Order from VA02 transaction, users can update only some fields of existing positions but thay can't insert a new position in order.
    I have to lock the blank position in a position's table control so they can't insert data for a new position.
    Is it possible to do?
    Thanks!!

    If you're talking about "new POSNR" (item), you could change the visibility of the insertion button, any menu drop downs, probably with user exit or (perhaps better) with screen variants (transaction SHD0) for transcode VA02....perhaps a combination of the two would get you the results you need.

  • Query on Lock object

    Hi,
    I need to lock the Custom table based on company code.
    I have an Internal table with list of company codes. Now I need to lock the table for All the company codes there in ITAB.
    I am doing like this.
    Before Save:
    LOOP AT it_lock INTO wa_t001.
              CALL FUNCTION 'ENQUEUE_EYFR1FIT_GIFTREF'
                EXPORTING
                  mode_yfr1fit_gift_ref = 'E'
                  mandt                 = sy-mandt
                  bukrs                 = wa_t001-bukrs.
              X_BUKRS                     = ' '
              _SCOPE                      = '2'
              _WAIT                       = ' '
              _COLLECT                    = ' '
            EXCEPTIONS
              FOREIGN_LOCK                = 1
              SYSTEM_FAILURE              = 2
              OTHERS                      = 3
              IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
              CLEAR wa_t001.
            ENDLOOP.
    After Save
    LOOP AT it_lock INTO wa_t001.
        CALL FUNCTION 'DEQUEUE_EYFR1FIT_GIFTREF'
          EXPORTING
            mode_yfr1fit_gift_ref = 'E'
            mandt                 = sy-mandt
            bukrs                 = wa_t001-bukrs.
        X_BUKRS                     = ' '
        _SCOPE                      = '3'
        _SYNCHRON                   = ' '
        _COLLECT                    = ' '
        CLEAR wa_t001.
      ENDLOOP.
    Please let me know is that the write way?
    Or do we need to pass any extra parameters?
    what is the COLLECT parameter for?
    Thanks,
    Sandeep

    Hi,
    Refer following code,
    *--Check if monitor table is initial
      IF NOT gt_hdrlog[] IS INITIAL.
        LOOP AT gt_hdrlog INTO ls_monitor.
    *--Lock the DB table ZAPT_AR_MONITOR before updation
          CALL FUNCTION 'ENQUEUE_EZAPT_AR_MONITOR'
            EXPORTING
              mode_zapt_ar_monitor = lc_x                 "Check
              mandt                = sy-mandt             "Cient
              doc_num              = ls_monitor-doc_num   "IDOC number
              x_doc_num            = lc_x                 "Check
            EXCEPTIONS
              foreign_lock         = 1
              system_failure       = 2
              OTHERS               = 3.
          IF sy-subrc NE 0.
            WAIT UP TO 1 SECONDS.
          ELSE.
    *--If DB table is locked then insert data into custom table
            INSERT into zapt_ar_monitor values ls_monitor.
            IF sy-subrc NE 0.
    *--Update custom table
              UPDATE zapt_ar_monitor FROM ls_monitor.
            ENDIF.
          ENDIF.
    *--Unlock the table after updation
          CALL FUNCTION 'DEQUEUE_EZAPT_AR_MONITOR'
            EXPORTING
              mode_zapt_ar_monitor = lc_x                 "Check
              mandt                = sy-mandt             "Client
              doc_num              = ls_monitor-doc_num   "IDOC Number
              x_doc_num            = lc_x.                "Check
    *--Clear the work areas
          CLEAR : ls_monitor.
        ENDLOOP.
      ENDIF.
    Regards,
    Prashant

  • Problem related to locking the table

    Hi all,
    i am facing a problem while applying locks on the oracle table.my intention is stop the accessing of table to other users, if the table is locked by one user.
    for this i wrote the code as follows
    Class.forName("oracle.jdbc.driver.OracleDriver");       con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.2.123:1521:xe",         "root", "paridb");   con.setAutoCommit(false);             System.out.println("Successfully connected to " +           "Oracle server using TCP/IP..."); String lock="lock table report@xe in exclusive mode";-------------------------------------->1  query to lock the table Statement stmt1=con.createStatement(); stmt1.executeUpdate(lock); System.out.println("lock is applied"); Statement stmt=con.createStatement();                 for(int i=0;i<6;i++)         {         sql="insert into report values(1921682123,'device','host')";         stmt.executeUpdate(sql);         }
    after locking i inserted some data into table, after insertion i am not commiting it because if i commit,the lock will be release.next i am trying to insert data into that table from another system,acutually the data don't insert.but data is inserted. how it is happening like that ??
    in another scenario, if execute the locking query on the database directly then trying to insert into database through java application, at that time it is not giving permission to access table.
    plz guide me
    thanks&regards,
    nagaraju

    Hi! Thank you so much for your reply. Yes, I´m using ADF. I attach you the iterator´definition from the page definition:
    <iterator id="MovimientosCtbView3Iterator" RangeSize="10"
    Binds="MovimientosCtbView3" DataControl="AppModuleDataControl"/>
    If I set the RangeSize to 11, the problem is solved, but my project manager want to find out why this situation happens with RangeSize=10.
    Thank you so much and sorry for bothering you

  • Problem inserting FLV into template based page DW8

    Error when inserting an FLV into a template based page.
    The error is: "Making this change would require changing code
    that is locked by a template or translator. The change will be
    discarded."
    I thought perhaps something was wrong with my code so I
    created a new page in DW8, with one word of text. Saved the new
    page as a template with the one word of text made into an editable
    region. Created a page based on that template and attempted to
    insert a FLV file into the editable region (using Insert > Media
    > Flash Video). I still get the error message. I've attached the
    code for this page.
    I also get the error message when I go through the tutorial
    Presenting
    Video with the Flash Video Component in Dreamweaver 8. Using
    the files provided in the tutorial.
    Is the only workaround for this the one I found here?:
    http://med.stanford.edu/irt/web/references/flash_video_installation.html.
    Steps are under heading "Workaround for Locked Code insert error"
    near bottom of page.
    Any help is appreciated.
    Jen

    > Is the only workaround for this the one I found here?:
    >
    http://med.stanford.edu/irt/web/references/flash_video_installation.html.
    > Steps
    > are under heading "Workaround for Locked Code insert
    error" near bottom
    > of
    > page.
    This workaround *will* work....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "kilmeny21" <[email protected]> wrote in
    message
    news:[email protected]...
    > Error when inserting an FLV into a template based page.
    >
    > The error is: "Making this change would require changing
    code that is
    > locked
    > by a template or translator. The change will be
    discarded."
    >
    > I thought perhaps something was wrong with my code so I
    created a new page
    > in
    > DW8, with one word of text. Saved the new page as a
    template with the one
    > word
    > of text made into an editable region. Created a page
    based on that
    > template and
    > attempted to insert a FLV file into the editable region
    (using Insert >
    > Media >
    > Flash Video). I still get the error message. I've
    attached the code for
    > this
    > page.
    >
    > I also get the error message when I go through the
    tutorial
    >
    http://www.adobe.com/devnet/flash/articles/flv_tutorial.html.
    Using the
    > files
    > provided in the tutorial.
    >
    > Is the only workaround for this the one I found here?:
    >
    http://med.stanford.edu/irt/web/references/flash_video_installation.html.
    > Steps
    > are under heading "Workaround for Locked Code insert
    error" near bottom
    > of
    > page.
    >
    > Any help is appreciated.
    > Jen
    >
    >
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml"><!--
    InstanceBegin
    > template="/Templates/index.dwt"
    codeOutsideHTMLIsLocked="false" -->
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    > <!-- InstanceBeginEditable name="doctitle" -->
    > <title>Untitled Document</title>
    > <!-- InstanceEndEditable -->
    > <!-- InstanceBeginEditable name="head" --><!--
    InstanceEndEditable -->
    > </head>
    >
    > <body>
    > <!-- InstanceBeginEditable name="temp"
    -->Text<!-- InstanceEndEditable -->
    > </body>
    > <!-- InstanceEnd --></html>
    >

  • Jdbc insert query hangs

    We have 2 instances of the same program running in parallel. The application inserts data to a database table. one of the instance just hangs when it is trying to insert a query to database i.e. when executing statement.executeUpdate(). We are using a prepared statement to bind all parameter values. Instance 1 keeps running but instance 2 hangs and goes in a waiting state.
    Is there any suggestions on how can this issue be investigated. I know a possible reason for hanging could be database lock, but I cannot understand, how it can have a database lock for insert query.
    oracle : 9.2.0.7
    java : jre 1.4

    user551224,
    Are you running two separate Threads that both use the same database connection?
    This issue has been discussed previously in this forum.
    Search the forum archives for more details.
    It could also be because of a database lock.
    Are you trying to insert rows into the same table?
    You could try using the FOR UPDATE NOWAIT clause to verify.
    Good Luck,
    Avi.

  • Sim locked after downloading IOS5

    I have a new iphone 4S 32Gb only just got the new sim from Telstra yesterday and it was working, could make calls, texts etc until I downloaded ios5 and synced it with my computer.  Straight away it says 'the sim is locked.  Insert a valid sim with no pin unlock.' How can I unlock it? Or do I have to take it back to Telstra to get a new sim?

    Thanks very much. They were able to unlock it and gave me the code as well. 

  • Few lock table questions ...

    I have an app with Java + Oracle. I have a few tables which can be modified ( select, insert, up, del) by more than one user.
    For ex
    //---------- get info from database
    SELECT a FROM A;
    // later
    SELECT b FROM B;
    // --------- end
    Q1). how can I make sure that after I select from A, no one modifies table B, until I select from B ?
    Q2). If I have 3 tables and I have to insert some values, in all of them, how should I do this ? ( lock tables, put the insert * 3 into an transaction, release locks)
    Q3). I know that jdbc-odbc isn't very good, but still, can I use it ?

    Q1). how can I make sure that after I select from A,
    no one modifies table B, until I select from B ?No one modifies table B in any way at all? While the user goes for a coffee break? Why would you want that?
    Q2). If I have 3 tables and I have to insert some
    values, in all of them, how should I do this ? ( lock
    tables, put the insert * 3 into an transaction,
    release locks)Just insert the records. You can put the three inserts in a transaction, if you need that, but there's no point in preventing other users from accessing the tables while you do that.
    Database applications that use Oracle or other databases designed for large numbers of users rarely lock tables. If your design leads you into a place where you have to lock tables then you probably need to go back and fix your design so that it supports multiple users in a normal way.
    Q3). I know that jdbc-odbc isn't very good, but
    still, can I use it ?Sure. But Oracle comes with its own JDBC drivers so you don't need to.

  • How to count 2 inserts together?

    hello people,
    i've just started programming with Java in NetBeans
    and now i'm trying to make a countmachine
    but i don't know how to get further
    the script must count 2 inserts
    1 + 1 = 2
    and show the result in another textfield, what has to be lock (no insert over here)
    i make the code like this:
    public class ED5_1 extends javax.swing.JFrame
    public ED5_1()
    initComponents();
    private void initComponents()
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    id_invoerGetal1 = new javax.swing.JTextField();
    id_invoerGetal2 = new javax.swing.JTextField();
    id_Optellen = new javax.swing.JButton();
    jLabel3 = new javax.swing.JLabel();
    id_resultaat = new javax.swing.JTextField();
    id_Modulus = new javax.swing.JButton();
    id_Vermenigvuldigen = new javax.swing.JButton();
    setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);
    jLabel1.setForeground(new java.awt.Color(0, 0, 255));
    jLabel1.setText("Getal 1");
    jLabel2.setForeground(new java.awt.Color(0, 0, 255));
    jLabel2.setText("Getal 2");
    id_invoerGetal1.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(java.awt.event.ActionEvent evt)
    id_invoerGetal1ActionPerformed(evt);
    id_Optellen.setToolTipText("Getallen met elkaar optellen");
    id_Optellen.setLabel("Optellen");
    jLabel3.setFont(new java.awt.Font("MS Sans Serif", 1, 11));
    jLabel3.setForeground(new java.awt.Color(0, 0, 255));
    jLabel3.setText("Antwoord");
    id_Modulus.setText("Modulus");
    id_Modulus.setToolTipText("De rest na deling");
    id_Vermenigvuldigen.setText("Vermenigvuldigen");
    id_Vermenigvuldigen.setToolTipText("Getallen met elkaar vermenigvuldigen");
    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(27, 27, 27)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
    .add(jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
    .add(jLabel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
    .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
    .add(id_invoerGetal1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)
    .add(id_invoerGetal2)
    .add(id_resultaat))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED, 38, Short.MAX_VALUE)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.LEADING, false)
    .add(id_Vermenigvuldigen, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(id_Modulus, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .add(id_Optellen, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    .addContainerGap(org.jdesktop.layout.GroupLayout.D EFAULT_SIZE, Short.MAX_VALUE))
    layout.setVerticalGroup(
    layout.createParallelGroup(org.jdesktop.layout.Gro upLayout.LEADING)
    .add(layout.createSequentialGroup()
    .add(44, 44, 44)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.TRAILING)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
    .add(id_invoerGetal1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(id_Optellen))
    .add(jLabel1))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
    .add(jLabel2)
    .add(id_invoerGetal2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
    .add(id_Modulus))
    .addPreferredGap(org.jdesktop.layout.LayoutStyle.R ELATED)
    .add(id_Vermenigvuldigen)
    .add(6, 6, 6)
    .add(layout.createParallelGroup(org.jdesktop.layou t.GroupLayout.BASELINE)
    .add(jLabel3)
    .add(id_resultaat, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
    .addContainerGap(49, Short.MAX_VALUE))
    pack();
    }// </editor-fold>
    private void id_invoerGetal1ActionPerformed(java.awt.event.Acti onEvent evt)
    // TODO add your handling code here:
    public static void main(String args[])
    java.awt.EventQueue.invokeLater(new Runnable()
    public void run()
    new ED5_1().setVisible(true);
    //String Optellen;
    //Optellen = id_invoerGetal1.getText();
    //id_resultaat.setText(Optellen);
    private javax.swing.JButton id_Modulus;
    private javax.swing.JButton id_Optellen;
    private javax.swing.JButton id_Vermenigvuldigen;
    private javax.swing.JTextField id_invoerGetal1;
    private javax.swing.JTextField id_invoerGetal2;
    private javax.swing.JTextField id_resultaat;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    Can someone please help me?

    JavaBeginner wrote:
    you are right I know.
    i need more practiseYes, lots.
    but can you please tell me where i need to put the code to make this workNope, not worth my time.
    between what?
    and maybe a little start if it is not too muck to ask :$I think it is too much to ask. I'm only a volunteer, as is everyone else in this forum.
    Sure you're not a student trying to sucker somebody into doing your homework for them?
    Are you offering money?
    Honestly, based on the previous post that I've answered I don't think you have enough basic Java knowledge. You will be a time sink for anyone foolish enough to bother answering all the questions that you'll be posting here. I'm not interested.
    %

  • How to check if a constraint existed in the table and drop it?

    Hi all,
    I want to drop a constraint from a table. I do not know if this constraint already existed in the table. So I want to check if this exists first.
    Below is my query:
    DECLARE
    itemExists NUMBER;
    BEGIN
         itemExists := 0;
    SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
    FROM ALL_CONSTRAINTS
    WHERE UPPER(CONSTRAINT_NAME) = UPPER('my_constraint');
    IF itemExists > 0 THEN
    ALTER TABLE my_table DROP CONSTRAINT my_constraint;
    END IF;
    END;
    Here is the error I got when I executed the above query:
    ORA-06550: line 11, column 5: PLS-00103: Encountered the symbol "ALTER" when expecting one of the following: ( begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << continue close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe purge
    Please help me with this!
    Greatly appreciate!
    Khoi Le

    Yes, I also tried to put the pl-sql in the Execute Immediate. However, the error still remains
    EXECUTE IMMEDIATE 'DECLARE
    itemExists NUMBER;
    BEGIN
         itemExists := 0;
    SELECT COUNT(CONSTRAINT_NAME) INTO itemExists
    FROM ALL_CONSTRAINTS
    WHERE UPPER(CONSTRAINT_NAME) = UPPER('my_constraint');
    IF itemExists > 0 THEN
    ALTER TABLE my_table DROP CONSTRAINT my_constraint;
    END IF;
    END';
    I execute the above code via running the batch file.
    Here is the error after I ran the batch file:
    ORA-06550: line 11, column 5:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    continue close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe purge
    The symbol "lock was inserted before "ALTER" to continue.
    ORA-06550: line 11, column 53:
    PLS-00103: Encountered the symbol "DROP" when expecting one of the following:
    . , @ in <an identifier>
    <a double-quoted delimited-identifier> partition subpartition
    ORA-06512: at line 2117
    I can not manually drop it. I need to do this via running an update script file.
    Is there a different way to accomplish this?
    Thank you very much!

  • Performance of Sales order creation on Business Suite on HANA

    Hi,
    I understand that HANA column tables are read and insert optimized. I would like get some clarification on the following scenario.
    Assume that in the ECC (non HANA DB) the sales order creation process is taking few hours to complete due to the sheer number of line items and associated bill of materials, serial numbers etc. If the same process is running on the Business suite on HANA system will there be any considerable performance improvement (because HANA column tables are insert optimized)?
    Thanks for your help on this.
    Thanks
    Vinod

    Yes Vinod,
    that is the general idea.
    For more details please have a look at Hasso Plattner's latest book A Course in In-Memory Data Management: The Inner Mechanics of In-Memory Databases.
    R/3 updates the row table based on V1 or V2 priorities and writes the changes to the change log tables in the background.
    With HANA application we can eliminate the need for the change log tables and table locking, by inserting the changes for particular fields into the columnar tables of the application with a time stamp immediately, and therefore also enabling real-time reporting.
    For traditional RDBMS based applications the notion was that the faster read from the row tables which only hold the latest updates justifies the update of the changelog tables. In order to optimize this update process required by the traditional RDBMS-based systems, a single sales document was split into many smaller tables, like for example header table VBAK and item table VBAP and separate status tables for these header and items, which also made it more challenging to build reports on the complex set of individual tables.
    Indices and aggregates could be more easily build from the single row records, but on the flipside after each update to the row table, the indices and aggregates needed to be re-build or scheduled for rebuild at a later point in time. Not only the application-build index tables and aggregates, but also the secondary index tables created by the DBA tuning efforts.
    Overall tons of overhead especially for business processes with a many updates like sales order re-scheduling based on MRP runs.
    With HANA this is no longer necessary as the latest information and the time travel from the columnar store can be accessed instantaneously across all inserts and therefore eliminates the need for any overhead of the index and aggregates as well as the changelog tables. In addition the split of document information into many smaller tables can now be avoided, so that we might not see any header tables and their dependent tables anymore.
    We will provide more updates as they become available in the S/4 SAP S/4 Business Suite on SAP HANA (FAQ)
    Thank you
    erich

Maybe you are looking for

  • Samsung Brightside? Until they fix DO NOT BUY

    The Samsung Brightside is defective. I have had two in less than one month and both did not let me use the T9 function. When a person uses the T9 function the phone powers off and re-starts. There are many many complaints on this board but Verizon is

  • SUBMIT Question, HEEELLLLPPPP!!!!!!!!!!

    Hey Guys, Here is my problem.  I have an ABAP program that has a selection screen and  creates a report in a ALV format.  When I double click one of the lines on the report, a new program is called using the SUBMIT command with a RETURN, this new pro

  • NEED HELP TWEAKING MY .mov - dunno if it can be done!

    Okay. PLEASE HELP ME I own a commercial photography studio and we do lots of retouching. One of the things we like to do from time to time is create little movies in either iMovie or iPhoto that show each individual layer in the photoshop file, almos

  • Initially net value display zeros on selection screen

    hi friends, I created one modulepool program in that on the selection screen NTGEW(net wt) field initially displays zero like 0.000, but the user wants it to be blank with out zeros. please sujjest me. thank u, with regards, prasad.

  • ITunes 6/Quicktime 7.3

    It won't let me use iTunes 6, because for some reason it installed Quicktime version 7.2, and it needs 7.3, but... why didn't it install it in the first place? Does this version even exist? HELP!