Is "parse as" the only way to restrict user privileges?

I have an application which is working in a schema blabla_owner.
Users do not need to log into this app, but I don't want them to be able to update data. Although I only have reports and no updateable forms or anything, my client is not very happy that all queries are implicitly done by the schema owner.
I read that "parse as" can be used, so we created a user blabla_read that can only read in the owner's schema and selected this user in the "parse as" attribute of the application, but unfortunately using this mechanism we need to grant the select privileges directly instead of through a role.
I tried changing the dad to use the readonly user but that is no use since the HTMLDB_PUBLIC_USER is only a dummy user and its privileges do not matter.
Is there another way of accomplishing the following:
- not requiring the users to log in
- be sure all queries are done by a user with readonly privileges only
- be able to use a role to grant privileges instead of doing this directly
Thanks

Not to put too fine a point on it, but as I said earlier An Apex application is no different than a "stored procedure" in that object privileges need to be granted directly to the parsing schema and not via a role
The reason for this might be that DBMS_SYS_SQL.PARSE_AS_USER, the underlying mechanism used by Apex to parse all SQLs requires object privileges to be granted directly to the "parse as" schema (for security reasons), but in any case whatever the reason, it is what is.
I have also "wished" many times that stored procedures/views would work with privileges granted through roles and not directly, but hey, what you gonna do?!

