Skip to content

Commit

Permalink
more small edits from Suraj
Browse files Browse the repository at this point in the history
  • Loading branch information
dwicinas authored and nidhibhammar committed Aug 21, 2024
1 parent 8d8f93f commit 2566d1f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ DECLARE
/* Initialize the BFILE locator: */
File_loc1 BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
File_loc2 BFILE := BFILENAME('ANOTHER_DIR', 'b.txt');
Retval NUMBER;
Retval NUMBER;
BEGIN
DBMS_LOB.OPEN(File_loc1, DBMS_LOB.LOB_READONLY);
DBMS_LOB.OPEN(File_loc2, DBMS_LOB.LOB_READONLY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ The `SUBSTR` operation returns a portion of a large object or BFILE starting at
DECLARE
src_loc BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
Position NUMBER := 1;
src_offset NUMBER := 1;
Buffer RAW(1024);
Amount NUMBER := 1024;
BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Locator for the BFILE.
``` sql
DECLARE
/* Initialize the BFILE locator: */
File_loc1 BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
File_loc1 BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
BEGIN
DBMS_LOB.OPEN(File_loc1, DBMS_LOB.LOB_READONLY);
/* Close the BFILE: */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ FILEGETNAME (<file_loc> IN BFILE, <dir_alias> OUT VARCHAR2,

``` sql
DECLARE
File_loc BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
File_loc BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
dir_alias VARCHAR2(30);
name VARCHAR2(2000);
BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ File can be accessed only in read-only mode.
``` sql
DECLARE
/* Initialize the BFILE locator: */
File_loc1 BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
File_loc1 BFILE := BFILENAME('ANOTHER_DIR', 'a.txt');
BEGIN
DBMS_LOB.FILEOPEN(File_loc1, DBMS_LOB.LOB_READONLY);
DBMS_LOB.FILECLOSE(File_loc1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The `DBMS_LOB` package lets you operate on large objects. The following table li
| `INSTR(lob_loc \| file_loc, pattern [, offset [, nth ]])` | `NUMBER` | Gets the position of the nth occurrence of a pattern in a large object or BFILE starting at `offset`. |
| `ISOPEN(file_loc)` | `NUMBER` | Determines whether a BFILE was opened with a `FILE` locator. |
| `LOADBLOBFROMFILE(dest_lob IN OUT, src_bfile, amount, dest_offset IN OUT, src_offset IN OUT)` | n/a | Loads data from BFILE to internal `BLOB`. |
| `LOADCLOBFROMFILE(dest_lob IN OUT, src_bfile, amount, dest_offset IN OUT, src_offset IN OUT, src_csid, lang_context IN OUT, warning OUT)` | n/a | Loads data from BFILE to internal `CLOB`. |
| `LOADCLOBFROMFILE(dest_lob IN OUT, src_bfile, amount, dest_offset IN OUT, src_offset IN OUT, bfile_csid, lang_context IN OUT, warning OUT)` | n/a | Loads data from BFILE to internal `CLOB`. |
| `OPEN(file_loc IN OUT, open_mode)` | n/a | Opens a read-only BFILE. |
| `READ(lob_loc \| file_loc, amount IN OUT, offset, buffer OUT)` | n/a | Reads a large object or BFILE. |
| `SUBSTR(lob_loc \| file_loc [, amount [, offset ]])` | `RAW, VARCHAR2` | Gets part of a large object or BFILE. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The `LOADCLOBFROMFILE` procedure loads data from a BFILE to a CLOB.
```sql
LOADCLOBFROMFILE (<dest_lob> IN OUT BLOB, <src_bfile> IN BFILE,
<amount> IN NUMBER, <dest_offset> IN OUT NUMBER,
<src_offset> IN OUT NUMBER, <src_csid> IN NUMBER,
<src_offset> IN OUT NUMBER, <bfile_csid> IN NUMBER,
<lang_context> IN OUT NUMBER, <warning> OUT NUMBER)
```

Expand Down Expand Up @@ -37,7 +37,7 @@ Number of bytes to load.

- OUT &mdash; The character offset in the destination CLOB that specifies the end of this read. This location is also where the next read begins.

`src_csid`
`bfile_csid`

The source BFILE character set ID.

Expand Down

0 comments on commit 2566d1f

Please sign in to comment.