Presentations/Papers
 Scripts
 The Specialist
    
   Services
 Consulting
 Database Tuning
 Remote DBA



 
Providing You With Handy Scripts

   Most of our senior consultants have been working with Oracle technology for over ten years. As you can imagine, they've developed quite a few tools and scripts that they carry with them from project to project. Below, you'll find a sampling of our handy database administration scripts that are yours for the taking. Feel free to download and use them. But first, here's the part our lawyer wants you to read:

* These scripts are provided by Database Specialists, Inc. for individual use and not for sale. Database Specialists, Inc. does not warrant the scripts in any way and will not be responsible for any loss arising out of their use. By downloading or using these scripts you are agreeing to these terms and conditions.

Have comments or suggestions? Send us your feedback.

  • Take a fast hot backup of your database using your filer's snapshot facility
    This script puts all tablespaces of the database into backup mode and calls upon your filer's snapshot facility to take a snapshot of the database. This allows you to take an "instantaneous" hot backup—you can then copy the snapshot to tape for archival purposes if desired. This script makes sure the snapshot backup will include a copy of the server parameter file, the control file, and a trace listing of the control file. A detailed log report indicates exactly what operations were performed and when, and which archived redo logs would be required to recover the database from the backup set.
  • Compare data in two Oracle schemas, table by table and row by row
    This script reads all the rows in a specified list of tables in one Oracle schema and compares the data row for row against tables with the same names in another schema. You'll get a report with summary counts of differing rows, and SQL queries you can run to view all of the data discrepancies. This script is invaluable in situations such as comparing seed data in separate databases, validating regression test data in a QA environment, or testing data load scripts.
  • Compare two Oracle schemas and get a report of all the discrepancies
    This script is a godsend when you've got several schemas that are supposed to be identical, but you just aren't sure if a little schema change might have crept into one without being replicated to all of the others. It is also useful for validating your schema creation scripts --run your creation scripts in a test environment and then use this tool to compare what you've just created against the reference schema already in use.
  • Check your data for bad dates caused by the Y2K bug
    This script reads every row from every table in a database schema and reports how many rows include dates prior to 1950. If now or at some point in the past your application had Y2K bugs, you might have dates in your database with the wrong century--1900 instead of 2000, for example. This script will help you find bad dates so that you may correct them.
  • Take a quick and easy hot backup
    This shell script reads the data dictionary in your database to make sure it is including all data files in the backup. The control file and parameter files are backed up, too. This script works on Solaris and Linux, and probably other variations of Unix as well. It's a quick, effective way to protect your data if you don't already have a comprehensive backup plan in place. Read the comments at the top of the script for important information. You'll also need two supporting scripts -- get them here and here.
Home | About | Services | Resources | News & Events | Careers | Contact | Privacy

Copyright © 2007 Database Specialists, Inc. All rights reserved. Trademarks/Affiliations.
Tel: 415-344-0500,  Fax: 415-344-0509, Toll-Free Tel: 1-888-648-0500, email info@dbspecialists.com.

Web design by WorldZOO.com, Inc.