Large Object Data Types (Blob, Clob, Dbclob) :: Character Large Objects (Clobs) - A Character String Made Up
Large Object Data Types (Blob, Clob, Dbclob) :: Character Large Objects (Clobs) - A Character String Made Up
Large Object Data Types (Blob, Clob, Dbclob) :: Character Large Objects (Clobs) - A Character String Made Up
Stored Procedures:
Using stored procedures allows a client application to pass control to a
stored procedure on the database server. This allows the stored procedure to
perform intermediate processing on the database server, without transmitting
unnecessary data across the network. Only those records that are actually
required at the client need to be transmitted. This can result in reduced
network traffic and better overall performance.
Applications using stored procedures have the following advantages:
Reduced network traffic
A properly designed application that processes large amounts of
data using stored procedures returns only the data that is needed by the
client. This reduces the amount of data transmitted across the network.
Improved performance of server intensive work
The more SQL statements that are grouped together for execution,
the larger the savings in network traffic. A typical application requires two
trips across the network for each SQL statement, whereas an application
using the stored procedure technique requires two trips across the network
for each group of SQL statements. This reduces the number of trips,
resulting in a savings from the overhead associated with each trip.
Access to features that exist only on the database server, including:
– Commands to list directories on the server (such as LIST
DATABASE DIRECTORY and LIST NODE DIRECTORY) can only run
on the server.
– The stored procedure may have the advantage of increased
memory and disk space if the server computer is so equipped.
– Additional software installed only on the database server could
be accessed by the stored procedure.
Writing Stored Procedures
An application design that includes a stored procedure consists
of separate client and server applications. The server application, called the
stored procedure, is contained in a shared library or class library on the
server. You must compile and access the stored procedure on the server
instance where the database resides. The client application contains a CALL
statement to the stored procedure. The CALL statement can pass parameters
to and return parameters from the stored procedure. You can write the stored
procedure and the client application using different languages. The client
application can be executed on a platform different from the stored
procedure.