| Special Command Tags |
|
| Format | OPEN
(chan[fileopt])"[OCI]sid[fileopt]"
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | The [OCI] tag is used as a prefix in an OPEN statement to denote that ProvideX is to route all file I/O requests to an external (Windows, not ProvideX) Oracle database file. (OCI is an acronym for Oracle Call Interface.) Once you open a channel for [OCI] use, you can use it just like any other channel (i.e., for file I/O). It remains open until you close it. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| *Note* | This feature requires ProvideX OCI activation (available for Windows, Redhat, HP UX, Sun Solaris, and AIX). Refer to the ProvideX website for platform specifics. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [OCI] OPT=
Parameters The OPEN options for
connecting to an Oracle server are listed below:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also | READ
Directive, READ RECORD Directive, SELECT Directive, WRITE Directive, WRITE RECORD Directive OPEN Directive |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ODB/OCI Variant Record Processing | In
order to emulate multi-record type files (variant
records) the database record must contain all
possible columns; i.e., if record type 1 consists of
the fields Prefix and Value when Prefix="ABC",
and record type 2 consists of the fields Prefix and
Percentage when the 2nd and 3rd characters of
Prefix="EF", the database record would contain
three columns Prefix, Value and Percentage. TYP= specifies the field(s) that determine the record type. Using a ? in the REC= clause defines the value. Special masking options
for ? include: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| . | any one character (i.e., wildcard character). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [abc] any one of bracketed characters. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [0-9] | any character from 0 to 9. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [ ] | indicates end-of-field. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ^ | indicates records that don match. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example:
TYP=Prefix;REC=?"ABC",Prefix,Value,?".EF",Prefix,Percentage
If the table contains two records: "ABC",9,0 "AEF",0,99.99 Using the statement READ(chan)A$,B: On the 1st READ, A$="ABC",B=9. On the 2nd READ, A$="AEF",B=99.99. WRITE(chan)"XEF",50.5 would insert a new record into the database consisting of "XEF",0,50.5. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||