readme.txt 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. To run unit test the following should be prepared:
  2. 1. System.Data\Test\ProviderTests\System.Data.OleDb.J2EE.config should contain an ConnectionString setting, i.e.:
  3. <?xml version="1.0" encoding="utf-8" ?>
  4. <configuration>
  5. <appSettings>
  6. <add key="ConnectionString" value="Provider=SQLOLEDB.1;Data Source=XP050;Initial Catalog=GHTDB;User Id=sa;Password=;" />
  7. </appSettings>
  8. </configuration>
  9. 2. A target db should be prepared with the relevant structure, following are the instruction for each supported database.
  10. in order to create the testing database, on DB2, run:
  11. NOTICE !!! script does not support remote.
  12. you must run this script on the DB2 machine
  13. "C:\Program Files\IBM\SQLLIB\BIN\DB2CMD.exe" DB2SETCP.BAT DB2.EXE -tvf ghtdb.db2.sql
  14. "C:\Program Files\IBM\SQLLIB\BIN\DB2CMD.exe" DB2SETCP.BAT DB2.EXE -td@ -vf ghtdb.sp.db2.sql
  15. "C:\Program Files\IBM\SQLLIB\BIN\DB2CMD.exe" DB2SETCP.BAT DB2.EXE -tvf ghtdb.data.db2.sql
  16. in order to create the testing database, on SQLServer, run:
  17. Run the scripts with a user wich have administrator permissions. (by default user:sa, password:sa).
  18. osql -S <database> -U <username> -P <password> -i GHTDB.MSSQL.sql
  19. osql -S <database> -U <username> -P <password> -i GHTDB.DATA.MSSQL.sql
  20. for example
  21. osql -S powergh -U sa -P sa -i GHTDB.MSSQL.sql
  22. osql -S powergh -U sa -P sa -i GHTDB.DATA.MSSQL.sql
  23. in order to create the testing database, on ORACLE, run:
  24. Run the scripts with a user wich have administrator permissions. (by default user:system, password:mainsoft).
  25. sqlplus "user/password@database_sid" @GHTDB.ORACLE.sql
  26. sqlplus "user/password@database_sid" @GHTDB.Data.ORACLE.sql
  27. for example
  28. sqlplus "system/mainsoft@rafim" @GHTDB.ORACLE.sql
  29. sqlplus "system/mainsoft@rafim" @GHTDB.Data.ORACLE.sql
  30. ---------------------------------------
  31. to execute postgres sql script from command line
  32. ---------------------------------------
  33. First, create the target database (GHTDB as UNICODE) and then, run the script
  34. "C:\Program Files\PostgreSQL\8.0\bin\psql.exe" -U<username> <db name> -f <sql file>
  35. NOTE: if you fail to connect to psql, with the error:
  36. psql: FATAL: password authentication failed for user "postgres"
  37. change your pg_hba file
  38. from:
  39. host all all 127.0.0.1/32 md5
  40. change to:
  41. host all all 127.0.0.1/32 trust
  42. example:
  43. "C:\Program Files\PostgreSQL\8.0\bin\psql.exe" -q -Upostgres Store -f Store.PostgreSQL.sql
  44. example:
  45. "C:\Program Files\PostgreSQL\8.0\bin\psql.exe" -q -Upostgres template1 -f GHTDB.CreateDB.sql
  46. "C:\Program Files\PostgreSQL\8.0\bin\psql.exe" -q -Upostgres GHTDB -f GHTDB.PostgreSQL.sql
  47. "C:\Program Files\PostgreSQL\8.0\bin\psql.exe" -q -Upostgres GHTDBEX -f GHTDBEX.PostgreSQL.sql
  48. "C:\Program Files\PostgreSQL\8.0\bin\psql.exe" -q -Upostgres GHTDB -f GHTDB.DATA.PostgreSQL.sql
  49. =================
  50. Sybase isql readme
  51. =================
  52. start the server
  53. start %SYBASE%\ASE-15_0\bin\sqlsrvr -dmaster.dbs -e C:\ASE150\ASE-15_0\bin\errorlog.log
  54. %SYBASE%\OCS-15_0\bin\isql -Usa -P -iC:\Dev\rafi_view\studio\GH\DevQA\tests\db\sybase\GHTDB.SYBASE.sql -oGHTDB.log
  55. %SYBASE%\OCS-15_0\bin\isql -Usa -P -iC:\Dev\rafi_view\studio\GH\DevQA\tests\db\sybase\GHTDB.DATA.SYBASE.sql -oGHTDB.DATA.log
  56. =================
  57. other usefull tips
  58. use them when having problems
  59. =================
  60. dump transaction GHTDB with no_log
  61. insensitive
  62. charset -Usa -P noaccents.srt cp850
  63. sp_configure "default sortorder id", 44