summaryrefslogtreecommitdiff
path: root/doc/README.DB2
blob: 9d143befb4a9d461cc84e765df012e2377e874df (plain)
  1. To build and install the DBD::DB2 module, you need the following:
  2. *Perl 5.004_04 or later
  3. *DBI 0.93 or later
  4. *DB2 Application Development Client
  5. *A supported C compiler as documented under
  6. 'Supported Operating Systems'
  7. at the DB2 Application Development Web page:
  8. http://www-3.ibm.com/software/data/db2/udb/ad/index.html
  9. Install Notes:
  10. http://www.perl.com/CPAN-local/modules/by-module/DBD/DBD-DB2-0.76.readme
  11. Module:
  12. http://www.perl.com/CPAN-local/modules/by-module/DBD/DBD-DB2-0.76.tar.gz
  13. Notes:
  14. -----------------------------
  15. LedgerSMB tested with IBM DB2 v7.2 and v8.1.
  16. Compiled for use with DBI 1.18 for all testing.
  17. DB2 Application Development Client used was with
  18. the DB2 Personal Developer's Edition (PDE). All
  19. databases and application code tested under RedHat
  20. Linux 7.2 kernel 2.4.7-10.
  21. ADDITIONAL NOTES: DB2 specific
  22. ------------------------------
  23. 1. DB2 installed under default owner, and group:
  24. db2inst1 and db2grp1.
  25. 2. LedgerSMB app owner (ledger) was added to DB2 group db2grp1
  26. thereby given SYSADM authority.
  27. 3. LedgerSMB app owner has same ENV variables as the db2inst1 user.
  28. This can be added, or have:
  29. . $DB_HOME/sqllib/db2profile in the LedgerSMB app owner .(bash_)profile.
  30. 4. LedgerSMB app owner must have environment variable
  31. DB2INSTANCE set.
  32. 5. LedgerSMB app owner, now with SYSADM authority and PATH
  33. containing DB2's bin should run the following:
  34. prompt>: db2set -all # To view instance and registry variables
  35. prompt>: db2set DB2DBDFT=your_default_database_name i.e. LEDGER
  36. prompt>: db2set DB2CLIINIPATH=set_to_usually $DB_HOME/sqllib/cfg
  37. Now, cd to the DB2CLIINIPATH directory and edit the db2cli.ini
  38. file. Continuing with our use of LEDGER as the database that
  39. will be created and used, add:
  40. [LEDGER]
  41. AUTOCOMMIT=1
  42. LONGDATACOMPAT=1
  43. DBALIAS=LEDGER
  44. DEFERREDPREPARE=1
  45. If DEFERREDPREPARE=1 is the last line, add a blank line. A blank
  46. line must be the last line.
  47. 6. Create the database, objects, and initialize by moving to the directory:
  48. /where_you_installed_SQL-Ledger/sql , and review the file
  49. DB2-sql-ledger.order. The commands outlined are in the required order,
  50. create a database called LEDGER using default SMS tablespaces. The
  51. last command-line creates the "Default" Chart-of-Accounts.
  52. *Modify the files at will to:
  53. create a different named database (make sure you review the
  54. step where you -> db2set DB2DBDFT=your_default_database_name)
  55. create DMS tablespaces
  56. different Chart-of-Accounts.
  57. If a 'gifi' sql script needs to be run, make sure the
  58. "db2 -tvf" is used so the ';' are accepted as command terminators.