home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / po7_win / db / rdbms71 / cat7102d.sql < prev    next >
Encoding:
Text File  |  1994-08-07  |  1.1 KB  |  54 lines

  1. rem 
  2. rem $Header: cat7102d.sql 7010300.2 94/04/04 02:35:57 snataraj Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1992 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      cat7102d.sql - Migrate 7.1.3 down to 7.1.2
  7. Rem    DESCRIPTION
  8. Rem      run this script right after starting up a 7.1.3 database with 7.1.2
  9. REM      code for the first time.
  10. Rem    RETURNS
  11. Rem 
  12. Rem    NOTES
  13. Rem
  14. Rem    MODIFIED   (MM/DD/YY)
  15. Rem     wmaimone   03/16/94 -  invalidate plsql
  16. Rem     agupta     01/20/94 -  Branch_for_patch
  17. Rem     agupta     01/19/94 -  Creation
  18.  
  19. Rem
  20. Rem Restore cache attributes on tables and clusters for parallel query
  21. update tab$ set spare2 = 0
  22. /
  23. update clu$ set spare6 = 0
  24. /
  25.  
  26. Rem
  27. Rem Invalidate PL/SQL
  28.  
  29. REM     Invalidate all stored procedures...
  30. update obj$ set status = 6
  31. where type in (7, 8, 9, 11)
  32.   and status not in (5, 6)
  33.   and linkname is null
  34. /
  35. commit
  36. /
  37.  
  38. REM     Delete all diana and pcode of objects...
  39. truncate table idl_ub1$
  40. /
  41. truncate table idl_char$
  42. /
  43. truncate table idl_ub2$
  44. /
  45. truncate table idl_sb4$
  46. /
  47.  
  48. REM     Flush the dictionary and library caches...
  49. alter system flush shared_pool
  50. /
  51. REM     One more time for good measure...
  52. alter system flush shared_pool
  53. /
  54.