home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / unix / copydb.doc next >
Encoding:
Text File  |  1992-11-19  |  2.3 KB  |  61 lines

  1.  
  2.  
  3.  
  4.  
  5.      COPYDB(UNIX)                 3/14/79                 COPYDB(UNIX)
  6.  
  7.  
  8.  
  9.      NAME
  10.           copydb - create batch files to copy out a data base and  re-
  11.           store it.
  12.  
  13.      SYNOPSIS
  14.           _c_o_p_y_d_b [ -_u_n_a_m_e ] database full-path-name-of-directory [ re-
  15.           lation ... ]
  16.  
  17.      DESCRIPTION
  18.           _C_o_p_y_d_b creates two INGRES command files  in  the  directory:
  19.           _C_o_p_y._o_u_t,  which  contains  Quel instuctions which will copy
  20.           all relations owned by the user  into  files  in  the  named
  21.           directory,  and _c_o_p_y._i_n, which contains instructions to copy
  22.           the files into relations, create indexes  and  do  modifies.
  23.           The files will have the same names as the relations with the
  24.           users INGRES id tacked on the end.  (The directory MUST  NOT
  25.           be the same as the data base directory as the files have the
  26.           same names as the relation files.) The -_u flag may  be  used
  27.           to  run  _c_o_p_y_d_b  with  a  different user id.  (The fact that
  28.           _c_o_p_y_d_b creates the copy files does not imply that  the  user
  29.           can necessarily access the specified relation).  If relation
  30.           names are specified only those relations will be included in
  31.           the copy files.
  32.  
  33.           _C_o_p_y_d_b is written in Equel and will access the  database  in
  34.           the  usual  manner.   It  does not have to run as the INGRES
  35.           user.
  36.  
  37.      EXAMPLE
  38.           chdir /mnt/mydir
  39.           copydb db /mnt/mydir/backup
  40.           ingres db <backup/copy.out
  41.           tp r1 backup
  42.           rm -r backup
  43.  
  44.           tp x1
  45.           ingres db <backup/copy.in
  46.  
  47.      DIAGNOSTICS
  48.           _C_o_p_y_d_b will give  self-explanatory  diagnostics.   If  ``too
  49.           many  indexes''  is  reported  it  means  that more than ten
  50.           indexes have been specified on one relation.   The  constant
  51.           can  be  increased and the program recompiled.  Other limits
  52.           are set to the system limits.
  53.  
  54.      BUGS
  55.           _C_o_p_y_d_b assumes that indexes which are ISAM do not need to be
  56.           remodified.  _C_o_p_y_d_b cannot tell if the relation was modified
  57.           with a fillfactor or minpages  specification.   The  _c_o_p_y._i_n
  58.           file may be edited to reflect this.
  59.  
  60.  
  61.