home *** CD-ROM | disk | FTP | other *** search
- .\" Quick reference sheet for OraPerl
- .\"
- .nf
- .\"
- .ps 10
- \fBOraperl Quick Reference\fP
- .ps 8
- .sp 2
- .ps 10
- \fBOraperl Functions\fP
- .ps 8
- .in +2m
- .sp
- .ti -2m
- \fB$lda = &ora_login($database, $name, $password)\fP
- Logs into the specified database with the name and password given.
- Returns an \fIlda\fP for use with \fIora_open()\fP.
- .sp
- .ti -2m
- \fB$csr = &ora_login($lda, $statement)\fP
- Executes the given SQL statement in the database identified by $lda.
- Returns a \fIcsr\fP for use with \fIora_fetch()\fP.
- .sp
- .ti -2m
- \fB$n = &ora_fetch($csr)\fP
- Returns the number of fields available from the query.
- .sp
- .ti -2m
- \fB@ary = &ora_fetch($csr)\fP
- Retrieves the (next) output data from the statement identified by $csr.
- .sp
- .ti -2m
- \fB&ora_close($csr)\fP
- Finishes the SQL statement identified by $csr.
- .sp
- .ti -2m
- \fB&ora_logoff($lda)\fP
- Logs out of the database identified by $lda.
- .ti -2m
- .sp 2
- .ps 10
- \fBOraperl Variables\fP
- .sp
- .ps 8
- .ti -2m
- \fB$ora_errno\fP (read only)
- Contains the error code from the last funtion call.
- .sp
- .ti -2m
- \fB$ora_errstr\fP (read only)
- Contains the error message corresponding to $ora_errno.
-
- .ti -2m
- \fB$ora_debug\fP (if debugging is enabled)
- Contains the debugging flags for \fIOraperl\fP.
- May be set by a program to debug only certain parts of the script.
- The following flags are meaningful:
- .ta 5m
- \0\08 report function entry and exit
- 128 report use of malloc and free
-