Query to find user who doesn't own object

Hai all,
I want a query to get the list of the user who doesn' t have a particular object in the DB :
OBject name is apps_ddl..
All users in the DB should have this object.. want to know who are all the users in the DB who doesnt have apps_ddl
Please suggest
Kai

Have access to it, or actually have it in their own schema?
select username from dba_users
minus
select owner from dba_objects where object_name = 'APPS_DDL';

Similar Messages

  • ORACLE E-BUSINESS SUITE 11i Query to find users who never logged in

    Dear, All -
    ORACLE E-BUSINESS SUITE 11i
    Is there a query to find out a list of users who were created but never logged into the system. I believe these users do no appear in FND_USER table since they never logged in.
    Thanks in advance!

    FAIRE wrote:
    Dear, All -
    ORACLE E-BUSINESS SUITE 11i
    Is there a query to find out a list of users who were created but never logged into the system. I believe these users do no appear in FND_USER table since they never logged in.
    Thanks in advance!All application users details are stored in FND_USER table (whether they logged in or not).
    To find the list of those users, please run this query:
    SQL> select *
    from FND_USER
    where LAST_LOGON_DATE is NULL
    and END_DATE is NULL;Thanks,
    Hussein

  • Query to find customers who have not purchased anything

    I have a query to find customers who have purchased what we call consumables (using item property) over a given period:
    SELECT T0.CardCode, T0.CardName, T0.DocDate, T0.DocTotal, T1.ItemCode, T1.Dscription,T1.quantity, T2.ItmsGrpNam
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry, OITG T2
    WHERE T0.DocDate BETWEEN '[%0]' AND '[%1]' AND T1.ItemCode like '2ssy%' AND  T2.ItmsGrpNam = 'consumable'
    I have another to show customers who have a particular type of equipment:
    SELECT T0.manufSN,T0.itemName,  T3.Name, T2.Address, T2.Street, T2.Block, T2.City, T2.County, T2.ZipCode
    FROM OINS T0 INNER JOIN OCRD T1 ON T0.customer = T1.CardCode INNER JOIN CRD1 T2 ON T1.CardCode = T2.CardCode Inner Join OCPR T3 ON T0.ContactCod = T3.CntctCode
    WHERE T0.manufSN like 'P%' AND T2.AdresType= 'S'
    What I would like is to find those customers who have this equipment (query 2) but who have NOT purchased and consumables in say the last year.
    I have tried using Excel by finding duplicates and taking those in query 1 from those in query 2 but it's very messy.
    Has anyone done anything like this or got any good ideas?
    Thanks

    Hi Ralph,
    Well, I enjoy teaching, so let's start at the beginning.  SQL is a fairly full-featured language, and it supports recursion and nesting.  That's why the books online often describe elements of the SQL statements as "expression" - it may be more than a field or a simple function occurring there.  Nesting is the little puppy we used here.
    Now, in your first post, you said:  "What I would like is to find those customers who have this equipment (query 2) but who have NOT purchased and consumables (query 1) in say the last year."
    So, our common point between the two queries is the customer, the CardCode.  That's what this part does:  F0.CardCode = T0.Customer.  In my internal convention, I used F for Filter.  So we only want the results in the filter where the CardCode matches the CardCode/Customer from the main query tables.  It's the sole contact point between the two queries.
    You also said you wanted only the items where they had purchased no consumables, which basically translates into: a count of the records equals 0.  Now, since all we're interested in from the second query, the consumables query is how many records we returned, we get rid of all the columns except for one that we apply a COUNT to.  After that, it's a simple criteria:  the result of the second query has to equal 0.  This is how the criteria looks after you take out all the details and put only the important brackets in:  (SELECT COUNT...FROM...WHERE...) = 0.
    This might be confusing at first, because most of the time we return recordsets from queries, but a standard feature of SQL is to return a value of any data type if the query returns a single row and a single column.  This wouldn't work at all if we had more than one column in our nested query (or would require lots of tweaking), and although it returns a number of results in the complete process of the whole SQL statement, it only returns one result for each row.
    Regards,
    Mark Dielmann
    Edited by: Mark Dielmann on Nov 13, 2009 12:30 PM - Forum doesn't support advanced formatting on answered questions.
    Edited by: Mark Dielmann on Nov 13, 2009 12:32 PM - Salutations and more formatting.
    Edited by: Gordon Du on Nov 13, 2009 10:35 AM - There are maximum characters limitation for correct format

  • FM to find user who locked the object using enqueue...

    Hello,
    How can I find name of user who enqueued the lock object in ABAP ?
    Regards,
    Jainam.

    Hi Jainam,
    See the SAP documentation, e.g. [FAQ - Lock concepts|http://help.sap.com/saphelp_NW04/helpdata/en/cb/168237d30d974be10000009b38f8cf/content.htm]:
    How can I find out who is currently holding the ungranted lock? In other words, how can check the program after an ENQUEUE to determine which use is currently holding the lock so that I can let him or her know?                                 
    This graphic is explained in the accompanying text Answer
    When the ENQUEUE_... function module is returned, the name of the lock owner is listed in SY-MSGV1.
    If you don't want to attempt to lock an object and just check who might own a lock use function module ENQUEUE_READ. Lots of comments in the forum...
    Cheers, harald

  • How to find user who loaded the procs in DB

    Hi guys how to find user who loaded procs in database ..and the date...
    is there anyway..
    i tried to look at all_objects..but it didnot workout..
    thanks

    That is correct. You will only have audit rows for item that you are auditing. I am suggesting you audit all DDL in a production database since production jobs should not perform DDL with the probable exception of truncate. This will provide this type of information going forward. It will not help you answer the question of who created the procedure last week?
    Auditing is explained in the Security manual and the full comand syntax is available in the SQL manual.
    You can easily write a purge the audit data to remove data once it is no longer of interest based on the date the audit row was created.
    HTH -- Mark D Powell --

  • How to find users who are inactive.

    Hi I want to find users who left the company. I ran program rsusr200 in se38 but not understanding which option will clearly give me the invalid users. Also i had a doubt. Does users with password deactivated that the user left the company.
    Thanks in Advance for your help

    The "password" field in this report will not necessarily show you users who have left the company. The password may be be "active" since this is a new user and they have not yet logged on. You would need to compare as well the field "Created On". I would use the last logon field as an indicator of who may have left - if someone has not logged on in 90 days, that could be an indicator.

  • Writing a query to find out who is having a given responsibility name.

    Hi,
    I am new to Oracle Apps and have no idea about its tables. Can anyone please help me in writing a query to find out who is having a given responsibility name.
    Thanks in advance.
    Regards
    Himanshu

    Hi
    you can get required data by using this query
    select usr.user_name
    ,     res.responsibility_name
    from fnd_user usr
    ,     FND_USER_RESP_GROUPS_DIRECT usrrep
    ,     fnd_responsibility_tl res
    where usr.user_id=usrrep.user_id
    and usrrep.responsibility_id=res.RESPONSIBILITY_ID
    group by usr.user_name,res.responsibility_name
    Regards,
    Venky

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • To prevent user from droping his own object .

    Dear User
    I have a database user like "aaa" in oracle 7.3.4.0.1 database.i do not want user "aaa" to drop his own schema objects like table and any other objects that he is owner.Do i have any system privilege to stop this user from doing so.User should be able to create objects and modify object but not to drop his own objects.For this purpose i have created a database trigger at database level to stop user "aaa" for doing above action.this trigger is giving me error on creation in oracle 7.3.4.0.1 .But when i tried same trigger in oracle 8i and 9i it work well.In oracle 8i and 9i it is preventing user from droping his own objects but i get other errors also along with raised error in trigger which i want to stop .The error which i am raising in trigger is
    ORA-20001 INVALID COMMAND BUT OTHER TWO ERRORS THAT R RAISED AUTOMATICALLY ARE
    ORA-00604 ERROR OCCURED AT RECURSIVE SQL LEVEL 1
    AND
    ORA-06512 AT LINE 8
    I WANT TO STOP THESE TWO ERRORS .
    PLZ HELP ME IN THIS REGARD AS SOON AS POSSBILE .
    plz tell me is there any system privilege to stop user from droping his own object or any other way along with trigger at database level.
    Thank u.

    Hi
    DBAs can use PRODUCT_USER_PROFILE (in system schema) to disable certain SQL and SQL*Plus commands in the SQL*Plus environment on a per-user basis. SQL*Plus, not Oracle, enforces this security. DBAs can even restrict access to the GRANT, REVOKE, and SET ROLE commands in order to control users' ability to change their database privileges.
    The PRODUCT_USER_PROFILE table enables you to list roles which you do not want users to activate with an application. You can also explicitly disable use of various commands, such as SET ROLE. For example, you could create an entry in the PRODUCT_USER_PROFILE table to:
    read more about this at
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch10.htm#1005648

  • Need info to find users who has multiple inbox i

    Need a query to find out all the users who are                                                              
    having multiple inbox in BoXI 3.0?

    Hello Ramsudhakar,
    This query works :
    select SI_NAME from CI_INFOOBJECTS where SI_KIND = 'Inbox' AND SI_INBOX_USER.SI_TOTAL = 1
    This one doesn't, but not sure if it's because in my sistem no Inbox object match the condition :
    select SI_NAME from CI_INFOOBJECTS where SI_KIND = 'Inbox' AND SI_INBOX_USER.SI_TOTAL != 1
    Hope that helped.
    Samuel.

  • ORA-00054 - Find user who have lock

    Hi,
    I'm using "select for update NOWAIT" in my application for editing records. It works but after I catch ORA-00054 I want to find username who have the lock.
    The basic step is propably to query view v$lock and propably after then some else view.
    Thanks for any idea/solution
    SASA

    You'll need to scroll down a while to get to your particular question in the thread I linked... I believe it's about a third of the way down.
    It is not possible to know who is locking a particular row unless there are two sessions that are blocking each other. If session 1 has a lock on a particular row and session 2 requests a lock on that same row and session 2 is waiting for that lock to free up, session 3 can query the v$lock table to see which session holds the lock and which session is waiting for the lock. Assuming everyone is logging in with their own user name, you can join this information with v$session to find out the username of the person holding the lock. In your case, though, no session is ever blocked, so you cannot determine who owns the lock.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Any Database Query to Find User Making Last Edit to Spec

    Is there any table in the PLM4P database that records the user PKID for the at least the latest edit on a specification?
    We know this information is not presented in the UI. If we can find out if this is recorded anywhere in the database, we can write a query when this info needs to be known.
    Our business case is:
    The spec originator (author) has left the company, so we have allowed DRAFT edit rights to the entire group and not just the author.
    Now we want to determine which group member made a recent change.
    Thank you.

    The commonLifecycleEventLog table should give you the history of each spec in terms of edit/saves.
    Details about the table are the following, taken from the Extensibiltiy Pack, Extensiblity Guide, in the Event Model chapter
    As specific events occur in GSM and SCRM, their details are captured and recorded in
    a single database table. Clients can watch for events added to this table to trigger some
    custom actions.
    Each event captured may include the following information:
    - Event Type—The type of event that occurred (1: Create, 2: Save, 3: Workflow, 4: Copy)
    - Event Source—What caused the event (New issue of a specification, workflow
    transition, etc.)
    - Actor—User who performed the event
    - Time—Date and time stamp of when the event happened
    - Affected Object—Specification or object that was acted upon (Specification that was
    saved, specification that was copied, etc.)
    - Related Object—Related object when appropriate (Workflow step, smart issue
    request, specification ID, etc.)
    - Reason—Reason the action occurred when appropriate (Workflow comments, global
    succession reason for change, smart issue request that caused the change, etc.)

  • Query in Find User Form

    Find User Form throws a query and return "result" attribute with user's list. Where's this Query?

    Yes, I'd really love to know this too.
    Anybody have an idea where this Query can be found?
    Thanks

  • Find user who has locked

    Hi All,
    Some times when we are using the SAP system it show that a particular object has been locked .
    My question is , Is there any way to find that who has locked the data i.e. can we get the computer name or some other info from which the user can be tracked .
    Regards,
    Aditya.

    Hi Aditya,
    If your are looking for terminal name (Computer Name), Transaction name, SAP User Id and the time, then maybe transaction SM04 is the one which will suit you.
    If you double click on the row and say " End Session ", the user will be thrown out of that transaction.
    Reward points if helpful.
    Regards
    Ravi

  • Windows Server logs deleted - Find user who did it?

    Hi
    At thuesday someone happened to overwrite the NTFS permissions on a share
    on a Windows 2012 file server.
    Instead of telling his/herscolleagues, "Sorry I did a mistake", this person log into the server as local administrator (Windows account) and delete all logs to cover the mistake up. Thanks for that!
    So my question to you is, is there any way to find out who did this?, thoguh the logs is deleted? Is there any other logs then Eventviewer logs to look into?
    I could find in the "Applications and Services Logs\Microsoft\Windows\RemoteDesktop" a connection from a computer 2 min before the logs were deleted, and that was from a new computer. This person
    had it all figured out...
    So?
    Thank!

    Hi,
    Sorry about the confusion.
    What I mean is that deleting logs requires administrative privileges, as administrators, we need to be very careful with adding which user accounts into local administrators group, only those ones which are reliable can be added as administrator.
    In addition, to get better auditing results, we also need to ensure that one person has (know the password of) only one user account, so that we could better determine who did what to Windows system.
    Here are some articles regarding auditing for you:
    Advanced Security Audit Policy Settings
    https://technet.microsoft.com/en-us/library/dn319056.aspx
    Advanced Security Auditing FAQ
    https://technet.microsoft.com/en-us/library/ff182311%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

Maybe you are looking for

  • One song from an album I bought with iTunes hasn't downloaded, how can I get to it?

    After purchasing and downloading an album, I noticed that one song from the middle of the album seemed not to have finished downloading. It was the same a day later, so I retarted iTunes thinking this would solve the issue. When I tried to play the a

  • How to set user checkbox permission with pcd api.

    Hello, I want assign group permissions to PCD objects, with the PCD API. I could create ACLs but can't set the User checkbox for the new created ACLs. Any ideas how to manage this.

  • Axis labels / scaling in CVI2013 SP1

    It appears that the scaling of axes has been changed in SP1 of CVI2013... Following scenario: linearly scaled y axis, two plots, according to the data axis range should start at zero (autoscaling) The green plot on the graph remains unchanged, but I

  • Regarding execution of pl/sql procedure using JSP

    HI all Please help me. i am customizing a jsp page ,which is executing one sql procedure first then selecting data from the table in which procedure is inserting. How can i pass parameter dynamically to the sql procedure ? ,which i am getting from an

  • How to access layer pixel data?

    I am new to the Adobe CS extension SDK. Is it possible to access image data from an extensions as an array? In the API reference I did not find anything like that.