Oracle8i Application Developer's Guide - Large Objects (LOBs) Release 2 (8.1.6) Part Number A76940-01 |
|
LOB Programmatic Environments, 7 of 9
You can make changes to an entire internal LOB, or to pieces of the beginning, middle or end of it by using embedded SQL. You can access both internal and external LOB
s for read purposes, and you can also write to internal LOB
s.
Embedded SQL statements allow you to access data stored in BLOB
s, CLOB
s, NCLOB
s, and BFILE
s. These statements are listed in the tables below, and are discussed in greater detail later in the manual.
Unlike locators in PL/SQL, locators in Pro*COBOL are mapped to locator pointers which are then used to refer to the LOB or BFILE value. For the successful completion of an embedded SQL LOB statement you must perform the following:
Examples provided with each embedded SQL LOB statement are illustrated in:
You will also be able to access these example scripts from your Oracle8i software CD /rdbms/demo directory in a future release.
In cases where the Pro*COBOL interface does not supply the required functionality, you can call OCI via C. We do not provide an example here because such programs are operating system dependent.
See Also:
Pro*COBOL Precompiler Programmer's Guide for detailed documentation, including syntax, host variables, host variable types and example code. |
The following Pro*COBOL statements operate on BLOBs, CLOBs, NCLOBs, and BFILEs:
Statement | Description |
---|---|
|
Creates a temporary LOB. |
|
Sees if a LOB locator refers to a temporary LOB. |
|
Frees a temporary LOB. |
Statement | Description |
---|---|
|
Assigns one |
|
Sets the directory alias and filename of a |
Statement | Description |
---|---|
|
Opens a LOB or BFILE. |
|
Sees if a LOB or BFILE is open. |
|
Closes a LOB or BFILE. |
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|