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

  1. rem 
  2. rem $Header: utlexp6.sql 7020100.1 94/09/23 22:14:30 cli Generic<base> $ 
  3. rem 
  4. Rem  Copyright (c) 1991 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      expeob6.sql - <one-line expansion of the name>
  7. Rem    DESCRIPTION
  8. Rem      <short description of component this file declares/defines>
  9. Rem    RETURNS
  10. Rem 
  11. Rem    NOTES
  12. Rem      <other useful comments, qualifications, etc.>
  13. Rem    MODIFIED   (MM/DD/YY)
  14. Rem     glumpkin   10/20/92 -  Renamed from EXPEOB6.SQL 
  15. Rem     cheigham   02/28/92 -  Creation 
  16. rem  Run this script against a V7 database.  The queries will return those
  17. rem  objects which will NOT be exported via a SQL*Net connection to V6 Export.
  18.  
  19. rem no hash clusters exported
  20.  
  21. SELECT u$.name cluster_owner, o$.name cluster_name
  22. FROM   sys.obj$ o$, sys.user$ u$, sys.clu$ cl$
  23. WHERE cl$.obj# = o$.obj# 
  24. AND cl$.hashkeys != 0
  25. AND u$.user# = o$.owner#
  26. /
  27.  
  28. rem no tables in hash clusters exported
  29. rem also, no subordinate objects on these tables exported
  30.  
  31. SELECT u$.name table_owner, o$.name table_name
  32. FROM   sys.tab$ t$, sys.obj$ o$, sys.user$ u$, sys.clu$ cl$
  33. WHERE t$.obj# = o$.obj# 
  34. AND t$.clu# = cl$.obj#
  35. AND cl$.hashkeys != 0
  36. AND u$.user# = o$.owner#
  37. /
  38.  
  39. rem no roles exported
  40.  
  41. SELECT name role_name
  42. FROM sys.user$
  43. WHERE type = 0 and name not in
  44.   ('CONNECT', 'RESOURCE', 'DBA', 'PUBLIC', '_NEXT_USER')
  45. /
  46.  
  47. rem no triggers exported
  48.  
  49. SELECT u$.name trigger_owner, o$.name trigger_name
  50. FROM sys.obj$ o$, sys.trigger$ t$, sys.user$ u$
  51. WHERE o$.obj# = t$.obj# 
  52. AND u$.user# = o$.owner#
  53. /
  54.  
  55. rem no procedures/functions/packages/package bodies exported
  56.  
  57. SELECT u$.name object_owner, o$.name object_name,
  58. DECODE(o$.type, 7, 'PROCEDURE', 8, 'FUNCTION', 
  59.     9, 'PACKAGE', 11, 'PACKAGE BODY') object_type
  60. FROM sys.obj$ o$, sys.user$ u$
  61. WHERE (o$.type=7 OR o$.type=8 OR o$.type=9 OR o$.type=11)
  62. AND u$.user# = o$.owner#
  63. AND o$.owner# != 0
  64. /
  65.  
  66. rem no profiles exported
  67.  
  68. SELECT name profile_name
  69.         FROM sys.profname$
  70.         WHERE profile# != 0
  71. /
  72.  
  73. rem no snapshots exported
  74.  
  75. SELECT sowner snapshot_owner, vname snapshot_name, tname snapshot_table_name,
  76.     mview view_on_master_table
  77. from sys.snap$
  78. /
  79.  
  80. rem no snapshot logs exported
  81.  
  82. SELECT mowner snapshot_log_owner, log snapshot_log_table
  83. from sys.mlog$
  84. /
  85.  
  86. rem No system auditing options are exported.
  87. rem LONG, LONG RAW columns are truncated to 64K-3.
  88. rem Database link names are truncated from 'x.y[.a.b]' to 'x'.
  89. rem Columns of type VARCHAR2 (type 96) are mapped to type CHAR (type 1)
  90. rem Tables with CHAR columns longer than 255 will be exported 
  91. rem but cannot be re-imported without modification to the table CREATE
  92. rem statement.
  93.