Silo - Tips - Sqlbase Starter Guide

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

SQLBase Starter Guide

20-2905-1005

Sqlbase Starter Guide Page 1


Trademarks
Gupta, the Gupta logo, Gupta Powered, the Gupta Powered logo, Centura, Centura Ranger, the Centura
logo, Centura Web Developer, Fast Facts, Object Nationalizer, Quest, Quest/Web, QuickObjects, SQL/API,
SQLBase, SQLConsole, SQLGateway, SQLHost, SQLNetwork, SQLRouter, SQLTalk, and Team Object
Manager are trademarks of Gupta Technologies and may be registered in the United States of America
and/or other countries. SQLWindows is a registered trademark and TeamWindows, ReportWindows and
EditWindows are trademarks exclusively used and licensed by Gupta Technologies.

Team Object Manager, Web Developer, QuickObjects, Object Nationalizer, Report Builder, Connectivity
Administrator, Development Kit, Component Development Kit, SQLBase Resource Manager, and
SQLConsole are names of products from Gupta Technologies.

Adobe is a trademark of Adobe Systems, Incorporated.

IBM, OS/2, NetBIOS, and AIX are registered trademarks of International Business Machines Corporation.

Linux is a trademark of Linus Torvalds. Red Hat is a trademark of Red Hat, Incorporated. Novell and
Netware are trademarks of Novell, Inc. SUSE is a trademark of SUSE LINUX AG. Java, JavaScript, and
Solaris are trademarks of Sun Microsystems, Incorporated. Microsoft, Outlook, PowerPoint, Visual C++,
Visual Studio, Internet Explorer, Internet Information Server, DOS, Win 32, Windows, ActiveX, MSDN,
SQL Server, and Visual Basic are either registered trademarks or trademarks of Microsoft Corporation in
the United States of America and/or other countries.

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit.
(http://www.openssl.org/).

All other product or service names mentioned herein are trademarks or registered trademarks of their
respective owners.

Copyright
Copyright © 2012 by Gupta Technologies. All rights reserved.

Sqlbase Starter Guide Page 2


Table of Contents

SQLBase Starter Guide .................................................................................................................................. 1

Trademarks............................................................................................................................................ 2

Copyright ............................................................................................................................................... 2

Table of Contents ...................................................................................................................................... 3

Chapter 1 Introducing SQLBase ................................................................................................................ 4

SQLBase platforms ................................................................................................................................ 4

SQLBase packages ................................................................................................................................. 4

Chapter 2 Configuring SQLBase for Windows .......................................................................................... 8

Connectivity Administrator ................................................................................................................... 8

SQL.INI file configuration settings......................................................................................................... 9

Chapter 3 Configuring SQLBase for Linux ............................................................................................... 13

sql.ini file configuration settings ......................................................................................................... 13

Chapter 4 Running SQLBase.................................................................................................................... 16

Uninstalling SQLBase ........................................................................................................................... 17

Chapter 5 What now? ............................................................................................................................. 19

Finishing your configuration ............................................................................................................... 19

Testing your installation ...................................................................................................................... 19

National Language Support................................................................................................................. 22

Using drivers and data providers ........................................................................................................ 22

Client applications ............................................................................................................................... 23

Loading database files into SQLBase................................................................................................... 23

Sqlbase Starter Guide Page 3


Chapter 1
Introducing SQLBase
This chapter offers a general discussion of some of the features of SQLBase. Additionally, it describes the
two SQLBase packages, SQLBase Server and SQLBase Desktop, and their respective components.

Each of the topics mentioned throughout this book is covered in far greater detail in other books that
make up the SQLBase Books Online collection. Be sure to check there for more information.

SQLBase platforms
SQLBase is supports the following platforms:

• Windows
• Red Hat Linux (see the release notes for exact versions).

SQLBase supports multiple users with remote communication through a network as well as local
communication.

SQLBase packages
SQLBase comes with a single installation package that installs the version of SQLBase that you have
licensed. Gupta offers two SQLBase versions: SQLBase Desktop (single-user) and SQLBase Server (multi-
user. This section describes each of these versions and their components.

SQLBase Server for Windows

SQLBase Server is a multi-user database server that runs on all versions of Windows. SQLBase for
Windows is licensed based on concurrent user connections and comes in various user bands; for
example: 5-user, 50-user, and unlimited users. The following table describes the options in the SQLBase
Server package:

Sqlbase Starter Guide Page 4


Component option Description

Windows 32-bit and SQLBase Server is a multi-user database server program that can
64-bit Servers communicate both with local and remote client applications.
This option also includes the Connectivity Administrator and SQLBase
Management Console (SMC). Also included is SQLBase Resource Manager,
with support for COM+ transactions.

Client Software The Client Software contains the following components:

• Communication libraries
Front-end programs communicate with the server through support
programs called communication libraries.
• Connectivity Administrator (32 bit clients and servers only) A tool
for editing your SQL.INI file.
• DBError
A utility for looking up SQLBase error messages. Provides the error
text, reason for the error, and suggested solutions. This is typically
used during the application development process.
• SQL/API
The application programming interface. Included with the SQL/API is
sample source code you can use to learn how to utilize the SQL/API.
• SQLTalk
A front-end interface for SQL.
• Release notes and certification description

SQLConsole DBA utility SQLConsole is a database administration and monitoring tool for SQLBase
Servers and databases. From a single Windows desktop, SQLConsole lets you
perform administrative tasks for a local SQLBase server and all the SQLBase
servers on a network.
Documentation The documentation can be accessed from Start | Programs | Gupta |
SQLBase 11.7 | Documentation.

SQLBase ODBC Driver An industry-standard ODBC 3.5 Driver, fully supporting multi-threaded
applications.

SQLBase OLE DB Data An industry-standard set of COM objects providing access to SQLBase
Provider databases. Supports COM+ (MTS) distributed transactions.
SQLBase .NET Data An industry-standard set of ADO.NET Data provider providing access to
Provider SQLBase databases for development tools that use the .NET SDK Framework.

SQLBase JDBC Driver A set of Java classes allowing access to SQLBase from Java applets and
applications.

C Programmer’s SQLBase C example programs and interface.


interface

Sqlbase Starter Guide Page 5


SQLBase Desktop

SQLBase Desktop is a single-user database server that runs on Windows. It is licensed by machine, and
comes in various licensing packs, such as 5- and 25-machine packs. The following table describes the
installation options in the SQLBase Desktop package:

Component option Description

Desktop Server (32 and SQLBase Server is a 32-bit database server program that runs under Windows.
64 bit bit) It can communicate both with local and remote client applications.
Client software includes:
• Communication libraries
Front-end programs communicate with the server through support
programs called communication libraries.
• Connectivity Administrator
A tool for editing your SQL.INI file.
• SQL/API
The application programming interface. Included with the SQL/API is
sample source code you can run to learn how the SQL/API handles
certain SQLBase features.
• SQLTalk
A front-end interface for SQL.
• Release notes and certification description

SQLConsole DBA Utility SQLConsole is a database administration and monitoring tool for SQLBase
servers and databases. From a single Windows desktop, SQLConsole lets you
perform administrative tasks for a local SQLBase server and all the SQLBase
servers on a network.
SQLBase Programmers Contains the SQL/API software and SQLBase ++. The SQL/API is a language
Interface interface that lets you develop a client application that uses SQL. You embed
SQL/API functions within your C program, which allows you to use SQL
without giving up the power and flexibility of either programming language.
You can create and run SQL/API applications on any of the server platforms.
SQLBase ++ is a C++ based source library for application development.
SQLBase ODBC Driver A standard ODBC 3.5 driver that fully supports multi-threaded applications.
SQLBase OLE DB Data An industry-standard set of COM objects providing access to SQLBase
Provider databases. Supports COM+ (MTS) distributed transactions.
SQLBase .NET Data An industry-standard set of ADO.NET Data provider providing access to
Provider SQLBase databases for development tools that use the .NET SDK Framework.
SQLBase JDBC Driver A set of Java classes allowing access to SQLBase from Java applets and
applications.

Sqlbase Starter Guide Page 6


SQLBase Server for Linux

SQLBase Server is a multi-user database server that runs on Red Hat Linux (see release notes for exact
versions supported.) The following table describes the options in the SQLBase Server package:

Component option Description

Linux 32-bit Server SQLBase Server is a 32-bit, multi-user database server program that can
communicate both with local and remote client applications.
Client Software The Client Software contains the following components:
• DBError
A utility for looking up SQLBase error messages. Provides the error
text, reason for the error, and suggested solutions. This is typically
used during the application development process.
• SQL/API
The application programming interface. Included with the SQL/API is
sample source code you can use to learn how to utilize the SQL/API.
The API binary files also contain communication components to
handle TCP/IP communication with the database server.
• SQLTalk
A character-mode front-end interface for SQL. You can run SQLTalk
from the Linux command line.
• Release notes and certification description

Documentation The documentation can be accessed from Start | Programs | Gupta | SQLBase
11.7 | Documentation.
SQLBase ODBC Driver An industry-standard ODBC 3.5 Driver, fully supporting multi-threaded
applications.
SQLBase JDBC Driver A set of Java classes allowing access to SQLBase from Java applets and
applications.
C Programmer’s interface SQLBase C example programs and interface.

Sqlbase Starter Guide Page 7


Chapter 2
Configuring SQLBase for Windows
This chapter provides information about configuring SQLBase. Topics include:

• Connectivity Administrator
• SQL.INI file

Connectivity Administrator
The Connectivity Administrator lets you edit your SQL.INI file, adding databases and routers. Using this
tool, you can set the configuration for SQLBase Server, including:

• Setting the options for a SQLBase server


• Enabling and disabling communication protocols
• Adding or removing a database name
• Viewing a list of database names

The Connectivity Administrator detects all relevant software installed on your computer, including
network protocols and configurations. The automated configuration also sets simple and advanced
parameters of the database server. You can configure connectivity for both your client and server during
the same Connectivity Administrator session. To configure your server, click the Server tab.

Using the Connectivity Administrator

1. Select Programs, Gupta, SQLBase 11.7, Connectivity Administrator from the Start menu.

Sqlbase Starter Guide Page 8


2. Click the Server tab to show the installed server.
3. Click the + symbol next to the server name to display listening protocols and databases.
The following actions are available when using the Connectivity Administrator.

• Left-click to select an item


• Double-click to change properties
• Right-click to display a menu of connectivity functions

For detailed information about the Connectivity Administrator, read the online help that is provided with
this tool.

SQL.INI file configuration settings


Gupta products read the SQL.INI file at program start-up. The SQL.INI file is the common file containing
software configuration settings. Each client and server machine must have a SQL.INI file. Beginning with
version 8.5, it is possible to name SQL.INI to any other name, and store it in any location on the
computer. However, in SQLBase documentation, the name of the configuration file will always be
referred to as SQL.INI, even though your file’s name may be different. In version 8.5 or later, you can use
Connectivity Administrator or SQLBase Management Console to control the name and location of the
configuration file.

Note: The Windows version of SQLBase is not case-sensitive, but the Linux version of SQLBase expects
this file to be in lowercase: sql.ini.

To use a SQLBase client, you must first enable the appropriate communication libraries by setting the
correct comdll value in the sql.ini file. The easiest way to do this is by setting the communications
interfaces through the SQLBase Connectivity Administrator or your preferred text editor. Read the
online help for the SQLBase Connectivity Administrator for more information, or refer to chapters two
and three of the Database Administrator Guide.

Sqlbase Starter Guide Page 9


Do I need to configure sql.ini?

If you have just installed SQLBase, and you wish to verify that it is running correctly, you probably will
not need to change the configuration in sql.,ini. The installation of SQLBase for Windows provides
default values that allow the server to run and to make itself available using the TCP/IP protocol on port
2155. The client components installed at the same time are configured to talk to that server and to
access the sample database ISLAND.

However, once you have tested SQLBase and you wish to begin using it for your own applications and
data, you will need to make configuration changes in the sql.ini file. Some of the reasons that you would
make these changes include:

• Adding new databases to the server.


The database names must be added to both the client and server portions of sql.ini

• Restricting which databases are visible to client applications.


The default at installation time is to make all databases on a server visible.

• Changing performance settings.


sql.ini contains keywords related to cache sizes, types of joins, log files, and other performance
features. You can change the values associated with those keywords.
The most complete information about configuring sql.ini is found in the Database Administrator Guide,
chapters 2 and 3.

How SQLBase finds sql.ini


When a server starts or when a client attempts to connect to a server three important configuration files
must be found or an error message is issued. These are the main configuration file, referred to as sql.ini
throughout the documentation, and files error.sql and message.sql, which influence messaging between
server and client.

Logic for servers


Each server executable accepts an optional command-line argument that contains the file name (and,
optionally, the path) of the configuration file. The name might be something other than sql.ini.

An example of a command line specifying the argument is:

dbntsrv.exe “ini=c:\my work directory\myconfigfile.cfg”

If the command-line argument is left blank when the executable starts, it is presumed that the
configuration file is named sql.ini and that it resides in the same directory as the executable itself.

Two other important files, error.sql and message.sql, are always required to be in the same directory as
the database server executable itself.

Sqlbase Starter Guide Page 10


Logic for clients
If a client application connects to the database using the API function sqliniEx, then it supplies the explicit
name and location of the configuration file and the API will simply attempt to open that file. No other
searching will be done. Some Gupta client tools, such as SQLTalk, can accept a command-line argument
specifying the configuration file, and if such an argument is specified then the sqliniEx method of
connecting is used.
If no explicit configuration file is named, the SQLBase API attempts to locate a file named sql.ini, looking
in the following locations:
1. The directory named in the SQLBASE environment variable.
2. Current directory.

3. \SQLBASE (for Windows) or /SQLBASE (for Linux) directory on the current drive.

4. Root directory on the current drive.

5. Directories specified by the PATH environment variable.

Note: If the SQLBASE environment variable is set, SQLBase looks only in the directory to which it points.
It does not continue to follow the search order outlined above.

Client logic for error.sql and message.sql


Once the configuration file (default name sql.ini) has been located, two other important files must be
located. The search logic for error.sql and message.sql is very similar to that for SQL.INI, with one
important difference. Since sql.ini has already been located, we can check for the CLIENTRUNTIMEDIR
keyword in that file. If the keyword exists and has a value, then only the directory named by that value
will be searched for error.sql and message.sql. Otherwise, the search logic shown in steps 1 through 5
above is used to locate these two files.

Running SQLBase Server as a Windows service

Note: In order to install SQLBase Server for Windows as a service, you must have Administrator
privileges.

SQLBase Server for Windows offers the option, during installation, to run as a Windows service. If this
option is chosen, SQLBase is set to run as a system account and to interact with the desktop.

Prior to version 8.5 only one instance of SQLBase Server could be run on a Windows machine at any
given time, regardless of whether it was being run as a service or an application program. Beginning with
version 8.5, multiple SQLBase Server engines can run simultaneously, although only one of these
instances can be a version prior to 8.5. You can use the SQLBase Management Console (SMC) to start
and stop SQLBase as a Windows service. SMC also allows you to rename a SQLBase service, and to

Sqlbase Starter Guide Page 11


register as a service a SQLBase instance that was previously configured to run as an application. For
information, read Chapter 6, DBA Operations, in the Database Administrator’s Guide.

For more information on running SQLBase Server for Windows as a service, read Chapter 13, Running
SQLBase Server as a Windows Service in the Database Administrator’s Guide.

Note: SQLBase cannot run as a service automatically if you are using the user account in the Services
setup.

Sqlbase Starter Guide Page 12


Chapter 3
Configuring SQLBase for Linux

This chapter provides information about configuring SQLBase on Linux machines.

sql.ini file configuration settings


Gupta products read the sql.ini file at program start-up. The sql.ini file is the common file containing
software configuration settings. Each client and server machine must have a sql.ini file. It is possible to
name sql.ini to any other name, and store it in any location on the computer. However, in Gupta’s
documentation, the name of the configuration file will always be referred to as sql.ini, even though your
file’s name may be different.

Note: Some areas in books and online help refer to the file as SQL.INI, but on Linux, with its case-
sensitivity, you should always use the lowercase form.

How SQLBase finds sql.ini


When a server starts, or when a client attempts to connect to a server, three important configuration
files must be found or an error message is issued. These are the main configuration file, referred to as
sql.ini throughout the documentation, and files error.sql and message.sql, which influence messaging
between server and client.
Logic for servers

Each server executable accepts an optional command-line argument that contains the file name (and,
optionally, the path) of the configuration file. The name might be something other than sql.ini. An
example of a command line specifying the argument is:

./dblxsrv “ini=/usr/etc/my work directory/myconfigfile.cfg”

If the command-line argument is left blank when the executable starts, it is presumed that the
configuration file is named sql.ini and that it resides in the same directory as the executable itself.

Two other important files, error.sql and message.sql, are always required to be in the same directory as
the database server executable itself.

Logic for clients


If a client application connects to the database using the API function sqliniEx, then it supplies the
explicit name and location of the configuration file and the API will simply attempt to open that file. No

Sqlbase Starter Guide Page 13


other searching will be done. Some Gupta client tools, such as sqllxtlk, can accept a command-line
argument specifying the configuration file, and if such an argument is specified then the sqliniEx method
of connecting is used.

If no explicit configuration file is named, the SQLBase API attempts to locate a file named sql.ini, looking
in the following locations:
1. The directory named in the SQLBASE environment variable.
2. Current directory.
3. /SQLBASE directory on the current drive.
4. Root directory on the current drive.
5. Directories specified by the PATH environment variable.

Note: If the SQLBASE environment variable is set, SQLBase looks only in the directory to which it points.
It does not continue to follow the search order outlined above.

Client logic for error.sql and message.sql


Once the configuration file (default name sql.ini) has been located, two other important files must be
located. The search logic for error.sql and message.sql is very similar to that for SQL.INI, with one
important difference. Since sql.ini has already been located, we can check for the CLIENTRUNTIMEDIR
keyword in that file. If the keyword exists and has a value, then only the directory named by that value
will be searched for error.sql and message.sql. Otherwise, the search logic shown in steps 1 through 5
above is used to locate these two files.

Do I need to configure sql.ini?

If you have just installed SQLBase, and you wish to verify that it is running correctly, you probably will
not need to change the configuration in sql.,ini. The installation of SQLBase for Linux provides default
values that allow the server to run and to make itself available using the TCP/IP protocol on port 2155.
The client components installed at the same time are configured to talk to that server and to access the
sample database ISLAND. The CLIENTRUNTIMEDIR keyword in sql.ini has a value that points to the same
directory in which client program sqllxtlk is installed.

However, once you have tested SQLBase and you wish to begin using it for your own applications and
data, you will need to make configuration changes in the sql.ini file. Some of the reasons that you would
make these changes include:

• Adding new databases to the server.


The database names must be added to both the client and server portions of sql.ini

• Restricting which databases are visible to client applications.


The default at installation time is to make all databases on a server visible.

• Changing performance settings.

Sqlbase Starter Guide Page 14


sql.ini contains keywords related to cache sizes, types of joins, log files, and other performance features.
You can change the values associated with those keywords.

The most complete information about configuring sql.ini is found in the Database Administrator Guide,
chapters 2 and 3.

Sqlbase Starter Guide Page 15


Chapter 4
Running SQLBase
This chapter provides step-by-step instructions for starting and stopping the SQLBase Server. It also
includes information on uninstalling SQLBase.

Windows

This section describes how to start and stop the SQLBase Server for Windows. You must start the
database server before clients can access a database, unless you are using the Anonymous Pipes
protocol. When this protocol is used, SQLBase will be started automatically when an application
attempts to connect to a database on the same machine.

Starting
By default, the setup installs SQLBase as a service. If you choose to run SQLBase Server as a Windows
application, you should use SQLBase Management Console or the Windows Service Manager to make
sure that the SQLBase service is disabled first.

You can manually start SQLBase as a service using either SQLBase Management Console or the Windows
Service Manager.

For more information on running SQLBase Server as a service program, read Chapter 13 of the Database
Administrator’s Guide.

To start SQLBase as an application, select Programs, Gupta, SQLBase 11.7 and SQLBase Server from the
Start menu. This item name varies depending upon your installation directory and the server version
installed.
Stopping

It is recommended that you disconnect all users prior to stopping SQLBase. If you use SQLBase
Management Console to stop SQLBase, that tool allows you to automatically disconnect any current
users if you wish. If, however, users are still connected when you stop the server, SQLBase automatically
performs recovery on these databases during the next connection. If RECOVERY is set to off, SQLBase
will be unable to recover the affected databases.

SQLBase as a Windows service


SQLBase can be stopped by using either SQLBase Management Console or the Windows Service
Manager. Gupta recommends you use SQLBase Management Console since this tool enables you to

Sqlbase Starter Guide Page 16


verify that there are no users connected before you stop the server. For more information about
SQLBase Management Console, see the Database Administrator’s Guide.

SQLBase as an application

To stop SQLBase Server, do one of the following:

• Select File, Exit from the SQLBase menu bar then close the SQLBase Server window.
• Use the SQLBase Management Console to stop the SQLBase application.
• Programmatically shut down the server using either SQLTalk or using the SQLBase API.
For information on the SQLBase API, read the SQLBase SQL Application Programming
Interface Reference.

Linux
This section describes how to start and stop SQLBase on Linux operating systems. See the release notes
for the specific Linux brands and versions supported.

Starting SQLBase
The name of the SQLBase binary is dblxsrv. Navigate to the directory that contains this binary and enter
the binary name as a command. Enter ./dblxsrv from the command prompt; do not double-click the file
in File Manager.
When SQLBase starts, it displays a console window showing basic statistics about the server. To learn
more about this window, read Chapter 5 of the Database Administrator Guide.

Stopping SQLBase
In the console window which displays SQLBase statistics, press Ctrl-X. If users are currently connected,
SQLBase will prompt whether to stop anyway, and you may answer Y or N. Otherwise, SQLBase stops
immediately.

Uninstalling SQLBase
On Windows

To remove the SQLBase software from your Windows computer, use the Add/ Remove Programs applet
in the systems Control Panel.

On Linux
To remove the SQLBase software from your Linux computer, navigate to subdirectory uninst beneath
the main program directory. Then run this command:

Sqlbase Starter Guide Page 17


./uninstaller.bin

The uninstaller runs as a GUI application. Add the -console argument to the end of the command line to
run as a console application.

Sqlbase Starter Guide Page 18


Chapter 5
What now?

This chapter contains information on testing your configuration using SQLTalk, National Language
Support, using drivers and data providers, and loading database files to the SQLBase Server.

Finishing your configuration


You are encouraged to edit sql.ini to make several settings that improve performance of the SQLBase
server and client. The keywords whose values need to be set are listed below. Refer to the Database
Administrator Guide, Chapter 3, to see full detail for the meaning and possible values of each keyword.

Server-related settings
fileaccess should be set to 0 for security reasons.
cache should be set to one-quarter of your of physical memory for good performance.
dbdir should be set to a specific directory, initially the one in which the ISLAND subdirectory can be
found.
servername should be set to a unique name. Note that this unique name must be echoed in some of the
client-related settings, too.
password should be set to a non-null value for increased security.

Client-related settings
clientruntimedir should be set to a directory, even if it is the same as the directory that contains your
client components.
serverpath should be configured with correct information for the servers that your client will be
communicating with.

Testing your installation


You can test the connection between your server and client using SQLTalk or SQLConsole.

Sqlbase Starter Guide Page 19


SQLTalk
Before starting SQLTalk, make sure that the server program is running, as described in the previous
chapter.

Starting the SQLTalk program in Windows


To start SQLTalk, invoke the SQLTalk item from the Gupta program group.

Using SQLTalk with Windows


This section describes how to run SQLTalk using the sqltalk.exe Windows interface. There is also a
sqlnttlk.exe that runs on Windows but behaves much like the Linux version described in the next section.

1. Be sure that the server program is running. Refer to Starting and stopping the server on
page 4-2. On some single-user installations in Windows, the server will start
automatically when a client program like SQLTalk begins, but ordinarily the server must
be started in advance.

2. Start SQLTalk on the client machine, as described in the previous section. Select Connect
from the Session menu.

3. In the dialog box, enter a database name (for example ISLAND), and click Connect.

Note: ISLAND is the standard default database that ships with SQLBase.

If your network and software components are configured correctly, a connection will be added to the
list as shown below (Windows example).

The Current Connections box displays ISLAND as the database name, which confirms your connection to
this database. Click Close.

Sqlbase Starter Guide Page 20


As an alternate technique in Windows, you can also connect to a database by entering a connection
command in a SQLTalk window. For example:

CONNECT ISLAND;

CURSOR 1 CONNECTED TO ISLAND

4. Enter SQLTalk commands. Remember to end every command with a semicolon. You can
start entering commands at the cursor in the top pane of the SQLTalk window. For
example:

To execute the command that the cursor is currently over, press Ctrl+Enter.

Starting the SQLTalk program in Linux


The SQLTalk executable is named sqllxtlk. Navigate to that directory containing it
(or make sure the directory is in the path) and launch the executable.

Using SQLTalk on Linux

Entering commands in the Linux version of SQLTalk is similar to Windows, but the console interface is
more basic. All commands are ended with a semicolon. Here is an example of a sign-on and simple query:

Sqlbase Starter Guide Page 21


You can enter SQL and SQLTalk commands as described in the SQL Language Reference Manual and the
SQLTalk Reference Manual.

Ending SQLTalk.
When you are ready to end your SQLTalk session, enter this command at the cursor:

exit;

On Linux, you can also press Ctrl-C to end the session. On Windows, you can press Alt-F4.

National Language Support


SQLBase supports English as its standard language, but it also supports many international languages
including those spoken in Europe and Asia. Please read Chapter 11, National Language Support of the
Database Administrator’s Guide for information on creating databases that support languages other
than English. Also refer to the Database Administrator’s Guide, particularly the section on SQL.INI
keyword LimitNLSCompares, to understand your options when using NLS.

Using drivers and data providers


SQLBase offers five main methods for clients to connect to the server:

• Native API (for Windows and Linux)


• ODBC driver (for Windows and Linux)

Sqlbase Starter Guide Page 22


• JDBC driver (for Windows and Linux)
• OLE DB data provider (Windows only)
• .NET data provider (Windows only)

The first method is covered in the SQLBase API Reference. There is an entire book that covers the other
four methods in detail; see Connecting to SQLBase.

Client applications
All client applications that connect to SQLBase require a configuration file (default name sql.ini). Even
clients that are simply using one of the drivers or data providers need a configuration file, with the
exception of clients using the JDBC driver. For information on how to structure the configuration file, see
chapters 2 and 3 of the Database Administrator Guide.

Linux considerations
If you run a Linux client application from a directory other than the one where the binary is actually
located, and you have not specified the clientruntimedir keyword in your configuration file, you may
encounter an error due to the program’s inability to find the supporting binary files. To remedy this, you
can either change to the binary’s directory before running, or you can use the LD_LIBRARY_PATH
environment variable to point to the directory that contains those binary files. You would do this with
commands similar to this example:

$LD_LIBRARY_PATH=SQLBaseBinaryDirectory
$export LD_LIBRARY_PATH

Loading database files into SQLBase


If you are upgrading from a previous version of SQLBase, it is recommended that you unload your old
database files with your old version of SQLBase client then load them to the new SQLBase Server. There
is an auto-migration feature, but it is subject to several limitations. For more information, see the
release notes.

You can also load a non-SQLBase database to SQLBase using a common file format, such as .CSV. For
information on loading and unloading, read the LOAD and UNLOAD command documentation in the SQL
Language Reference.

You can improve the performance of the load by performing the following tasks:

1. Defragment your disk. This is also useful for server operations in general.

2. Run SET RECOVERY OFF before you run LOAD. Be aware that when you set recovery off,
SQLBase does not generate log files and this speeds up the load. When you are finished
with the load, run SET RECOVERY ON.

3. Run the LOCK DATABASE command to place an exclusive lock on the database. When
you are finished with the load, run UNLOCK DATABASE.

Sqlbase Starter Guide Page 23


4. Use the ON SERVER clause of the LOAD and UNLOAD command. This decreases network
traffic by performing the operation on the server machine, if the load file is local to the
server.

5. Set the server screen to show the minimal level of process detail (level 0). This is also
useful for server operations in general.

Sqlbase Starter Guide Page 24

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy