home *** CD-ROM | disk | FTP | other *** search
/ PC Treasures, Inc. / pctreasures.mdf / WINDOWS / adabas / f_0001 / env / dbsmin.ins < prev    next >
Text File  |  1999-11-01  |  3KB  |  114 lines

  1. SAY Minimal installation of the databasesystem
  2. /**
  3. /  ==================================================================
  4. /* @(#)DBSMIN.ins 10.01.00  1998-01-30
  5. /  ==================================================================
  6. /
  7. /  **** ATTENTION - This file is for internal use only ******
  8. /
  9. /  Description
  10. /  ===========
  11. /  It is necessary to install the conversational components
  12. /  of DBS in a small configuration.
  13. /  It serves in the following cases:
  14. /
  15. /  1. A new SERVERDB has been defined
  16. /     INIT CONFIG and ACTIVATE SERVERDB have been executed
  17. /
  18. /     This LOAD file will install the complete system table environment
  19. /     in order to use the complete set of conversational components
  20. /     of this database (i.e.: LOAD, QUERY, EASY, SQLPL).
  21. /
  22. /  2. A newly delivered version of the conversational components shall
  23. /     be installed by updating the message and help infos
  24. /
  25. /  The installation is done by creating tables only if they don't yet
  26. /  exist. Further during installation the running user is changed
  27. /  so that some parts of the installation run under the special
  28. /  user SYSDBA and other under the special user DOMAIN.
  29. /
  30. /  Calling Syntax
  31. /  ==============
  32. /  This LOAD file has to be started as SYSDBA user (see the definition
  33. /  in the XPARAM file).
  34. /
  35. /  Example: Execution of the DBSMIN.ins file in batch mode
  36.  
  37. /           xload -u <sysdba>,<syspwd> -b DBSMIN.ins
  38. /
  39. /  Example: Execution of the DBSMIN.ins file in interactiv mode
  40. /
  41. /           xload -u <sysdba>,<syspwd>
  42. /           run 'DBSMIN.ins'
  43. /
  44. /  Calling Hierarchy
  45. /  =================
  46. /  DBSMIN ----------+---- INFOSYS
  47. /                   |---- INFOENG
  48. /                   |---- SYSSET
  49. /                   |---- QUERY
  50. /                   |---- EASY
  51. /                   |---- CONTROL
  52. /                   |---- SQLPL
  53. /                   |---- PRECOM
  54. /                   +---- ODBC
  55. /
  56. /  ==================================================================
  57. /
  58. SQLMODE ADABAS
  59. /
  60. INIT SERVERDB
  61. /
  62. IF $RC (SHOW (thisuser) USER CURRENT) <> 0
  63. THEN
  64. /
  65.     RETURNCODE 0
  66. /
  67. IF $RC (SHOW (sysdba_loc) USER LOCALSYSDBA) <> 0
  68. THEN
  69. /
  70.     RETURNCODE 0
  71. /
  72. IF $RC (SELECT thisuser.username from thisuser, sysdba_loc
  73.         where thisuser.username = sysdba_loc.username) <> 0
  74. THEN
  75.     BEGIN
  76. /
  77.     SAY *** User is not SYSDBA ***
  78. /
  79.     END INIT SERVERDB
  80. /
  81.     STOP 7
  82. /
  83.     END
  84. /
  85. /
  86. IF  $RC (SHOW USER DOMAIN) <> 0
  87. THEN
  88. /
  89.     CREATE USER DOMAIN PASSWORD &1 DBA
  90. /
  91. END INIT SERVERDB
  92. /
  93. INCLUDE '%DBROOT%\env\INFOSYS.ins'
  94. /
  95. INCLUDE '%DBROOT%\env\INFOENG.ins'
  96. /
  97. INCLUDE '%DBROOT%\env\SYSSET.ins'
  98. /
  99. INCLUDE '%DBROOT%\env\QUERY.ins'
  100. /
  101. INCLUDE '%DBROOT%\env\EASY.ins'
  102. /
  103. INCLUDE '%DBROOT%\env\CONTROL.ins'
  104. /
  105. INCLUDE '%DBROOT%\env\SQLPL.ins'
  106. /
  107. INCLUDE '%DBROOT%\env\PRECOM.ins'
  108. /
  109. INCLUDE '%DBROOT%\env\ODBC.ins'
  110. /
  111. /
  112. END INIT SERVERDB
  113. /
  114.