Introduction
This technical document contains the instructions used to export an AllFusion Model Manager r7 Oracle database and then import that in another Oracle database. It also includes sample scripts that may be used during that process.
Here are the steps to export and import the AllFusion Model Manager r7 Oracle database:
Import done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set
export client uses US7ASCII character set (possible character conversion)
export server uses US7ASCII NCHAR character set (possible ncharset conversion)
If you encounter this message, you can continue with the import. That message does not present a problem because in Oracle dbms US7ASCII is a subset of the WE8ISO8859P1 (Western European) character set.-- SETS THE USER ID'S FOR AN R7 MART set pagesize 1000 set verify off set feedback off set heading off spool c:\mmsetr7userids.sql SELECT 'update m7user set serveruserid = ' || USER_ID || ' where servername = ' || '''' || USERNAME || '''' || ';' FROM dba_users WHERE EXISTS (SELECT '1' FROM M7USER WHERE servername = username) ORDER BY USER_ID; spool off set heading on set pagesize 24 set verify on set feedback on @c:\mmsetr7userids.sql
set pagesize 1000 set verify off set feedback off set heading off spool c:\mmuser.sql select 'create user ' || servername || ' identified by ' || servername || ' default tablespace USERS' || ' temporary tablespace temp;' || ' GRANT CONNECT TO ' || servername || ';' || ' GRANT MMUSER TO ' || servername || ';' from M7USER order by servername; spool off set heading on set pagesize 24 set verify on set feedback on @c:\mmuser.sqlNOTE: after running this script you will need to fix the user id's as in step 3 above.
-- Run as schema owner, DBA role is NOT required. Thanks.
set pagesize 1000
set verify off
set feedback off
set heading off
spool c:\mmgrants.sql
select 'grant ALL on ' || object_name || ' to MMUSER ;' from user_objects
where (object_name like 'M7%')
and object_type in ('TABLE', 'PROCEDURE','VIEW','PACKAGE')
order by object_name;
spool off
set heading on
set pagesize 24
set verify on
set feedback on
@c:\mmgrants.sql
CREATE PUBLIC SYNONYM -- THIS SCRIPT DROPS ALL THE PUBLIC SYNONYMS FOR an r7 ALLFUSION MODEL MANAGER
-- Please change the name 'MODELMART' to be the name of your Model Manager schema owner
-- before executing.
set pagesize 1000
set verify off
set feedback off
set heading off
spool c:\mmdropps.sql
select 'drop public synonym ' || object_name || ';'
from all_objects
where owner = 'MODELMART' and (object_name like 'M7%')
and object_type in ('TABLE','PROCEDURE','VIEW','PACKAGE')
order by object_name;
spool off
set heading on
set pagesize 24
set verify on
set feedback on
@c:\mmdropps.sql
Now that the Model Manager public synonyms have been dropped, you may go ahead and recreate all of the Model Manager public synonyms using this script: set pagesize 1000
set linesize 2000
set verify off
set feedback off
set heading off
spool c:\mmps.sql
select 'create public synonym' || object_name || ' for ' || object_name || ';'
from all_objects
where owner = 'MMADMIN' and (object_name like 'M7%')
and object_type in ('TABLE','PROCEDURE','VIEW','PACKAGE')
order by object_name;
spool off
set heading on
set pagesize 24
set verify on
@c:\mmps.sql
An Unusually long time to login. delete m7session;
delete m7lock;
commit;
Verify that users can login successfully and you are then ready to begin using the r7 AllFusion Model Manager.Conclusion
Migrating the r7 AllFusion Model Manager from one Oracle database to another involves some details that you need to be aware of and account for. Following the above steps will result in a successful migration. If you do encounter any questions or difficulties, please contact Technical Support for assistance.