home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / DB / UTIL72 / CAT7201.SQL < prev    next >
Encoding:
Text File  |  1995-05-09  |  1.6 KB  |  48 lines

  1. rem 
  2. rem $Header: cat7201.sql 7020100.1 94/09/23 22:13:14 cli Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1992 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      cat7201.sql - upgrade Oracle RDBMS from version 7.1.X to 7.2.1
  7. Rem    DESCRIPTION
  8. Rem
  9. Rem    NOTES
  10. Rem      Run this as INTERNAL.  Run it before installing catalog or pl/sql.
  11. Rem      It is safe to run it on 7.1.2.
  12. Rem    MODIFIED   (MM/DD/YY)
  13. Rem     vraghuna   08/18/94 -  bump up export compatibility
  14. Rem     jbellemo   06/24/94 -  Creation
  15.  
  16. rem
  17. rem Trusted Stored Procedures
  18. rem
  19. create table objpriv$                       /* privileges granted to objects */
  20. ( obj#          number not null,                            /* object number */
  21.   privilege#    number not null)                         /* privilege number */
  22. /
  23.  
  24. REM This will get bumped up as the views evolve. The insert is needed
  25. REM for upgrades from 7.0 or new databases. The update is needed for 
  26. REM databases that have older compatibility.
  27. REM These are the releases when the compatibility was bumped:
  28. REM    7.0.* - no compatibility - assume zero
  29. REM    7.1.3 - set to one
  30. REM    7.2.1 - set to two
  31. insert into props$ 
  32. select 'EXPORT_VIEWS_VERSION', '2', 'Export views revision #' from dual
  33. where not exists
  34.   (select 'x' from props$ where name = 'EXPORT_VIEWS_VERSION')
  35. /
  36. update props$ set value$ = 2 where name = 'EXPORT_VIEWS_VERSION'
  37. /
  38. commit
  39. /
  40. REM Check for Procedural Option
  41. CREATE OR REPLACE view exu7cpo (value) AS
  42.         SELECT DECODE(value, 'TRUE', 1, 'FALSE', 0, 2) 
  43.         FROM v$option
  44.         WHERE parameter = 'procedural'
  45. /
  46. grant select on exu7cpo to public
  47. /
  48.