Sunteți pe pagina 1din 6

,QWHU%DVH6RIWZDUH&RUSRUDWLRQ

,QWHU&RP
92/80(180%(56800(5

InterBase Makes its


Mark at the Borland
Conference
Amelia Arnett

Nashville, Tennessee—InterBase began


this quarter with its first-ever trade show
appearance as the InterBase Software
Corporation at the 7th Annual Borland
Conference (BorCon), held this year at
the magnificent Opryland Hotel
Convention Center.

The show was a success for InterBase


and its VARs, some of whom
demonstrated their product at the
The scene at the InterBase booth at the 7th Annual Borland Conference was one of almost
InterBase booth for other BorCon
nonstop activity. We were visited both by established VARs and many interested new ones.
attendees. InterBase VARs Pictured here in the dark uniforms are Quality Assurance Engineer Chris Levesque,
demonstrated products including: Associate Marketing Manager Amelia Arnett, and Account Manager Scott Schnaars.

• XCase, a database design and


maintenance tool from RESolution, gave us constructive criticism that was Amelia Arnett is Associate Marketing
Ltd. genuinely helpful. We also met some Manager for InterBase Software Corp.
new people working on very interesting She can be reached at
• SalesManager from Laconic Logic client/server projects and had the aarnett@interbase.com
opportunity to talk with them about
• LeaseAware from Decision Systems, deploying their solutions on InterBase.”
Inc. CONTENTS
InterBase generated enough interest at
• TRANSMAN from TMT Software. this year’s BorCon to warrant its own InterBase Makes Its Mark . . . . . . . . 1
track and a larger presence at next year’s Q&A: Mike Tossy . . . . . . . . . . . . . . . 2
InterBase Software Corporation show, so be sure to let us know what you The Joy of GBAK . . . . . . . . . . . . . . . . 3
President Jim Weil was “pleasantly would like to see from us. InterBase is Behind the Scenes . . . . . . . . . . . . . . . 4
surprised and gratified by the amount of also making plans for more trade show Handling Deadlocks in Delphi and
support from conference attendees. It appearances in 1998. We’ll let you know C++Builder. . . . . . . . . . . . . . . . . 5
was great to hear that they, too, thought where you can find us in the future. Keep Welcome New InterBase Staff . . . . 6
[becoming a formal Borland subsidiary] your eye on www.interbase.com for
was a good idea for InterBase, and some more information!
Q: What are the biggest surprises
so far?

Well, the technology continues to


surprise me. This product has been
completely underestimated by the
marketplace. Getting the word out has
got to be our number one priority! I was
also surprised that InterBase hadn’t been
better integrated into the Borland tools,
so that is also a key priority.

Q: In what way would you like to


integrate InterBase with the
Borland tools?
I think that InterClient—our new Java
interface—is a great example of the right
kind of integration. By providing our
own Java/JDBC driver we can provide
tight integration with JBuilder. It allows
a high performance interconnect. We can
The InterBase gang, including (l-r) Director of Finance Allison McEwen, President Jim
also provide access to InterBase’s
Weil, Borland Marketing Director for International Paul Beach, and Technical Publications
Manager Bill Karwin, quickly got into the country spirit at Opryland Amusement Park. unique technology—like event
alerters—which is harder to do if you
don’t own the connect technology. I
Q: Where were you before? think InterClient is a model for the kind
of connect technology we need to
Q&A: Mike Tossy A series of small companies, mostly in provide to other Borland tools like
the relational database arena. The largest Delphi and C++ Builder.
Director of Marketing and best known is Teradata. More
Each issue of InterCom features an recently a company called NeoVista that Q: What about Borland
interview with a key InterBase is working in the data mining area. DataGateway for Java and other
personality. This month, we interview BDE-based technology?
Mike Tossy.
They are also important. VARs who
Q: How long have you been with want applications that can run against
InterBase? multiple databases will want to use
DataGateway. But VARs who want the
Almost 4 months, I started on June 2, closer integration with InterBase will
1997. want to choose InterClient.

Q: What brought you to Q: How is InterBase 5.0 coming


InterBase? along?
Jim Weil called me up when he became So far, it is right on schedule. Shipping
President and asked me to take a look. this product on time is key. As we talk,
Well, I’ve been involved in the relational we’re in QA Beta 1 and by the time this
database market since the early 1980s is published we should be in QA Beta 2
and I was aware of InterBase almost or even Early Release.
since its beginning. I knew of its strong
technology and also its not-so-strong Q: What are these new terms
marketing. When I saw the opportunity “QA Beta” and “Early Release”?
here I just couldn’t resist.
QA Beta refers to the Quality Assurance
Beta Release. This is a program where
we give customers—many of whom are

,QWHU&20 
VARs — an early copy of the 5.0 release Q: What are your biggest This new option allows gbak to take
and they help test it. The purpose is to challenges ahead? advantage of filters such as compression
help us to find the bugs in our code. utilities to modify the input or output of
There are two of these, thus “QA Beta 1” Marketing the product. We’ve got to rev the tool. For example,
and “QA Beta 2.” The “Early Release up the PR, promotions, and advertising. gbak -b employee.gdb stdout |
InterBase can’t remain the “best kept compress > employee.gbak.Z
Program” comes after QA Beta 2 and is
uncompress -c employee.gbak.Z |
a chance for our VARs and other major secret.” I’m really looking forward the gbak -c stdin new_emp.gdb
partners to test their applications against next 12 months as we begin to move the
the new code. The purpose here is to get message out. Backing up Large Databases
their integration started and to find any
problems at this level. All of this used to Mike Tossy is the Director of Some databases may be so large that
occur under the rubric of “Beta,” but we Marketing for InterBase Software their backup file won’t fit within the size
decide it was cleaner to clarify what was Corporation. He can be reached by limit set by the operating system (this
expected at each phase. By the way, phone at 408-430-1505 or by email limit is often either 2 or 4 GB; refer to
guaranteed entry into the Early Release at mtossy@interbase.com. your OS documentation). InterBase,
Program is one of the benefits of with its multi-file database feature, can
becoming an InterBase VAR. easily have a database larger than this
limit. This is a serious constraint, since
The Joy of GBAK the output of InterBase 4’s gbak utility is
Q: You also changed the release only a single backup file.
schedule? Bill Karwin
In 5.0, we have added the gsplit tool as a
Like going to the dentist, backing up a
Yes, I felt that there had been too much filter to allow backups to write to (or
database is a chore that most of us would
time between releases. So, for our read from) multiple files. Using the new
prefer to avoid, even though we all know
primary platforms we’ve committed to gbak feature of writing output to a pipe,
the value of disaster prevention. In the
an annual major release in December. the gsplit tool takes the data stream and
new 5.0 release, improvements to the
We’ve also added a regularly scheduled writes it to several files in succession.
gbak tool make backing up and restoring
maintenance release every June. Right You specify the path, filename, and
databases much more facile. gbak’s new
now, we’re planning InterBase 6.0 (Dec maximum size of the files. Here’s an
companion tool, gsplit, provide even
1998) and InterBase 7.0 (Dec 1999). example:
more benefits.
gbak -b employee.gdb stdout |
gsplit -split emp_part01.gbak 20m

Q: Who do you see as InterBase’s Performance Improvements emp_part02.gbak 15m


emp_part03.gbak 200m
competitors? How well does The InterBase developers have worked
InterBase compete against them? hard to systematically analyze and The first file, emp_part01.gbak, fills
alleviate performance bottlenecks in first, up to 20 megabytes. The next 15
Sybase’s SQL Anywhere and Microsoft gbak. Now a backup executes an order megabytes of data write to
SQL/Server would be the big two. of magnitude more quickly than in the emp_part02.gbak. The excess writes to
previous version of InterBase, emp_part03.gbak.The files can be
particularly for databases with complex located on different filesystems (drives),
I personally think that the Sybase or even on NFS filesystems (mapped
metadata. You don’t need to change the
product should have been named “SQL drives).
way you use gbak in order to take
Hardly Anywhere”. The only place it
advantage of these improvements.
runs is on Microsoft operating systems. To restore a database from these multiple
What kind of anywhere is that? .gbak files, use gsplit with this syntax:
Filtering Backup Data
InterBase runs Windows and NT, and on gsplit -join emp_part01.gbak
UNIX, NetWare and OpenVMS: that is In InterBase 4, gbak could read or write
emp_part02.gbak
emp_part03.gbak |
more truly anywhere. SQL/Server has raw data only to a disk file or a tape gbak -c stdin new_emp.gdb
that same problem, plus the advantages device. In 5.0, you have another choice;
and disadvantages of being from you can backup to the standard output, Using a Tape Device
Microsoft. We’ve joked about running and restore from the standard input. Use
an ad campaign whose headline was the special word stdout in place of the Making a backup directly to a tape
“InterBase: Smaller foot print than backup filename when writing backup device has been improved in InterBase
their... word processor.” I believe being a data to a pipe; use the special word stdin 5.0. Tape device I/O is supported on
small, single-product focused company when reading data from a pipe to restore UNIX and Windows NT. If the data you
gives us some flexibility advantages. to a database. are writing is larger than one tape, gbak

,QWHU&RP 
prompts you to insert subsequent tape To create a backup schedule like the one The many improvements in InterBase
media. in the UNIX example, issue the 5.0 have increased the performance,
following command: flexibility, and convenience of backing
On UNIX, where tape is the appropriate at 8:30PM /every:Wednesday,Friday up and restoring databases. Now there’s
/interactive c:\db\mybak.bat no excuse for avoiding this chore.
tape device file for your flavor of UNIX
(for instance, /dev/rct0 or /dev/nrst0), To configure NT to properly run batch
use: files with AT, you must first perform the Bill Karwin is Technical Publications
gbak -b employee.gdb /dev/tape following steps: Manager for InterBase Software Corp.
1. log in as Administrator He can be reached at
The syntax for writing backup 2. go to the NT Control Panel / Services bkarwin@interbase.com.
information directly to a tape on the 3. highlight the Schedule service
Windows NT platform is as follows: 4. click Stop for the Schedule service
gbak -b employee.gdb \\.\tape 5. click the Startup button
6. check the box marked “Allow service Behind the Scenes:
Windows 95 has no named tape device, to interact with desktop”
so gbak cannot backup a database 7. click Ok InterBase 5.0 Core Team
directly to tape; you must backup to a file 8. click Start for the Schedule service
on disk or network drive, then use your Helen Kruse Larkin
tape backup software to write the backup On both UNIX and NT, be sure to set
file to a tape device. appropriate security on your batch file, Everyone knows that a software release
since it necessarily contains your doesn’t just happen. Many different
Scheduling Automatic Backups SYSDBA password. The scheduling people and functions and activities play
utility must be able to read the file, but their parts along the way. Making a
You may find it useful to perform you don’t want any normal user to be whole out of the sum of these parts
backups on an automatic schedule, using able to access the file. requires careful planning and
the operating system’s scheduling communication.
facility. Here are examples of how to do PLANs in Stored Procedures
this on UNIX and Windows NT: The Core Team is a small cross-
In InterBase 4, a design limitation in the functional group, consisting of members
UNIX restore algorithm made it impractical for from several departments of InterBase:
On any brand of UNIX operating system, a Stored Procedure or Trigger to contain Engineering, QA, Technical
you may use the standard utility cron. a query that used a PLAN clause to Publications, Technical Services, and
Create a shell script containing your override the query optimizer. In 5.0, Marketing. This team provides a regular
gbak command and any other actions queries in Stored Procedures and forum in which to compare progress,
that you want to associate with the task: Triggers can have a PLAN clause and identify bottlenecks, resolve conflicts,
$ edit mybackup.sh still backup and restore correctly. Even establish priorities, and find the most
: better, dramatic improvements to the expeditious path to the best possible final
gbak -user sysdba -password xxxxxxxx
-b /db/mydb.gdb stdout | InterBase query optimizer reduce the product. In general, the task is to deal
compress >/dev/tape need for manual query optimization. with problems sooner rather than later
echo “Gbak completed at ‘date‘” |
mail root and to keep a weather eye out for the
unexpected.
Create a schedule for the task. See the
cron man page for details on the format.
Here’s an example of a schedule for
every Wednesday and Friday (days 3 and Look for the Following Articles
5 of the week) at 10:30PM (2230 on the
24-hour clock). in Upcoming Issues of InterCom
# crontab -e root
30 22 * * 3,5 mybackup.sh
4 IBPerl, the object-oriented package for Perl 5 programmers
to access the InterBase client API
Windows NT
The utility for scheduling batch files on 4 More details of new InterBase 5.0 features
Windows NT is called AT. 4 InterBase at work: case studies
C:> edit c:\db\mybak.bat
gbak -user sysdba -password xxxxxxxx 4 Tips on upsizing Paradox applications
-b c:\db\mydb.gdb \\.\tape
4 The InterBase Guru answers the really tough questions

,QWHU&20 
The 5.0 Core Team has been meeting at improve performance on updates to large
least once a week since mid-August and
keeps its focus on the release schedule
Handling Deadlocks in sets of data. When an application does
not use soft commits, the BDE must re-
and logistics as opposed to ongoing Delphi and C++Builder fetch all the records, even for a single
functional activity or relocation to 1800 record change. With soft commits, the
Green Hills or longer-range planning. James Arias-La Rheir BDE retains the cursor and does not need
to re-fetch. Explicit transactions started
InterBase has so far made two beta Regardless of the SQL server backend, by BDE client applications never use
releases. The Early Release Program for client applications that you develop in a soft commits. The default for BDE-
VARs will begin soon and then we’re BDE-enabled development tool — like initiated statements is a transaction level
into the chute to reach the milestone of Delphi, C++Builder or Paradox using set up as NO WAIT, READ
first shipment to customers by mid- BDE-aware components — may COMMITTED, NO RECORD
December. encounter a deadlock after issuing a VERSIONS. Because BDE does not use
SELECT statement when another client record versioning in this mode, the
There will inevitably be issues that application locks a record by issuing an deadlock occurs when a SELECT tries to
surface between now and final release, UPDATE, DELETE, or INSERT read a record that another client has not
but then, that’s just why the Core Team statement. yet committed to the table.
exists!
The BDE defaults to a mode that The DRIVER FLAGS parameter in the
Helen Kruse Larkin is Product automatically assigns a transaction level IDAPI32.CFG file allows you to specify
Manager of Java Products in the of READ COMMITTED and commits the transaction behavior of BDE-
InterBase Marketing department. the transaction by doing a soft commit. initiated transactions against an
She can be reached at In InterBase, a soft commit is equivalent InterBase server. Use the BDE
hlarkin@interbase.com. to a commit retaining, corresponding to Administrator or the BDE Configuration
the InterBase client API function Utility to view or modify this setting.
isc_commit_retaining(). Refer to the The DRIVER FLAGS parameter has
API Guide for more information. Soft four settings that are described in Table
commits are a feature of InterBase that 1. The two recommended modes are 512
let the driver retain the cursor when and 4608, depending on which is the
committing changes. Soft commits

Table 1. DRIVER FLAGS and Associated Problems


Driver Flag Isolation Level BDE/Application Problem
0 Read Committed/Hard Commit Deadlock - performance hit would occur on large tables if
Blank <NULL> deadlock did not occur.
512 Repeatable Read/ Hard Commit Performance hit on large tables as BDE will fetch cursor to
its previous location.
4096 Read Committed/ Soft Commit Deadlock - InterBase retains an interest lock until a hard
(Commit Retaining) commit is performed. See (1) below.
4608 (512 + 4096) Repeatable Read/ Soft Commit Changes (UPDATEs, INSERTs and DELETEs) in other
transactions are not seen and the soft commit maintains
the transaction’s “view” of the dataset. See (2) below.

(1) Long running BDE-initiated transactions prevent other transactions from performing DDL on any relations that the BDE
transaction has looked at. The workaround is to periodically issue an explicit commit to release the interest locks.
(2) Closing and reopening the data set (Query1.Close and Query1.Open) does not show changes made by other
transactions. Refreshing the view requires disconnecting and reconnecting to the database (Database1.Close and
Database1.Open). This may also require changing the Database1.KeepConnected property to False (default is True).
Another approach is to perform a literal Database1.StartTransaction immediately followed by a Database1.Commit. In
starting a transaction, the BDE closes out any transaction it has automatically active for the Database component (this is
in keeping with the SHARED_AUTOCOMMIT setting).

,QWHU&RP 
more desirable behavior to handle in the only 50 rows at a time, then setting MAX InterBase 5.0 manuals, and new QA and
application. ROWS to 50 will reduce the occurrence R&D engineers to make that product a
of deadlocks. Of course the BDE will success. Two people have joined our
Beginning with the inline version of the make additional fetches when necessary. marketing staff to help get the word out,
BDE v4.0, the transaction level Be aware that if you set MAX ROWS and we have a new Director of Finance
automatically defaults to NO WAIT, too low, you might not be able to open a pictured earlier in our newsletter.
READ COMMITTED, RECORD table because it cannot retrieve sufficient
VERSIONS. The DRIVER FLAGS metadata information from the database.
See the SQL Links help file It has been a great first quarter—
modes that use READ COMMITTED
(SQLLNK32.HLP) for more welcome to all the new employees!
also have the RECORD VERSIONS
option set. The inline version of BDE 4.0 information on MAX ROWS.
shipped with the inline version of Delphi
3.0. You can identify this version of the Deadlocks are an issue with any SQL
BDE by the timestamp of 4:01 A.M. on server, but the BDE (through the Credits
the file IDAPI32.DLL. InterBase DRIVER FLAGS parameter)
can handle most of the problems
transparently, without a lot of manual InterCom is a quarterly publication of
In addition to specifying the appropriate InterBase Software Corporation and is
DRIVER FLAGS mode, you also limit transaction control.
sent free of charge to members of the
the chance of deadlocks by modifying
James Arias-La Rheir is a InterBase VAR Program.
the MAX ROWS setting, which is found
on the same BDE DRIVERS page as Client/Server Technical Support
DRIVER FLAGS. The MAX ROWS Engineer at InterBase Software Corp. Bill Karwin, editor
setting specifies the maximum number InterBase Software Corporation
of rows that the driver will attempt to 1800 Green Hills Road, Suite 150
fetch for every SQL statement sent to the Scotts Valley, CA 95066
server. This includes metadata (schema) Welcome to New Email: bkarwin@interbase.com
queries that the driver sends to the server
during a table open to retrieve column, InterBase Staff
index, and valcheck information. InterBase is a registered trademark of
Limiting the number of rows that any Amelia Arnett InterBase Software Corporation.
one SQL statement can retrieve from a InterClient and InterServer are
large table prohibits users from tieing up InterBase Software Corporation is trademarks of InterBase Software
server resources. pleased to announce a successful first Corporation. All other trademarks are
quarter of recruitment as we settle into property of their respective owners.
Since the MAX ROWS default is –1 (no our identity as a new company.
limit), it is conceivable that the SELECT  1997 InterBase Software
statement can retrieve more records than We have hired new Technical Corporation. All rights reserved.
the user actually requires. If Publications staff who are already
experimentation proves that users need working hard to produce material for the

,17(5%$6(62)7:$5(&25325$7,21

*5((1+,//652$'68,7(

6&27769$//(<&$/,)251,$

S-ar putea să vă placă și