What is the reason?

Examine the structure of the LOB_STORE table.
Name Null? Type
—————- ——– ————
LOB_ID NUMBER
VIDEO_CLIP BLOB

You create a ‘DATA_FILES’ directory object that contains the ‘IMAGE1.GIF’operating system (OS) file.
View the Exhibit and examine the LOAD_LOB procedure code that you execute for reading data
from the OS file into the BLOB column.
It is created with compilation errors.
What is the reason?(Exhibit)

Examine the structure of the LOB_STORE table.
Name                     Null?                   Type
—————-            ——–                  ————
LOB_ID                                          NUMBER
VIDEO_CLIP                                     BLOB

You create a ‘DATA_FILES’ directory object that contains the ‘IMAGE1.GIF’operating system (OS) file.
View the Exhibit and examine the LOAD_LOB procedure code that you execute for reading data
from the OS file into the BLOB column.
It is created with compilation errors.
What is the reason?

A.
V_BLOB should be initialized to EMPTY_BLOB().

B.
The WRITE routine of DBMS_LOB should be used instead of LOADFROMFILE.

C.
The return type of DBMS_LOB.FILEEXISTS is not compatible with the IF statement.

D.
OPEN, CLOSE, and READONLY routines of DBMS_LOB should be used instead of
FILEOPEN, FILECLOSE, and FILE_READONLY.

Explanation:
dbms_lob.fileexists(file_loc IN BFILE) RETURN INTEGER;



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Leo Yu

Leo Yu

I think oracle directly copy the C fileexists: 0- not exists 1-exists , so lazy oracle is 🙂