Professional Documents
Culture Documents
A BFILE is an internal
LOB.
The Oracle9i server performs an implicit conversion between internal and external
LOBs.
Explanation:
LOB data types store large, unstructured data, including text, graphic images, and video clips.
There are two types of LOBs, internal and external. All LOB columns store a locator. If a LOB is
internal, the locator points to a LOB segment inside the database. If a LOB is external, the
locator points to an external OS location. BFILE represents a binary file stored in the OS outside
of the database and is an external LOB. The BFILE stores a file locator to the external file.
External LOBs are read-only and cannot participate in transactions. The Oracle9i server
performs implicit conversions between CLOB and VARCHAR2 data types. Implicit conversions
between other LOBs are not possible.
Which procedure would you use to close a BFILE that is being accessed?
DBMS_LOB.FILECLOSE
DBMS_LOB.WRITE
DBMS_LOB.BFILENAME
DBMS_LOB.READ
DBMS_LOB.FILEEXIST
S
Explanation:
LOB data types store large, unstructured data, including text, graphic images, and video clips.
There are two types of LOBs, internal and external. All LOB columns store a locator. If a LOB is
internal, the locator points to a LOB segment inside the database. If a LOB is external, the
locator points to an external OS location. BFILE represents a binary file stored in the OS outside
of the database and is an external LOB. The BFILE stores a file locator to the external file.
External LOBs are read-only and cannot participate in transactions. Use
DBMS_LOB.FILECLOSE to close a BFILE that is being accessed.
Which function or procedure would you use to initialize a BFILE column for inserting
data?
BFILE
TO_BFILE
BFILENAME
DBMS_LOB.READ
DBMS_LOB.FILEEXIST
S
Explanation:
LOB data types store large, unstructured data, including text, graphic images, and video clips.
There are two types of LOBs, internal and external. All LOB columns store a locator. If a LOB is
internal, the locator points to a LOB segment inside the database. If a LOB is external, the
locator points to an external OS location. BFILE represents a binary file stored in the OS outside
of the database and is an external LOB. The BFILE stores a file locator to the external file.
External LOBs are read-only and cannot participate in transactions. BFILENAME is a built-in
function that can be used to initialize a BFILE column to point to an external file. Use the
BFILENAME function in an INSERT statement to associate a BFILE column value with an
external OS file.
The resume column is of LONG data type and has a NOT NULL constraint.
The statement will convert a LONG data type column to a LOB data type.
Explanation:
You can migrate LONG columns to LOB columns to move existing tables containing LONG
columns to use LOBs. To migrate the data from a LONG column to a CLOB or an NCLOB or a
LONG RAW to a BLOB, use the ALTER TABLE statement. The syntax is:
In this scenario, the ALTER TABLE statement migrates the RESUME column that is a LONG
data type to a CLOB data type.
Which statement would you use to migrate a LONG data type to a LOB data type?
ALTER TABLE
ALTER COLUMN
CREATE
TABLE
ALTER
DATABASE
Explanation:
You can migrate LONG columns to LOB columns to move existing tables containing LONG
columns to use LOBs. To migrate the data from a LONG column to a CLOB or an NCLOB or a
LONG RAW to a BLOB, use the ALTER TABLE statement.
BLOB
CLOB
BFILE
NCLOB
Explanation:
LOB data types store large, unstructured data, including text, graphic images, and video clips.
NCLOB represents a multibyte character object. BLOB represents a binary large object. CLOB
represents a character large object. BFILE represents a binary file stored in the OS outside of
the database. The BFILE stores a file locator to the external file.
Which Oracle supplied package manages LOBs?
UTL_LOB
DBMS_LOB
UTL_MANAGE_LOB
DBMS_MANAGE_LOB
Explanation:
The DMBS_LOB package contains functions and procedures to access and manipulate internal
and external LOBs. This package contains two types of functions and routines, mutators and
observers. Mutators modify LOB values and observers read LOB values. The mutators include
APPEND, COPY, ERASE, TRIM, WRITE, FILECLOSE, FILECLOSEALL, and FILEOPEN. The
observers include COMPARE, FILEGETNAME, INSTR, GETLENGTH, READ, SUBSTR,
FILEEXISTS, and FILEISOPEN. The FILECLOSE, FILECLOSEALL, FILEEXISTS,
FILEGETNAME, FILEISOPEN, and FILEOPEN routines are specific to BFILEs.