Oracle DBMS_PART
Version 23c

General Information
Library Note Morgan's Library Page Header
ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling complimentary technical Workshops on Database Security for the first 30 Oracle Database customers located anywhere in North America, EMEA, LATAM, or APAC that send an email to asra_us@oracle.com. Request a Workshop for your organization today.
Purpose Support for partitioned tables with APIs for management and maintenance activities
AUTHID CURRENT_USER
Dependencies
DBMS_ASSERT DBMS_STANDARD INDEX_ORPHANED_ENTRY_V$
DBMS_PART_LIB DBMS_UTILITY PLITBLM
Documented Yes: Packages and Types Reference
Exceptions
Error Code Reason
ORA-20000 No global index segments were cleaned
ORA-44001 Invalid schema
First Available 12.1
Pragmas PRAGMA SUPPLEMENTAL_LOG_DATA(default, NONE);
Security Model Owned by SYS with EXECUTE granted to PUBLIC
Source {ORACLE_HOME}/rdbms/admin/dbmspart.sql
{ORACLE_HOME}/rdbms/admin/prvtpart.plb
Subprograms
 
CLEANUP_GIDX
Undocumented dbms_part.cleanup_gidx(
schema_name_in IN VARCHAR2 DEFAULT NULL,
table_name_in  IN VARCHAR2 DEFAULT NULL,
parallel       IN VARCHAR2 DEFAULT '0'
options        IN VARCHAR2 DEFAULT 'CLEANUP ORPHANS');
exec dbms_part.cleanup_gidx;
*
ERROR at line 1:
ORA-20000: No global index segments were cleaned
ORA-06512: at "SYS.DBMS_PART", line 231
ORA-06512: at "SYS.DBMS_PART", line 296
ORA-06512: at line 1


exec dbms_part.cleanup_gidx(NULL, 'SALES');
*
ERROR at line 1:
ORA-44001: invalid schema
ORA-06512: at "SYS.DBMS_ASSERT", line 390
ORA-06512: at "SYS.DBMS_PART", line 122
ORA-06512: at "SYS.DBMS_PART", line 296
ORA-06512: at line 1
 
CLEANUP_GIDX_JOB
Undocumented
dbms_part.cleanup_gidx_job(
parallel IN VARCHAR2 DEFAULT '0',
options  IN VARCHAR2 DEFAULT 'CLEANUP_ORPHANS');
conn sys@pdbdev as sysdba

exec dbms_part.cleanup_gidx_job('0', 'CLEANUP_ORPHANS');

PL/SQL procedure successfully completed.
 
CLEANUP_ONLINE_OP
Clean up failed online move operations
dbms_part.cleanup_online_op(
schema_name    IN VARCHAR2 DEFAULT NULL,
table_name     IN VARCHAR2 DEFAULT NULL,
partition_name IN VARCHAR2 DEFAULT NULL);
exec dbms_part.cleanup_online_op(USER);

PL/SQL procedure successfully completed.

Related Topics
Built-in Functions
Built-in Packages
Database Security
DBMS_I_INDEX_UTL
DBMS_INDEX_UTL
DBMS_PART_INTERNAL
DBMS_PCLXUTIL
Indexes
Partitioned Tables and Indexes
What's New In 21c
What's New In 23c

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-2023 Daniel A. Morgan All Rights Reserved
  DBSecWorx