13.07.2015 Views

CA ERwin Model Manager Implementation Guide

CA ERwin Model Manager Implementation Guide

CA ERwin Model Manager Implementation Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Reindex the DatabaseExample: Oracle DBMS Reindex ScriptAn example of the Oracle dbms reindex script (MMReIndex.ora):------------------------------------------------------------------------------------ Object: MMReIndex.ora-- Desc: Use this Procedure to ReIndex the MM ORACLE Repository whenever a-- Merge/Save of big model is done to MM-- Limitation(s) is specific to Oracle Releases >= 817-- For ORACLE DBMS < 8i Modify the script to Use NOPARALLEL-- NOTE: You will need to change MODELMART to the <strong>Model</strong> <strong>Manager</strong> schema owner name.-- You will need to change MMINDEX to the <strong>Model</strong> <strong>Manager</strong> index tablespace.-- Oracle indexes are not self-balancing. They become fragmented after a large-- number of INSERTs and DELETE which may lead to significant performance degradation.-- This script rebuilds the <strong>Model</strong> <strong>Manager</strong> indexes and cures them.-------------------------------------------------------------------------------------set pagesize 1000set linesize 2000set verify offset feedback offset heading offspool c:\mmreindex.oraSELECT 'ALTER INDEX ' || USER || '.' || INDEX_NAME ||' REBUILD PARALLEL NOLOGGING COMPUTE STATISTICS TABLESPACE MMINDEX;'FROM DBA_INDEXESWHERE OWNER = UPPER ('MODELMART')AND (INDEX_NAME like 'XPK%' or INDEX_NAME like 'XAK%'or INDEX_NAME like 'XIE%')order by index_name;spool offset heading onset pagesize 24set verify onset feedback on@c:\mmreindex.ora/72 <strong>Implementation</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!