Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Roles

RE: Roles

From: Deshpande, Kirti <kirti.deshpande_at_verizon.com>
Date: Sat, 22 Sep 2001 10:42:04 -0700
Message-ID: <F001.00395A71.20010922104022@fatcity.com>

It looks like you did not perform a full import from the full export dump file.. else roles would have been created. Now, you can genereate the script to create roles while connected to the source database:
select 'create role '|| role || ';' from dba_roles; Modify it to include passwords, if you have passwords with roles.

Or run the 'strings' command on the exported dump file: strings <DumpFileName> | grep 'CREATE ROLE' | sed 's/$/;/' > role.sql Edit role.sql if needed. Run it against the target database.

HTH, Regards

> -----Original Message-----
> From: Ramon Estevez [SMTP:com.banilejas_at_codetel.net.do]
> Sent: Saturday, September 22, 2001 10:51 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Roles
>
> Hi folks,
>
> Scenario 8.0.5 to 8.1.7.
>
> Testing backup strategies, Murphy's Law, for the 8.1.7 installation of
> tomorrow,
> I made a full export of my DB and made an import in another DB, all the
> data and
> indexes are there, but not my roles.
>
> How do I move my roles to the another DB in order to import or move them
> to my new DB.
>
> How to keep my roles ?
>
> Ramon E. Estevez
> com.banilejas_at_codetel.net.do <mailto:com.banilejas_at_codetel.net.do>
> Dominican Republic
> 809-565-3121
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Deshpande, Kirti
  INET: kirti.deshpande_at_verizon.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Sat Sep 22 2001 - 12:42:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US