With the help of CAE/FGA columns specific null for all, but some users

I was read about VPD and - but there are many examples - I'm having a hard time to get together.

I have a table that - when most users select hand - they should get NULL in a specific column.

This column should only display a limited group of users as one value other than null.

Can someone help me with an example implementation of this?

Any help is appreciated.

An excerpt from http://www.oracle-base.com/articles/10g/DatabaseSecurityEnhancements10g.php

CONN sys/password@db10g AS SYSDBA
GRANT EXECUTE ON dbms_rls TO scott;

CONN scott/tiger@db10g

-- Create the policy function to restrict access to SAL and COMM columns
-- if the employee is not part of the department 20.
CREATE OR REPLACE FUNCTION pf_job (oowner IN VARCHAR2, ojname IN VARCHAR2)
RETURN VARCHAR2 AS
  con VARCHAR2 (200);
BEGIN
  con := 'deptno = 20';
  RETURN (con);
END pf_job;
/

-- Using the same policy function as before.
BEGIN
  DBMS_RLS.ADD_POLICY (object_schema         => 'scott',
                       object_name           => 'emp',
                       policy_name           => 'sp_job',
                       function_schema       => 'scott',
                       policy_function       => 'pf_job',
                       sec_relevant_cols     => 'sal,comm',
                       sec_relevant_cols_opt => DBMS_RLS.ALL_ROWS);
END;
/

-- All rows are returned but the SAL and COMM values are only
-- shown for employees in department 20.
SELECT empno, ename, job, sal, comm FROM emp;

     EMPNO ENAME      JOB              SAL       COMM
---------- ---------- --------- ---------- ----------
      7369 SMITH      CLERK          10000
      7499 ALLEN      SALESMAN
      7521 WARD       SALESMAN
      7566 JONES      MANAGER         2975
      7654 MARTIN     SALESMAN
      7698 BLAKE      MANAGER
      7782 CLARK      MANAGER
      7788 SCOTT      ANALYST         3000
      7839 KING       PRESIDENT
      7844 TURNER     SALESMAN
      7876 ADAMS      CLERK           1100

     EMPNO ENAME      JOB              SAL       COMM
---------- ---------- --------- ---------- ----------
      7900 JAMES      CLERK
      7902 FORD       ANALYST         3000
      7934 MILLER     CLERK

14 rows selected.

-- Remove the policy function from the table.
BEGIN
  DBMS_RLS.DROP_POLICY (object_schema     => 'scott',
                        object_name       => 'emp',
                        policy_name       => 'sp_job');
END;
/

The function returns "deptno = 20" so no row corresponding to this condition will show the value of sal and comm, rest will display null value.

IN your case I suppose you want the user to the function that executes the query (select user to double), once you get the user to see if it is a user who is supposed to see the values of columns if yes return "1 = 1" in the case otherwise return "0 = 1".

Tags: Database

