Oracle DBMS_REGISTRY_EXTENDED
Version 19.2.0.1

General Information
Library Note Morgan's Library Page Header
For how many years have you been working with physical servers that are starving your database of the memory necessary to deploy important new performance features such as the Result Cache, Memoptimize Pool, In-Memory Aggregation, In-Memory Column Store, and Full Database Caching? Too long? Contact me to learn how to improve all queries ... not just some queries.
Purpose Utility supporting Preupgrade, Upgrade, and Downgrade.
AUTHID DEFINER
Dependencies Only STANDARD
Documented No
Exceptions
Error Code Reason
   
First Available 12.2.0.1
Security Model Owned by SYS with
Source {ORACLE_HOME}/rdbms/admin/dbms_registry_extended.sql
Subprograms
 
COMPARE_VERSIONS
Returns 1 if the first parameter is of a higher version than the later, zero if the same, otherwise -1

Overload 1
dbms_registry_extended.compare_versions(
version1 IN VARCHAR2,
version2 IN VARCHAR2)
RETURN NUMBER;
SELECT dbms_registry_extended.compare_versions('12.2.0.1', '19.2.0.1') AS RETVAL
FROM dual;

RETVAL
------
    -1

SELECT dbms_registry_extended.compare_versions('19.2.0.0', '18.3.0.1') AS RETVAL
FROM dual;

RETVAL
------
     1
Same as Overload 1 except it compares only the number of digits indicated by the "number_of_dots" parameter
Overload 2
dbms_registry_extended.compare_versions(
version1       IN VARCHAR2,
version2       IN VARCHAR2,
number_of_dots IN NUMBER)
RETURN NUMBER;
SQL> SELECT dbms_registry_extended.compare_versions('12.1.0.2', '12.1.0.1', 2) AS RETVAL
  2  FROM dual;

RETVAL
------
     0

SQL> SELECT dbms_registry_extended.compare_versions('12.1.0.2', '12.1.0.1', 2) AS RETVAL
  2  FROM dual;

RETVAL
------
     0
 
CONVERT_VERSION_TO_N_DOTS
Returns the version number with n number of decimal places with value zero dbms_registry_extended.convert_version_to_n_dots(
version IN VARCHAR2,
n       IN NUMBER)
RETURN VARCHAR2;
SELECT dbms_registry_extended.convert_version_to_n_dots('19', 3)
FROM dual;

DBMS_REGISTRY_EXTENDED.CONVERT_VERSION_TO_N_DOTS('18',3)
---------------------------------------------------------
19.0.0.0
 
ELEMENT
Returns the element between the specified delimiters in the element_number position dbms_registry_extended.element(
src            IN VARCHAR2,
delimiter      IN CHAR,
element_number IN NUMBER)
RETURN VARCHAR2;
SELECT dbms_registry_extended.element('19.2.0.1', '.', 3) AS RETVAL
FROM dual;

RETVAL
-------------------------------------------------
0

SELECT dbms_registry_extended.element('19.2.0.1', '.', 1) AS RETVAL
FROM dual

RETVAL
------------------------------------------------
19
 
OCCURS
Returns the number of occurrences of the search string in the source dbms_registry_extended.occurs(
src           IN VARCHAR2,
search_string IN VARCHAR2)
RETURN NUMBER;
SELECT dbms_registry_extended.occurs('Dan Morgan', 'an')
FROM dual;

DBMS_REGISTRY_EXTENDED.OCCURS('DANMORGAN','AN')
-----------------------------------------------
                                              2

Related Topics
Built-in Functions
Built-in Packages
DBMS_REGISTRY
DBMS_REGISTRY_SERVER
DBMS_REGISTRY_SIMPLE
DBMS_REGISTRY_SYS
What's New In 18cR3
What's New In 19cR2

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2019 Daniel A. Morgan All Rights Reserved