DBA Hub

📋Steps in this guide1/9

SecureFiles : Large Object (LOB) Enhancements in Oracle Database 12c (12.1 and 12.2)

This article provides and overview of the enhancements to the SecureFiles functionality in Oracle Database 12c (12.1 and 12.2).

oracle 12cconfigurationintermediate
by OracleDba
15 views
1

Default SecureFiles

If the parameter is set to "12.0.0.0" or higher, the default value for the parameter is "PREFERRED", which means all LOBs will be created as SecureFiles, unless they are explicitly created as BasicFiles or their tablespace uses Manual Segment Space Management.
2

Parallel DML (PDML) Support Enhancements

Prior to 12cR1 Parallel DML (PDML) had a number of restrictions when used against a table containing LOBs (BasicFile or SecureFile). PDML was only supported for the following operations and only if the table containing the LOB was partitioned. - INSERT INTO ... AS SELECT ... - CREATE TABLE ... AS SELECT ... - DELETE - UPDATE - MERGE - Multitable INSERT From Oracle Database 12c Release 1 (12.1) onward Oracle supports more parallel operations against partitioned tables containing LOBs (SecureFile and BasicFile). - INSERT - INSERT INTO ... AS SELECT ... - CREATE TABLE ... AS SELECT ... - DELETE - UPDATE - MERGE - Multitable INSERT - SQL*Loader - Import/Export In addition, it supports the same parallel operations for non-partitioned tables that use SecureFile LOBs. It will also support direct loads against SecureFiles LOB columns which have a context index defined on them.
3

Data Pump LOB Support

The clause of the parameter allows the LOB storage characteristics of table columns in a non-transportable import to be altered on the fly. This functionality is described here .
4

Database File Systems (DBFS) Enhancements (12.1)

The Oracle Database File System (DBFS) functionality was introduced in Oracle 11g. The major downside to this feature was real file system style access was only available on the Linux platform due to the reliance on the FUSE project. All other platforms were limited to using the client tool to access the file system. Oracle 12cR1 introduced HTTP/HTTPS, FTP and WebDAV access to DBFS via the "/dbfs" virtual directory in the XML DB repository. This functionality is described here .
5

Extended Data Types

Oracle Database 12c Release 1 introduced extended data types, optionally allowing , and types up to 32K in size. In terms of usage they feel like conventional data types, but in reality these extended data types are using LOBs under the surface. This functionality is described here .
6

Collation of LOB Data

Oracle Database 12c Release 2 (12.2) lets you specify the collation used for columns that hold string data, allowing you to easily perform case insensitive queries, as well as control the output order of queried data. The only supported collation for and columns is the pseudo-collation. This functionality is described here .
7

LOB Conversion Functions

The following functions now include additional overloads to allow new conversions. - : In addition to converting and data types to a , the function now has an overload to convert a value to a . - : In addition to converting , , , , , or to a , the function now has an overload to convert a or to a value based on the specified character set. You can optionally set the mime type. - : In addition to converting , , , or to a , the function now has an overload to convert a or to a value based on the specified character set. If the value is too large it is truncated.
8

Database File Systems (DBFS) Enhancements (12.2)

There are two main enhancements to Database File Systems (DBFS) in Oracle Database 12.2. - Oracle 12.1 allowed DBFS to be accessed by HTTP, FTP and WebDav. Oracle 12.2 now makes mounting DBFS on the file system using FUSE easier, and allows DBFS to be accessed by NFS. This functionality is part of the new Oracle File System (OFS) feature. You can read about OFS and how it can interact with DBFS here . - In Oracle 12.2 DBFS supports POSIX file locking (full-file locking only) when DBFS is access using the DBFS_CLIENT (included mounts via FUSE) or the PL/SQL APIs. You can read about this support here .
9

Distributed LOBs

Oracle Database 12.2 includes support for some operations on CLOB, BLOB and XMLTYPE data types over database links. You can read more about this functionality here . Although the addition of any new functionality that increases the flexibility of the database is welcome, I would question the logic of any system design that requires access to LOBs over a database link. The impact will not be so great when the link is between PDBs in the same CDB instance, since the communication is local and optimized, but accessing LOBs on truly remote databases sounds like a performance nightmare waiting to unravel. For more information see: Hope this helps. Regards Tim...

Comments (0)

Please to add comments

No comments yet. Be the first to comment!