Similar Messages

  • Static footer and header pasted into all pages - the only way with JSF?

    Hello!
    What are the known patterns to deal with the use case in the subject ? Every tutorial I've seen suggest to copy and paste the header and footer into different views. Even if it is only the include statement that is being copied, I would not want to do this. I would rather do a single page with the single footer and single header and dynamically include the dynamic view. However, to achieve this, it seems the only way is to hard code all of the possible include statements for the views at compile time, using an EL's if then. This is also not a lot of fun, if one has hundreds of different views to include. Also, using this approach one would basically have to give up the JSF's navigation, which is based on the name of the jsp file. And since there will be only one main jsp file the JSF navigation will be restricted to a single one page - many outcomes navigation node. Won't be able to do anything more complex than that. Bad too.
    Any inputs would be appreciated.
    p.s. I am new to JSF, but to call it an MVC framework seems to be a stretch: navigation should happen in the controller part not in the view - and that is what is happening by virtue of describing the navigation in terms of the raw jsp-files - the view. Can anybody argue with this?

    Check out facelets, which adds useful templating and other nice features to JSF. You are still stuck with navigation-by-XML, which I agree is silly.
    These links might be useful:
    http://hookom.blogspot.com/2005/05/facelets-templating.html
    http://blog.exadel.com/?p=12
    http://members.capmac.org/~orb/blog.cgi/tech/java/Facelets_makes_JSF_.html
    http://www.jsfcentral.com/articles/facelets_1.html (and the followup article)
    The project homepage is https://facelets.dev.java.net/.

  • HT4061 I forgot my 4 digit lock passcode & now cannot get into the 4S iphone - Is the ONLY way to fix this to restore to factory settings? I haven't synced my phone to my computer in a loooong time -

    I setup my 4 digit lock & now cannot login (thought it was what I wrote but not working; I have not synched my computer w/my Iphone in a
    long time- is restoring to factory settings the ONLY way to unlock this?  (arrggghh).  Any help is greatly appreciated.

    Yes, that's correct.
    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    Forgotten Restrictions Passcode Help
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    Also, see iTunes- Restoring iOS software.

  • HT201304 Is there a way to restrict user access to find my ipad with out restricting the mail app?

    I am working on setting up multiple Ipad 2 tablets with iOS 5.1.1 and I need to restrict access to turn off find my ipad. The only way I see to do this is to turn on restrictions and dont allow changes on accounts. The issue I have then is it also restricts the Mail app setup. Is there a way to restrict one and not the other? We use microsoft exchange mail and I would be willing to use another mail app if anyone can suggest one that works as an alternative?
    Thank you.

    I don't know of any reliable tracking app, but perhaps someone else here can suggest one I'm not aware of. Any could be defeated by just restoring the iPad, though, so about all you could hope to do would be make things a bit more difficult to turn off. For a third-party app, you'd have to restrict the user's ability to uninstall apps, something which might be equally problematic for you.
    Regards.

  • JAAS is the only way for doing authentication?

    Hi,
    JAAS is the only way for doing authentication? How can I create different Sessions accord to the users?
    I want to restrict some functionalities of my Application for some users.
    Message was edited by:
    danielabrasil

    danielabrasil,
    I am not too familiar with security for web apps, but I remember using servlet filters in the past. Anyway, Craig can probably explain it better than I can, so please head on over to this forum posting:
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=47165
    Hope that helps :-)
    Sandeep J.
    --Creator Team                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Since updating an iphone5 to ios8.3, it is no longer recognized by my pc. An Apple tech suggested that I install itunes as the only way to assure that I have the latest driver. Any way to do this without installing itunes?

    Since updating an iphone 5 to ios 8.3, it is no longer recognized by my Windows 7 pc. An Apple tech suggested that I install itunes as the only way to assure that I have the latest driver. Any way to do this without installing itunes?

    Read this
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • I have ios 5.1.1. When I sync to iTunes, my purchased apps no longer work. They blink but do not open. The only way I have been able to solve this, is as follows: I delete one of the apps and then re-download and install it. Then, all my apps work.

    My new iPod touch 64 Gig has a problem after syncing with iTunes. My purchased apps no longer work. I touch them and they seem to try to open but they do not.
    The only way I have found to fix this is as follows:
    I delete one of the purchased apps. Then I go to the App Store and re-download and install the same app. After that, all my apps work again.
    Please help.

    Download/install an app is a know possible solution.
    3. Install another app from the App Store
    If all user-installed apps are not launching, it could be an Apple ID authorization issue. Download and install an app that isn't already installed on your device to reset this information.
    Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    Above from Apple's :
    iOS: Troubleshooting applications purchased from the App Store

  • How do I stop Firefox from creating untitled web pages when I try to send email from a web page. The only way I have found is to turn the computor off and then reboot. I don't have this problem when using Internet Explorer

    Every time I click on a web site that has an email option the browser starts making untitled web pages and never stops unless I turn the computer off. It is very frustrating to not be able to use an email option when offered by a web site. The only way I can send email messages on the Firefox browser is to go into my hotmail acct. and copy and paste the addresses. I don't have this problem when I use the Internet Explorer browser.

    See [[Firefox keeps opening many tabs or windows]]

  • After reading and resetting everything with Keyboard I still get blank white screen. The only way I can boot to Mavericks is unplug power cord, push and hold power button while plugging power cord in. Fans at full speed.

    After reading and resetting everything with Keyboard I still get blank white screen on 2nd? page of boot. The only way I can boot to Mavericks is unplug power cord, push and hold power button while plugging power cord in. Fans run at full speed, machine boots then runs normal except the dvdrw will not . The mid 2011 IMAC had the same problem with LION. I changed hard drives, formatted, and installed a clean install of latest os x mavericks. Any help would be greatly appreciated.
    EtreCheck version: 1.9.15 (52)
    Report generated August 30, 2014 at 6:56:41 PM EDT
    Hardware Information: ?
        iMac (21.5-inch, Mid 2011) (Verified)
        iMac - model: iMac12,1
        1 2.5 GHz Intel Core i5 CPU: 4 cores
        4 GB RAM
    Video Information: ?
        AMD Radeon HD 6750M - VRAM: 512 MB
            iMac 1920 x 1080
    System Software: ?
        OS X 10.9.4 (13E28) - Uptime: 0 days 0:16:53
    Disk Information: ?
        ST3120026AS disk0 : (120.03 GB)
        S.M.A.R.T. Status: Verified
            EFI (disk0s1) <not mounted>: 209.7 MB
            Untitled (disk0s2) / [Startup]: 119.17 GB (87.12 GB free)
            Recovery HD (disk0s3) <not mounted>: 650 MB
        HL-DT-STDVDRW  GA32N 
    USB Information: ?
        Apple Inc. FaceTime HD Camera (Built-in)
        CHICONY USB NetVista Full Width Keyboard
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
        Apple Internal Memory Card Reader
    Thunderbolt Information: ?
        Apple Inc. thunderbolt_bus
    Gatekeeper: ?
        Anywhere
    Kernel Extensions: ?
        [loaded]    com.nvidia.CUDA (1.1.0) Support
        [loaded]    com.sophos.kext.sav (9.0.61 - SDK 10.7) Support
        [loaded]    com.sophos.nke.swi (9.0.53 - SDK 10.8) Support
    Startup Items: ?
        CUDA: Path: /System/Library/StartupItems/CUDA
        FanControlDaemon: Path: /Library/StartupItems/FanControlDaemon
    Launch Daemons: ?
        [loaded]    com.adobe.fpsaud.plist Support
        [running]    com.arcsoft.eservutil.plist Support
        [running]    com.bjango.istatmenusdaemon.plist Support
        [loaded]    com.oracle.java.Helper-Tool.plist Support
        [running]    com.sophos.autoupdate.plist Support
        [running]    com.sophos.configuration.plist Support
        [running]    com.sophos.intercheck.plist Support
        [running]    com.sophos.notification.plist Support
        [running]    com.sophos.scan.plist Support
        [running]    com.sophos.sxld.plist Support
        [running]    com.sophos.webd.plist Support
    Launch Agents: ?
        [running]    com.arcsoft.esinter.plist Support
        [running]    com.bjango.istatmenusagent.plist Support
        [loaded]    com.nvidia.CUDASoftwareUpdate.plist Support
        [loaded]    com.oracle.java.Java-Updater.plist Support
        [running]    com.sophos.uiserver.plist Support
    User Login Items: ?
        Macs Fan Control
        Firefox
    Internet Plug-ins: ?
        FlashPlayer-10.6: Version: 14.0.0.176 - SDK 10.6 Support
        Flash Player: Version: 14.0.0.176 - SDK 10.6 Support
        QuickTime Plugin: Version: 7.7.3
        JavaAppletPlugin: Version: Java 7 Update 67 Check version
        Default Browser: Version: 537 - SDK 10.9
    Audio Plug-ins: ?
        BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
        AirPlay: Version: 2.0 - SDK 10.9
        AppleAVBAudio: Version: 203.2 - SDK 10.9
        iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins: ?
        Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    3rd Party Preference Panes: ?
        CUDA Preferences  Support
        Fan Control  Support
        Flash Player  Support
        Java  Support
    Time Machine: ?
        Time Machine not configured!
    Top Processes by CPU: ?
             1%    WindowServer
             1%    fontd
             0%    firefox
             0%    SystemUIServer
             0%    SophosWebIntelligence
    Top Processes by Memory: ?
        229 MB    firefox
        156 MB    SophosScanD
        152 MB    InterCheck
        131 MB    com.apple.IconServicesAgent
        115 MB    SophosAntiVirus
    Virtual Memory Information: ?
        424 MB    Free RAM
        1.53 GB    Active RAM
        1.37 GB    Inactive RAM
        699 MB    Wired RAM
        1.26 GB    Page-ins
        0 B    Page-outs

    I'd start by getting rid of the following software responsible for these extensions.
    Kernel Extensions: ?
        [loaded]    com.nvidia.CUDA (1.1.0) Support
        [loaded]    com.sophos.kext.sav (9.0.61 - SDK 10.7) Support
        [loaded]    com.sophos.nke.swi (9.0.53 - SDK 10.8) Support
    Startup Items: ?
        CUDA: Path: /System/Library/StartupItems/CUDA
        FanControlDaemon: Path: /Library/StartupItems/FanControlDaemon
    Use the uninstaller provided with the Sophos software. You can uninstall CUDA via the preference pane. Be sure you remove the com.nvidia.CUDA extension which is located in the /System/Library/Extensions/ folder. Not sure if Fan Control has an uninstaller so you will have to do it manually:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash.  Applications may create preference files that are stored in the /Home/Library/Preferences/ folder.  Although they do nothing once you delete the associated application, they do take up some disk space.  If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application.  In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder.  You can also check there to see if the application has created a folder.  You can also delete the folder that's in the Applications Support folder.  Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item.  Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder.  Log In Items are set in the Accounts preferences.  Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab.  Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS.  Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.  Unfortunately Spotlight will not look in certain folders by default.  You can modify Spotlight's behavior or use a third-party search utility, EasyFind, instead.
    Some applications install a receipt in the /Library/Receipts/ folder.  Usually with the same name as the program or the developer.  The item generally has a ".pkg" extension.  Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications.  Here is a selection:
        1. AppZapper
        2. AppDelete
        3. Automaton
        4. Hazel
        5. AppCleaner
        6. CleanApp
        7. iTrash
        8. Amnesia
        9. Uninstaller
      10. Spring Cleaning
    For more information visit The XLab FAQs and read the FAQ on removing software.
    Be sure to remove your two Login Items. Finally do this:
    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • I forgot my Apple ID security question answers and cannot contact iTunes support by phone. The only way I can ask for help is via email. How can I make that happen?             Thanks

    Hi! So I haven't used iTunes in a few months but I just got an iTunes gift card and want to make a purchase. iTunes redeemed it just fine but now that I want to make a purchase I am having problems. I can't remember my security question answers and iTunes is requesting them. I have two other verified emails but the are NOT rescue emails. I can't contact iTunes over the phone because my phone lines are out and are going to be out for a long time. The only way I can contact them is by email. How can I do this? Is there an easy way to just reset all my security questions? Please help a girl out. I just want my music!
    Thanks so much

    Alternatives to Reset Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Start here to find your country, and how you can contact Apple:
             Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Support in your country and ask to speak to Account Security.
              Customer Service: Contacting Apple for support.
    How to Manage your Apple ID: Manage My Apple ID

  • I am unable to open new tabs, in any way I attempt to do so. I have checked the settings and they are fine, so it's not those. The only way I can open a new tab is to right click on a link and instruct it to open in a new tab.

    Any way I attempt to open new tabs, be it clicking on the new tab button or using the short-cut Ctrl-t, I am unable to open any new tabs on my browser window.
    The only way I have found that I can open a new tab is to right-click on a link and instruct that link to open in a new window.

    Try disabling the Ask Toolbar extension.

  • The only way I can open a new tab is by right-clicking a bookmarked site and selecting "Open in a New Tab." I can't click on the New Tab + or CTR+T or open via File. WHY?!?

    The only way I can open a new tab in Firefox is by right-clicking a bookmarked site and selecting "Open in a New Tab." I can't click on the New Tab + or CTR+T or open via File. WHY don't the other means work?

    The Ask Toolbar is causing that in the Firefox 3.6.13+ versions. Uninstall that extension.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • Whenever I reply to an e-mail the window comes up but without the paper airplane in the top left corner.  The only way to send the reply is to close it and save as a draft.  Then I can pull it up from Drafts and it has the airplane on it.

    Whenever I reply to an e-mail the window comes up but without the paper airplane in the top left corner.  The only way to send the reply is to close it and save as a draft.  Then I can pull it up from Drafts and it has the airplane on it.

    Launch Mail.
    Click "New Message" in the Toolbar.
    When the new message window opens up, click "View" menu in the menu bar.
    Select "Show Toolbar" from the dropdown.
    or
    Select "Customize Toolbar from the dropdown.
    When the Customize Toolbar sheet drops down, drag  "Send" button
    or  drag "default set" into the toolbar.
    Click "Done".

  • When I click on a link, multiple(and by multiple, I mean a ton) blank tabs open. The only way to stop more blank tabs from opening is to close out of firefox completely. Do I have a virus or do I need to change my settings?

    If I click on something to open in a new tab or click on someone's email to open Outlook, instead of doing that, a bunch of blank tabs open. I'm fine with a couple blank tabs, but they keep opening. The only way to stop the tabs from opening is to close out of firefox entirely. When I try to reopen firefox, blank tabs again begin to reopen. You can't close out of them fast enough because they keep opening. To stop opening the blank tabs, you must restart firefox a second time.
    Is this a virus or something wrong with my firefox settings??

    Firefox includes options of how to handle different content types, in your case the mailto links are probably set to "Use Firefox". For details of how to fix this see [[Firefox keeps opening many tabs or windows]], in particular the section "Change the action for a content type".

  • HT204053 the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    the only way to creat an icloud account is with a ipad, iphone or imac. is it possible to creat the account from my windos PC? i already downladed i cloud, and i have an Apple ID but Not an Icloud account/

    Isa Garduño wrote:
    the only way to creat an icloud account is with a ipad, iphone or imac Apple computer.
    As you already knew, no, you cannot create a new iCloud account from anything but the above devices.
    http://support.apple.com/kb/HT4436

Maybe you are looking for

  • What does this mean... can someone please help me

    Recently I tried to clean up my iMac (Safari) I saw  step by step instructions on Pintrest on how to delete my trashed stuff... after a couple of hours of my PC creating a temp file for all the stuff to be deleted I received the following msg.... I h

  • 3rd Generation IPOD Nano not recognized

    I have two 3rd generation IPOD nanos that are not being recognized by 4 different windows XP systems. One of them is a 4G unit that my daughter has been using for at least half a year. It is not being recognized when plugged into the USB. The other o

  • Getting JTA Error Messages in MII Transaction

    Hi ,            I am using a JTA action block to insert the data in a table. In case this insert statments throws any error (such as primary key violation or column length issue)  I would like to display that error message to the user. Can any one kn

  • Keys Out of Order - Startup Problems HELP!

    Hi I have an iMac G5 running OS10.4.5. It has the following problem: - Wont boot up off internal HD - I get flashing ? alternating with smily mac on folder icon I tried booting up on instal CD and running disk repair, get message "keys out of order"

  • How to end a procedure immediately

    How to end a procedure immediately before it is ended normally when some exceptions that I can't anticipate occur.