want to take some 'CREATION Script' for all existing roles in DB.

Hi all

I want to take all existing roles in DB "Script of CREATION".
Please give me the script to generate if you or suggest any link or doc.

Oracle 10G

Use this-
Select "select dbms_metadata.get_ddl ('ROLE'," ' |) " ROLE | " ') || Chr (10) | "/" double; »
from dba_roles
/

Please be aware subsidies will not come within the definition

If you like the answer so don't forget to give points

Tags: Database

Similar Questions

  • I want to add glyphs like ², but for all the numbers. How can I do this?

    I want to add glyphs like ², but for all the numbers. How can I do this?

    Oh cool, I just had to use a different font

  • How to run a script for all the images in a folder?

    How to run a script for all the images in a folder?

    You can assign your script to an action, then use processor by batch or image with the option apply to all subfolders.

  • I want to download the HTML code for an existing site, and then revise in Muse. Is this possible?

    I want to download the HTML code for an existing site, and then revise in Muse. Is this possible?

    An existing site HTML files can be reused in Muse as Muse only works with files having the extension as .muse.

    However, you use apps like Dreamweaver to edit your existing HTML files.

  • When you add a new site, Keychain prompt for all existing sites

    With 2015 CC update, when I add a new Dreamweaver site, as soon as I hit him "done" once all the ftp information is entered, I get a prompt Keychain for each existing site, I saved in Dreamweaver: "Adobe Dreamweaver CC 2015 wants to use your confidential data stored in 'Sitename-SiteServer 1' in your keychain. You want to allow access to this point? »

    I was well with crossed the first steps, assuming it wouldn't ask me once again, but he does. Every time.

    By clicking on 'Always allow' vs. 'Allow' does not seem to do much, but I don't want to test it a lot because I have to go through 80 + sites every time to see if it changes anything.

    Any experience with this? Is it a thing of access door key or a thing of Dreamweaver?

    The note of the problems at the FTP credentials won't be remembered is NOT my problem. All credentials are stored; I can switch between all sites without problem, or any guest. This happens only when I add a new site.

    Any help would be greatly appreciated!

    Dreamweaver CC 2015

    Screen Retina MacBook Pro mid 2012
    Yosemite 10.10.3

    This will help to get rid of it helps Dreamweaver | Set up a test server

  • By default the favorite and update bookmarks later for all users

    Hello.
    I run FF 31.2.0 ESR and I'm looking for a way to define some default bookmarks for all existing and new users. And if necessary, I want to update in the future.
    And I want that users can customize their bookmarks. But a few (about 5) bookmarks/links should be for the admin editible where the link changes.
    Someone at - it an idea? How can I do? Is it possible to create a 'public' bookmarks file with these 5 links, which will be imported at each start of FF and merge to the list of bookmarks private profilebased?

    See:

  • expdp for all dates earlier or equal to 31/03/2009

    Good morning gurus,
    I created a copy of my production for migration on different server. We have windows 2003 and oracle 10.2.0.4.I created a schema ivs2_prod (metadata_only) thru expdp/impdp and now want expdp/impdp some data tables for all dates prior to or equal to 31/03/2009 11:59:59.I don't see any option in this utility to do this. You gurus can help me with the solution for this.
    Kind regards
    Deepa

    Deepa,

    Use the settings file instead of using the query on the command line option, if you want to use the query option on command that you escape ' \ ' to correctly format the query. Try this and it should work

    #mytest.par

    query="where collectiondate <= to_date('2009-03-31 11:59:59','YYYY-MM-DD HH24:MI:SS')"
    

    Datapumpt export

    expdp username/pwd@prod directory=DATADIR1 dumpfile=expcollections_tab3 tables=collections_tab3 logfile=collection_tab3.log content=data_only parfile=mytest.par
    

    Concerning

  • I couln can't find the dbmshptab.sql script for

    I would likle to use Profiler hierarchical. In order to use it, I need to run below script. However, I couln t find anywhere I searched the table object DBMS_HPROF package, there are in db. You have an idea how I can run this script? In this case there is not in my computer can I download it anywhere?

    Note: I am using windows 7

    @$ORACLE_HOME/rdbms/admin/dbmshptab.sql
    select * from all_objects where object_name = 'DBMS_HPROF';
    
    SYS     DBMS_HPROF          10581          PACKAGE BODY     01/11/2007     01/11/2007     2007-11-01:21:00:04     VALID     N
    SYS     DBMS_HPROF          7480          PACKAGE     01/11/2007     01/11/2007     2007-11-01:20:55:24     VALID     N
    PUBLIC     DBMS_HPROF          7481          SYNONYM     01/11/2007     01/11/2007     2007-11-01:20:55:24     VALID     N
    
    
    select * from v$version;
    
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    "CORE     11.1.0.6.0     Production"
    TNS for 64-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    Thanks for your help.
    Rem
    Rem $Header: dbmshptab.sql 30-jul-2007.13:07:41 sylin Exp $
    Rem
    Rem dbmshptab.sql
    Rem
    Rem Copyright (c) 2005, 2007, Oracle. All rights reserved.
    Rem
    Rem    NAME
    Rem      dbmshptab.sql - dbms hierarchical profiler table creation
    Rem
    Rem    DESCRIPTION
    Rem       Create tables for the dbms hierarchical profiler
    Rem
    Rem    NOTES
    Rem      The following tables are required to collect data:
    Rem        dbmshp_runs
    Rem          information on hierarchical profiler runs
    Rem
    Rem        dbmshp_function_info -
    Rem          information on each function profiled
    Rem
    Rem        dbmshp_parent_child_info -
    Rem          parent-child level profiler information
    Rem
    Rem      The dbmshp_runnumber sequence is used for generating unique
    Rem      run numbers.
    Rem
    Rem      The tables and sequence can be created in the schema for each user
    Rem      who wants to gather profiler data. Alternately these tables can be
    Rem      created in a central schema. In the latter case the user creating
    Rem      these objects is responsible for granting appropriate privileges
    Rem      (insert,update on the tables and select on the sequence) to all
    Rem      users who want to store data in the tables. Appropriate synonyms
    Rem      must also be created so the tables are visible from other user
    Rem      schemas.
    Rem
    Rem      THIS SCRIPT DELETES ALL EXISTING DATA!
    Rem
    Rem    MODIFIED   (MM/DD/YY)
    Rem    sylin       07/30/07 - Modify foreign key constraints with on delete
    Rem                           cascade clause
    Rem    kmuthukk    06/13/06 - fix comments
    Rem    sylin       03/15/05 - Created
    Rem
    
    drop table dbmshp_runs                     cascade constraints;
    drop table dbmshp_function_info            cascade constraints;
    drop table dbmshp_parent_child_info        cascade constraints;
    
    drop sequence dbmshp_runnumber;
    
    create table dbmshp_runs
    (
      runid               number primary key,  -- unique run identifier,
      run_timestamp       timestamp,
      total_elapsed_time  integer,
      run_comment         varchar2(2047)    -- user provided comment for this run
    );
    
    comment on table dbmshp_runs is
            'Run-specific information for the hierarchical profiler';
    
    create table dbmshp_function_info
    (
      runid                  number references dbmshp_runs on delete cascade,
      symbolid               number,               -- unique internally generated
                                                   -- symbol id for a run
      owner                  varchar2(32),         -- user who started run
      module                 varchar2(32),         -- module name
      type                   varchar2(32),         -- module type
      function               varchar2(4000),       -- function name
      line#                  number,               -- line number where function
                                                   -- defined in the module.
      hash                   raw(32) DEFAULT NULL, -- hash code of the method.
      -- name space/language info (such as PL/SQL, SQL)
      namespace              varchar2(32) DEFAULT NULL,
      -- total elapsed time in this symbol (including descendats)
      subtree_elapsed_time   integer DEFAULT NULL,
      -- self elapsed time in this symbol (not including descendants)
      function_elapsed_time  integer DEFAULT NULL,
      -- number of total calls to this symbol
      calls                  integer DEFAULT NULL,
      --
      primary key (runid, symbolid)
    );
    
    comment on table dbmshp_function_info is
            'Information about each function in a run';
    
    create table dbmshp_parent_child_info
    (
      runid                  number,       -- unique (generated) run identifier
      parentsymid            number,       -- unique parent symbol id for a run
      childsymid             number,       -- unique child symbol id for a run
      -- total elapsed time in this symbol (including descendats)
      subtree_elapsed_time   integer DEFAULT NULL,
      -- self elapsed time in this symbol (not including descendants)
      function_elapsed_time  integer DEFAULT NULL,
      -- number of calls from the parent
      calls                  integer DEFAULT NULL,
      --
      foreign key (runid, childsymid)
        references dbmshp_function_info(runid, symbolid) on delete cascade,
      foreign key (runid, parentsymid)
        references dbmshp_function_info(runid, symbolid) on delete cascade
    );
    
    comment on table dbmshp_parent_child_info is
            'Parent-child information from a profiler runs';
    
    create sequence dbmshp_runnumber start with 1 nocache;
    

    See you soon,.
    Manik.

  • How to add systemic preferences in RHEL which will enter into force for all profiles.

    I used the following documentation trying to accomplish my task:
    https://developer.Mozilla.org/en/A_Brief_Guide_to_Mozilla_Preferences
    https://developer.Mozilla.org/en/Automatic_Mozilla_Configurator/Locked_config_settings

    I want to add the proxy settings for all users, including those who already have profiles. I tried adding greprefs/all.js directly, using a mozilla.cfg file, all exactly as in documents. But none of these things make a difference. Any here there would be so MUCH appreciated!

    I use the last RHEL5.5 and 3.6.13.

    See http://kb.mozillazine.org/Locking_preferences

    With the help of mozilla.cfg in the program directory Firefox should work.

    Have you used a 13 byte offset to encode mozilla.cfg?

    What is the content of the mozilla.cfg not coded?

  • How to change the password for all users in the database

    Hi buddies!

    Could someone tell me how to change the password for all users in the database? I want to set the same password for all users.

    Thank you.

    Nith

    Published by: user645399 on March 1, 2011 14:23

    Write the file spooling
    as

    Make sure that all profiles has password_verify_function with a NULL value

    then

    Select 'edit user' | username: ' identified by ;' from dba_users;

    you will get the output... you just run.

  • Change the calendar of activities for all activities at the same time?

    New who has yet to P6, learners I'll...
    I would like to change the schedule of activities - for all existing activities of schedule - and I would like to change the world without having to go through the line of sched.
    Is this possible?
    I have a problem with other areas, such as Type of duration.
    I'll keep looking, but... any help appreciated.
    Thank you.

    Published by: 929681 on June 14, 2012 07:10

    No need to bother with global change. The column for the calendar, for example. Change the top of the calendar page activity, you need and fill down. You can do the same for primary constraint. It is much easier that unravel the global change.

    Concerning

  • If Im pretty well shut down all my freelance work now that my job is very time consuming so I need is no longer the creative suite on my laptop, but my wife who is a teacher, he needs. We want to take advantage of the lower prices for teachers and studen

    If Im pretty well shut down all my freelance work now that my job is very time consuming so I need is no longer the creative suite on my laptop, but my wife who is a teacher, he needs. We want to take advantage of the lower prices for students and teachers are so I remove all and close my account and start a new account etc. under my married name?

    Hi Jason,

    You can contact Adobe sales.

    Contact us | Adobe

    It could be useful!

    Rayyan

  • I started to develop some keyboard problem checked for all solutions could not.

    I started to develop checked for all the solutions found no keyboard problem. I realized that my net work is tahen above and my files diverted that I get these links of text by people representing miceosoft, promising new computer, employment and they reformatted my windows from vista to 7 and said that my reward .they have to my media my setings channged al and obtained the list of my contacts by sending them the meseges. Send me micro soft web pages which later changed in sofamicro. I'm afraid to use any String with soft micro logo on it .i ned help please, my our user at my items folders and emails al ben reset my key board break some keys and few of them do not work, the poster to the conection USB keyboard device manager there is corruption. Norton report ip who took the relay from my computer... I am the only user of this model as administrator, but the net work listed others that I can't remove, this AI out of this world, al tools that they could use to place these links and ask me click on a such that they were the ms Tech

    I do not understand some of your words.

    • 'stached"--> home?
    • "delwtwd"--> deleted?

    Assuming that I got those right, the answer is not much sense yet.  Take a deep breath, take your time and use simple language with common punctuation.  Type slowly.  Your hands are going faster than your mind and makes it hard to follow.  Don't make things worse by getting over excited.  ;-)

    What I tell you (based on the original post and now this response), this is your best course of action with your horribly hacked and infected system should all erase and start over - disconnecting the network while you do this to your computer.  If you have a USB and there are some select files/folders you want to have no EXECUTABLE in them - copy those turned off.

    You should probably reset each password you have for each account that you have as well – each of them.  Anywhere - Internet, etc.

    You may want to also likely reset everything router you might have that connect you to the Internet if there is a custom configuration - as they have probably your router pirate as well - giving them a back door at least in your network.

    What you have presented I can assume only you have been scammed.  They have probably used something like VNC or TeamViewer and your willingness to participate to take complete control of everything you have on your computer and possibly connected to your network.

    If it is a business network - disconnect your computer it immediately and contact your it Department and let them know what you think.

  • Hi, windows 7 Disk Defragmenter problems daily schedule set for all discs, never happens, it sometimes takes weeks

    Hi, windows 7 Disk Defragmenter problems daily schedule set for all discs, never happens, it sometimes takes weeks. Have a disk busy on the farm that is used for the storage of video surveillance. When I realize the performance issues, I check and find tht 'daily' Setup for MS disk defragmentation is not in fact run every day. I am watching silent movies and waiting for a 500 GB drive to effectively defragment, pass it is on average 1 percent per minute (with any other IO goes on the disc and app collection closed).

    There must be (I hope) a flag I can put to Disk Defragmenter to be more aggressive in its analysis.

    It is Windows 7 64 bit running on AMD processors, disks are sATA plugged in, although there is also a matrix RAID PCI Promise, it's usually when I started Hello I/O on the Board of 2 TB or utilization of the 'C', I realize the lack of defragmentation. I recall, before the SP1 under WIN 7, he ran on a daily basis, in fact, rather than an API algorith "guess".

    System is in place 24 x 7 (I turn off the monitor at the time of sunset), there is no "powersaver" feature used on this particular device. I edited my original question because after many years of support, I realized, by asking the initial question, that I was not providing information that I would be asked a customer, if I was still doing this job.

    Kind regards

    Lorin Boyack

    Hello Lorin,

    There are several reasons why the built-in Defragmenter may not work correctly:

    Method 1: He is also a malware on the system. Solution: Run an anti-virus control and also a spyware check.

    I suggest you scan your computer with the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Important: During the scan of the hard drive if bad sectors are found, the scanner tries to repair this sector, all available on which data may be lost.

    Method 2: The disk is too full (you need at least 15% free space, sometimes 20%). Solution: Delete files unnecessary and programs until you have more than 20% free space.

    Delete files using disk cleanup

    http://Windows.Microsoft.com/en-us/Windows7/delete-files-using-disk-cleanup

    Method 3: The disc is damaged and must be repaired. Solution:

    a. open "Computer" and right-click on the drive that you want to disable frag.

    b. Select 'Properties' and click on 'tools '.

    c. Select "Check now" to check the drive for errors.

    d. Select the two options and click on 'start '.

    Check your hard drive for errors

    http://Windows.Microsoft.com/en-us/Windows7/check-your-hard-disk-for-errors

     

    Important: While running chkdsk (check disk) hard disk, if bad sectors are found on the hard drive when chkdsk attempts to repair this sector, the data available in this area may be lost, and it is not recoverable.

    (This can take time and can restart the PC so that it can do the check at boot time. Be patient and let it complete).

    Method 4: Disk Defragmenter may be corrupted, requiring a system restore to fix.

    System restore

    http://Windows.Microsoft.com/en-us/Windows7/products/features/system-restore

     

    NOTE: When you use system restore to restore the computer to a previous state, the programs and updates that you have installed are removed.

    Method 5: There are other programs that are running this interruption, the built-in Defragmenter. Solution:

    a. close all running programs.

    b. If you think there may be some programs that run in the background.

    c. press Ctrl + Alt + Delete and

    d. Select "start Task Manager".

    e. under the 'Applications' tab, you will find a list of all running applications - you can close these by selecting "end task."

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • is there a way to tell firefox allow and remember the java plugin for all users via the command line or a script?

    Hello

    I have about 200 computers I want to push the next to parameter

    allow and remember the java plugin for firefox for all users
    

    is it possible to do this via a script or configuration file?

    You must create two files in the Firefox program folder.

    • local - settings.js file in the defaults\pref folder where you will find the channel - prefs.js
    • mozilla.cfg in the main folder of the Firefox program

Maybe you are looking for