/* OWB 9.0.4 and OWB 9.2 compliant. Assmption: user dump has been created using all defaults (i.e. grants have also been exported). Username and password of user that was exported will be the same as username that will be used for import. If this prerequisite is not fulfilled, then table OWB_ROLE_INFO will need to be updated with encrypted password. */ sqlplus /nolog connect sys/@ as sysdba /* see comment in assumption!!! */ create user identified by default tablespace temporary tablespace / grant select on sys.v_$system_parameter to ; grant select on sys.v_$session to with grant option; grant select on sys.v_$mystat to with grant option; grant select on sys.dba_role_privs to ; grant execute on sys.dbms_lock to ; grant select on sys.dbms_lock_allocated to ; grant select on sys.v_$lock to ; grant execute on sys.dbms_snapshot to ; grant execute on sys.dbms_obfuscation_toolkit to with grant option; grant CREATE DATABASE LINK to ; grant CREATE DIMENSION to ; grant CREATE INDEXTYPE to ; grant CREATE SEQUENCE to ; grant CREATE SESSION to with admin option; grant ALTER SESSION to ; grant create snapshot to ; grant CREATE SYNONYM to ; grant CREATE PROCEDURE to ; grant CREATE ANY PROCEDURE to ; grant DROP ANY PROCEDURE to ; grant EXECUTE any PROCEDURE to ; grant CREATE PUBLIC SYNONYM to ; grant DROP PUBLIC SYNONYM to ; grant CREATE TABLE to ; grant CREATE TYPE to ; grant CREATE VIEW to ; grant CREATE MATERIALIZED VIEW to ; grant CREATE TRIGGER to ; grant global query rewrite to ; grant unlimited tablespace to ; grant CREATE ROLE to ; /* Following statement fails if other OWB repository onwer was created before. */ create role cwmaccess; /* If create role failed, then execute: grant cwmaccess to with admin option ; */ CREATE ROLE OWB_ IDENTIFIED by ; /* i.e. if = OWB904 (password welcome) then this statement will be: create role owb_owb904 identified by welcome */ CREATE ROLE OWBR_; /* i.e. if = OWB904 then this statement will be: create role owbr_owb904 */ grant OWB_ to with admin option ; grant OWBR_ to with admin option ; alter user default role OWB_, OWBR_ ; grant select on sys.v_$system_parameter to OWB_; grant select on sys.v_$session to OWB_; grant select on sys.v_$mystat to OWB_; grant execute on sys.dbms_lock to OWB_; grant select on sys.dbms_lock_allocated to OWB_; grant select on sys.v_$lock to OWB_; grant execute on sys.dbms_snapshot to OWB_; grant execute on sys.dbms_obfuscation_toolkit to OWB_; grant CREATE DATABASE LINK to OWB_; grant CREATE SEQUENCE to OWB_; grant CREATE SESSION to OWB_; grant ALTER SESSION to OWB_; grant create snapshot to OWB_; grant CREATE SYNONYM to OWB_; /* exit SQL plus */ /* Import previously created export file. */ imp /@ /* Import will generate a number of compilation warnings on ALL_IV views. */ sqlplus system@@ exec dbms_utility.compile_schema('',true) connect /@ /* compile all invalid objects, using alter compile */