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

  1. rem 
  2. rem $Header: cat712d.sql 7010200.1 93/11/15 00:14:14 snataraj Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1991 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      cat712d.sql - Migrate 7.0.13 down to 7.0.12
  7. Rem    DESCRIPTION
  8. Rem      RIGHT AFTER A 7.0.13 DATABASE IS STARTED
  9. Rem      UP (DOWNGRADED) USING A 7.0.12 RELEASE FOR THE FIRST TIME, RUN THIS
  10. Rem      SCRIPT ONCE (RUN AS SYS OR INTERNAL).
  11. Rem      A 7.0.13 database is a database that has been created using 7.0.13
  12. Rem      release or upgraded to use 7.0.13 release.
  13. Rem    MODIFIED   (MM/DD/YY)
  14. Rem     jwijaya    03/04/93 -  merge changes from branch 1.1.312.1 
  15. Rem     jwijaya    03/04/93 -  merge changes from branch 1.1 
  16. Rem     jwijaya    03/03/93 -  make version default to 0 
  17. Rem     jwijaya    03/01/93 -  Creation 
  18.  
  19. REM
  20. REM     THIS SCRIPT IS TO BE RUN ONCE RIGHT AFTER A 7.0.13 DATABASE
  21. REM     IS STARTED UP (DOWNGRADED) FOR THE FIRST TIME USING
  22. REM     ORACLE7 RELEASE 7.0.12 (RUN AS SYS OR INTERNAL).
  23. REM     A 7.0.13 database is a database that has been created using 7.0.13
  24. REM     release or upgraded to use 7.0.13 release.
  25. REM
  26.  
  27. REM     Invalidate all stored procedures...
  28. update obj$ set status = 6
  29. where type in (7, 8, 9, 11)
  30.   and status not in (5, 6)
  31.   and linkname is null
  32. /
  33. commit
  34.  
  35. REM     Delete all diana and pcode of objects...
  36. truncate table idl_ub1$
  37. /
  38. truncate table idl_char$
  39. /
  40. truncate table idl_ub2$
  41. /
  42. truncate table idl_sb4$
  43. /
  44.  
  45. REM     Make VERSION default to 0...
  46. alter table idl_ub1$ modify version number default 0
  47. /
  48. alter table idl_char$ modify version number default 0
  49. /
  50. alter table idl_ub2$ modify version number default 0
  51. /
  52. alter table idl_sb4$ modify version number default 0
  53. /
  54.  
  55. REM     Flush the dictionary and library caches...
  56. alter system flush shared_pool
  57. /
  58. REM     One more time for good measure...
  59. alter system flush shared_pool
  60. /
  61.