Similar Questions

  • With the help of a correct sign in iD and password but nothing happens.

    With the help of a correct sign in iD and password but nothing happens - it just keeps watch as this is something but 'Hourglass' never really stops cycling!  Can I open a session / connection to Adobe on my iPad so I know that's all is OK but not on my MacPro!  Any ideas welcome... never had this before and I need to download my purchased upgrade Lightroom 4 as soon as possible! Thank you

    Hi, thanks for the suggestions - certainly connected to the internet!

    In the end, I went through the process of "update" in Mackeeper and even if there is nothing relevant that I could see - somehow I managed to connect!

    -It was strange that I never had errors on the sign in at all... but if I went through the process of the struggle to sign as a reminder of the password request, it looks like my email address / iD has not been recognized - weird because it has all the same info/details usedto sign in on my ipad and used to buy all my software recently and in the past!

  • With the help of Ia 3 - I can't resize all select objects

    Don't know what happened, but...

    When I click on an object, I am unable to adapt to the size.  I tried the selection tool and the direct and same selection tool problem.

    I can move the object, but it can not resize.

    help please - everyone

    My guess is that you just want to drag a handle with the selection tool, but that seems not work. No doubt the framework encompassing has been disabled. Go to the VIEW: see the bounding box. then give it a try. If it says "Hide encompassing" then I'm dead wrong and just ignore me.

  • With the help of vertical panels. installs under reserve, etc., all the way to the right pane may not recover the message pane?

    In vertical view, I wanted to broaden the scope of name of spammers, so I moved border right pane #2 all the way to the right, which fell part msg out of the screen. I can't click on the pane, I moved to the right to bring back the msg on the display pane. I've tried view extends all the way through my two monitors - still could not click on #2 border to bring back the msg pane. Tried to restart and reinstall TB nothing helps. Tried other options to display without help.

    Press F8.

  • With the help of value in an input text for the calculation in a Variable area

    I have a project where I ask the user to fill out their name in a box entry and two-digit age in another area of text entry.  Later in the project, I want to ask them to think when they were 6 years and how they would describe themselves right there.  (the project is about self-awareness).  To make it as pleasant as possible, I thought it would be nice to say. "(Name variable), think to (years since 6) years, when you were about 6 years old'."  I'm unable to get the variable 'Since 6 years' work and I would like to know if it's possible.

    • I set up the variable text box as "v_age".
    • I've implemented a variable like "v_age6" with the value "6".
    • I implemented the variable result as "v_result_age6".
    • I have set up a standard action with a mathematical expression which reads "v_result_age6 = v_age - v_age6.

    The variable output does not appear on the scene in overview of project mode, and I think it's because there is only a single variable with a value assigned in the equation.  The variable "v_age" doesn't have an assigned value because it is a text entry area.

    Is it possible to use a value typed in a user as a variable to do math with?

    Thank you.

    Welcome to the forum,

    Each TEB has an associated variable, its generic name is the same as the BER. But you better match your variable with the most significant name to the ETB. Take a look at this old real blog post, always to news (though perhaps the screenshots are little bit outdated):

    http://blog.lilybiri.com/timesaving-Tip-Create-associated-variable-for

    BTW: you have no need to create an additional variable to number 6. This action would have done as well:

    Expression v_resultage6 = v_age - 6

    How you trigger the action, by what event?

    http://blog.lilybiri.com/events-and-advanced-actions

    Lilybiri

  • Select the options for ALL but some in OBIEE prompt with a single click

    Hello guys,.

    I have the below requirement

    I have a prompt that displays the payment terms.

    On the result - 3 payment terms are the terms of payment we and the rest are Global.

    A user will select these 3 conditions of payment of the United States or the reset of the (Global) payment terms, but not all.

    Y at - it somehow I can create an option that selects all terms of payment with one click (as the option all columns)

    also, I'm trying to use all of the columns, which is to select all the columns including US and global, but once the user selects all the column option - the user is not able to selectively disable certain values.

    Is there a work around for this?

    Please let me know because this would be a great help for me.

    Thank you

    Why don't make you a second guest of the column where you add the CASE WHEN to produce the 2 types of terms (US & Global)?

    Then using the "limited by" you auto-filtre the actual list of terms of payment based on the first selection and is to meet your requirement to select all of the USA or Global all with just 1 click.

    The user you want to select just 1 term given? Just ignore the first field of the prompt with the groups and directly select the one required in the second field.

  • help I INSTALLED WINDOWS 7 32 BIT on a DELL MINI WITH the help of 7 GB AND IT has TAKEN ALL the DISK SPACE

    I installed WINDOWS & HOME PREMIUM 32 BIT on MINI DELL A WITH 7 GB OF DATA AND IT has TAKEN ALL the DISK SPACE. I HAVE A SEAGATE 90 GB USB DRIVE BUT CANT PUT ANY can I FILE ON IT help

    Windows 7 requires 8 to 10 GB of disk space, the larger page file. Cannot move files off Windows storage on the site. Try the release of disk space by using the following:

    Strategies to free disk space - Windows - Microsoft

  • With the help of Opentable on a "bookings" page for a Web site restaurant

    You can use Opentable software for a page of 'Reserves' restaurant Web site I'm working on? Any help would be greatly appreciated!

    Yes you can. Open a Table provides you with an embed to your booking widget code. Use the object---> option Insert HTML code and paste the code in this TOS provides to you.

  • With the help of satellites LP500 - 14L as screen for PS3

    Hello, dear administration and all users; )
    I am really pleased to join this forum and hoping to get some useful experience with it :)

    Then. the question is in the topic... I'm just curious about it... In the eyes of the average user, it seems possible, PS3, and almost all modern laptops
    It is possible to have a HDMI output to plug into the PS3 for ordinary LCD... Why should not be the same with a laptop computer?

    I have red some post in different forums... and unfortunately it doesn't seem to be as simple as resembles.
    Some people say:
    (1) you can't do because laptop HDMI does not support the video entry
    (2) certain words, you can, but only with TV tuner and only with normal connection with 2 drivers, as readers DVD, older consoles are connected

    Both variants are unhappy :)), even for a second because probably quality picture going to be bad and not pleasant that when connecting PS3 via HDMI.

    Maybe someone can give a list what laptops support entry VIDEO for everyone to know. Mine is SATELLITE P500 - 14 L, it has 18 inches and I think it would be good to put on like a PS3 sometimes :)))

    > 1) you can't do because laptop HDMI does not support the video entry
    Just the phone cannot receive video signals from PS3 and this is the reason why you are unable to connect the PS3 to the laptop and use the internal display.

    I remember at the beginning Toshiba Qosmio G20 a video taken in charge by port (but not HDMI)
    Using this port you can connect an xbox and could use the internal display.

  • With the help of blackBerry Smartphones as a Textphone for deaf

    Hello

    I'm really interested in the private Blackberry because it has a physical keyboard and can also run android applications.  I wonder do you know if it will run without a doubt the next generation text relay service app for the deaf? as it would a great compact minicom/textphone.

    http://NGTS.org.UK/

    This application is available for free in the game of google (called NGT Lite) store.

    Also. I have currently a phone Samsung S4 is the same type of SIM as the PRIV would use? I'm with giff gaff... I would be able to share package data with my biggest Samsung Tab Pro if necessary?  (I can't read the Web pages on a screen that is smaller, much easier on the 12.2 "display).

    Finally... She has the same accessibility as the old Blackberry Storm had with prediction of words and the ability to take "shortcuts"?   IE, affect entire sentences to an abbreviation as this feature in particular would be great to have to quickly give details by phone where it should be mentioned the address and the same every time for example.  .. or implement the introductery sentences before calling to save time. and speeding up call for example rp = "Hi, I need to order a prescription repeat it please", fn = sends name meds = sends a list of what I I need drugs etc.

    It would really speed up communication of phone for me, as my old minicom has no features as what you have to type everything letter by letter and companies have stopped making them or brand new more, it seems.

    Thank you

    Kati

    Yes! the IVR BlackBerry is running Android Lollipop.

    I love the button. you're probably clicking the wrong button. Click on the button like on the bottom of the post you want to love. you were probably by clicking on the custom text on my post. See the image below

  • With the help of operators ternary to set the source of the image

    Hello

    I use JDeveloper llg and have a table of the ADF, in one of the columns im trying to have just a displayed image.

    With the help of:
              <af:column width="16">
                         <img src="icons/bullet_green.png" 
                                 height="16"
                                 width="16"/>
                </af:column>
    It works very well and the correct image is displayed. Is it possible to use an EL expression to determine which image should be displayed using a ternary operator? I tried the following:
              <af:column width="16">
                            <img src="#{row.ServiceState == '100' ? 'icons/bullet_green.png' : 'icons/bullet_red.png'}" 
                                 height="16"
                                 width="16"/>
              </af:column>
    However no image is at all now displayed when the application is run. There someone now how to fix this?

    Thanks in advance...

    One solution is to use an af:image instead of the normal img tag. Then put the two af tags: image inside of you af:column and set the visible to your EL as attribute:

    
    
    
    
    

    Timo

  • Is it possible to delete a plot with the help of the mouse select the chart control?

    For example, when I use the plot to draw thousands of lines on the chart control, I want to delete some of them, but there are thousands of generated plotHandle.

    How can I get the plotHandle of the specific line on the chart control with the help of the mouse to select the option?

    If I save the information from the lines, such as the plotHandle and the coordinates on a table or list, etc, I compare information lines for the plotHandle of the specific line.
    Is it all a user-friendly way to remove a track selection on the chart control?

    I can't give you a reasonable way to solve this problem, since as you have already noted plot do not snappable plots.

    A possible warkaround would be to replace the plot of individual instructions with a PlotXY matching with 2 bays 2 points each, which correspond to the x 1, x 2, y1, y2 parameters to plot. PlotXY plots are snappable, so you can enable this procedure select the plot and remove it.

  • With the help of 1.7.0_07 - b11 version JRE Java hotspot Client VM

    I can't use by net cooking system indicates error java and java download does not work with my system with windows 7 giant premium 64 bit computer laptop.

    REPRT ERROR:

    Java plug-in 10.7.2.11
    With the help of 1.7.0_07 - b11 version JRE Java hotspot Client VM
    Home Directory user = C:\Users/
    ----------------------------------------------------
    c: clear console window
    f: finalize objects on the finalization queue
    g: garbage collection
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: Hide console
    r: reload the policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: delete the cache of class loaders
    0-5: set the trace level

    Hello

    1 are you facing this problem with a specific Web site?
    2 are you having the same problem on other browsers as well?
    Please follow the links below to solve the problem.
    Method 1
    How to troubleshoot script errors in Internet Explorer
    Note: follow the steps as troubleshooting applies to JAVA issues.
    Step 2
    How to enable Java in my web browser?
    Method 2
    If you still face problems, please uninstall and reinstall JAVA
    Remove all traces of the failure of the Java installation by uninstalling Java:
    Install Java
    I hope this helps.
  • OEBS 12.1.3 purchase request for approval Notification - SOUL with the help of approvals.

    1. We discovered that the version of the SOUL of this notification is generated via a framework of OA.
    2. We have a requirement for the company to add details of the additional topics to the part of the notification.  These fields are not standard for objects of view OA executives Business so an extension of necessary view.
    3. With the help of this and other sites, I was able to extend the view object in the favorite jDeveloper IDE and transfer it to my development OEBS instance.
    4. I see my view extended on the OFA Page, when you look at the content of 'About' from the page.

    My problem is when I try to 'Customize' and add a column of extended view, errors Page OAF that I am trying to come back since the customization session.

    I joined "Personalization_Error_when_adding_new_column_from_OA_Extended_view_object.docx" detailing what I try to run.

    Support of Oracle said that extension of the view OFA is considered a "customization" and that he does not want to help.

    Can anyone advise on what I should look at to solve this error?

    Any feedback/assistance would be greatly appreciated.

    Best regards

    Rich

    The View attribute is referred to as "LAST_UPDATE_DATE". If this is what we call in the SQL query, the attribute of the view object might be different like "LastUpdateDate". Please check back in the XXVO.xml.

    If that has not solved the problem, its running diagnostics by activating the option FND:Diagnostics profile. Then you will get the link 'click here' link on the error page to get the error stack. You can stick the stack of error here.

    Thank you

  • With the help of AMPA on non - WS Data Controls

    Hello community MAF .

    I'm developing an Application of MAF that consumes the REST API of WebCenter portal (which is based on the model of HATEOAS).

    I want to make powerful from scratch, including the following:

    -Offline mode (using the SQLite).

    -Persistence, of setting cache and synchronization using AMPA.

    Looks like it's not easier to apply directly on the REST API of WCP AMPA.

    The REST API of WCP is the result of a call of two steps:

    1) authenticate using BASIC authentication against http://Host/repos/api/resourceIndex for the utoken

    (2) use utoken as the URL parameter for the next call of REST for the specific service.

    I know that the Bus Service could be a possibility on the creation of a more simple REST on the WCP REST API, but is not an option right now because that is not easy to map.

    My questions are:

    (1) can we use AMPA on data controls in Java that will call internally to (DB in case of offline mode, REST by program in the case of online mode).

    (2) can define us manually in the persistenceMapping.xml?

    (3) is there anything else more easy to use wizards with HATEOAS base based Services?

    Thanks in advance

    Kind regards.

    Daniel,

    Why is it not service bus an option? You say 'not easy to map', but do the mapping in the MAF makes it not easier, it? the REST API of pressurization is not very easy to mobile, so this transformation to a more usable by using bus service API cost as a good idea for me. See also this article from the A-team.

    Answers to your questions:

    (1) Yes, this is the added value of nucleus of AMPA. You get a service generated the DTC Assistant classes, then you turn this class in a bean data control and use this data control bean for the construction of your user interface. The service class will access local DB and the service REMAINS remote. By default, AMPA will directly show the current data of the local DB, and then in the background call the REST service (online) and refresh the UI, once the REST call has been processed. But this behavior is very configurable and can be changed as you wish.

    (2) Yes, of course, you can manually create data objects, classes of service and persistence mappings, but the wizard is generally much faster.

    (3) HATEOAS logical not for the dynamics of UI where the next action is determined by a link returned in the payload. It is a different model from the static of the UI we build in general with MAF. What is your problem with the help of the wizard of the AMPA?

    Steven Davelaar,

    Oracle Mobile & Cloud A-team.

