Changes in This Release for Oracle Database PL/SQL Packages and Types Reference
This preface contains:
Changes in Oracle Database 12c Release 2 (12.2)
The following are changes in Oracle Database PL/SQL Packages and Types Reference for Oracle Database 12c Release 2 (12.2).
New Features
The following features are new in this release:
-
Data Guard Database Compare
The new
DBMS_DBCOMPpackage lets you perform block comparison to detect lost writes or database inconsistencies between a primary database and one or more physical standby databases.See DBMS_DBCOMP
-
Enhanced Java Debug Wire Protocol
-
Enhanced support for unified auditing, fine-grained auditing, and Transparent Data Encryption (TDE) column encryption for the creation of transparent sensitive data protection policies.
-
New package to perform Oracle File System operations (make, mount, and unmount)
See DBMS_FS
-
New package to manage foreground prespawned processes.
See DBMS_PROCESS
-
New package to identify interconnected databases and trace the system change number (SCN) flow across distributed databases.
See DBMS_TNS
-
New
DBMS_HADOOPpackage that provides a PL/SQL procedure calledCREATE_EXTDDL_FOR_HIVE(),that creates an Oracle external table for a given hive table.See DBMS_HADOOP
-
New
DBMS_HANG_MANAGERpackage provides a method of changing some Hang Manager configuration parameters. -
New package to validate data in tables used by analytic views and hierarchies.
See DBMS_HIERARCHY
-
New
DBMS_JSONpackage provides an interface for data-guide operations.See DBMS_JSON
-
New package to format the output of queries to the
DBA_FGA_AUDIT_TRAIL,DBA_AUDIT_TRAIL,UNIFIED_AUDIT_TRAIL, andV$XML_AUDIT_TRAILauditing viewsSee DBMS_AUDIT_UTIL
-
New
DBMS_INMEMORYADMINpackage to manage In-Memory FastStart (IM FastStart) -
New
DBMS_PDB_ALTER_SHARING -
Error Handling Improvements for Oracle GoldenGate Integrated Replication
See DBMS_APPLY_ADM
Materialized Views: Refresh Statistics History
See DBMS_MVIEW_STATS
-
Enhancements for
DBMS_DATA_MININGpackageThe following new algorithm settings are added:New procedures to support partitioned models are added: -
Enhancements to the
DBMS_DSTpackage:See FIND_AFFECTED_TABLES Procedure (new parameter:
parallel) -
Enhancements to the
DBMS_LOBpackage:See
-
ISREMOTE Function (new)
-
CLOB2FILE Procedure (this procedure is removed from the
DBMS_XSLPROCESSORpackage and added to theDBMS_LOBpackage)
The transfer of the
DBMS_XSLPROCESSORsubprogramCLOB2FILEto theDBMS_LOBpackage. -
-
New DBMS_PLSQL_CODE_COVERAGE package to collect PL/SQL Basic Block Coverage data
-
New Oracle Multimedia packages
-
New SDO_NFE package
See SDO_NFE
-
The following enhancements for the
DBMS_REDACTpackage:Addition of the
DBMS_REDACT.NULLIFYfunction to create or alter Data Redaction policies that return null values, usingDBMS_REDACT.ADD_POLICYorDBMS_REDACT.ALTER_POLICY. Also, theexpressionparameter for these procedures supports more functions.See
New procedures to support the management of named policy expressions:
See
-
Enhancements to the
DBMS_PRIVILEGE_CAPTUREpackage, to enable you to create a capture run to define the period of time during which a privilege capture takes place:See
-
ENABLE_CAPTURE Procedure (updated)
-
DELETE_RUN Procedure (new)
-
Enhancements to the
DBMS_SERVICEpackage:See
-
CREATE_SERVICE Procedure (new parameters:
FAILOVER_RESTORE,DRAIN_TIMEOUT, andSTOP_OPTION) -
MODIFY_SERVICE Procedure (new parameters:
DRAIN_TIMEOUT,FAILOVER_RESTORE, andSTOP_OPTION) -
STOP_SERVICE Procedure (new parameters:
DRAIN_TIMEOUTandSTOP_OPTION) -
DBMS_SERVICEnew constants (FAILOVER_RESTORE_NONE,FAILOVER_RESTORE_BASIC,STOP_OPTION_NONE,STOP_OPTION_IMMEDIATE, andSTOP_OPTION_TRANSACTIONAL)
-
-
Enhancements to the
DBMS_SPMpackage:See
-
CONFIGURE Procedure (new)
- (new)
-
SET_EVOLVE_TASK_PARAMETER Procedure (new parameter
FIND_ALTERNATE_PLANSadded to the procedure)
-
-
The
DBMS_SQLpackage has been enhanced to support more bind variable types. TheDESC_REC4RECORD Type andDESC_TAB4TABLE Type are introduced to support longer identifiers.See
-
Enhancements to the
DBMS_SQLDIAGpackage: -
Enhancements to the
DBMS_SQLPApackage:See SET_ANALYSIS_TASK_PARAMETER Procedures (new parameters:
EXECUTE_TRIGGERS,NUM_ROWS_TO_FETCH, andREPLACE_SYSDATE_WITH) -
Enhancements to the
DBMS_XDB_CONFIGpackage, to enable you to get and set remote HTTP and HTTPS port values, and to enable a global port value.See
-
DBMS_XDB_CONFIG Constants (new constants:
XDB_ENDPOINT_RHTTPandXDB_ENDPOINT_RHTTPS)
-
Enhancements to the
DBMS_XMLSTORAGE_MANAGEpackage:See
-
The transfer of the
DBMS_XSLPROCESSORsubprogramsCLOB2FILEandREAD2CLOBto theDBMS_LOBpackage. -
DBMS_STATSpreference for automatic column group statistics -
Scan rate and In-Memory Column Store (IM column store) statistics
-
New
DBMS_STATSpreference to override preference settings -
DBMS_STATSmonitoring statistics no longer need to be saved to disk -
Active Data Guard support for SQL Tuning Advisor
-
Real-Time Database Operations monitoring enhancements
-
Optimizer Statistics Advisor, which diagnoses problems in the existing practices for gathering statistics, and then generates a report of findings and recommendations.
-
New
DBMS_STATSpreferenceAPPROXIMATE_NDV_ALGORITHM -
New
plsql_modeparameter, which allows you to specify a PL/SQL capture mode with theDBMS_WORKLOAD_CAPTUREpackage -
New
plsql_modeparameter, which allows you to specify a PL/SQL replay mode with theDBMS_WORKLOAD_REPLAYpackageSee
-
New
rac_inst_listparameter for theDBMS_WORKLOAD_REPLAYpackage, which enables you to specify a list of Oracle Real Application Clusters (Oracle RAC) instances that will be used for replay -
New parameters for the
DBMS_WORKLOAD_REPLAYpackageSee
-
rac_mode: This parameter specifies replay options in an Oracle RAC environment. -
query_only: This parameter replays only the read-only queries of a workload capture.
-
-
New procedure for the
DBMS_WORKLOAD_REPLAYpackage that enables you to modify theDBA_WORKLOAD_GROUP_ASSIGNMENTSview, which provides information about workload captures and their assigned instances -
New procedure for the
DBMS_WORKLOAD_REPLAYpackage that enables you to specify SQL statements to be skipped or replaced during database replay -
New procedures for the
DBMS_AUDIT_MGMTpackage.TRANSFER_UNIFIED_AUDIT_RECORDSenables you to transfer unified audit records from the common logging interface (CLI) swap table to an internal unified audit relational table. This internal table, new for this release, is required for better read performance of the unified audit trail.ALTER_PARTITION_INTERVALchanges the unified audit internal relational table’s partition interval.See the following topics for more information:
-
New
load_detailsparameter for theDBMS_WORKLOAD_REPLAYpackage that enables you to load the divergence and track commits data for a replay -
Enhancements to
DBMS_AQADMpackage:See
-
ALTER_QUEUE_TABLE Procedure (updated)
-
ALTER_SHARDED_QUEUE Procedure (updated)
-
CREATE_QUEUE_TABLE Procedure (updated)
-
CREATE_SHARDED_QUEUE Procedure (updated)
-
DROP_SHARDED_QUEUE Procedure (updated)
See DBMS_AQADM
-
-
New procedure for the
DBMS_DBFS_CONTENTpackage -
Enhancements to
DBMS_DBFS_CONTENTpackage:See-
LOCKPATH Procedure (updated)
-
UNLOCKPATH Procedure (updated)
-
-
New procedure for the
DBMS_DBFS_CONTENT_SPIpackage -
Enhancements to
DBMS_DBFS_CONTENT_SPIpackage:See-
LOCKPATH Procedure (updated)
-
UNLOCKPATH Procedure (updated)
-
-
Modification for the
DBMS_RLS.ADD_POLICYprocedure. If you plan to include theINSERTstatement type, then you must ensure that theupdate_checkparameter is set toTRUE.See
Deprecated Features
List of deprecated features in Oracle Database 12c Release 2 (12.2) PL/SQL Packages and Types Reference.
The following features are deprecated in Oracle Database 12c Release 2 (12.2), and may be desupported in a future release:
-
Deprecation of the
DBMS_DEBUGpackageUse
DBMS_DEBUG_JDWPinstead. -
Deprecation of the
DBMS_JOBpackageOracle recommends that you migrate to
DBMS_SCHEDULER, which provides a richer set of features and capabilities. -
Deprecation of the following form
DBMS_LOB.LOADFROMFILEProcedure.Use
DBMS_LOB.LoadClobFromFileorDBMS_LOB.LoadBlobFromFileinstead. -
Deprecation of the
UTL_FILE_DIRinitialization parameterUse directory objects instead.
-
Deprecation of Oracle Multimedia SQL/MM Still Image Standard Support, including the Oracle Multimedia SQL/MM Still Image TYPES
Oracle recommends that you replace SQL/MM still image with ORDImage for image processing.
-
Deprecation of Oracle Multimedia DICOM support, including the ORDDicom TYPE, the ORD_DICOM package, and the ORD_DICOM_ADMIN package
There is no replacement for DICOM support in Oracle Database.
-
Deprecation of the following from the DBMS_UTILITY package:
-
DBMS_UTILITY.GET_PARAMETER_VALUEfunction -
DBMS_UTILITY.ANALYZE_PART_OBJECTprocedure
There are no replacements for these subprograms.
-
-
Deprecation of the
DBMS_XSLPROCESSOR.CLOB2FILEprocedureUse
DBMS_LOB.CLOB2FILEinstead. -
Deprecation of the
DBMS_XSLPROCESSOR.READ2CLOBfunctionUse
DBMS_LOB.LOADCLOBFROMFILEinstead. -
Deprecation of the following from the
DBMS_AUDIT_MGMTpackage:-
DBMS_AUDIT_MGMT.FLUSH_UNIFIED_AUDIT_TRAILprocedure -
AUDIT_TRAIL_WRITEmode of theAUDIT_TRAIL_PROPERTYparameter of theDBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_PROPERTYprocedure
There is no replacement because there is no longer any need to manually write audit records to disk. Starting with this release, audit records are written directly to an internal relational table, bypassing the common logging infrastructure queues.
-
Desupported Features
List of desupported features in Oracle Database 12c Release 2 (12.2) PL/SQL Packages and Types Reference.
The following features are desupported in Oracle Database 12c Release 2 (12.2):
-
Desupport of Advanced Replication
The Oracle Database Advanced Replication feature is desupported in its entirety. The desupport of this feature includes all functionality associated with this feature: multimaster replication, updateable materialized views, hierarchical materialized views, and deployment templates. Read-only materialized views are still supported with basic replication.
Oracle recommends that you replace your use of Advanced Replication with Oracle GoldenGate.
-
Desupport of the following subprograms from the
DBMS_XDB_ADMINpackage:-
CREATEREPOSITORYXMLINDEX -
XMLINDEXADDPATH -
XMLINDEXREMOVEPATH -
DROPREPOSITORYXMLINDEX
There is no replacement.
-