OTL 4.0, Examples
Examples
- 
Oracle Call Interface 7 (OCI7)
 
- 
Oracle Call Interface 8 (OCI8)
 
 
- 
Oracle Call Interface 8 (OCI8)
for Oracle 8i that requires special treatment
 
 
- 
Open DataBase Connectivity (ODBC)
 
 
- 
MyODBC for MySQL
 
 
- 
DB2 Call Level Interface (CLI)
 
 
- 
Miscellaneous
 
 
- 
Example 35 (otl_nocommit_stream in Oracle 7)
 
- 
Example 36 (otl_nocommit_stream in Oracle 8)
 
- 
Example 37 (otl_nocommit_stream in ODBC)
 
 
- 
Examle 38 (otl_datetime in Oracle 7)
 
- 
Examle 39 (otl_datetime in Oracle 8)
 
- 
Examle 40 (otl_datetime in ODBC)
 
 
- 
Example 41 (Insert/Update/Select with CLOB in
Oracle 8)
 
- 
Example 42 (ODBC, OCI: LONG ==> CLOB. How to
use OTL namespaces)
 
 
- 
Example 43 (Get Rows Processed Count in Oracle
7)
 
- 
Example 44 (Get Rows Processed Count in Oracle
8)
 
- 
Example 45 (Get Rows Processed Count in ODBC)
 
 
- 
Example 46 ("Auto-commit every SQL statement
/ commit-on-success" mode in Oracle 7)
 
- 
Example 47 ("Auto-commit every SQL statement
/ commit-on-sucess" mode in Oracle 8)
 
- 
Example 48 ("Auto-commit every SQL statement
/ commit-on-sucess" mode in ODBC)
 
 
- 
Example 49 (PL/SQL tables as parameters, Oracle
7)
 
- 
Example 50 (PL/SQL tables as parameters, Oracle
8)
 
- 
Example 51 (PL/SQL table of DATEs as parameter,
Oracle 7)
 
- 
Example 52 (PL/SQL table of DATEs as parameter,
Oracle 8)
 
 
- 
Example 53 (Datatype override in SELECT, Oracle
7)
 
- 
Example 54 (Datatype override in SELECT, Oracle
8)
 
- 
Example 55 (Datatype override in SELECT, MS
SQL Server)
 
 
- 
Example 56 (Insert/Update/Select with Oracle
8 CLOB in stream mode)
 
- 
Example 57 (Insert/Update/Select with Oracle
8 BLOB in stream mode)
 
 
- 
Example 58 (Using OTL/OCI7 in Pro*C/C++ environment)
 
- 
Example 59 (Using OTL/OCI8 in Pro*C/C++ environment)
 
 
- 
Example 60 (Using OTL/OCI8: server_attach/detach
and session_begin/end)
 
- 
Example 61 (Using OTL/OCI8: server_attach/detach,
session_begin/end, and session_reopen)
 
 
- 
Example 65 (Simple Insert/Select and otl_stream::clean()
function for Oracle 7)
 
- 
Example 66 (Simple Insert/Select and otl_stream::clean()
function for Oracle 8/8i)
 
- 
Example 67 (Simple Insert/Select and otl_stream::clean()
function for OTL/ODBC and MS SQL Server)
 
 
- 
Example 68 (Dynamically allocated PL/SQL tables
as parameters, Oracle 7)
 
- 
Example 69 (Dynamically allocated PL/SQL tables
as parameters, Oracle 8)
 
- 
Example 70 (Dynamically allocated PL/SQL table
of DATEs as parameter, Oracle 7)
 
- 
Example 71 (Dynamically allocated PL/SQL table
of DATEs as parameter, Oracle 8)
 
 
- 
Example 72 (STL std::strings, ANSI C++ typecasts,
Oracle 7)
 
- 
Example 73 (STL std::strings, ANSI C++ typecasts,
Oracle 8)
 
- 
Example 74 (STL std::strings, ANSI C++ typecasts,
MS SQL Server)
 
 
- 
Example 75 (STL-compliant OTL stream iterators,
Oracle 7)
 
- 
Example 76 (STL-compliant OTL stream iterators,
Oracle 8)
 
- 
Example 77 (STL-compliant OTL/ODBC stream iterators,
MS SQL Server)
 
 
- 
Example 85 (STL vector based PL/SQL tables as
parameters, Oracle 7)
 
- 
Example 86 (STL vector based PL/SQL tables as
parameters, Oracle 8)
 
- 
Example 87 (STL vector based PL/SQL table of
DATEs as parameter, Oracle 7)
 
- 
Example 88 (STL vector based PL/SQL table of
DATEs as parameter, Oracle 8)
 
 
- 
Example 97 (otl_value<T>, Oracle 7)
 
- 
Example 98 (otl_value<T>, Oracle 8/8i)
 
- 
Example 99 (otl_value<T>, ODBC / MS SQL Server)
 
- 
Example 100 (otl_value<T>, DB2-CLI)
 
 
- 
Example 101 (#define OTL_UNCAUGHT_EXCEPTION_ON,
Oracle 7)
 
- 
Example 102 (#define OTL_UNCAUGHT_EXCEPTION_ON,
Oracle 8/8i)
 
- 
Example 103 (#define OTL_UNCAUGHT_EXCEPTION_ON,
ODBC / MS SQL Server)
 
 
- 
Example 104 (#define OTL_EXTENDED_EXCEPTION,
ODBC / MS SQL Server)
 
- 
Example 105 (OTL/ODBC and MS SQL Server's GUIDs)
 
 
- 
Example 106 (OTL/ODBC and bulk operations with
Oracle's LONG)
 
- 
Example 107 (OTL/ODBC and bulk operations with
Oracle's CLOB)
 
- 
Example 108 (OTL/ODBC and bulk operations with
MS SQL Server's TEXT)
 
- 
Example 109 (OTL/DB2-CLI and bulk operations
with DB2's CLOB)
 
 
- 
Example 110 (Group data type override in SELECT,
Oracle 7)
 
- 
Example 111 (Group data type override in SELECT,
Oracle 8/8i)
 
- 
Example 112 (Group data type override in SELECT,
MS SQL Server)
 
 
- 
Example 113 (OTL stream pooling, Oracle 8/8i)
 
- 
Example 114 (OTL stream pooling, OTL/ODBC)
 
- 
Example 115 (OTL stream pooling, DB2-CLI)
 
 
- 
Example 116 (otl_stream::set_flush(), Oracle
8/8i)
 
- 
Example 117 (otl_stream::set_flush(), OTL/ODBC)
 
- 
Example 118 (otl_stream::set_flush(), DB2-CLI)
 
 
- 
Example 119 (OTL_VALUE_TEMPLATE_ON,
OTL_USER_DEFINED_STRING_CLASS_ON, Oracle 8/8i)
 
- 
Example 120 (OTL_VALUE_TEMPLATE_ON,
OTL_USER_DEFINED_STRING_CLASS_ON,  ODBC / MS SQL Server)
 
- 
Example 121 (OTL_VALUE_TEMPLATE_ON,
OTL_USER_DEFINED_STRING_CLASS_ON, DB2-CLI)
 
 
- 
Example 122 (Insert/Update/Select with Oracle
8i CLOB in stream mode)
 
- 
Example 123 (Insert/Update/Select with Oracle
8i BLOB in stream mode)
 
- 
Example 124 (Insert/Update/Select with MS SQL
Server TEXT  in stream mode)
 
- 
Example 125 (Insert/Update/Select with 
MS SQL Server IMAGE in stream mode)
 
- 
Example 126 (Insert/Update/Select with DB2
CLOB  in stream mode)
 
- 
Example 127 (Insert/Update/Select with DB2
BLOB in stream mode)
 
- 
Example 128 (Insert/Update/Select with MySQL
LONGTEXT  in stream mode)
 
- 
Example 129 (Insert/Update/Select with 
MySQL LONGBLOB in stream mode)
 
 
- 
Example 130 (Describe otl_stream's bind variables
for Oracle 8i)
 
- 
Example 131 (Describe otl_stream's bind variables
for MS SQL Server)
 
- 
Example 132 (Describe otl_stream's bind variables
for DB2)
 
 
- 
Example 147 (backward compatibility with ODBC
2.5)
 
 
- 
Example 148
(otl_refcur_stream, basic)
 
- 
Example 149 (otl_refcur_stream, stored procedure)
 
- 
Example 150 (otl_refcur_stream, PL/SQL tables
and reference cursors as parameters in stored procedure)
 
- 
Example 151 (otl_refcur_stream and otl_lob_stream,
used together)
 
 
- 
Example 152 (get_stream_type)
 
 
- 
Example
153 (create_stored_proc_call)
 
 
- 
Example
154 (set_transaction_isolation_level, DB2-CLI)
 
- 
Example 155 (set_transaction_isolation_level,
ODBC, MS SQL)
 
 
- 
Example 156 (OTL/OCI8/9,
otl_connect::cancel())
 
- 
Example 157 (external
logon, DB2-CLI)
 
- 
Example 158 (external logon, ODBC, MS SQL)
 
 
Prev NextContentsGo
Home
Copyright © 1996, 2001, Sergei Kuchin, email: skuchin@sprynet.com,
kuchin@hotmail.com
.
Permission to use, copy, modify and redistribute this document for
any purpose is hereby granted without fee, provided that the above copyright
notice appear in all copies.