How to find which user is using the index?

Hi All,
I have an index named 'CTXT_ITEM_CODE' . The Index _type is Domain. When i try to drop this index its telling ORA-00054: resource busy and acquire with NOWAIT specified error
now i need to find out which session is using this index, so that i can kill it and drop the index.
Thanks

SELECT c.owner,
       c.object_name,
       c.object_type,
       b.SID,
       b.serial#,
       b.status,
       b.osuser,
       b.machine
  FROM v$locked_object a, v$session b, dba_objects c
WHERE b.SID = a.session_id AND a.object_id = c.object_id
AND c.object_name='CTXT_ITEM_CODE';
ALTER SYSTEM KILL SESSION '<sid, serial#>'

Similar Messages

  • How to find which users has used external scripting

    I want to find out the users who used the scripting for doing any mass changes activity.

    Hi Murphy;
    Please check which user has which forms open? and Re: how to determine which forms are currently open?
    Hope it helps you in your issue
    Regard
    Helios

  • How to find which user is in the planning book XYZ?

    Hallo,
    we are using SCM APO 5.0. and have defined "key-figure-specific Lock" as our locking logic.
    I need a program to get all users who are in a special planning book. Normally I can read this information from lock entry list (SM12). But with this locking logic the entry list looks quite different. Has someone an idea?
    Thanks in advance
    Yong

    Yong,
    There is a macro ACT_USER() which returns the user in a particular planning book. You can make it as a directly executable macro and schedule it using mc8e.
    Hope this works.
    Regards,
    Abhi

  • How to find which datasource are using  tables AFRU ,CAUFV and AUFM

    *how to find which datasource are using  tables AFRU ,CAUFV and AUFM*

    Hi,
    You can enter your table names in SE11 transaction and click "Display" and again click "Where -Used-List". Then it will show all the places where these tables are used(Datasources)
    Hope this helps.....
    Regards,
    SUman

  • How to identify which applicarion is using the DVD burner?

    How to identify which applicarion is using the DVD burner? Ot is not allow me to burn the DVDs genetrated in the Final Cut 7

    I think you'll find that the application is Final Cut Pro...  the message is bug.  I get a similar message when disconnecting external drives after using them with FCP (even when the project is no longer loaded.)
    As I mentioned above, the accepted workflow is to export the sequence to one of your hard drives using the Export>QuickTime Movie path with Settings:Current Settings and Make Movie Self-Contained checked like this:
    This gets you a high quality "master copy" which you open in Compressor for transcoding. You should use the DVD: Best Quality setting for the duration of your movie.
    this gets you the high quality MPEG-2 and AC-3 files for DVD Studio Pro authoring.
    If you've never used DVD Studio Pro before, you can use iDVD instead. For iDVD, you just drag and drop your "master" on iDVD and it takes it from there. Both make a very professional product.
    hope this helps.

  • How to find which datasource is using table JCDS?

    How to find which datasource is using table JCDS?

    Hi,
    Please find the below link and identify whether will it meet your requirement or not ... If it meets your requirement then I can provide you more documents related to the same which we have in our project.   We were using the same for Plant Maintanance project...
    For this report the required information is gathering from the different data sources from the ECC system. This report requires object status functional location attributes, Equipment attributes and some specific information apart from normal transaction data for an order.
    u2022     Main feeding data sources for this report are 2LIS_17_ORDER and 2LIS_18_ORDER.
    u2022     Requires the object status data (system status, number object status and un-number system status) is feeding from different DSO where the status data is staging with different data flow.
    u2022     Requires the Order planned end date which is dependent on the operation  planned completion date. so we are feeding this field from Operationu2019s DSO where the planned date is staging with different data flow.
    u2022     Required characteristic data and attributes of the Functional location  is getting from the master data .The 0FUNCT_LOC is updating by master data data sources
    u2022     Required standard class  of the functional location is updating from other DSO where the  classification  data is staging with the help of different data flow.
    2LIS_17_ORDER and 2LIS_18_ORDER Data flow Details : No enhancement was done for these data sources .
    Status Data Flow Details:
    The status data is staged because ,this dat is required for the reports based on the Orders, Operations , Notifications, Functional Location and Equipment.
    To load suitable data to different DSOs from the Status DSO we maintain the Filters for status profile and status at DTP level.
    Required status change dates  are deriving based on changed on date ,system status while loading from status DSO to Order DSO.
    The system status ,Number object status and un- numberd object status are feeding from status DSO only.The status DSO is updating by u20180TE_OBJ_STATUS_HISTu2019.This Is based on the tables JCDS,JSTO and T000.
    JCDS     MANDT     =     JSTO     MANDT
    JCDS     OBJNR          =     JSTO     OBJNR
    T000     MANDT     =     JCDS     MANDT
    This DS has enhanced for the below  two fields
    1.     Order Number
    2.     Operation/Activity Number
    The Logic to populate the above two fileds is as below.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e4/1522bae6aa46b8802dca454e846d58/frameset.htm
    regards
    BVR

  • How to find which function module write the relevant idoctype?

    Dear All,
    how to find which function module write the relevant idoctype?

    Hi,
    Generally the function modules of the idoc types are having a naming convention as IDOC_INPUT for inbound processing and IDOC_OUTPUT for outbound processing followed by the idoc type name
    for example : For IDOC type ORDERS
    the inbound function module will be IDOC_INPUT_ORDERS and for outbound IDOC_OUTPUT_ORDERSP
    In this way you can find the function module for a particular IDOC
    P.S: Hope this is what you have asked for
    Regards
    Sarves

  • Apps that arbitrarily restrict which users may use the App, such as by location or carrier, may be rejected

    Hello,
    I have an inquiry, this section:
    Apps that arbitrarily restrict which users may use the App, such as by location or carrier, may be rejected
    We have an mBanking app to be built and the Bank is insisting on forcing a mandatory update when there is a need
    and the user should be restricted from logging in in such case (as a security update or important bug fixes).
    Does the above fit in what will be rejected? Will the application be rejected in such a case? if so are there any workarounds?
    Thanks
    nsawaya

    No, no, and no.
    Sorry, but this is Apple we’re talking about here.
    Bob

  • How can I find which applications are using the most power?

    I have recently noticed a full charge of power doesn't last as long as it used to on my iPad 2.  Is there some way to determine which applications are using the most power?
    I have been monitoring my home network router accesses and have noticed the iPad logs accesses every 15 seconds.  This only happened recently.  It had been well behaved and only accessing once or twice a day before.  I installed the most recent iTunes upgrade, per suggestions during a Sync.  The problems seemed to occur after this update.  I have gone through all the settings and have minimized the applications requiring higher power (I switch off the location services unless I'm away from home.  Likewise, I turn off my cellular carrier unless I'm away from home, etc.)
    In short, how can I maximize my power usage (aside from turning it off)?
    Thanks.
    Dave

    Thanks for responding so quickly.
    I'm really trying to find out why the battery is depleting much faster than it used to all of a sudden.  I used to be able to put a full charge on it and it would last about 5 to 6 days with normal use (normal for me).  Now that battery only lasts about 2 to 3 days with the same use.
    I DO recharge it when it needs to be charged but this is indicating there is something else (new) that is causing the power drain.

  • How to monitor perticuler sql statement using the INDEX or not?

    I am running on a long running quary, and the output is comming very late. So i want to know the sql quary is using the index or not? How to know that?

    If you want to check the real execution plan of a running query without waiting for query completion, you can try following steps that you should adapt to your query and your environment:
    1. start the query
    select
    count(*)
    from all_objects, all_objects;2. Retrieve in another session the SQL_ID and the CHILD_NUMBER of the running query:
    select sql_id, child_number, sql_text
    from v$sql
    where sql_text like '%all_objects%';3. use DBMS_XPLAN.DISPLAY_CURSOR to get the real execution plan from shared pool using SQL_ID and CHILD_NUMBER from step 2:
    select * from table(dbms_xplan.display_cursor(<sql_id>,<child_number>));Actually you don't need to restart the query if it is already running because the hint GATHER_PLAN_STATISTICS is only needed if you want to have current execution statistics.
    Edited by: P. Forstmann on 2 mars 2011 10:23

  • How to find which users only have a single and a specific responsibility

    Hi,
    I have a requirement in my organization that a password restriction have to be implemented. After implementing that, for some users, the password date will have to be nulled out, so that when they login, they will be forced to change their password following that new password rule.
    Oracle's "CP SQL*Plus Expire FND_USER Passwords" concurrent program can not be used as that will expire all the users password at the same time.
    For this, I have to find all the users which have a certain responsibility (check viewing responsibility) and only that responsibility. First day password date null out will be implemented for them only. For the other users (who have check printing responsibility) the password will be nulled out some other day.
    As I am using the following query, I see some of the users have multiple responsibility. How do I find out the users who have only a certain responsibility and nothing else?
    select usr.user_name, res.responsibility_name
    from apps.fnd_user usr, apps.FND_USER_RESP_GROUPS_DIRECT usrrep, apps.fnd_responsibility_tl res
    where usr.user_id=usrrep.user_id
    and usrrep.responsibility_id=res.RESPONSIBILITY_ID
    and usr.end_date is NULL
    group by usr.user_name,res.responsibility_name
    Any suggestion, idea will be very much appreciated.

    Hi,
    I have a requirement in my organization that a password restriction have to be implemented. After implementing that, for some users, the password date will have to be nulled out, so that when they login, they will be forced to change their password following that new password rule.
    Oracle's "CP SQL*Plus Expire FND_USER Passwords" concurrent program can not be used as that will expire all the users password at the same time.Use the same update statement in $FND_TOP/sql/AFCPEXPIRE.sql and include/exclude the usernames you want.
    For this, I have to find all the users which have a certain responsibility (check viewing responsibility) and only that responsibility. First day password date null out will be implemented for them only. For the other users (who have check printing responsibility) the password will be nulled out some other day.
    As I am using the following query, I see some of the users have multiple responsibility. How do I find out the users who have only a certain responsibility and nothing else?See (How To Find Out Which Responsibility Was Granted To A Specific User? [ID 304687.1]).
    Or, see old threads for similar topic (you will find many queries which should be helpful).
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Users+responsibilities+query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    select usr.user_name, res.responsibility_name
    from apps.fnd_user usr, apps.FND_USER_RESP_GROUPS_DIRECT usrrep, apps.fnd_responsibility_tl res
    where usr.user_id=usrrep.user_id
    and usrrep.responsibility_id=res.RESPONSIBILITY_ID
    and usr.end_date is NULL
    group by usr.user_name,res.responsibility_nameTry this query ..
    SQL> select fu.user_name, count(frvl.responsibility_name)
    from fnd_user_resp_groups_direct furgd, fnd_responsibility_vl frvl, fnd_user fu
    where furgd.responsibility_id = frvl.responsibility_id
    and fu.user_id = furgd.user_id
    and (to_char(furgd.end_date) is null
    or furgd.end_date > sysdate)
    group by fu.user_name
    having count(frvl.responsibility_name) = 1;Thanks,
    Hussein

  • How to find which Query is using program AQ10MM==========Z6============

    Hi,
    I wanted to know how to find out which SAP query uses this program. AQ10MM==========Z6============
    I tried with SQ01/02 but was unable to get it. Can you please help.
    Regards,
    Mukund S

    In my installation , it is usually AQZZ"usergroup"========QUERYNAME======
    You could see if you have a user group 'MM' or '10MM' in SQ03 and set the user group if available.. then in SQ01, see if you have a query called Z6
    Also try out this function module RSAQ_DECODE_REPORT_NAME to see if it would give you the user group and query name...

  • How to find out user privilege using JPDK

    Hi All,
    How can I find out what type of user-privilege that a user has inside the renderBody method of the subclass of the BaseManagedRenderer class? e.g: whether the user has the Administer privilege.
    I looked through the ProviderUser object which can be obtained from the pr.getUser() (PortletRenderRequest.getUser()) and it does not seem to provide the method to get the user's privilege.
    Any insight is greatly appreciated!
    Thanks,
    Vince

    Vince,
    How did you figure out calling the is_user_in_group or other
    similar function calls in the WWSEC_API?
    I tried making a regular SQL Statement by doing the following.
    CallableStatement callablestatement = conn.prepareCall
    ("begin ? := wwsec_api.is_user_in_group(?,?); end;");
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, 17);
    callablestatement.setInt(3, 0);
    callablestatement.execute();
    boolean s2 = callablestatement.getBoolean(1);
    callablestatement.close();
    but it fails with the following exception in the JSP...
    java.sql.SQLException: ORA-06550: line 1, column 13: PLS-00382:
    expression is of wrong type ORA-06550: line 1, column 7: PL/SQL:
    Statement ignored
    Can you shed some light on the problem?
    Thanks,
    Niket Parikh

  • How to find out User Id Used in Debugging Mode

    Hi Gurus
    Could you plz advice . how find to  out  SAP user Id used to   delete  SAP table entries in Debugging Mode.
    Thanks
    Ravi

    Hi Ravikanth,
      I'm not sure how to check the change log in debugging mode,
    but you can get the LOG DATA CHANGES from tcode SCU3(If log checkbox selected in Technical settings).
    You may check the coding for scu3 for more details.
    Happy coding..!!
    //Kiran Singh

  • How to find which user has access to Discoverer Reports?

    I need to find users having access to Discovered reports using a script. How can I do that?

    Hi,
    You need to give more details...
    Are you using oracle applications? are the users database users?
    If you use oracle application you can use the following:
    SELECT DISTINCT Disco_Docs.Doc_Name "Discoverer Workbook"
    ,Trunc(Disco_Docs.Doc_Created_Date) "Workbook Create Date"
    ,CASE
    WHEN Instr(Disco_Docs.Doc_Created_By
    ,'#') = 0 THEN
    Disco_Docs.Doc_Created_By
    WHEN Instr(Disco_Docs.Doc_Created_By
    ,'#') > 0
    AND Instr(Disco_Docs.Doc_Created_By
    ,2) = 0 THEN
    (SELECT Fu.User_Name
    FROM Fnd_User Fu
    WHERE Fu.User_Id = Substr(Disco_Docs.Doc_Created_By
    ,2
    ,5))
    ELSE
    NULL
    END "Workbook Owner/Creator"
    ,Disco_Users.Eu_Username
    ,CASE
    WHEN Instr(Disco_Users.Eu_Username
    ,'#') = 0 THEN
    Disco_Users.Eu_Username
    WHEN Instr(Disco_Users.Eu_Username
    ,'#') > 0
    AND Instr(Disco_Users.Eu_Username
    ,2) = 0 THEN
    (SELECT Fu.User_Name
    FROM Fnd_User Fu
    WHERE Fu.User_Id = Substr(Disco_Users.Eu_Username
    ,2
    ,5))
    ELSE
    (SELECT Resp.Responsibility_Name
    FROM Fnd_Responsibility_Tl Resp
    WHERE Resp.Responsibility_Id =
    Substr(Disco_Users.Eu_Username
    ,2
    ,5))
    END AS "Shared Name / Responsibility"
    FROM Eul_Us.Eul5_Documents Disco_Docs
    ,Eul_Us.Eul5_Access_Privs Disco_Shares
    ,Eul_Us.Eul5_Eul_Users Disco_Users
    WHERE Disco_Docs.Doc_Id = Disco_Shares.Gd_Doc_Id(+) AND
    Disco_Users.Eu_Username(+) NOT IN ('EUL5', 'PUBLIC') AND
    Disco_Users.Eu_Id(+) = Disco_Shares.Ap_Eu_Id
    Tamir

Maybe you are looking for