Determine fully access

I am trying to determine whether a user has full access - or rather has all the access requirements that I request. I'd like to do this in a query, rather than in a procedure or function. If that's impractical, just tell me. I'm on 9i.
Each security listing is in it's own record. The requested security_object_id list will be dynamic. So in the list below, if I request (421,422,423,424) then admin_user_id 10 is the only one that has all of those accesses, so I want a return that gives me just that admin_user_id.
admin_user_id security_object_id
10 421
10 422
10 423
10 424
11 421
11 422
11 428
11 429
12 421
12 422
12 423
12 434
Right now, I have it working by querying for the list, grouping them and doing a count. Then I compare the the count to the number of items in the list. However, like the list will always change, so does the count. Currently, I'm adding the count using coldfusion, but I assume that there is a sql-only solution. Here is my current solution, using coldfusion.
SELECT ADMIN_USER_ID from
    (SELECT ADMIN_USER_ID,count(*) cnt from
        (SELECT    AU.ADMIN_USER_ID,ASA.security_object_id
        FROM    ADMIN_USER AU,
                    VW_ADMIN_SECURITY_ACCESS ASA
        AND        AU.ADMIN_USER_ID = ASA.ADMIN_USER_ID
        AND ASA.security_object_id in (421,431,433,434,420,432)  -- the count below and these numbers also by coldfusion
        GROUP BY AU.ADMIN_USER_ID,ASA.security_object_id)
    GROUP BY ADMIN_USER_ID)
WHERE cnt=#insert_num_from_coldfusion#;

