change the default user role

How to write a simple sql to add additional default roles to the user to modify instruction user.

for example: I u user with default roles r1, r2...
I now want to give default role r3
If I change user default roles r3 u
R1, r2 will be gone from the default role.

I want to write a simple/sql script to do some of this database.
I don't know what are the default roles already exists for this user.

Published by: Phani_Orcl on September 28, 2010 06:01

You can run dynamically the output from the following statement:

SQL> SELECT 'ALTER USER ' || username || ' DEFAULT ROLE ' || wm_concat (granted_role) || ', SOME_NEW_ROLE' stmt
    FROM user_role_privs
   WHERE username = USER AND default_role = 'YES'
GROUP BY username
/

Tags: Database

Similar Questions

  • OIM11g how to change the default user search results?

    oim11.1.1.5.4

    The user admin Console.
    Tap of the administration, is the default value for user search results: display name. How can we change it other attributes, such as user login?

    TIA
    GA s/n

    Go to advanced--> user--> Actions--> the Configuration Configuration search--> search Simple: Serach attributes...

    In this display name is selected first and foremost... You can delete display name, first name and family name and leaving the user only login...

  • How to customize the default user profile in Windows 7?

    I changed all my preferences for how I want the start menu, background etc to look at, and I wish that every new user to have the same look. Can I change the default user profile?

    Can of course. Try this:
    1. turn your environment exactly as you wish.
    2. restart the computer in Mode safe.
    3. log on as an administrator.
    4 rename the c:\Users\Default user c:\Users\Default User.org folder
    5. rename the folder c:\Users\Phil c:\Users\Default user (assuming that "Phil" matches your profile folder).
    6. give everyone read access to c:\Users\Default user
    7. create a new account, and then sign under this account to test.

  • Change the default Safari user agent string

    When you use Safari, I can change the user agent string value if I visit a single website with the menu expand, but how can I change the default of it so that all Web sites get the same value I put above

    It is possible. Here is an example: https://jamfnation.jamfsoftware.com/discussion.html?id=15642

  • change the default location of the application

    I installed an SSD and put my system on it. I don't want not used for applications or documents. How can I change the default values of systems use applications and the doc in my HARD disk drive?

    If you move the Applications folder on the SSD, then this means that your applications load more slowly. Leave it where it is.

    How to use an SSD with your HARD drive


    If you want to use an SSD as boot with your existing HARD disk drive, as the disk 'data', here is what you can do.

    After installing the SSD, you need to partition and format the SSD using disc utility disc. Then install OS X on the SSD. Once installed OSX boot from SSD. Startup disk preferences to set up the SSD as the boot volume.

    Open the preferences users and groups. Click the lock and authenticate you. Or CTRL - RIGHT click on your username account list in the sidebar and select Advanced Options in the context menu. You will see a field called "Home dir: ' on the far right, you will see an Edit button. Click on it. In the file dialog box, navigate to the location in house now located on the HARD disk (disk HARD/users/user_name /.) Select the folder, click the Open button. Restart the computer, as shown. When the computer starts, it will now use the home located on the HARD drive folder.

    Another more technical method involving the Terminal and the alias is discussed in depth here: using OS X with a SSD and HDD - Matt Gemmell configuration. It's my preferred approach because I can choose which records of the House, I want to on the HARD drive and I don't want to. For example, I like to keep Documents and library files on the SSD because I frequently access their content.

    Make sure that you keep the bootable system entirely on your HARD drive where you need it.

  • Finder keep it open the file even after I change the default folder

    I have the problem with the default folder in the finder.

    A few months ago, I changed the default folder from the finder to a specific folder. Now, I want to change to the new folder. I already go to finder > Preferences > General > new poster finder window and change the folder, but whenever I click on the finder on the dock for the first time, keep the change back to the old folder. What should I do with this?

    Thank you for the help

    HI there Alia80,

    Looks like you set your Finder preferences to open a specific folder when you open a new window, but it seems to keep coming back to what it was previously set to. I would first start safe mode and if some system-level caches can be erased, and a check disk and repair is done automatically:

    Try safe mode if your Mac does not end commissioning

    Follow these steps to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Once you log in safe mode, let him by making a normal restart and test the issue again.

    If it persists after this test this point in a new admin on your computerand user let me know what is happening there:

    OS X El Capitan: set up users on your Mac.

    Thank you for using communities of Apple Support.

  • Can I programmatically change the default property to create for all elements of the front panel?

    Can I programmatically change the default property to create for all elements of the front panel?

    I need to make the logout button, when click on, takes care of all the default values of my fron Panel.

    There is no way to programmatically call the functionality of an editor 'Use default' or 'Load Default'. To do it yourself, you will need to write your default values for each control explicitly in the diagram, when the user press the logout button.

  • Change the default download location.

    Original title: change defalt data storage

    I have 2 drives 1 big and 1 much more small. the smallest is my c drive witch that everything is downloaded to by defalt. How can I get windows to download on my other drive and leave my most 1 for sys tips and equipment only.

    Hello

    What program you use to download anything on the internet? Internet Explorer?

    In internet explorer 8 when you download files, Windows usually saves in the downloads folder, which is located under your user name in the users folder on the drive where Windows is installed (for example, C:\users\your namepersonal). When you save the file, you can choose to save it in a different folder. By default, some file types are saved in different folders. For example, if you right click on an image on a Web page and choose Save the image as in the menu, the image will be saved in the default pictures folder. If you don't know where the file has been saved, you can search for it in the start menu.

    Registry warning:
    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows:http://support.microsoft.com/kb/322756

    However, you can try the underside of measures that could help.

    1. Click Start-> Run-> typeregedit and enter
    2. Go to HKEY_CURRENT_USER\Software\ Microsoft\ Internet Explorer
    3. Double-click thedownload directory on the side panel right.
    4. Now in the window channel enter the path, where you want to save the files by default.
    5. Click theOK button.
    6. Restart the computer.

    Ininternet explore 9 beta , you can change the default location.

    Here's how:

    a. open internet explorer 9.

    b. click onTools , then select view downloads.

    c. downloads for window, clickOptions.

    d. now, enter the default download location and click on the OK button.

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Change the default DPI for scanning in paint

    How can I change the default values for scanning for painting so that each scan is 300 dpi?

    I'll give you an answer. What the interrogator does not understand, is that MS Paint does not have a setting for the CIO. There is no default DPI setting in MS Paint. The setting is controlled by the scanner driver or scanner itself. MS Paint simply communicates with the driver for the scanner, which then continues to do the analysis, then once completed, he hands the digitized data back to MS Paint. Therefore, the parameters of the interrogator wants to know how to change are not in MS Paint. they are in the driver scanning interface. This driver determines how he manages the parameters after returning the scanned data to the connection/disconnection of call program, in this case MS Paint. Most of the drivers scan all right back to their default value. In the case of the user, it's 100 dpi, but another scanner, this could be 150dpi (common with many scanners a few years back), and by default most recent scanners often at 200 dpi. After scanning, you need to change the defaults anywhere from new, because once the scanner driver handed the scan back data to the calling program, it is no longer in communication with her. It doesn't matter whether you use MS Paint, Picasa, IrfanView, or any other program that connects to the scanner TWAIN. If you start with a scanner that has a default of 300 dpi, you would have thought that it was a question on. You can not insistent that no one answered your question if it is based on the wrong premise at first.

    Some scanners allow control of the scanner itself. I use a HP (all-in-One) printer/scanner combination. I can configure default to the control panel of the printer/scanner at 300 dpi or whatever value I want; I often put it at 600 dpi. Then I can scan directly from the scanner/printer and still get 300/600 dpi scans. By default the program to manage the registered file type determines which program will be executed when the image is sent to the computer. It could be MS Paint or IrfanView or whatever. Very often, I send the scans on a SD card on the printer instead. When I'm finished, I have a SD card with images scanned at 300 dpi that I take to another computer. Because the scanner/printer has been set to use 300 dpi by default, MS Paint, IrfanView or any other program that launches a scan will get also 300 dpi scans.

    What the questioner needs is a scanner which allows its default value to or one that is default to 300 dpi in a first time. If you try a new scanner, you will find that the parameters does not return to 100 dpi, but instead has regardless of the definition of the scanner as default.

    Given that most of the pilots to simple scanner always return to the default devices, and in this case, setting this parameter scanner is only 100 dpi, you can use a software that is specially designed to solve this program with its own resolution settings. An example is called "search". In its interface, you choose what the desired resolution, then when it communicates with the scanner, he deals with the change in the value whenever a scan is requested.

    If you use color or grayscale is a separate choice outside the DPI setting. Some scanners can scan to a different resolution for shades of gray than they do for the color. Nevertheless, the problem and the solution is the same.

  • Changing the default settings for printing in Office Picture Manager

    Anyone know how to change the default setting for printing in Office Picture Manager?

    I have a user who clams that when they try photo printing settings in Office Picture Manager has been configured to print bac2 and paper 4 x 6.  Now when it prints, it must use the drop-down list boxes to tell it to print from bac2 and paper 4 x 6.
    I changed the default settings of the printer to print from the bac2 and use paper 4 x 6, but they must still use the drop-down list boxes in Picture Manager.
    Thank you!

    Although I maded the changes to the properties of the Windows printer I had to do that to solve the problem.

    To solve the problem:

    1. once in the print of the image window there is a link 'Options '.... "at the bottom right.

    2. once it's a click a print settings window that opens there. You will need to click on the link 'printer properties '.

    3. now the printer Document Properties window appears. Change of Source paper and media here.

    4. click on the OK button and now it's good to go.

  • How to change the default program for zip. files from windows file opener?

    Accidentally, I changed the default setting of the program for ALL my zip. files to itunes, and now I can not open them anywhere!

    How can I change back so that I can open it with the windows file opener?
    Thank you!!

       

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).

    Regedit

    Access

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.zip\UserChoice

    and delete the key of the user's choice.

  • Change the default audio device and the recognition of the application

    I'm new to Vista (home premium w/sp2) and I am confused by works the assignment of default device (control_panel-> sounds), specifically the device change with existing applications (running).

    I change frequently between the speakers and the headphones - however, the change of output device is not recognized by running applications, such as iTunes or Firefox and will not be recognized until I have completely quit and restart the application.

    Why?  It is extremely annoying and incoherent other well educated such as Mac OS X platforms.  I would just like to change the default audio output device, on the fly, without the need to restart applications.

    I do something wrong or Vista offers this functionality to the end user?

    Thank you!

    Hello Wyntr,

    Thank you for using the Microsoft answers Forum.

    Currently, the function of switching between audio output devices is carried out manually. To make the selection, you can click the sound icon in the taskbar, then click the button at the bottom of the volume control Mixer. In the properties of the volume, you can click on devices in the upper left corner and select the appropriate device to make it the default for applications open from then on.

    Let us know if this can help, or if you have additional questions on this subject.

    Judd
    Engineer Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • How to change the default directory names in Vista?

    I want to change my default directory:

    'C:\Documents and Settings\\My Documents' to 'C:\Documents and Settings\\My Documents.

    Hi kdukes1,

    There is no way to change the default directory of the user account name you mentioned since it is the design.

  • Can we change the default image in JPG format in windows 7

    Hi all

    Our problem is that many users make a screenshot and paste it into an email.

    Our standard company is in outlook rich text format, and so if a user paste a screenshot in the mail it will be great because it's a PNG image.

    I try to educate our users to save screenshots in jpg format and more attached to the post, but I would like to ask, if it is a solution to change the default png to jpg format?

    Thanks for your replies!

    Respect,

    Akos

    Hi Akos,

    There is not really a way taken in charge for you to achieve this goal. However, there may be a 3rd party option that would only achieve this by changing the registry values in Windows.

    However keep in mind that using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Change the default language of the system from Spanish to English

    I'm going on a trip and had to buy a new computer to the Mexico.  It came with Windows 7 Edition Home Premium and I tried to change the default language of the Spanish Englishthrough the control panel system, but he would not accept the change.  I don't speak Spanish and you need to use the laptop in the Canada and the United States.  Reading here, it seems that I need to buy Windows 7 Ultimate, however, the only version available is the full version, which is limited to activation in America Latin/Caribbean and she seems to be in Spanish as well.  It'll work for me or what should I do in order to get up and running in English?

    To install a different language - MUI (MUI) - you must have Windows 7 Ultimate. If you do not have Ultimate you can do an Express upgrade to ultimate.

    Anytime Upgrade to Windows 7 Ultimate
    Type of upgrade Express in the box files and research programs in the start menu and click the Windows Anytime Upgrade.  From there, you can buy an Express Windows 7 Ultimate upgrade. Then you can enter your Express Upgrade product key and perform a simple upgrade to Windows 7 Ultimate, this is why you can install a different language.

    If you are in Australia, Belgium, Canada, France, Germany, Italy, Japan, Netherlands, Spain, Sweden, Switzerland, the United Kingdom and the United States, you can use anytime upgrade. If this isn't the case, you will need to buy Windows 7 Ultimate, or buy Windows 7 in the language you need.

    http://Windows.Microsoft.com/en-us/Windows7/products/Windows-Anytime-Upgrade

    Install new MUI (MUI) in Windows 7 Ultimate:

    1. start-> all programs--> Windows Update--> optional updates.
    2. open the optional updates and go to the Windows 7 language packs.
    3. check the MUI (MUI) you want and click OK
    4. proceed to updates

    How to change the display language for Windows 7:

    1. go to start-> Control Panel-> clock, language and region / change the display language
    2. turn the display language in her choose a view list drop-down language.
    3. click on OK
    4. disconnect you before the changes take effect (this will affect only the user profile under which you are logged).

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

Maybe you are looking for

  • HP p6709c: the gpu upgrade

    Hi so I bought recently an Asus GeForce gtx 950, I also change the power supply to a cx600 corsair, however the issue I'm having is after plugging everything in my computer seems to freeze at the hp logo. I read somewhere that I have to disable secur

  • HP ENVY m6 1206 TX: cannot start Windows (8.1)

    The other day I wanted to turn my computer off and let it, because I was in a bad mood and wanted to get awy and do something else. But when I went to click on update and stop, I clicked on update and restart. I more wanted to leave everything to res

  • Cannot get DTS/multi channel audio via HDMI

    HelloI'm trying to connect my VAIO SVT15112CXS to my Bravia HDTV via HDMI to get multi-channel audio (DTS/DD) from my Bravia HT (connected to the TV via optical) with no luck at all. I have the same setup for PS3 works well, is it cable or equipment.

  • Update KB2779562 installation problem?

    Why do I get error message when you try to install the KB2779562 update... WHY CAN'T I INSTALL IT?

  • OfficeJet 6500 more: how to print from a program back on Officejet 6500 more?

    On the old laserjet, I could open the printer as a file in a back program and send lines to print.  Is it possible to do it on the Officejet 6500 Plus?