22 DBFS Content API
You can enable applications to use the Database File System (DBFS) in several different programming environments.
- Overview of DBFS Content API
You can enable applications to use DBFS using the DBFS Content API (DBMS_DBFS_CONTENT
), which is a client-side programmatic API package. You can write applications in SQL, PL/SQL, JDBC, OCI, and other programming environments. - Stores and DBFS Content API
The DBFS Content API aggregates the path namespace of one or more stores into a single unified namespace. - Getting Started with DBMS_DBFS_CONTENT Package
DBMS_DBFS_CONTENT
is part of the Oracle Database, starting with Oracle Database 11g Release 2, and does not need to be installed. - Administrative and Query APIs
Administrative clients and content providers are expected to register content stores with the DBFS Content API. Additionally, administrative clients are expected to mount stores into the top-level namespace of their choice. - Querying DBFS Content API Space Usage
You can query file system space usage statistics. - DBFS Content API Session Defaults
Normal client access to the DBFS Content API executes with an implicit context that consists of certain objects. - DBFS Content API Interface Versioning
To allow for the DBFS Content API itself to evolve, an internal numeric API version increases with each change to the public API. - DBFS Content API Creation Operations
You must implement the provider SPI so that when clients invoke the DBFS Content API, it causes the SPI to create directory, file, link, and reference elements (subject to store feature support). - DBFS Content API Deletion Operations
You must implement the provider SPI so that when clients invoke the DBFS Content API, it causes the SPI to delete directory, file, link, and reference elements (subject to store feature support). - DBFS Content API Path Get and Put Operations
You can query existing path items or update them using simpleGET
XXX
()
andPUT
XXX
()
methods. - DBFS Content API Rename and Move Operations
You can rename or move path names, possibly across directory hierarchies and mount points, but only within the same store. - Directory Listings
Directory listings are handled several different ways. - DBFS Content API Directory Navigation and Search
Clients of the DBFS Content API can list or search the contents of directory path names, with optional modes. - DBFS Content API Locking Operations
DBFS Content API clients can apply user-level locks,depending on certain criteria. - DBFS Content API Access Checks
The DBFS Content API checks the access of specific path names by operations. - DBFS Content API Abstract Operations
All of the operations in the DBFS Content API are represented as abstractopcodes
. - DBFS Content API Path Normalization
There is a process for performing API path normalization. - DBFS Content API Statistics Support
DBFS provides support to reduce the expense of collecting DBFS Content API statistics. - DBFS Content API Tracing Support
Any DBFS Content API user (both clients and providers) can use DBFS Content API tracing, a generic tracing facility. - Resource and Property Views
You can see descriptions of Content API structure and properties in certain views.