Hi,
This would be a lot simpler if you had a table of the security_object_ids sought, one row for each id. You could create a global temporary table for this, and insert as many ids as you need. If you don't want to create a table, then you can use a WITH clause, and use its result set as a table.
Since you didn't post CREATE TABLE and INSERT statements for your osn table, I'll use scott,emp to illustrate. Instead of looking for users who have all of the given security_object_ids, we'll look for deptnos that have all of the given jobs.
First, let's create a table to hold the jobs in question:
CREATE GLOBAL TEMPORARY TABLE  target_jobs
(  job     VARCHAR2 (9)     PRIMARY KEY
ON COMMIT PRESERVE ROWS
;A global temporary table can be populated the same way as a regular table:
-- INSERT INTO target_jobs (job) VALUES ('ANALYST');
INSERT INTO target_jobs (job) VALUES ('CLERK');
INSERT INTO target_jobs (job) VALUES ('MANAGER');The following query finds the deptnos that have all of the jobs, regardless of how many there are (1 or more):
SELECT    e.deptno
FROM       scott.emp     e
JOIN       target_jobs     j  ON     j.job     = e.job
GROUP BY  e.deptno
HAVING       COUNT (DISTINCT e.job) = (
                               SELECT  COUNT (*)
                           FROM    target_jobs
;

Similar Messages

  • As of 2 months ago, I cannot fully access Facebook using either Safari or Firefox browsers. I have a Mac G5 running OSX 10.5.8, Safari 5.0.6 and Firefox 3.6.28. Does anyone have any sugesstions on how I can resolve this?

    As of 2 months ago, I cannot fully access Facebook using either Safari or Firefox browsers. I have a Mac G5 running OSX 10.5.8, Safari 5.0.6 and Firefox 3.6.28. Does anyone have any suggestions on how I can resolve this?

    Aha, a PPC Mac!
    The last really supported Flash for PPC was 10.1.102.64, but if it's for like Facebook or such, people have been fooling FB to think they have a later version installed.
    Texas Mac Man's Flash hack/post...
    https://discussions.apple.com/thread/3599648?tstart=0
    Flash player 11.1 hack on PowerPC - https://discussions.apple.com/message/16990862
    See in each Browser which version of Flash it thinks it has...
    http://kb2.adobe.com/cps/155/tn_15507.html

  • SolMan 4.0: Support Team determination via Access Sequence not working

    Hi,
    from all the documentation I've read I got the following understanding for automatically determination of Support Team via Access Sequence (well, for one possibillity at least):
    - Maintain Sold-to-Party in IBase IB52, especially country attribute. DONE
    - Maintain Organizational Structure in PPOMA_CRM and create Org. Units, Business Partner No. get assigned automatically. DONE
    - The Organizational Unit "Support Team" has the same country attribute as the Sold-to-Party and was marked "Obj. Permitted in Determination". DONE
    - In IMG under SolMan -> Sc.-Specific Settings -> Partner Det. Proc. -> Def. Partner Det. Procedure select Procedure "SLFN0001" -> Partner Functions in Procedure -> Select "Support Team" -> Details, in block "Partner Determination" under "Access Sequence" select "Organizational data: Support Team by org. model". DONE
    If I now create a support message in a satellite system the Support-Team will NOT be assigned. Instead if I have a look into transaction data of the message under tab "Actions" there is an entry "When message is created, find support team responsible" with processing parameters RULE AC13200137, PARTNER_FCT SLFN0003.
    This makes absolutely no sense to me, why is the determination rule 13200137 used (which contains no entries at the moment) instead of the assigned Access Sequence?
    Am I missing something?
    Regards,
    Marco Kipka

    Hi,
    no hint for solving the problem?
    This is getting quite urgent, since I'm working at a customers site and try to implement the describted scenario.
    Regards,
    Marco

  • My daughter has 2 websites she can not fully access because the iPad won't download updates for Adobe. What is Apple doing to solve this problem?

    My daughter has 2 websites she can not fully access because the iPad won't download updates for Adobe. What is Apple doing to solve this problem?

    Flash has been used for more than just displaying videos. The Vote choice your daughter found is one of those flash type sites that will not display on iOS devices. There are now over 100 million iPads, and who knows how many more iPhones out there. Developers who want their content to display on all these devices will have to move away from the old Flash technology.
    There were some version of Flash that ran on other brands of tablets. But Adobe has stopped all development of Flash for all mobile devices. As time goes on and mobile operating systems evolve the no Apple devices will lose their ability to run Flash too. Web developers need to move on to cleaner, more efficient types of programming.

  • What is data determination in access?

    hi gurus,
    what is data determination in access? what are the docs not in pricing that was mentioned in its definition?
    thanks,
    paul

    hi,
    Data determination requires a structure in which the data determined can be stored and accessed from pricing. Communication structure KOMPAZD is provided for this purpose.
    The standard system provides the following fields in this structure:
    Price list type
    Exclusion indicator
    Communication structure KOMPAZD can be extended in the same way as communication structures KOMKAZ and KOMPAZ.
    This is described in SD Customizing under:
    Sales and Distribution ® System Modification ® Create new fields (using condition technique) ® New fields for pricing
    Prerequisites:
    Data determination in the access for pricing takes place at field level. A field is selected for this. It is used for data determination, not pricing. This is carried out as follows:
    When maintaining a condition table, you can choose a field from the key in the Technical Settings field. It is then designated as a data field and is automatically indicated with C in the access in Customizing for access sequences. This is only possible when it is created. If you want to change existing condition tables, you must delete them and then recreate them.
    Link
    regards
    sadhu kishore

  • Data determination in access

    hi gurus,
    can you give me steps on how to setup a data determination in access? i think data determination for sales deals is one of the simplest way. can you help me?
    thanks,
    paul

    used to copy pricing of another pricing procedure

  • TS1368 Can't fully access iTunes store and need some help. Error code 1202

    I can't fully access the iTunes store.  In iTunes, I can't view graphics on the main page; the text is not formatted; links result in a message that an unkonwn error has occurred (-1202).

    Yuk, this one seems to be a windows issue IIRC.

  • Determine cffunction access method?

    I have a .cfc which can be called either locally or remotely. When I call it locally, there's no need to determine whether the function should be allowed to run since all local calls can be trusted. However, when called as a web service, I would like to require two paramaters (username and password) so I can determine whether the function can be permitted to execute, or if I should return an "Access denied" message. (The verifyClient attribute of the cffunction tag is not what I'm after. I need to verify the username and password against a collection of account credentials.)
    What I really need (in pseudo-code) is something like:
    IF (requested_as_a_web_service = "true")
    {check username and password against account credentials}
    ELSE {stop processing and return an "Access denied" message}
    So, is there a way to determine the access method?
    David

    But returning the CFC path doesn't help me determine whether the calling page is local or remote. Now if the CFC could reliably conclude the path of the calling page, that'd help, but I don't see any way that's possible.
    Yeah, but think about it... if the path is the CFC, then it's a remote call.  If it's anything else: it's not a remote call.
    Adam

  • Partner Determination Procedure-access sequence

    Dear Gurus,
    My requirement is support team determination when message is created.I maintained the  Rule 13200137 in PFAC_RESPO.
    In this below path in procedure SLFN0001 against partner function procedure of funcions SLFN0003 SUPPORT TEAM (CRM).IN THE PARNER DETERMINATION TAB acces sequence and Determination Time in Partner Determination are empty.
    what values should i maintain here so that support team determination will happen as per the rule 13200137
    SAP Solution Manager Implementation Guide -> SAP Solution Manager -> Configuration -> Scenario Specific Settings ->Service Desk -> Partner Determination Procedure -> Define Partner Determination Procedure.
    plz guide me

    Hey SAPuser,
    You can use access sequence Organization data: Service Team using product or rule....
    If this does not work out, then you need to work out some other access sequnce which starts with something like: Organization data: ........
    Reward for usefull post...
    Regards,
    Anand

  • SAP GRC 5.3 CUP: Approver Determinator "Super Access Owner"

    Hi,
    when configuring a stage, a standard approver determinator called "Super Access Owner" could be selected.My question is where to specify the Super Access Owner in SAP GRC CUP? In the Config Guide of SAP GRC AC 5.3 a hint explains on page 145
    "If you select Superuser Access Owner as the approver determinator, the system
    fetches the configured owner from the SAP system where the Superuser Privilege
    Management is installed and assigns the request to that particular approver." 
    I do not really unterstand where to specifiy. Is it the former FireFighter in the backend.
    Did anybody user this Approver Determinator already?
    Thank you in advance.
    Marco

    Hi Marco,
    Yes this approver is defined in the backend Firefighter which is now Super User Privelege Management. The Firefighter ID owner will be taken as the approver if we select Super User Access Owner in the CUP request. This option is basically being provided for  Integration of Compliant User Provisioning and Super User Privelege Management for SAP GRC AC 5.3. You may now create a request to assign a Firefighter ID to a Firefighter in CUP and do not need to go to SPM for the same.
    In case you do not want to use this approver, please create a Custom Approver Determinator for the same.
    Hope this helps.
    Harleen

  • Determine last access of a filesystem?

    I have a filesystem that I'd like to unmount if it goes unused for X amount of time. Is there a clean(ish) way to determine how long its been since a filesystem was last accessed?
    I've written a script that simply lists all files on the file system, sorts by last accessed date, and compares that with the current date. It works, but I figure there has to be a more elegant solution. Plus this won't be practical if the filesystem grows substantially in size, or if the filesystem is mounted with the option noatime.

    Hi,
    Check the Tcode <b>SM21</b>.
    Regards
    vijay

  • Determine web access times

    Hello Everyone,
    I'm trying to figure out how I can access a web page and determine how long it takes to come down.
    I've been able to use code like the following to get the page contents:
    url = new URL(loc);
    URLConnection urlConnection = url.openConnection();
    urlConnection.setUseCaches (false);
    urlConnection.setAllowUserInteraction(false);
    urlConnection.setDoOutput (true);
    DataInputStream urlStream = new
    DataInputStream(urlConnection.getInputStream ());
    byte b[] = new byte[1000];
    numRead=urlStream.read(b);
    content = new String(b,0,numRead);
    while ((numRead != -1))
    numRead = urlStream.read(b);
    if (numRead != -1)
    String newContent = new String(b,0,numRead);
    content += newContent;
    urlStream.close();
    But unfortunately, this is very fast, and only grabs the text content of the web page. So using System.currentTimeMillis( ); before and after this method I get readings that really don't reflect real life, such as .064 ms. Which I guess is true for just grabbing the text data.
    Would it be acceptable to reflect real life by parsing the file for images and such and then downloading the content to my HD and time those events? or is that still not realistic? Would I be better of creating some kind of virtual web browser and attempt to render the web page? If that is the best, any suggestions for how to do that?
    Essentially, I'm working on a tool to monitor load times for our company web site. I know commercial tools exist out there to do this, but I figure this would be a good learning experience.
    Any help would be appreciated,
    Thanks,
    Dower

    rpiskac wrote:
    > I
    > already switch to Apple products.
    I too am a Mac user, and am not happy with the overall state of Mac access with
    GW 2012. That said though, I think it is incorrect to say that "WebAccess is
    not finished", because there was never any promise with 2012 that WebAccess
    would have all of the functionality of the Windows client. You need to voice
    your opinion as Michael says. Novell needs to know that we need a strong Mac
    client. And personally, I don't really want WebAccess to be my Mac client, so
    I'd prefer they continue to make whatever enhancements they see fit to an
    "alternative client" like WebAccess, and put time and effort back into a real
    Mac client.
    By the way, at BrainShare I do believe Novell got this message loud and clear.
    From what I heard there, the Mac situation is one they are taking seriously, but
    it will not be addressed in GW 2012. Hopefully we'll see something in Cardiff
    or Windermere.
    Danita
    Novell Knowledge Partner
    Moving GroupWise to Linux?
    http://www.caledonia.net/gwmove.html

  • What grant to I need to get fully access all_tab_cols?

    I have a procedure that needs to examine the metatypes on a view. I have to run it as a different user than system or sysdba.
    Here's the proc:
    create or replace procedure simpletest( v_conn_str in varchar2, v_schema in varchar2, v_view_name in varchar2)
    AS
    type meta_col_list is table of all_tab_cols%rowtype index by binary_integer;
    meta_cols meta_col_list;
    meta_cols00 meta_col_list;
    meta_cols01 meta_col_list;
    meta_cols10 meta_col_list;
    meta_cols11 meta_col_list;
    meta_cols75 meta_col_list;
    unquote_view_name varchar2(100);
    quote_view_name varchar2(100);
    v_foo varchar2(100);
    cursor cur75 is select * from all_tab_cols where column_id > 75;
    BEGIN
    select * bulk collect into meta_cols75
    from all_tab_cols
    where column_id > 75;
    dbms_output.put_line( 'dt_pipe.diff_view: meta_cols75.count: ' || meta_cols75.count);
    END simpletest;
    If I run this proc as system or sysdba, I get a count of 5. but, if I run it as foouser, I get a count of 1, even though I have issued the command:
    grant select on all_tab_cols to foouser;
    So, I figure I must be missing a few more grants. Does can anyone help me out here? thanks.

    ALL_TAB_COLS shows you the columns for the tables that the current user can access. So it's always going to filter out columns the procedure owner doesn't have direct access on.
    Might you have intended to use DBA_TAB_COLS? That view shows the columns for all the tables in the system regardless of the current user's privileges on those tables.
    Justin

  • Converting Powerpoint into Fully Accessable PDFs

    I am trying to create a PDF of a Powerpoint file with full accessability with no errors.
    Advanced>Accessability>Full Check
    However when I bring it over to PDF from Powerpoint non of the images retain or register as having alternate text. As being a powerpoint I find that a lot of the images that don't need alternate text, such as minor decorations, require alternate text, I need them to not register. I have tried actually following the promps and giving alternate text to some images, but they still register as not having any.
    Can anyone please help?
    Thanks

    You can try the solution in the thread linked below, but chances are it won't compress the PDF enough for email:
    Reducing size of pdf in OSX Lion

  • Converting Powerpoint into Fully Accessable PDFs  (Updated and Corrected)

    I am trying to create a PDF of a PowerPoint file with full accessibility with no errors. I am currently using Microsoft Office 2010, and checking the web accessibility with Adobe Acrobat 9 Pro.
    Advanced>Accessibility>Full Check
    However when I bring it over to PDF from PowerPoint, none of the images retain or register as having alternate text. As being a PowerPoint, I find that a lot of the images that don't need alternate text, such as the various segments of the background, register as requiring alternate text. I have tried actually following the prompts and giving alternate text to some images, but they still register as not having any.
    Can anyone please help?
    Thanks
    KCD123

    You can try the solution in the thread linked below, but chances are it won't compress the PDF enough for email:
    Reducing size of pdf in OSX Lion

Maybe you are looking for

  • How to load up new os on unpartitioned hard drive

    i downloaded driver genius because i had downgraded fom vista and the drivers were hard to find. anyways driver genius loaded the wrong video driver and it initiated the blue screen error message"page_fault_in_non_page_area 0x00000050 (oxf7b44703, 0x

  • Can't open NEF files from my Nikon D800

    I am running Mac OX 10.6.8, Photoshop 13.6.1 x64, Camera Raw 7.1.0354 and Lightroom 4.4. Now Camera Raw and Lightroom won't open raw files from my Nikon D800. Why is this!??!? My iMac is model year 2006 and can't be upgraded to Mavericks (thank you A

  • How can I find a set of sample reports which we can create using vCloud Usage Meter?

    Additionally, Is there a way that we can assign $ values to vCPU and vMem per GHz and GB? Can we report usage per min? Many Thanks in advance.

  • Printer works for ipad but not laptop

    My printer works fine with my ipad but stopped working with my laptop. I have windows seven. I put the IP address in the search bar and went to the hp site. I tried to print a page from there and it worked fine. But I can't get it to work on any othe

  • "release to accouting" question

    All, I have question regarding the "release to accounting" functionality from the billing document. Is there a configuration that will limit the accounting document to be "parked" rather than posted? Currently this posts an accounting document direct