| Oracle DBMS_SYSTEM Version 26ai |
|---|
| General Information | ||||||||||||||||
| Library Note |
|
|||||||||||||||
| Purpose | This officially unsupported package contains some wonderful functionality for making system calls some of which are unavailable by any other means. | |||||||||||||||
| AUTHID | DEFINER | |||||||||||||||
| Constants |
|
|||||||||||||||
| Dependencies | SELECT name FROM dba_dependencies WHERE referenced_name = 'DBMS_SYSTEM'
UNION |
|||||||||||||||
| Documented | Yes | |||||||||||||||
| Exceptions |
|
|||||||||||||||
| First Available | 7.3.4 | |||||||||||||||
| Security Model | Owned by SYS: Execute is granted to MDSYS and SYSTEM | |||||||||||||||
| Source | {ORACLE_HOME}/rdbms/admin/prvtsys.plb | |||||||||||||||
| Subprograms | ||||||||||||||||
| ADD_PARAMETER_VALUE | ||||||||||||||||
| Writes a listed parameter to the SPFILE following a call to ALTER SYSTEM SET | dbms_system.add_parameter_value( |
|||||||||||||||
col value format a100 |
||||||||||||||||
| DIST_TXN_SYNC | ||||||||||||||||
| Distributed transaction synchronization used in XA interfaces. Not intended for end-user use. | dbms_system.dist_txn_sync(inst_num IN NUMBER); |
|||||||||||||||
exec dbms_system.dist_txn_sync(2); |
||||||||||||||||
| GET_ENV | ||||||||||||||||
| Returns the value of environment variables | dbms_system.get_env( |
|||||||||||||||
set serveroutput on |
||||||||||||||||
| GET_OBH | ||||||||||||||||
| Returns the Oracle Base Home (OBH) | dbms_system.get_obh(val OUT VARCHAR2); |
|||||||||||||||
DECLARE |
||||||||||||||||
| KCFRMS | ||||||||||||||||
| Resets the timers displayed by MAX_WAIT in GV$SESSION_EVENT and MAXIORTM and MAXIOWTM in GV$FILESTAT (X$KCFIO) | dbms_system.kcfrms; |
|||||||||||||||
SELECT max_wait FROM gv_$session_event; |
||||||||||||||||
| KSDDDT | ||||||||||||||||
| Prints the date stamp to the target file (alert log and/or trace file) | dbms_system.ksdddt; |
|||||||||||||||
exec dbms_system.ksdddt; |
||||||||||||||||
| KSDFLS | ||||||||||||||||
| Flushes any pending output to the target alert log or trace file | dbms_system.ksdfls; |
|||||||||||||||
exec dbms_system.ksdfls; |
||||||||||||||||
| KSDIND | ||||||||||||||||
| Does an 'indent' before the next write (ksdwrt) by printing that many colons (:) before the next write. | dbms_system.ksdind(lvl IN BINARY_INTEGER); |
|||||||||||||||
exec dbms_system.ksdind(5); |
||||||||||||||||
| KSDWR (new 23ai) |
||||||||||||||||
| Undocumented | dbms_system.ksdwr( |
|||||||||||||||
exec dbms_system.ksdwr(3, 'Test Message',
1); |
||||||||||||||||
| KSDWRA (new 23ai) |
||||||||||||||||
| Undocumented | dbms_system.ksdwra( |
|||||||||||||||
exec dbms_system.ksdwra((1, 'ksdwrc'); |
||||||||||||||||
| KSDWRC (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrc( |
|||||||||||||||
exec dbms_system.ksdwrc(1, 'ksdwrc'); |
||||||||||||||||
| KSDWRD (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrd( |
|||||||||||||||
exec dbms_system.ksdwrd(1, 'ksdwrd'); |
||||||||||||||||
| KSDWRI (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwri( |
|||||||||||||||
exec dbms_system.ksdwri(1, 'ksdwri'); |
||||||||||||||||
| KSDWRK (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrk( |
|||||||||||||||
exec dbms_system.ksdwrk(dbms_system.trace_file, 'ksdwrk'); |
||||||||||||||||
| KSDWRL (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrl( |
|||||||||||||||
exec dbms_system.ksdwrl(1, 'ksdwrl'); |
||||||||||||||||
| KSDWRM (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrm( |
|||||||||||||||
exec dbms_system.ksdwrm(1, 'Test ksdwrm'); |
||||||||||||||||
| KSDWRP (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrp( |
|||||||||||||||
exec dbms_system.ksdwrp(1, jsdwrp'); |
||||||||||||||||
| KSDWRS (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwrs( |
|||||||||||||||
exec dbms_system.ksdwrs(1, 'ksdwrs'); |
||||||||||||||||
| KSDWRT | ||||||||||||||||
| Prints a message to the target file (alert log and/or trace file) | dbms_system.ksdwrt( |
|||||||||||||||
exec dbms_system.ksdwrt(3, '-- Start Message --'); |
||||||||||||||||
| KSDWRU (new 23ai) |
||||||||||||||||
| Undocumented wrote to "1" but did not find an output. |
dbms_system.ksdwru( |
|||||||||||||||
exec dbms_system.ksdwru(1, kasqeu'); |
||||||||||||||||
| READ_EV | ||||||||||||||||
| Get the level for events set in the current session | dbms_system.read_ev( |
|||||||||||||||
ALTER SYSTEM SET SQL_TRACE=TRUE; |
||||||||||||||||
| REMOVE_PARAMETER_VALUE | ||||||||||||||||
| Removes a listed parameter to the spfile
following a call to ALTER SYSTEM SET Overload 1 |
dbms_system.remove_parameter_value( |
|||||||||||||||
| TBD | ||||||||||||||||
| Overload 2 | dbms_system.remove_parameter_value( |
|||||||||||||||
| TBD | ||||||||||||||||
| SET_BOOL_PARAM_IN_SESSION | ||||||||||||||||
| Sets boolean-type init.ora parameters in any session | dbms_system.set_bool_param_in_session( |
|||||||||||||||
exec dbms_system.set_bool_param_in_session(10, 161, 'sql_trace', TRUE); |
||||||||||||||||
| SET_EV | ||||||||||||||||
| Set event trace level | dbms_system.set_ev(
|
|||||||||||||||
exec dbms_system.set_ev(10, 1008, 10046, 12, NULL); |
||||||||||||||||
| SET_INT_PARAM_IN_SESSION | ||||||||||||||||
| Sets integer-type init.ora parameters in any session | dbms_system.set_int_param_in_session( |
|||||||||||||||
exec dbms_system.set_int_param_in_session(10, 161, 'sort_area_size', 1048576); |
||||||||||||||||
| SET_SQL_TRACE_IN_SESSION | ||||||||||||||||
| Turn tracing on or off in any session | dbms_system.set_sql_trace_in_session( |
|||||||||||||||
exec dbms_system.set_sql_trace_in_session(10, 1008, TRUE); |
||||||||||||||||
| WAIT_FOR_EVENT | ||||||||||||||||
| Puts the current session into a wait state for any named wait event | dbms_system.wait_for_event( |
|||||||||||||||
exec dbms_system.wait_for_event('rdbms ipc message', 50, 20); |
||||||||||||||||
| Related Topics |
| Built-in Functions |
| Built-in Packages |
| DBMS_LOG |
| DBMS_MONITOR |
| DBMS_SUPPORT |
| DBMS_TRACE |
| Trace & TKPROF |
| What's New In 21c |
| What's New In 26ai |
| This site is maintained by Daniel Morgan. Last Updated: | This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2026 Daniel A. Morgan All Rights Reserved | ||||||||
|
|
|||||||||