clean up script

Download Clean Up Script

If you can't read please download the document

Upload: rammohan845042

Post on 28-Dec-2015

41 views

Category:

Documents


11 download

DESCRIPTION

to clean content store databse

TRANSCRIPT

Weve run the DROP_NC script in an attempt to resolve scheduled reports staying in executing status even though theyve completed and to resolve the email issues. (Ran 11/22/07 4:28 4:31)Run Database Cleanup Scripts In some troubleshooting situations, you may be advised to start with new configuration data.You can run an SQL script to delete all the tables in any of the following databases that Cognos 8 components use: content store for data that Cognos 8 needs to operate delivery database for report notifications log database for log messages metric store for metric package content and Metric Studio user preferencesWhen you delete a table, its structural definition and data are deleted permanently from the database. For the metric store, database objects may also be deleted.When you restart the Cognos 8 ser vice, a new set of required database tables are created automatically in the location specified by your configuration settings.Steps1. On each computer where Content Manager is located, stop the Cognos 8 service.2. Go to the appropriate directory:o To delete tables from the log database, go to c8_location\configuration\schemas\logging.o To delete tables from the content store, go to c8_location\configuration\schemas\content.o To delete tables from the notification database, go to c8_location\configuration\schemas\delivery. o To delete tables from the metric store, go to c8_location\configuration\schemas\cmm. 3. Go to the appropriate database directory.4. Depending on the database and database type, run one of the following scripts in the appropriate database tool to delete the tables.Database Database Type Script NameContent store DB2 dbClean_db2.sqlMicrosoft SQL Server dbClean_mssqlserver.sqlOracle dbClean_oracle.sqlSybase dbClean_sybase.sqlNotification DB2 NC_DROP_DB2.sqlMicrosoft SQL Server NC_DROP_MS.sqlOracle NC_DROP_ORA.sqlSybase NC_DROP_SYBASE.sqlLog DB2 LS_dbClean_db2.sqlMicrosoft SQL Server LS_dbClean_mssql.sqlOracle LS_dbClean_oracle.sqlSybase LS_dbClean_sybase.sqlMetric store DB2 cmm_purge_deleted_data dbalias username passwordSpecify the dbalias only if a database with the same name is already cataloged.Microsoft SQL cmm_purge_deleted_data metric_store_name database_name Admin_user_name passwordOracle cmm_purge_deleted_data database_name database_user_name passwordReplace database_name with the name in the tnsnames.ora file that refers to the database SID for Metric Studio5. Start the Cognos 8 service.