Table of Contents

Search

  1. Preface
  2. Backing Up and Restoring the Data Vault
  3. Configuring Centera as a Remote Data Vault Store
  4. Configuring Data Archive for a Legacy Source Using Legacy Adapters
  5. Data Archive Seamless Access for PeopleSoft
  6. Data Archive Transaction Restore API
  7. Dropping and Truncating Partitions in Data Archive
  8. How to Create Business Rules to Archive and Purge Transactional Data
  9. How to Uninstall Data Archive 5.1
  10. How to Uninstall Data Archive 5.3
  11. How to Use Scripts to Change Database User Passwords in the ILM Repository
  12. IBM DB2 Database Connectivity and Setup for Data Archive
  13. Installing Data Visualization
  14. Integrating Third-Party Schedulers in ILM Engine
  15. Parallel Processing in Data Archive
  16. Seamless Access Configuration for Siebel Applications
  17. Seamless Access Setup for Oracle E-Business Suite
  18. Using the Data Vault Service JDBC Driver to Connect to the Data Vault
  19. Using Multiple Engines in an ILM Environment
  20. Using PowerExchange ODBC Connections in a Data Archive Retirement Project
  21. Discovering Foreign Key Relationships in Enterprise Data Manager

Data Archive How-To Guide

Data Archive How-To Guide

Step 5. Create and Run the drop_data_access.sql Script

Step 5. Create and Run the drop_data_access.sql Script

Create and run a script on the source instance to drop the amarchive and amquery schemas.
Access the source instance and create the drop_data_access.sql script with the following code:
set head off set feed off set pages 0 spool drop_data_access_objs.sql select 'DROP SYNONYM '||owner||'."'||object_name||'";' from dba_objects where owner in ('AMARCHIVE','AMQUERY') and object_type = 'SYNONYM'; select 'DROP VIEW '||owner||'."'||object_name||'";' from dba_objects where owner in ('AMARCHIVE','AMQUERY') and object_type = 'VIEW'; select 'DROP PACKAGE '||owner||'."'||object_name||'";' from dba_objects where owner in ('AMARCHIVE','AMQUERY') and object_type = 'PACKAGE'; spool off PROMPT "Dropping objects, this will take a while ..." @drop_data_access_objs.sql PROMPT "Dropping Users Cascade, not much longer ..." drop user AMARCHIVE cascade; drop user AMQUERY cascade; PROMPT "Data Access Schemas have been Dropped Successfully"