home *** CD-ROM | disk | FTP | other *** search
/ PC Format Collection 48 / SENT14D.ISO / tech / delphi / disk1 / readib.pak / READIB.TXT
Encoding:
Text File  |  1995-08-24  |  20.8 KB  |  494 lines

  1. =====================================================================
  2.  
  3.        ========================
  4.               README FILE
  5.          InterBase 4.0 For The 
  6.         Local InterBase Server
  7.        ========================
  8.  
  9.         
  10.  
  11. This file contains important information not in the printed 
  12. InterBase documents and includes restrictions and known problems.
  13.  
  14. This README file covers the following topics:
  15.  
  16.  --1-- General Issues
  17.  --2-- Server Manager
  18.  --3-- Windows/ISQL
  19.  --4-- International
  20.  --5-- InterBase Document Updates
  21.  --6-- Redistribution
  22.  
  23.  --1-- General Issues
  24. ======================
  25.  
  26. * InterBase Location
  27.   The Local InterBase Server installation determines where InterBase 
  28.   is installed using the entry in the WIN.INI file.  If you 
  29.   previously had the InterBase Windows Client installed, make sure 
  30.   that the installation removes the "SET INTERBASE=<path>" line 
  31.   from your AUTOEXEC.BAT file.  
  32.  
  33. * Registration
  34.   Local InterBase Server included with your Borland desktop product,
  35.   provides you with a useful platform for prototyping and developing
  36.   client/server applications.  There are strict limitations in redistributing
  37.   components of Local InterBase Server. See #6 Redistribution below.
  38.   
  39.   If you use the Local InterBase Server extensively, you will be 
  40.   interested in information on samples and future product enhancements.
  41.   To receive information, you must register you Borland desktop product by
  42.   referring to the "Three Good Reasons" card.
  43.  
  44. * InterBase Print or Online Document Set
  45.   The online document set for Local InterBase Server includes:
  46.  
  47.   * The Local InterBase Server User's Guide - introduces single-user 
  48.     InterBase and explains the use of the fundamental elements of 
  49.     database access.  
  50.   * The InterBase Workgroup Server Data Definition Guide - explains 
  51.     how to create, alter, and delete database objects with ISQL.
  52.   * The InterBase Workgroup Server Language Reference - Describes 
  53.     SQL syntax and usage.
  54.   
  55.   Not all of the features described in the Data Definition Guide and
  56.   the Language Reference are implemented in local InterBase Server.  
  57.   Refer to the list below for a list of those features that are not 
  58.   supported. 
  59.  
  60. * Remote Configuration
  61.  
  62.   NetBEUI
  63.   -------
  64.   You may experience problems with NetBEUI connections from a Windows for 
  65.   Workgroups 3.11 client to a Windows NT 3.5 server running the NWLink/NWBLink
  66.   protocol.  If you see the following error while connecting to an InterBase 
  67.   server, you may need a Microsoft patch to Windows for Workgroups:
  68.  
  69.      Unable to complete network request to host "ibserver".
  70.        -Error reading data from the connection.
  71.        -The specified server cannot perform the requested operation. 
  72.  
  73.   Microsoft has updated versions of Windows for Workgroups 3.11 files which 
  74.   correct these problems.  These files are available directly from Microsoft 
  75.   and they are also distributed in the \CLIENTS\WFW\UPDATE directory of the 
  76.   Windows NT Server version 3.5 CD.  The following information is from a 
  77.   Microsoft TechNet article.
  78.   --------------------------
  79.   Update Network Files for Windows for Workgroups 3.11          [winnt]
  80.   ID: Q122389   CREATED" 02-NOV-1994   MODIFIED: 10-NOV-1994  3.50
  81.   WINDOWS
  82.   PUBLIC | kbnetwork
  83.   -----------------
  84.   The information in this article applies to:
  85.  
  86.    - Microsoft Windows NT Workstation version 3.5  
  87.    - Microsoft Windows NT Server version 3.5
  88.    - Microsoft Windows for Workgroups version 3.11
  89.   -----------------
  90.  
  91.   The Windows NT Server version 3.5 CD contains updated modules for Windows 
  92.   for Workgroups version 3.11.  The files are located in the 
  93.   \CLIENTS\WFW\UPDATE directory.  These update modules address specific 
  94.   problems related to the NWLink/NWBLink protocol and provide the following:
  95.  
  96.    - Support for named pipes over direct host IPX
  97.    - Performance enhancements to direct host IPX
  98.    - A fix to prevent browsers from synchronizing and announcing all at
  99.      once
  100.    - Changes to all allow Windows NT to remotely administrate Windows
  101.      for Workgroups computers
  102.    - Changes to allow browsing of Windows NT workgroups beyond a single
  103.      subnet
  104.    - Changes to allow Windows NT Server to screen out older Windows for
  105.      Workgroups clients trying to connect through direct host IPX
  106.  
  107.   The following lists files in the \CLIENTS\WFW\UPDATE directory on the 
  108.   Windows NT server version 3.5 CD:
  109.  
  110.    Name            Size             Date
  111.    ------------------------------------------
  112.    NDIS.386         27,846 Bytes    9/4/94 
  113.    NET.EXE         450,262 Bytes    9/4/94 
  114.    NETAPI.DLL      109,120 Bytes    9/4/94 
  115.    NWNBLINK.386     37,964 Bytes    9/4/94 
  116.    VNETSUP.386      14,647 Bytes    9/4/94 
  117.    VREDIR.386       85,746 Bytes    9/4/94 
  118.  
  119.   To apply these updated modules, use the following procedure:
  120.  
  121.   1. Use the RENAME command from Command Prompt or the Rename option from the 
  122.      File menu in File Manager to rename all the files that will be replaced. 
  123.  
  124.   2. Copy the NET.EXE file to the root Windows for Workgroups directory 
  125.      (usually WINDOWS).  The remaining files should be copied to the SYSTEM 
  126.      sub-directory.  
  127.  
  128.   3. Restart the workstation.  
  129.  
  130.   Additional reference words: prodnt 3.50 3.11 wfwg
  131.   KBCategory: kbnetwork
  132.   KBSubcategory: ntinterop ntdistrib ntprotocol
  133.  
  134.   CONNECTING VIA FTP PC/TCP
  135.   The connection to InterBase via FTP PC/TCP is sensitive to
  136.   the amount of conventional memory available to DOS before
  137.   Windows is started.  You need at least 440 KB to use this connection 
  138.   protocol.
  139.  
  140.   For further information about remote configuration of your Local InterBase
  141.   Server, refer to the Server Manager online Help.
  142.  
  143. * Unsupported Features
  144.   Local InterBase Server does not support the following:
  145.    - User Defined Functions
  146.    - BLOB Filters
  147.    - event alerters
  148.    - Write Ahead Log (WAL)
  149.    - Array Datatype
  150.    - database shutdown or restart
  151.    - database shadowing
  152.  
  153. * On-Disk Structure
  154.   The Local InterBase Server and InterBase for NT share the same 
  155.   database on-disk structure.  Databases on either of those 
  156.   platforms can be copied from one environment to another 
  157.   (when no one is accessing the database).  Compatibility with 
  158.   NetWare 4.0 is planned for a future release.  
  159.  
  160. * Security
  161.   Local InterBase Server requires a user name and password.
  162.   User name and password will be validated against the security database
  163.   and access to the database will fail if they are not found. 
  164.  
  165.   Every Local InterBase Server has a SYSDBA user, with password
  166.   "masterkey". Initially, SYSDBA is the only authorized user on the
  167.   server. SYSDBA must authorize all other users on the server. 
  168.  
  169.   It is strongly recommended to change the password for SYSDBA
  170.   as soon as possible. Otherwise, the SYSDBA account will not be
  171.   secure and unauthorized users can access databases on the server.
  172.  
  173. * Query Control 
  174.   The Local InterBase Server uses a single-user model.  Each query 
  175.   gets exclusive control of the engine until that query is finished. 
  176.   Be careful with long-running queries.
  177.  
  178. * Sweeping the Database
  179.   InterBase uses a technique of sweeping the database to remove old 
  180.   copies of records from the database.  By default, at the end of 
  181.   20,000 transactions in a database a sweep will be done for you.
  182.   The cursor indicating a sweep is in progress is an hourglass 
  183.   labeled "SWEEP".  To alter the sweep interval, use Server 
  184.   Manager's Database Maintenance option.
  185.  
  186.   During a sweep, your computer will be busy. To preserve integrity,
  187.   the database will be inaccessible until the sweep is completed.  
  188.  
  189. * Access to Mapped Drives on Remote Machines
  190.   Local InterBase Server is designed to provide a local database
  191.   application development environment for a single user.  Some users
  192.   might want to store large databases on mapped (remote) drives.  
  193.   Access to mapped remote drives is possible, but not supported. 
  194.   When the Local InterBase Server opens a database on a mapped 
  195.   drive, it opens that database with an exclusive lock, preventing 
  196.   access by others on the network.
  197.  
  198.   Instead of attaching to the remote database directly from 
  199.   Local InterBase Server, attach to the remote database through the 
  200.   remote InterBase server (e.g. InterBase for Windows NT).  Make 
  201.   sure to specify the remote InterBase server name in the path 
  202.   (i.e., <server>:<path>).  
  203.  
  204.   Specifying the server name will cause the remote InterBase server
  205.   to treat the Local InterBase Server user just like a normal 
  206.   networked user in the multi-user environment, with the standard 
  207.   multi-user access, capabilities and privileges.  
  208.  
  209. * Remote Events
  210.   Events from a remote InterBase server can cause exhaustion of
  211.   global selectors when the application is repeatedly waiting on
  212.   events and the application is long-running.
  213.  
  214. * Dropping Tables
  215.   Before attempting to DROP a table, first issue an explicit COMMIT;
  216.   statement.  Some operations, such as a SELECT, will set an 'in use'
  217.   flag that will not be cleared until a COMMIT is done.  If you try
  218.   to drop a table and get an 'object <table_name> is in use' error
  219.   message, issue an explicit COMMIT; and try the drop again.  
  220.  
  221. * Decimal Representations
  222.   Internally, InterBase represents decimal numbers as data type 
  223.   SHORT with a scale factor, or as a type LONG with a scale factor,
  224.   if the specified precision is small enough to fit in these 
  225.   datatypes.
  226.  
  227.   Embedded SQL applications need to adjust decimal numbers of 9
  228.   digits or less by taking the scale factor into account (that is,
  229.   divide the number by 10 to the exponent of scale factor). 
  230.  
  231.   For example, for the three following decimal representations:
  232.  
  233.        a(4,2)          b(9,3)          c(15,2)
  234.         short/100       long/1000       double/100
  235.  
  236.    select a, b, c into :a, :b, :c
  237.     from tablex
  238.      print (a/10**2, b/10**3, c/10**2)
  239.  
  240. * Local Variables
  241.   In DSQL, CHAR and VARCHAR columns fetched from a table are not
  242.   NULL terminated. In C and C++ applications, be sure that local
  243.   variables are declared with an extra byte of storage for a NULL
  244.   terminator, and that the application also inserts a NULL ('\0')
  245.   in the final byte.
  246.  
  247. * Character Columns
  248.   In DSQL, CHAR columns are interpreted by PREPARE and DESCRIBE as
  249.   SQL_TEXT + 1.
  250.  
  251. * Text Representations
  252.   In DSQL, when casting non-text data into a text representation, 
  253.   use the SQL cast operator in the DSQL statements rather than
  254.   setting SQL type in the SQLDA.  For example, rather than using:
  255.  
  256.      SELECT date . . . 
  257.  
  258.   instead use:
  259.  
  260.      SELECT cast (date as character(20)) . . . .
  261.  
  262. * File Name Conventions
  263.   Local InterBase Server cannot access databases with names that do 
  264.   not conform to the 8.3 file naming convention.  If a file has in 
  265.   its pathname a name longer than 8 characters (and a 3-character 
  266.   extension) the attachment will fail.  
  267.  
  268. * Maxiumum Size of Key in a Sort clause
  269.   For queries that include a sorting clause (sort by, distinct,
  270.   order by, group by) the maximum size of the Local InterBase 
  271.   Server sort key is 64 Kbytes. 
  272.  
  273.   The size of the key equals the sum of the sizes of the columns 
  274.   included in the sorting clause. For example, sorting on two char 
  275.   fields that are each 17K wide will not work properly.
  276.  
  277. * Database Access
  278.   When attempting to access a database using ODBC through IDAPI, 
  279.   make sure to include a non-null user name and password. 
  280.  
  281. * Restoring Databases
  282.   User Defined Functions (UDFs) are not supported by Local InterBase
  283.   Server.  When you restore a Version 3.x database that uses UDFs, 
  284.   make sure that the UDF library is not present.
  285.  
  286. * Sample C Programs
  287.   The Sample C application programs are not included in Local 
  288.   InterBase Server.
  289.  
  290.  
  291.  --2-- Server Manager
  292. ======================
  293.  
  294. * Starting Server Manager
  295.  
  296.   When it starts, Server Manager checks for a local database server.  
  297.   If a local database server is present, the "Local Server" radio
  298.   button will be enabled in the "Connect to Database" dialog box.
  299.   
  300.   The user can then connect to the local database server by specifying 
  301.   the user name and password.
  302.  
  303.   If Server Manager does not detect a local database server, the 
  304.   "Local Server" radio button will be disabled.  Any database connection
  305.   will be remote, requiring a username and password.
  306.  
  307. * Environment Variables
  308.   The environment variables ISC_USER and ISC_PASSWORD will, if they 
  309.   are set, be used as the default user name and password by Server
  310.   Manager.  If you use these variables, make sure that the user define 
  311.   them by them actually exists in the local security database, 
  312.   ISC4.GDB.  Add them to ISC4.GDB using Server Manager.  If they are 
  313.   not in ISC4.GDB, you might get an error message that your user 
  314.   name and password are undefined.  Use of these variables is not 
  315.   recommended because an unauthorized user can find out the 
  316.   definitions and possibly use that information to circumvent 
  317.   database security features.  To remove the environment variables, 
  318.   exit Windows, reset both variables to zero, then restart Windows. 
  319.  
  320. * Unsupported Features
  321.   The following features are not supported by Local InterBase Server
  322.   and will appear grayed-out on the server manager menus:
  323.  
  324.         Tasks/Lock Manager Statistics
  325.     Tasks/Database statistics
  326.     Maintenance/Disable WAL
  327.       Maintenance/Database Shutdown
  328.     Maintenance/Database Restart
  329.     Maintenance/Database Properties: The Enable Forced Writes check box in
  330.                  the Properties dialog box will be 
  331.                  grayed-out.
  332.  
  333. * Verbose Output Messages
  334.   For backup/restore, the output text window is limited to 32K.  
  335.   If you choose the verbose option on a large database, you may see
  336.   a dialog box stating the buffer space was exceeded and prompting
  337.   you to save the results to a file.  If you choose 'yes', all future
  338.   results will be saved to the specified file and the text in the
  339.   window will scroll off the top.  If you choose 'no', the backup
  340.   will still complete, but the verbose output will stop.
  341.  
  342. * Slash Character
  343.   When issuing a connect, backup, or restore to a database on a Unix
  344.   server, be sure to always start the pathname with the slash
  345.   character (/). 
  346.  
  347. * Backup File Default Location
  348.   The Server Manager backup utility places the backup file in a
  349.   specific default directory.  On an NT server, the default directory
  350.   for the backup file is WINNT\SYSTEM32.  On a NetWare server the
  351.   default directory for the backup file is the SYS volume's root
  352.   directory.  If you want the backup file to be written in a
  353.   different directory, specify the complete pathname when the Server
  354.   Manager prompts for the Backup File or Device.  
  355.  
  356.  
  357.  --3-- Windows/ISQL
  358. ====================
  359.  
  360. * Windows/ISQL, through the Local InterBase Server, allows access 
  361.   to remote and local servers.  
  362.  
  363. * Starting WISQL
  364.   When it starts, WISQL checks for a local database server.  If a 
  365.   local database server is present, the "Local Server" radio button
  366.   will be enabled in the "Connect to Database" dialog box.
  367.   
  368.   The user can then connect to a local database by specifying the
  369.   user name and password.
  370.  
  371.   If WISQL does not detect a local database server, the "Local Server" 
  372.   radio button will be disabled.  Any database connection will be remote,
  373.   requiring a username and password.
  374.  
  375. * The SQL Output area is limited to 32 KBytes of output.  Output 
  376.   that exceeds this amount will be appended to the end of the 
  377.   buffer, and the initial lines in the buffer will scroll off.  
  378.   For queries which return a large amount of data, the cursor will
  379.   become an hourglass, and when the query completes, the last 32K of
  380.   output will be displayed in the Output Area.  To see results that
  381.   exceed 32K, click on "Save to File" and view the file.
  382.  
  383. * Maximum row size (size of each field, plus 1 byte per field) is 
  384.   limited to 64K bytes.  On a Windows Client, ISQL requests that
  385.   have NULL indicator fields require a smaller maximum row size,
  386.   because each NULL indicator field adds an additional 2 bytes to
  387.   retrieval requirements.  
  388.  
  389.  
  390.  --4-- International
  391. =====================
  392.  
  393. * The Local InterBase Server international feature set is 
  394.   significantly different from that used in previous InterBase 
  395.   implementations.  A Version 3.3 database which used international 
  396.   subtypes must be backed up using that version's GBAK utility and 
  397.   restored using the GBAK from Local InterBase Server.  
  398.  
  399. * If a database is created using CHARACTER SET and COLLATE clauses 
  400.   with the NOT NULL attribute, and the schema is then extracted 
  401.   using ISQL -a, the extracted schema will contain a syntax error.  
  402.   This must be corrected before the schema file can be run using 
  403.   ISQL -i to recreate the database.
  404.  
  405. * An international version of the example employee database has been
  406.   added to the example/v4 directory. This example database, named
  407.   'intlemp.gdb', uses the international character set ISO8859_1 to
  408.   define some character and blob fields.  The database also has
  409.   stored procedures which sort data.  There are no associated example
  410.   programs.  
  411.  
  412. * When setting up an alias for the intlemp.gdb database using 
  413.   the BDE (SQL Links), set the "Language Driver" on the 
  414.   Alias screen to BLLT1FR0.  This informs both the client and InterBase 
  415.   to expect data in the Latin 1 character set.  The driver uses 
  416.   French collation, but any Latin 1 driver can be used.   
  417.  
  418. * When viewing international data from the Windows SQL tool or from 
  419.   your Borland desktop product, an international language driver 
  420.   should be used.  If data display problems occur, check the language
  421.   driver to be sure that the character set for the driver matches the
  422.   character set of the database data. 
  423.  
  424.   In Windows SQL the use of the language driver is controlled by 
  425.   the Advanced features pull-down menu and the Character Set On 
  426.   selection list.  This feature executes a SET NAMES command.  
  427.   You must re-connect to the database after using this feature.  
  428.   
  429.  
  430. * SQL II character count semantics for column sizes are not enforced
  431.   for double-byte characters. Defining a field as CHAR(3) CHARACTER
  432.   SET EUCJ_0208 (double-byte) should allow only 3 characters to be
  433.   stored (in 6 bytes of internal storage).  Currently, if the data
  434.   inserted is single-byte, up to 6 single byte characters are
  435.   accepted into the field before an error is produced. (6180)
  436.  
  437. * The OCTETS character set is not a valid parameter to SET NAMES in
  438.   ESQL and it is not available as a character set choice in Windows
  439.   ISQL's Session/Advanced Settings menu.  
  440.  
  441.  
  442.  --5-- InterBase Document Updates
  443. ==================================
  444.  
  445. InterBase Language Reference
  446. ----------------------------
  447. The reserved word 'DISPLAY' is not included in the list of 
  448. keywords in Appendix A of the InterBase Language Reference.
  449.  
  450. Local InterBase Server User's Guide
  451. -----------------------------------
  452. The dialog box that controls connecting to a database differs from 
  453. the explanation present in the User's Guide.  The User's Guide does 
  454. not show the Local and Remote server buttons (Page 40).  If those 
  455. buttons are present, refer to the on-line help for information.
  456. Similarly, the discussion of creating a database should mention 
  457. that a database can be created on a remote server as well as
  458. the local server (Page 40 and also Page 73).
  459.  
  460. User Name and password are required for connection to a 
  461. remote database server.  Refer to the on-line help for information 
  462. on connecting to remote databases. 
  463.  
  464. The Database Maintenance Window accessed through the Tasks Menu
  465. has been eliminated.  The database maintenance features are now
  466. accessed through the Maintenance Menu. The screen shots in the
  467. documentation do not reflect these changes.
  468.  
  469. The discussion on the Server/Database Tree should mention both
  470. local and remote databases.  When Server Manager is used with Local
  471. InterBase Server, only local branches of the tree are accessible 
  472. (Page 139).  After a connection is made to a remote server, the 
  473. databases on the remote server are shown in Server Manager windows. 
  474.  
  475. In Appendix C of the Local InterBase User's Guide (Page 189), the 
  476. first sentence of the second paragraph states, "The database 
  477. (EMPLOYEE.GDB) is created with the data definition file, 
  478. CREATEDB.SQL".  That statement is no longer correct.  The 
  479. EMPLOYEE.GDB database is already built and included with Local 
  480. InterBase Server.  The user does not have to build it.  
  481.  
  482. -- 6 -- Redistribution
  483.  
  484. For application redeployment, Delphi Client/Server allows redistribution
  485. of the Local InterBase Server files. For information about 
  486. redistibuting Local InterBase Server files with your Delphi
  487. application, refer to DEPLOY.TXT in Delphi. For redeployment of
  488. applications created with other Borland desktop products that use 
  489. the Local InterBase Server, you will need a deployment kit purchased
  490. separately from Borland. Contact Borland for information about Local
  491. InterBase Server redeployment.
  492.  
  493.  
  494.