Grant role and make it default

Hello all,
I'm facing an awkward situation whit the grant command.
Let's say we have a user some_owner that is granted the role some_role with admin option.
We have a procedure owned by some_owner as follows:
CREATE PROCEDURE "+some_owner"."GRANT_ROLE"
(P_USER IN VARCHAR2
BEGIN
EXECUTE IMMEDIATE 'GRANT some_role TO ' ||UPPER(P_USER);
END;
A user some_user who has execute privilege on the procedure is able to successfully execute the procedure using SQL+ and the role some_role is granted (default = Y) to the user.
However, when the procedure is called from a 10g form, the role is granted (default =N)
Have you ever faced a similar situation?
Thanks in advanse
Joseph

Test first post second.
SQL> CREATE USER john identified by john;
User created.
SQL> GRANT oem_monitor TO john;
Grant succeeded.
SQL> SELECT granted_role,default_role
  2  FROM dba_role_privs
  3  WHERE grantee = 'JOHN';
GRANTED_ROLE                   DEF
OEM_MONITOR                    YES
SQL> GRANT hs_admin_role TO john;
Grant succeeded.
SQL> SELECT granted_role,default_role
  2  FROM dba_role_privs
  3  WHERE grantee = 'JOHN';
GRANTED_ROLE                   DEF
HS_ADMIN_ROLE                  YES
OEM_MONITOR                    YES
SQL> GRANT finrep TO john;
Grant succeeded.
SQL> SELECT granted_role,default_role
  2  FROM dba_role_privs
  3  WHERE grantee = 'JOHN';
GRANTED_ROLE                   DEF
FINREP                         YES
HS_ADMIN_ROLE                  YES
OEM_MONITOR                    YES
SQL> ALTER USER john DEFAULT ROLE ALL EXCEPT finrep;
User altered.
SQL> SELECT granted_role,default_role
  2  FROM dba_role_privs
  3  WHERE grantee = 'JOHN';
GRANTED_ROLE                   DEF
FINREP                         NO
HS_ADMIN_ROLE                  YES
OEM_MONITOR                    YES
SQL> REVOKE hs_admin_role FROM john;
Revoke succeeded.
SQL> GRANT dba TO john;
Grant succeeded.
SQL> SELECT granted_role,default_role
  2  FROM dba_role_privs
  3  WHERE grantee = 'JOHN';
GRANTED_ROLE                   DEF
DBA                            YES
FINREP                         NO
OEM_MONITOR                    YESGranting or revoking roles has no effect on other existing roles. A granted role is always a default row unless you tell Oracle otherwise.
TTFN
John

Similar Messages

  • How do you Customize the weather on the home page and make it default to that setting? I have Customize several times and it keeps changing back to McLean, VA in English

    How do you Customize the weather on the home page and make it default to that setting? I have Customize several times and it keeps changing back to McLean, VA in English.
    [email protected]

    '''''What''''' webpage do you have set as your homepage? <br />
    Are you saving cookies for that page?

  • How to allowed JavaScript in Acrobat Reader and make it default

    Hei,
    I want to allowed JavaScript my Acrobat Reader but I have to always go to edit->Preferences and so on... It has to be done all the time when i reboot my computer. Can I some how make default to my reader. (I know that it risk to allowed that but still I want to do it)
    Thank you for your help!!

    I would try the 'Repair" option, usually under 'Help", and then set the JavaScript option.
    If this is an organization installation, check with your IT help desk to see if they have a policy about this issue.

  • Roles and Workbooks

    Hi,
    How to create a Role and make it available for the end-users so that they can share the workbooks among themselves. Right they are allowed to save only under favourites, which are not visible for all.
    What kind of security or authorisations or setting, that should be done in order for the role to be seen in the query/workbook save window.
    Any help would be appriciated
    Thanks
    Ace

    Hi Ace,
    The roles created for users to save workbooks into are dummy or empty roles. The way this is managed is that workboosk relevant for a group of users are stored under this role, and then the role is assigned to different users accordingly. Usually all users are not given the ability to save into a role. All are allowed to save to favourites and a few can create workbooks and save them to roles.
    As an otion for users not allowed to save workbooks ot roles, yet needing to share them, the workbook can be saved as an Excel file and emailed. The receiver can then log into BW and refresh the data.
    Hoep this helps...

  • How do I install a language XPI globally and make it the default language?

    I am using Firefox on unices and various Linux distributions (the less common ones). Installing Firefox is easy, but it is always in English. I get most of my interfaces (gnome, libreoffice, gimp, etc) in my preferred translation simply by setting the proper locale (export LANG=xy_XY.UTF-8) before starting Xorg. I found and downloaded my preferred language pack for firefox, which comes in an XPI archive. Opening that XPI file in Firefox (via an URL of file:///path/to/file/langpack.xpi) works smoothly, the translation gets installed under the user's own profile and it shows up in the add-ons (under the new category: Languages). Unfortunately, I still see no way in Firefox preferences to set this added translation as the default. Firefox still starts with the English interface. On SeaMonkey, there is a combobox on the Appearance panel that allows me to select the language of the interface from the list of installed/available languages. I cannot find such option on the panels of Firefox. So far, I had to install a language-changer add-on to be able to set the interface to my native locale. Even though my users never need to switch to any other locales.
    Q1., Once a language xpi is installed, how do I set the interface to use that language?
    Q2., How do I install the language xpi and make it the system-wide default, so that all my users see Firefox starting with the native (non-English) interface?
    I found a handful of description for Q2, but they appear to be outdated and do not work. These include the -install-global-extension argument to Firefox, placing the xpi file as it was downloaded into the "extensions" folder, placing the xpi file renamed to the extension ID into the "extensions" folder, unzipping the contents of the xpi into a subfolder of the "extensions" folder named as the extension ID. Please note, these attempts might have failed because I placed the extension NOT where it was supposed to go. The instructions refer to the global extension folder as <installation folder>/extensions, but on my system no such folder exists. Firefox seems to get installed into /usr/local/lib/firefox and there is no "extensions" subfolder there in. However, there is a "browser/extensions" subfolder, but placing my XPI there did not trigger any effect. Also, I manually created the "extensions" subfolder in /usr/local/lib/firefox and moved the xpi there (on various names, unzipped and in a whole) without the expected result.
    Any suggestion is very much appreciated!
    My goal is to install the firefox package, then run something from the command line resulting the non-English translation in the downloaded XPI becoming the system-wide default for all users. A step forward would be to know for certain where that "extensions" folder must be on my specific OS. How do I query that?

    Excellent. These guides got me as far as installing my preferred language pack, which gets added to the add-ons automatically (assuming the user says yes to the appearing question when Firefox is started).
    However, the GUI does not change unless the user enters "about:config" and changes the locale.
    Is there a way to do this from the command line? I mean, changing the locale settings.
    And preferrably for all users. So even when new users get added and they start Firefox the first time, they see it appearing with the preferred locale and not in English.

  • Account Creation - Badi for Default values for BP Role and Sales Area

    Hi all,
    my requirement regards the possibility to create a new prospect (a link should be available in the navigation bar or create section).
    Logically, a bp role as "Prospect" and particoular sales area should be created automatically.
    I created an implementation for the BADI definition "BADI_CRM_BP_UIU_DEFAULTS". But don't know how to create the default values for BP role and Sales area:
    In my code
    assign cr_me->('VIEW') to <lv_view_name>.
      if sy-subrc ne 0.
        exit.
      endif.
      lv_viewname = <lv_view_name>.
      case lv_viewname.
        when 'AccountDetails.htm'.
    I obtain the viewname "AccountDetails" , the related context "Header". After I don't know how to proceed to obtain the related entities through the relationship BuilRolesRel and BuilSalesArrangementRel.
    Am I following the right way? Is there another solution to prepare the output for default values?
    Any kind of suggestion will be appreciated.
    Regards, Roberto

    go to spro>cross-application components>sap busines partner>business partner> basic settings>field groupings>Configure Field Attributes per BP Role
    Double click the business role which you want to customaze (e.g. 'A') and change the proper settings.
    Regards.

  • I want to connect a logitech webcam and make it my default cam

    i want to connect a logitech webcam and make it my default cam

    Hello
    Page 91 of the English PDF User's Guide we may read:
    +• To paste a copy of a formula in a different cell and use the same cell references in both+
    +formulas, place a dollar sign ($) in front of column and row identifiers (=$A$1). This+
    +technique creates what’s called an absolute cell reference.+
    +For example, if the formula =A1 appears in cell D1 and you want to paste a copy of the+
    +formula in cell E1, change the formula to =$A$1, select D1, copy it, and paste the copy+
    +into E1. The formula $A$1 is copied into cell E1. If you didn’t change the formula to use+
    +an absolute cell reference the formula in E1 would be =B1.+
    This is a very old scheme and the User's guide is not complete
    We may use two other kind of cells reference:
    =$A1
    the column would be fixed but the row num would adjust
    =A$1
    the row num would be fixed but the column would adjust
    Yvan KOENIG (from FRANCE mardi 15 janvier 2008 08:52:47)

  • I have OOWriter as my preferred prog.  When open my documents PAGES preempts it and makes changes I don't want.  How do I change my document writer from PAGES as the "default" program? to OOWriter as the def

    I have Open Office Writer as my preferred document program on my MAC.  When I open a document, PAGES intervenes and pre-empts it and makes changes to my OOWriter writen document.  How do I change the default program that opens Open Office Writer documents from PAGES to Open Office Writer?

    Select an OOW file/.doc/docx in Finder > Menu > Info > Open with > browse to OOW > Change all
    Peter

  • Cant seem to make photoshop default to open photos in Windows. Its defaulting to Adobe and I changed settings, still not working

    When I upload photos from my phone to computer Cant seem to make photoshop default to open photos in Windows. Its defaulting to Adobe and I changed settings, still not working. Even when I press preview on photo and they open in windows photo viewer I cannot save the file to my computer. I have Photoshop CS4

    infact both are same only..http://store.apple.com/us/product/MB572Z/B/mini-displayport-to-vga-adapter        "http://store.apple.com/us/product/MB570Z/B/mini-displayport-to-dvi-adapter"

  • Make Messages app show names and pictures by default in groups

    Is there any way to make the Messages app show names and pictures by default in groups? It's kind of annoying to have to set that every time. I'm hoping Yosemite may add this option.

    Hi,
    It should stay set.
    Should be this Menu item.
    To get the options to be dark and usable then Messages window need to be "front".
    The Buddy Names item above is for the name display in the Buddy Lists.
    If it is not sticking then check that you have Read and Write Permissions to the com.apple.ichat.plist in ~/Library/Preferences.
    Since Lion this Folder has been hidden.
    Use the Finder > Go menu > Go to Folder and copy and past the ~/Library/Preferences
    FInd the File then Right click it and chose Get Info.
    In the info Panel, near the bottom, your shortname should appear with (me) next to it.
    You should have Read and Write permissions.
    My version
    7:50 pm      Wednesday; June 25, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to create and grant role

    hello all
    I have created a new database called TEST
    I need to create a role for following purposes
    create table
    read access to all the tables, write access to all the tables that the users created.
    and then i need to connect this role to a user (grant)
    how can i do this
    sample script is much of a help?
    Thanks in advance
    PRash

    As DBA :
    SQL> create role my_role;
    Role created.
    SQL> grant CREATE SESSION to my_role;
    Grant succeeded.
    SQL> grant ALTER SESSION to my_role;
    Grant succeeded.
    SQL> grant CREATE TABLE to my_role;
    Grant succeeded.
    SQL> grant my_role to <your user>;
    Grant succeeded.
    SQL>Same way you can grant other privileges to the role, and the user will automatically be granted.

  • Can I make layers default to the top when I drag and drop into a new folder?

    Can I make layers default to the top when I drag and drop into a new layer folder instead of the bottom? It annoys me that they always go to the bottom and I inevitably always need them at the top.
    Thanks

    Hi there
    ok so PS CS6 if I grab a layer in Group A (yes layer sets sorry) and drop it into Group B, itll put it under anything thats already in Group B, which annoys me! Is there a way of telling PS to default anything dragged from one group to another to default the newly added layers to the top 

  • [svn] 3278: Fix min size for button skin to be 23, 23 and make default size 70,23

    Revision: 3278
    Author: [email protected]
    Date: 2008-09-19 16:49:01 -0700 (Fri, 19 Sep 2008)
    Log Message:
    Fix min size for button skin to be 23, 23 and make default size 70,23
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml

    Revision: 3278
    Author: [email protected]
    Date: 2008-09-19 16:49:01 -0700 (Fri, 19 Sep 2008)
    Log Message:
    Fix min size for button skin to be 23, 23 and make default size 70,23
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/flex/skin/ButtonSkin.mxml

  • Reverse the page turn direction and make it the default

    I want to apply the page turn transition to several clips.  That's no problem, but each turn originates in the northwest corner and ends in the southeast corner.  I want it to be opposite.  I know how to do this for one transition at a time but I'd like it to be the default, so that I can apply it to all the clips and have them already moving the right direction instead of going back to each transition to change the direction.  Is there a way to change the direction of the page turn transition and make that the default?

    Sorry, I should have been more descriptive. I can quickly add the basic page turn to all of the clips in the sequence and about as quickly as selecting each clip and hitting Ctrl+V, I can select each transition and hit the little button that changes the direction.  It's about the same amount of keystrokes, either way and I'm just looking to reduce that. Thanks!

  • SAP instance dies when I try to make a change to the role and save

    Hello Friends
    I am an ABAP and XI guy, but am working on Enterprise Portal.
    I have created an IVIEW (URL) and am trying to associate it with a user and role.  I have created user and then when I try to assign role by clicking on AssignROles and then select a role and try to save, it consistently kills the SAP instance (dm36939 0) and this instance turns to yellow (instead of staying green). I have to restart this again. I have installed ECC and EP on this server and ECC (ABAP programs tables etc.,) works without any problem. EP also works most of the time, but consistently fails at this point as explained above.
    I am not sure if there is any specific settings I should be looking at. Any feedback will be highly appreciated.
    Thanks
    Ram

    NOone responded and so closing here to open it again in a relevant area.

Maybe you are looking for

  • Pixelated images when exporting from Lightroom

    I recently switched from A Windows PC to the MBP Retina 15". I imported photos to lightroom from my external hard drive in RAW format to lightroom, edited then exported firstly as jpeg resized to 630 x 420 at 150 dpi. The images came out pixelated so

  • Enabling automatic file lock in Mountain Lion?

    The Autosave+duplicate+autolock features in lion where one of the best things to ever happen to the operating system. It provided a bit of source control right in the OS. Brilliant. For the first time, people didn't accedentially tromp on old files w

  • NT Backup fail by automatic scheduling Job.

    Hi , I am experience one strange thing that I scheduled windows NT backup tool to make the backup onto my IBM Tape Drive Ultrium (800 GB ) . sometime the backup automatically completed and some time I check and it shows nothing then I  Start manually

  • Can't name folders

    Every few days for no reason I can find, I can't type in a title on a new folder or rename an old folder or document with the keyboard. The keyboard works within applications. A simple restart solves the problem but I would like to know if anyone has

  • Digital editions doesn't open e-book files

    Digital editions will not open a downloaded ebook file. Think it was an acm r something file.