How to Drop an index from a used table. online

I need to drop an index from a table that is constantly used , read and write.
The DML's are locking the table and preventing the index drop (ORA-00054: resource busy and acquire with NOWAIT specified )
I tried to lock the table first - using 'lock table TAB1 in exclusive mode'
but when i ran the 'drop index' command , the drop (as all DDL's) first commits and this frees the lock which cause again the ORA-00054: resource busy and acquire with NOWAIT specified error.
I would appriciate any help .I can't take the DB or table or Application writing to the table offline. I need something like 'create index IND1 online' for DROP but there is none as far as I know...
Thanks in advanve.
Amit Zor

"It is requsted for the removal of an ORDER BY clause from a CPU consuming query.
The extra field enables me to remove it as the result set comes back ordered by the index"
It might do that today, but it is not guaranteed to do it tomorrow. Oracle may be able to retrieve the records ordered using that index, but I would leave it in your query if you are depending on the rows being ordered. The CBO is smart enough to not actually sort the rows (i.e. act on the ORDER BY clause) if it can get them sorted using the index, but if it decides to use another access path for one of many reasons your results will not be sorted without the ORDER BY.
Since the CBO seems to think that your existing index is useful (which is why you cannot get the lock on it), your only option is to wait for a period of really low activity on the database and try it then.
John

Similar Messages

  • How to delete an operation from order using the bapi

    Can somebody please tell me how to delete an operation from order using the bapi
    BAPI_ALM_ORDER_MAINTAIN.
    Following was the test data for the BAPI.
    000000 OPERATION DELETE 0000040052810070
    000000 SAVE 0000040052810070
    Even I tried entering the operation table. The BAPI control ends fine, but when I check the order using IW32, the operation still exists.
    So, can you please tell me where Iam going wrong.

    Hi Subash Mohanvel,
    Check bapireturn parameter of the bapi BAPI_ALM_ORDER_MAINTAIN after execution of the code , and if there is no error message in the return table then call bapi_Transaction_commit.
    Unless you call this database saving of the records/values will not get reflected in the system.
    Hope that helps.
    Regards
    Kapadia
    ***Assigning points is the way to say thanks in SDN.***

  • How to create chord charts from midi using logic pro x

    How to create chord charts from midi using logic pro x

    Depending on what you mean by Chord charts (Tabs?)
    Use the Score.......
    http://help.apple.com/logicpro/mac/10/#lgcpf755d649

  • How to secure an iPad from improper use?

    How to secure an iPad from improper use?
    Hi everyone - We are thinking of providing our sales reps with iPads to use as product catalogs (by opening a PDF file) however we wish to restrict them from doing anything else. Is there an app or something which would enable us to restrict the tablet in this way?
    Thanks a lot

    The only option would be to set up the iPad to open a PDF reader app as the sole app in Guided Access:
    http://support.apple.com/kb/HT5509
    That's the only way you can limit an iPad to using only a single app. That would seem to make the iPad rather overkill, if all you want is for them to be able to read PDFs. Something like one of the base-model Kindles might be better suited to the task.
    Regards.

  • How can I download music from iTunes using iOS 5.1.1?

    How can I download music from iTunes using iOS 5.1.1

    You can't you will need to go thru the process, if you want music.

  • How do I download software from line6 using os lion

    How do I download software from line6 using os lion

    http://line6.com/software/.  If you have tried, what problems are you having?

  • How can I modify data from a Transparent Table without ABAP code.

    Hi,All
    How can I modify data from a Transparent Table (like TCURR),  and important thing is I want do all that with no ABAP code here. It is like that we always do that in a Oracle database use TOAD or PLSQL third party tools, with no script code here.
    I had fond that there is a way can do that:
    1, type 'se11',and Display Database table 'TCURR', click Contents, then click Execute to display all data
    2, type '/h' and let debugging on
    3, select one of this data then click 'Display',enter in debugging system.
    4, then make a breakpoint in the code. But... display a dialog let I type a 'ABAP Cmnds', I want to know what can be type in for that?
    and, My system is ECC6.
    thank you all
    Edited by: xuehui li on Aug 20, 2008 6:30 PM

    Hello,
    Your approach (with Vijay's suggestion) MAY work.  However, depending on how tight security is at the company that you are working at you may or may not be able to acutaly change the value of the SHOW field to EDIT.  This will be especially true if you are working in a Production environment.  Vijay's other comment is true as well.  This is not a recommended approach to change data (especially data with a financial impact like TCURR) in a production environment.  The auditors will not be impressed.
    Explore the option of a maintenace view or look at tcode TBDM to upload a file which includes daily rates from providers like Reuters or try tcode s_bce_68000174 which is a maintenance view on TCURR.
    Regards
    Greg Kern

  • How to attach a document from cloudOn to my online application form or website

    How to attach a document from cloudOn to an online application form or website?

    You will need an app (web browser) capable of both storing a document and accessing the site's functionality sufficiently enough to upload a file. Safari can't do this (and I'm pretty certain CloudOn can't either). A couple of options:
    iCab Mobile - store documents in the Downloads section and has settings to both change the BrowserID to a non mobile browser to unlock site functionality, and has a setting for uploading files from its storage rather then iOS in general. Its not free, but not very expensive and is a pretty could all around web browser in its own right. I've been using it for quite some time.
    iUploader - has both free (trial) and paid versions. I've only experimented with it a bit, but works fairly well. Like iCab, has its own file container that you up load from.
    In both cases you would need to transfer your files from the source app (CloudOn, in this case) to the file storage, and then access the website.

  • How to insert select columns from one internal table to another

    Hi,
    How to insert select columns from one internal table to another based on condition as we do from a standart table to internal table.
    regards,
    Sriram

    Hi,
    If your question is for copying data from 1 int table to other ;
    we can use
    APPEND LINES OF it_1 TO it_2.
    or if they have different columns then:
    loop at it_1 into wa_it1.
    move wa_it1-data to wa_it2-d1.
    apped wa_it2 to it_2.
    clear wa_it2.
    endloop.
    thnxz

  • How to select alternate entries from the database table

    Hi Experts,
    can u help me, how to select alternate entries from the database table.
    Thanks

    As there is no concept of sequence (unless there is a field specifically included for the purpose), there is no meaning to "alternate" records.
    What table do you have in mind, what data does it hold, and why do you want alternate records?
    matt

  • How can i cancel order from HONG KONG apple Online Store? i tried to call the customer service hotline in 1/11/2013 (3pm to 6pm) and no any apple specialist reply and answer me? How can i do now ? Pay for useless????

    How can i cancel order from HONG KONG apple Online Store? i tried to call the customer service hotline in 1/11/2013 (3pm to 6pm) and no any apple specialists reply and answer me? How can i do now ? Pay for useless?

    You may also be able to access https://store.apple.com/ in Safari, log into your account, and review recent purchases (and cancel any that haven't shipped yet).

  • How to get all INDEXes from a database

    How to get all INDEXes in a database? I need to store them in script file (.SQL). My database version is 10.2.0.3.0.
    Edited by: Iniyavan on Sep 18, 2009 1:39 PM

    --Thanks, Koppelaars. The second query works. But I'm unable to store in spool file. May be it's due to CLOBs in the output. I did the following:
    set head off
    set feedback off
    set linesize 32727
    set pagesize 50000
    spool c:\indexes.sql
    select dbms_metadata.get_ddl('INDEX',INDEX_NAME,'MYSCHEMA')
    from user_indexes;
    spool off
    --In the spool file, I find only this
    CREATE UNIQUE INDEX "MYSCHEMA"."A" ON "MYSCHEMA"."BNK_DEALID" ("DEAL_ID")
    PCTF
    CREATE INDEX "MYSCHEMA"."ACCENT_RAC_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "VAL
    CREATE INDEX "MYSCHEMA"."ACCENT_REPORT" ON "MYSCHEMA"."ACCENT" ("SCHEME", "APP_REF
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCENT_X" ON "MYSCHEMA"."ACCENT" ("DEAL_ID")
    P
    CREATE UNIQUE INDEX "MYSCHEMA"."ACCNAV_X" ON "MYSCHEMA"."ACCNAV" ("SCHEME", "ACCNA
    --How to get all the DMLs in one SQL file?
    --Nagappan, I'm using WIN.

  • How to get selectedRow index from TableColumnModel

    Hi Folks, Can anybody suggest me how can i get the selected row index from TableColumnModel. User can add any number of rows to the table , but when user clicks on any row I need to get that Index.
    This is very urgent requirement.
    I'll will be glad if i get quick answer.
    Below is my problem description in detail:
    I'm using 5 column table. Each column is having its own customised editor.
    now when user clicks on add button I'm populating one row in table(which contains 5 columns). In similar fashion user can add n number of rows. Now my question is if user clicks on any row i have to get the selected row index, based on that i have to do some other manipulations.
    I have tried out using ListSelectionModel it works fine . But when I use setter method to set the selected row index it is not able to produce current selected row. Below is the code snippet
    ListSelectionModel selModel = arl.getTableSelectionModel();
              selModel.addListSelectionListener(new ListSelectionListener() {
              public void valueChanged(ListSelectionEvent listSelEvt) {         
              ListSelectionModel mdl = (ListSelectionModel)   listSelEvt.getSource();      
              setSelectedRow(mdl.getMaxSelectionIndex());
    private static int getSelectedRow(){
            return selectedRow;      
        private static void setSelectedRow(int row){
          selectedRow = row;When i call getSelectedRow() it is not giving me the current selected row index.
    Please suggest me the right approach.
    This is very very urgent for me.
    Thanks,
    Joe

    Hi Camickr,
    Actually there are two columns, one is having JComboBox list and other is just JTextField. Now when user selects particular item from JComboBox list then some corresponding value has to be populated in second column. ie second column value should be kept changing depending on the user selection from JComboBox.
    Now the problem is user can add one row (which contain above two columns) and can selects item and clicks on "add" button to add another row and selects some desired item from JComboBox and that corresponding value will be populated in next column. Now that actual problem is if user clicks on first row again to change the item from JComboBox I'm unable to set the corresponding value in its next column. For this reason I'm asking you how can i get the current row?
    Below is the code snippet:
    cbo.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(ActionEvent evt) {
                  //  JComboBox cb = (JComboBox)evt.getSource();                    
                    cbo = (JComboBox)evt.getSource();                                   
                    String item = (String) cbo.getSelectedItem();
                    item = item.trim(); 
                    int row = getSelectedRow();
                    if(getSelectedRow() == -1){              
                        return;
                    String len = (String)mdlListner.getValueAt(getSelectedRow(),mdlListner.LENGTH);                           
                    String dt = (String)mdlListner.getValueAt(getSelectedRow(),mdlListner.DATA_TYPE);               
                    len = len.trim();
                    if(item.equalsIgnoreCase(stringN) ||
                            item.equalsIgnoreCase(charN) ||
                             item.equalsIgnoreCase(binaryN))
                      jftLengthField.setEnabled(true);               
                      if(len.equalsIgnoreCase(notApplicable)){          
                        mdlListner.setValueAt("",getSelectedRow(),mdlListner.LENGTH);                                       
                        jftLengthField.setBorder(null);                   
                    else{
                            mdlListner.setValueAt(notApplicable,
                                        getSelectedRow(),mdlListner.LENGTH);
                            jftLengthField.setEnabled(false);
                    }); Pls suggest me the solution for this.
    Thanks,
    Joe

  • How to transfer the indexes from one DB To another DB

    Hi All,
    I have one question.I have to transfer all the database object from one database to another. and I have transfer it.Now I have to create an index on that tables then how can i know on which columns that indexes were created.and How I will create it in new database. Or Is there another way to transfer that indexes from old database to new database.
    Thanx in advance.

    user13310428 wrote:
    How I will create it in new database. Or Is there another way to transfer that indexes from old database to new database.You have to use the DDL (create index/create table with index constraints/etc) commands to create indexes.
    You cannot "+transfer+" the index data like you can table data. The reason is that indexes contains the physical address of the rows indexed. These addresses are different on the new database - and thus make the index data on the old database useless. Instead, you need to re-create the indexes so that the new row addresses can be determined and used by the index.

  • How do i print calendar from icloud using windows 7?

    Forgive me if this question is out there and has been
    answered – I’m sure it is but I can’t find it.
    How do I print a day or series of days of my calendar from icloud?
    I have an ipad mini and ipad 2 but I want to print the calendar from icloud
    using a laptop with Windows 7.
    Any assistance would be greatly appreciated.
    Thanks

    I am tempted to answer that question with one simple sentence - " using printer".
    I understand that there is some underlying concern, just can't guess what it is yet. May be you can elaborate...

Maybe you are looking for

  • Lr cannot read Catalog .psa (Photoshop Album Starter Edition 3.2)

    Hello, I use Photoshop Album Starter Edition 3.2 to manage my 12'000 photos (with tags) and I'll move to Lightroom. But I cannot import the catalog .psa into Lr2.3. Lr can read only catalog .lrcat, .lrdb, and .aglib ! I renamed catalog .psa to catalo

  • Failure to stream continous video

    Why won't my pc continously stream video without interruptions?  have a touchsmart pc - 6 G. of ram - 1 T. hd - win 7 - 64.

  • Analog Clock in Power Saver mode?

    When the E71 is in a power saver mode (black blank screen) with the D-pad button glowing in a slow periodic pattern, you can press the D-pad button and a large digital clock showing the time appears. How can I change that to an analog clock instead?

  • Phoshop CS se cierra solo en mac G5 con OS 10.03

    Hola tengo un problema en varias mac G5 procesador dual 2.6 ram 2gb cuando estoy trabajando con montajes de un momento a otro se cierra el photoshop sin ningún aviso, e reinstalado el sistema y el problema persiste, esto me sucede por lo menos 2 a 3

  • Post Submit Twice Or More

    Hi Everyone!           We have this problem           - user claims to click/submit once           - access.log shows the same form submitted twice or more at the same exact time           I don't know whether it is due to firewall or any other setti