home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 February / DPPCPRO0299.ISO / February / Delphi / Install / _SETUP.LIB / READIB.TXT < prev    next >
Encoding:
Text File  |  1996-05-16  |  17.7 KB  |  474 lines

  1. ------------------BEGIN-------------------------------
  2.  
  3.  File: ReadIB.txt
  4.  
  5. Readme file for Local InterBase Server WI-V4.1.0.194
  6.  
  7. (c) 1996 Borland International, Inc. All rights reserved.
  8.  
  9.  
  10. -----------------------------------------------------------
  11. WELCOME TO BORLAND LOCAL INTERBASE SERVER VERSION 4.1.0.194
  12. -----------------------------------------------------------
  13.  
  14. This document contains information that supplements or clarifies the
  15. information that appears in the Help files and printed documentation 
  16. provided with the Local InterBase Server.
  17.  
  18. To print this document from your word processor, use the Print command 
  19. on the File menu.
  20. ________
  21. CONTENTS 
  22.  
  23.         i. Important Installation Notes
  24.         I. Supported and Unsupported Features
  25.        II. Starting and Stopping InterBase on Windows 95 and
  26.                Windows NT 4.0 
  27.       III. Starting and Stopping InterBase on Windows NT 3.51
  28.         IV. Command-line Utilities
  29.         V. Server Manager
  30.        VI. Windows ISQL 
  31.       VII. General Issues
  32.      VIII. International Issues
  33.        IX. Deployment
  34.         X. Tutorial
  35.        XI. ODBC Driver
  36.       XII. Linking and Compiling your applications.
  37.          XIII. Errata
  38.  
  39.  
  40. _______________________________
  41. i. IMPORTANT Installation Notes
  42.  
  43. 1. DO NOT install Local InterBase Server
  44.    and InterBase Server for NT on the same PC.
  45.    If you do, the NT server configuration will
  46.    be invalidated and the server will not run.
  47.  
  48. 2. To ensure a clean installation, remove any previously installed
  49.    field test version(s).  If you have installed any Borland Database 
  50.    Engine (BDE) field tests, remove the GDS32.DLL 
  51.    from the BDE installation directory.
  52.  
  53. _____________________________________
  54. I. Supported and Unsupported Features
  55.         
  56. Server features added since the release of Local InterBase V4.0c:
  57.  
  58.     - Array support
  59.     - Server shutdown and restart
  60.     - BLOB filters
  61.     - Events
  62.     - User Defined Functions (UDFs)
  63.     - New language drivers for Korean, Taiwanese, and 
  64.       Chinese support
  65.     - Server Configuration Utility
  66.  
  67. Updated Windows tools:
  68.  
  69.     - Windows ISQL
  70.     - Server Manager
  71.     - Communications Diagnostic Tool
  72.     - Registry Configuration Tool
  73.  
  74. Command-line tools now supported on Windows NT/95 platforms:
  75.  
  76.     - Database Definition utility
  77.     - Database Repair utility
  78.     - User Security utility
  79.     - Database Statistics analyzer
  80.     - Database Backup/Restore utility
  81.     - InterBase Registry Installation utility
  82.     - Lock Manager Print utility
  83.     - Interactive SQL utility
  84.  
  85. Unsupported Local InterBase features:
  86.  
  87.     - Write Ahead Log (WAL)
  88.  
  89. ____________________________________________________________________
  90. II. Starting and Stopping InterBase on Windows 95 and Windows NT 4.0
  91.  
  92. You must start the Local InterBase server prior to connecting 
  93. to a database. When the sever is running, the server icon 
  94. appears in the Task Tray.
  95.  
  96. When you install the Local InterBase Server and reboot your 
  97. system, the server is automatically started.
  98.  
  99. To start a server that has been shut down, select the InterBase
  100. server from the Local InterBase Server 4.1 program folder under the
  101. start menu.
  102.  
  103. To shut down the Local InterBase Server, right-click on the
  104. InterBase server icon, located in the Task Tray, and select 
  105. Shutdown from the menu.
  106.  
  107. If you have open connections, it is recommended that you close
  108. them before shutting down the server. You should also close
  109. all client applications you are running.
  110.  
  111. _______________________________________________________
  112. III. Starting and Stopping InterBase on Windows NT 3.51
  113.  
  114. You must start the Local InterBase server prior to connecting 
  115. to a database. When the sever is running, the server icon 
  116. appears on the desktop.
  117.  
  118. When you install the Local InterBase Server and reboot your
  119. system, the server automatically started.
  120.  
  121. To start a Local InterBase Server that has been shut down, 
  122. select the Local InterBase Server icon from the 
  123. Local InterBase Server 4.1 program group. 
  124.  
  125. To shut down the Local InterBase Server, left-click on 
  126. the server icon, and select Shutdown from the menu.
  127.  
  128. If you have open connections, it is recommended that you close
  129. them before shutting down the server. You should also close
  130. all client applications you are running.
  131.  
  132. __________________________
  133. IV. Command-line Utilities
  134.  
  135. GFIX.EXE        Database Repair utility
  136. GSEC.EXE        User Security utility
  137. GSTAT.EXE       Database Statistics Analyzer
  138. GBAK.EXE        Backup/Restore utility
  139. INSTREG.EXE     Registry Installation utility
  140. IBLOCKPR.EXE    Lock Manager Print utility
  141. ISQL.EXE        Interactive SQL Data Definition utility
  142.  
  143. _________________
  144. V. Server Manager
  145.  
  146. * Environment Variables
  147.  
  148.   Use of the environment variables ISC_USER and ISC_PASSWORD as the
  149.   default username and password by Server Manager is not recommended.
  150.   An unauthorized user can determine definitions and circumvent
  151.   database security features. 
  152.   
  153.   However, if you do use them,  make sure that, once defined,
  154.   they actually exist in the local security database, ISC4.GDB.  
  155.   Add them to ISC4.GDB using Server Manager.  If they are 
  156.   not in ISC4.GDB, you will get an error message that your user 
  157.   name and password are undefined.   
  158.  
  159. * Verbose Output Messages
  160.  
  161.   For backup/restore, lock manager, and database statistics the output 
  162.   text window is limited to 32K.  If your request exceeds this space, 
  163.   you will see a dialog box stating the buffer space was exceeded and 
  164.   prompting you to save the results to a file.  If you choose 'yes', 
  165.   all future results will be saved to the specified file and the text 
  166.   in the window will scroll off the top.  If you choose 'no', the 
  167.   operation will still complete, but the verbose output will stop.
  168.  
  169. * Slash Character
  170.  
  171.   When issuing a connect, backup, or restore to a database on a Unix
  172.   server, always start the pathname with the slash character (/). 
  173.  
  174. ________________
  175. VI. Windows ISQL
  176.  
  177. * The SQL Output area is limited to 32 KBytes of output.  Output 
  178.   that exceeds this amount will be appended to the end of the 
  179.   buffer, and the initial lines in the buffer will scroll off.  
  180.   For queries which return a large amount of data, the cursor will
  181.   become an hourglass, and when the query completes, the last 32K of
  182.   output will be displayed in the Output Area.  To see results that
  183.   exceed 32K, click on "Save Results to File" and view the file.
  184.  
  185. * Maximum row size (size of each field, plus 1 byte per field) is 
  186.   limited to 64K bytes.  On a Windows Client, ISQL requests that
  187.   NULL indicator fields require a smaller maximum row size,
  188.   because each NULL indicator field adds an additional 2 bytes to
  189.   retrieval requirements.  
  190.  
  191. * When selecting data of type FLOAT, the results will be rounded. 
  192.   To retrieve the exact precession, use the DOUBLE data type.
  193.  
  194. ___________________
  195. VII. General Issues
  196.  
  197. * On-Disk Structure:
  198.  
  199.   The Local InterBase Server and InterBase for NT share the same 
  200.   database on-disk structure.  Databases on either of those 
  201.   platforms can be copied from one environment to another 
  202.   (when no one is accessing the database).  Compatibility with 
  203.   NetWare 4.0 is planned for a future release.
  204.  
  205. * Security:
  206.  
  207.   Local InterBase Server requires a user name and password.
  208.   User name and password will be validated against the security
  209.   database and access to the database will fail if they are
  210.   not found. 
  211.  
  212.   Every Local InterBase Server has a SYSDBA user, with password
  213.   "masterkey". Initially, SYSDBA is the only authorized user on the
  214.   server. SYSDBA must authorize all other users on the server. 
  215.  
  216.   It is strongly recommended that you change the password for SYSDBA
  217.   as soon as possible. Otherwise, the SYSDBA account will not be
  218.   secure and unauthorized users can access databases on the server.
  219.  
  220. * Access to Mapped Drives on Remote Machines:
  221.  
  222.   Local InterBase Server is designed to provide a local database
  223.   application development environment for a single user.  Some users
  224.   might want to store large databases on mapped (remote) drives,
  225.   however, access to mapped remote drives is not supported.
  226.  
  227. * Dropping Tables:
  228.  
  229.   Before attempting to DROP a table, first issue an explicit COMMIT;
  230.   statement.  Some operations, such as a SELECT, will set an 'in use'
  231.   flag that will not be cleared until a COMMIT is done.  If you try
  232.   to drop a table and get an 'object <table_name> is in use' error
  233.   message, issue an explicit COMMIT; and try the drop again.  
  234.  
  235. * Decimal Representations:
  236.  
  237.   Internally, InterBase represents decimal numbers as data type 
  238.   SHORT with a scale factor, or as a type LONG with a scale factor,
  239.   if the specified precision is small enough to fit in these 
  240.   datatypes.
  241.  
  242.   Embedded SQL applications need to adjust decimal numbers of 9
  243.   digits or less by taking the scale factor into account (that is,
  244.   divide the number by 10 to the exponent of scale factor). 
  245.  
  246.   For example, for the three following decimal representations:
  247.  
  248.        a(4,2)          b(9,3)          c(15,2)
  249.        short/100       long/1000       double/100
  250.  
  251.    select a, b, c into :a, :b, :c
  252.     from tablex
  253.      print (a/10**2, b/10**3, c/10**2)
  254.  
  255. * Local Variables:
  256.  
  257.   In DSQL, CHAR and VARCHAR columns fetched from a table are not
  258.   NULL terminated. In C and C++ applications, be sure that local
  259.   variables are declared with an extra byte of storage for a NULL
  260.   terminator, and that the application also inserts a NULL ('\0')
  261.   in the final byte.
  262.  
  263. * Character Columns:
  264.  
  265.   In DSQL, CHAR columns are interpreted by PREPARE and DESCRIBE as
  266.   SQL_TEXT + 1.
  267.  
  268. * Text Representations:
  269.  
  270.   In DSQL, when casting non-text data into a text representation, 
  271.   use the SQL cast operator in the DSQL statements rather than
  272.   setting SQL type in the SQLDA.  For example, rather than using:
  273.  
  274.      SELECT date . . . 
  275.  
  276.   instead use:
  277.  
  278.      SELECT cast (date as character(20)) . . . .
  279.  
  280. * Creating an index with more than sixteen (16) columns 
  281.   is not supported and may cause unexpected results.
  282.  
  283. * Dynamic SQL (DSQL) cannot process calls to obtain information 
  284.   (through isc_dsql_sql_info) on requests that exceed 64K. Requests
  285.   that exceed this limitation will cause unexpected results.
  286.   For example, a complex DSQL query that requests information from
  287.   a table with 1500 columns where average column width is >44 bytes
  288.   (1500 x 44 = 66,000) will cause unexpected results. 
  289.  
  290. * This release does not include SPX support for InterBase 4.0
  291.   running on NetWare. To access this InterBase server, use TCP/IP.
  292.  
  293. * Multi-threaded Programming
  294.  
  295.   The InterBase client library is thread safe on threaded platforms.
  296.   To access an InterBase server from a multi-threaded client, you
  297.   cannot issue two requests to the same database handle simultaneously
  298.   on two different threads. For most applications, one database 
  299.   attachment per thread is recommended.
  300.  
  301. * If your application traps for invalid transaction handles, you may 
  302.   need to change the error code from isc_bad_trans_handle (335544332) 
  303.   to isc_dsql_error (335544569).
  304.  
  305. * If the server fails to start automatically on Windows NT 3.51
  306.  
  307.   The install program may create a program group called 'STARTUP'. If
  308.   this is incorrect for your version of Windows NT, you will need to 
  309.   create a startup group appropriate to your version of Windows NT, and
  310.   add the server icon to that startup group.  This is most likely to
  311.   occur in a non-English version of Windows NT.
  312.  
  313.   If the name of your personal startup group has been changed, and you
  314.   use the InterBase Configuration Utility (REGCFG.EXE) to have windows
  315.   automatically start the server, a common program group may be created.
  316.   If the server fails to start the next time windows is started, you 
  317.   will need to create a startup group appropriate to your version of 
  318.   Windows NT, and add the server icon to that startup group.
  319. __________________________
  320. VIII. International Issues
  321.  
  322. * When accessing InterBase 4.0 servers from InterBase 4.1 clients, you 
  323.   should avoid using extended characters in database names.  This is 
  324.   because InterBase 4.1 clients use the ANSI code page whereas InterBase 
  325.   4.0 servers use the OEM code page.
  326.  
  327. * A Version 3.3 database which used international subtypes
  328.   must be backed up using the version 3.3 GBAK utility and 
  329.   restored using the GBAK supplied with Local InterBase Server.  
  330.  
  331. * If a database is created using CHARACTER SET and COLLATE clauses 
  332.   with the NOT NULL attribute, and the schema is then extracted 
  333.   using ISQL -a, the extracted schema will contain a syntax error.  
  334.   This must be corrected before the schema file can be run using 
  335.   ISQL -i to recreate the database.
  336.  
  337. * An international version of the example employee database has been
  338.   added to the example directory. This example database, named
  339.   'intlemp.gdb', uses the international character set ISO8859_1 to
  340.   define some character and blob fields.  The database also has
  341.   stored procedures which sort data.  There are no associated example
  342.   programs.  
  343.  
  344. * When setting up an alias for the intlemp.gdb database using 
  345.   the BDE (SQL Links), set the "Language Driver" on the 
  346.   Alias screen to BLLT1FR0.  This informs both the client and
  347.   InterBase to expect data in the Latin 1 character set.  
  348.   The driver uses French collation, but any Latin 1 driver
  349.   can be used.   
  350.  
  351. * When viewing international data from the Windows SQL tool or from 
  352.   your Borland desktop product, an international language driver 
  353.   should be used.  If data display problems occur, check the language
  354.   driver to be sure that the character set for the driver matches the
  355.   character set of the database data. 
  356.  
  357. * SQL II character count semantics for column sizes are not enforced
  358.   for double-byte characters. Defining a field as CHAR(3) CHARACTER
  359.   SET EUCJ_0208 (double-byte) should allow only 3 characters to be
  360.   stored (in 6 bytes of internal storage).  Currently, if the data
  361.   inserted is single-byte, up to 6 single byte characters are
  362.   accepted into the field before an error is produced.
  363.  
  364. ______________
  365. IX. Deployment
  366.  
  367. For information about deploying applications which use the Local 
  368. InterBase Server 4.1 see DEPLOY.TXT located in the root of your 
  369. InterBase install directory.
  370.  
  371. ___________
  372. X. Tutorial
  373.  
  374. If you are using the tutorial on a Windows NT or 95 Local InterBase Server, 
  375. the table sales_ext in SALES_XT.SQL should be defined as:
  376.  
  377. CREATE TABLE sales_ext external 
  378. "c:\Program Files\Borland\IntrBase\Examples\Tutorial\sales.dat"
  379. (
  380.     po_number       CHAR(10),
  381.     cust_no         CHAR(12),
  382.     sales_rep       CHAR(10),
  383.     order_status    CHAR(13),
  384.     order_date      CHAR(12),
  385.     ship_date       CHAR(12),
  386.     date_needed     CHAR(12),
  387.     paid            CHAR(7),
  388.     qty_ordered     CHAR(12),
  389.     total_value     CHAR(12),
  390.     discount        CHAR(16),
  391.     item_type       CHAR(8),
  392.     eol             CHAR(2)
  393. );
  394. Notice that eol is 2 characters to account for the End of Line being 2 characters
  395. under Windows. Eol should be 1 if sales.dat resides on a Unix server.
  396.  
  397. _______________
  398. XI. ODBC Driver
  399.  
  400. Uninstall is not supported for the InterBase ODBC driver and the 
  401. ODBC Driver manager.
  402.  
  403. On-line help about the InterBase ODBC driver is provided.  To view 
  404. the help, start the ODBC administrator and select a data source of type 
  405.       InterBase 4.x Driver by Visigenic 
  406. from the list of data sources.  Press SETUP | HELP.
  407.  
  408. * ODBC Conformance Levels
  409.  
  410.   The InterBase ODBC driver is ODBC 2.5 compliant.  It supports API
  411.   Level 1 and Core SQL Grammar.  For specific ODBC calls that are 
  412.   supported, refer to the InterBase ODBC Driver on-line help.
  413.  
  414. * Limitations and Known Problems
  415.  
  416.   This version of the InterBase ODBC Driver does not support array
  417.   datatypes.
  418.  
  419. ___________________________________________
  420. XII. Linking and Compiling your application
  421.  
  422. * The import libraries included with Local InterBase have been tested
  423.   with Borland C++ 5.0, Microsoft Visual C++ 2.0 and Microsoft 
  424.   Visual C++ 4.0.
  425.  
  426. * If you are 
  427.     -using a Microsoft Visual C++ 2.0 or Microsoft Visual C++ 4.0
  428.     -compiling and linking separately
  429.   and
  430.     -using the Dynamic Run Time Library (MSVCRT20.DLL or MSVCRT40.DLL) 
  431.   you will need  to use /MD compiler flag to compile with the RTL, as well as 
  432.   linking with the correct import library.
  433.  
  434. ____________
  435. XIII. Errata
  436.  
  437. *  Programmer's Guide
  438.                                 
  439.    In Chapter 6 Working with Data, in the section Using Inner Joins, 
  440.    there are two SQL examples.  The SELECT statements in the examples 
  441.    and the accompanying text have some errors.
  442.  
  443.    The correct syntax for the SELECT statement (in both examples) is:
  444.  
  445.    SELECT D.DEPARTMENT, D.MNGR_NO, E.SALARY
  446.       FROM DEPARTMENT D INNER JOIN EMPLOYEE E
  447.          ON D.MNGR_NO = E.EMP_NO
  448.             AND E.SALARY*2 > (SELECT SUM(S.SALARY) FROM EMPLOYEE S
  449.             WHERE D.DEPT_NO = S.DEPT_NO)
  450.          ORDER BY D.DEPARTMENT;
  451.  
  452.    The accompanying text should say that this statement returns the 
  453.    department name, manager number, and salary for any manager whose 
  454.    salary is equal to or greater than the sum of all the salaries of 
  455.    the employees in that department.  
  456.  
  457. *  Language Reference
  458.                             
  459.    The word 'DISPLAY' was omitted from the reserved word list.
  460.  
  461.    The InterBase Client for Windows User's Guide
  462.                                              
  463.    On page 22, Figure 2 1 shows a box with NETAPI.DLL.  The box is 
  464.    shaded, indicating that NETAPI.DLL is a component of the InterBase 
  465.    Client for Windows.  That is not correct.  The box should be 
  466.    unshaded, indicating that NETAPI.DLL is not a component of the 
  467.    Client for Windows.  It is supplied by the NetBEUI vendor. 
  468.  
  469.    On Page 35, in the section on Temporary Files, mention is made of 
  470.    the TMP environment variable.  These mentions also apply to the 
  471.    environment variable TEMP, although that spelling is not mentioned.
  472.  
  473. ### END OF READLIB.TXT ###
  474.