Maybe you are looking for

  • Satellite A200 - update card WiFi

    I have Toshiba Satellite A200 - 1 MB PSAE0E with WiFI card 4965AGN. I want to change the old WiFi card with Intel N 6300, but when I insert the new card of the laptop does not work, at all. When I go back to the old, all right. What should I do to fi

  • Test bench for myDAQ

    Hi all I'm designing a test bench for myDAQ, I implemented using a test of VI for each function in the model of test bench and in the end, I write all these results in a word file. In fact, there is not any specific problem I want that the community

  • Can't get updates for Windows, "Windows Update cannot currently check for updates, because the service is not running." You may need. "" Restart your computer.

    When I try to install the updates I receive the message "Windows Update cannot currently check for updates, because the service is not running."  You may need. "" Restart your computer,   It does not also. check me the update history

  • HP Touchsmart Calendar

    My calendar does not at all. I have an IQ526.  I spent 8 hours with tech on the cat. Uodated has nothing makes us us which was not uninstalled work we uninstalled Touchsmart & reinstalled which did not work. I can't even create a reminder. It is disp

  • Citing the phone to dial a number

    I'm trying to dial a phone number of my app running on my BB Z10. I was able to launch the phone application and bring it to focus, but it does not dial the number. I have tried the following to dial in number 9999: navigator_invoke_invocation_create