Patch 37960098 apply (pdb PDB01): WITH ERRORS
logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/37960098/27641878/37960098_apply_CDB01_PDB01_2025Aug20_15_44_17.log (errors)
-> Error at line 140412: script rdbms/admin/owmcvws.plb
- ORA-04088: error during execution of trigger 'WMSYS.NO_VM_DDL'
- ORA-00604: error occurred at recursive SQL level 2
- ORA-04061: existing state of has been invalidated
- ORA-04061: existing state of package body "WMSYS.LT_CTX_PKG" has been
- invalidated
- ORA-04065: not executed, altered or dropped package body "WMSYS.LT_CTX_PKG"
- ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_CTX_PKG"
- ORA-06512: at "WMSYS.LTADM", line 9800
- ORA-04061: existing state of package body "WMSYS.LT_CTX_PKG" has been
- invalidated
- ORA-04065: not executed, altered or dropped package body "WMSYS.LT_CTX_PKG"
- ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LT_CTX_PKG"
- ORA-06512: at "WMSYS.LTADM", line 9532
- ORA-06512: at "WMSYS.OWM_DYNSQL_ACCESS", line 549
- ORA-06512: at line 17
- ORA-06512: at line 7
- ORA-06512: at line 7
-> Error at line 142841: script rdbms/admin/owmcvws.plb
- ORA-04088: error during execution of trigger 'WMSYS.NO_VM_DDL'
- ORA-00604: error occurred at recursive SQL level 1
- ORA-04068: existing state of packages has been discarded
- ORA-04061: existing state of package body "WMSYS.LTUTIL" has been invalidated
- ORA-04065: not executed, altered or dropped package body "WMSYS.LTUTIL"
- ORA-06508: PL/SQL: could not find program unit being called: "WMSYS.LTUTIL"
- ORA-06512: at "WMSYS.LTADM", line 9437
- ORA-06512: at "WMSYS.OWM_DYNSQL_ACCESS", line 544
- ORA-06512: at line 15
Wednesday, September 3, 2025
19c datapatch failed with error "ORA-04088: error during execution of trigger 'WMSYS.NO_VM_DDL'"
Friday, May 16, 2025
PRCH-1000 : Failed to stop resources running from Oracle home After out-of-place patching
Tuesday, December 17, 2024
APEX 404 Not Found after ORDS upgrade to 23.1 or later when SYS shows NO in column COMMON of DBA_USERS in non-cdb
WARNING: Procedure APEX_ADMIN could not be added to allow list. The function or procedure is a common object. You must execute the following as a common user: begin APEX_240100.wwv_flow_listener.sync_ords_gateway_allow_list; end; WARNING: ORDS migrated 0 entry points from APEX to ORDS PL/SQL Procedure Gateway Allow List.
Not Found HTTP Status Code: 404 Request ID: EHFC-h-DNoA9A0Qo-_W Request Timestamp: 2024-12-17T13:20:38.684973Z Error Code: ORDS-2201 The procedure named apex could not be accessed, it may not be declared, or the user
executing this request may not have been granted execute privilege on the procedure, or a
function specified by security.requestValidationFunction configuration property has prevented
access. Check the spelling of the procedure, check that the execute privilege has been
granted to the caller and check the configured security.requestValidationFunction function. If
using the PL/SQL Gateway Procedure Allow List, check that the procedure has been allowed
via ords_admin.add_plsql_gateway_procedure.
SQL> select version,comments from dba_registry_history where action='UPGRADE' order by action_time; VERSION COMMENTS _____________ _________________________________________ 10.2.0.3.0 Upgraded from 9.2.0.6.0 10.2.0.4.0 Upgraded from 10.2.0.3.0 10.2.0.5.0 Upgraded from 10.2.0.4.0 11.2.0.3.0 Upgraded from 10.2.0.5.0 12.1.0.2.0 Upgraded from 11.2.0.3.0 12.2.0.1.0 Upgraded from 12.1.0.2.0 12.2.0.1.0 Upgraded from 12.1.0.2.0 19.0.0.0.0 Upgraded from 12.2.0.1.0 to 19.7.0.0.0
SQL> select username,common from dba_users where oracle_maintained='Y'; USERNAME COMMON _____________ _________ SYSTEM NO SYS NO SYSDG YES SYSKM YES SYSBACKUP YES SYSRAC YES DBSNMP NO ... ... FLOWS_FILES YES APEX_PUBLIC_ROUTER YES APEX_240100 YES
<entry key="security.requestValidationFunction">ords_util.authorize_plsql_gateway</entry>
<entry key="security.requestValidationFunction">wwv_flow_epg_include_modules.authorize</entry>
connect / as sysdba create table sys.backup_of_user$ as select * from sys.user$; create table sys.backup_of_user$_updated as select * from sys.user$ where bitand(spare1, 256) = 256;
connect / as sysdba update user$ set spare1 = spare1 - bitand(spare1, 128) + 128 where bitand(spare1, 256) = 256; commit;
alter system flush shared_pool;
SQL> select username,common from dba_users where oracle_maintained='Y'; USERNAME COMMON _____________ _________ SYSTEM YES SYS YES SYSDG YES SYSKM YES SYSBACKUP YES SYSRAC YES DBSNMP YES ... ... FLOWS_FILES YES APEX_PUBLIC_ROUTER YES APEX_240100 YES
Monday, November 25, 2024
Script - List blocking session tree in Oracle single instance or RAC database
-- ----------------------------------------------------------------------------------- -- File Name : sess_blocking_tree.sql -- Author : https://www.dbaplus.ca -- Description : Displays session blocking heirarchy -- Requirements : Access to the following views -- gv$instance -- gv$session -- Usage : @sess_blocking_tree -- Last Modified: 25-Nov-2024 -- ----------------------------------------------------------------------------------- set termout off -- ---------------------------------------------------- -- Save current SET variable -- ---------------------------------------------------- column v_set_save_file new_value V_SET_SAVE_FILE select 'tmp_SQLPlus_ENV_&_USER' v_set_save_file from dual; STORE SET &V_SET_SAVE_FILE replace -- ---------------------------------------------------- -- Save current NLS_DATE_FORMAT -- ---------------------------------------------------- column v_nls_date_format new_value V_NLS_DATE_FORMAT select sys_context('USERENV','NLS_DATE_FORMAT') v_nls_date_format from dual; -- ------------------------------------------------------------------------ -- Show INST_ID column when RAC database has more than one instance running -- ------------------------------------------------------------------------ column v_inst_id new_value V_INST_ID select decode(count(*),1,'','INST_ID,') v_inst_id from gv$instance; -- ------------------------------------------------------------------------ -- SET env variable -- ------------------------------------------------------------------------ set linesize 512 set pagesize 999 set verify off column username format a30 column osuser format a10 column machine format a25 alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS'; set termout on ----------------------------------------------------------------------------- SELECT level, LPAD(' ', (level-1)*2, ' ') || NVL(s.username, '(oracle)') AS username, s.osuser, &V_INST_ID s.sid, s.serial#, s.lockwait, s.status, s.module, s.machine, s.program, s.logon_Time from gv$session s where level > 1 or exists (select 1 from gv$session where blocking_session = s.sid and blocking_instance=s.inst_id) connect by prior s.sid = s.blocking_session and prior s.inst_id=s.blocking_instance start with s.blocking_session is null; --------------------------------------------- -- Restore SET variable and NLS_DATE_FORMAT --------------------------------------------- set termout off start &V_SET_SAVE_FILE alter session set nls_date_format='&V_NLS_DATE_FORMAT'; column v_set_save_file clear column v_nls_date_format clear column v_inst_id clear set termout on
Wednesday, April 10, 2024
Oracle Database uses Net Directory Naming with Microsoft Active Directory
Windows Domain controller: DC01.lab.dbaplus.ca - Windows 2022 Workstation 1: wkstn01 – Windows 11 + Oracle Client 19.3+ RU 19.22 Workstation 2: wkstn02 – Oracle Linux 9.3 + Oracle Client 19.3
Sunday, April 7, 2024
Listener failed to start after Oracle Database out-of-place patching
After applying patches on Oracle Database home with out-of-place patching. The listener cannot be started with error,
TNS-01201: Listener cannot find executable <ORACLE_HOME>/bin/oracle for SID <ORACLE_SID>
Friday, March 29, 2024
Install Oracle Database 19c Client on Oracle Linux 9 Subsystem on Windows 11
Thursday, February 9, 2023
Script - Check LOBSEGMENT Storage Usage of Oracle table BLOB column stored as SECUREFILE or BASICFILE
Monday, January 30, 2023
Oracle Database 12.2/18c/19c ORA-00600: [qosdExpStatRead: expcnt mismatch]
2023-01-29T15:55:03.286965-05:00 Errors in file /u01/app/oracle/diag/rdbms/cdb01/cdb01/trace/cdb01_mz00_513756.trc (incident=97764) (PDBNAME=PDB1): ORA-00600: internal error code, arguments: [qosdExpStatRead: expcnt mismatch], [65561], [25], [3125688], [1], [], [], [], [], [], [], [] PDB1(3):Use ADRCI or Support Workbench to package the incident. See Note 411.1 at My Oracle Support for error and packaging details. 2023-01-29T15:55:03.291141-05:00 Errors in file /u01/app/oracle/diag/rdbms/cdb01/cdb01/trace/cdb01_mz00_513756.trc: ORA-00600: internal error code, arguments: [qosdExpStatRead: expcnt mismatch], [65561], [25], [3125688], [1], [], [], [], [], [], [], []
Saturday, January 28, 2023
19c database createtion getting ORA-46385 On AUDSYS.AUD$UNIFIED
When creating Oracle 19c databases, got errors as following,
comment on table AUDSYS.AUD$UNIFIED is * ERROR at line 1: ORA-46385: DML and DDL operations are not allowed on table "AUDSYS"."AUD$UNIFIED".It was reported by Oracle support on 19.5. It is still there when creating non-cdb on 19.16.
Thursday, June 16, 2022
Oracle Data Pump Export/Import SODA Collection Data
Wednesday, May 25, 2022
ORA-02291: integrity constraint (WWV_FLOW_FND_GU_INT_G_FK) violated - parent key not found - When Importing Workspace In APEX configured with ORDS & WebLogic
ORA-02291: integrity constraint (APEX_200100.WWV_FLOW_FND_GU_INT_G_FK) violated - parent key not found ORA-06512: at "APEX_200100.WWV_FLOW_FND_USER_INT", line 2067 ORA-06512: at "APEX_200100.WWV_FLOW_FND_USER_API", line 339 ORA-06512: at line 2 02291. 00000 - "integrity constraint (%s.%s) violated - parent key not found" *Cause: A foreign key value has no matching primary key value. *Action: Delete the foreign key or add a matching primary key.
Thursday, March 31, 2022
Script - Enable Customized Password Complexity in Oracle non-cdb or cdb environment
Friday, March 11, 2022
Export/import APEX workspace and application with SQLcl
Monday, March 7, 2022
Database failed to start with errors ORA-01565 ORA-17503 ORA-27300 ORA-27301 ORA-27302
$ srvctl start database -db db01 PRCR-1079 : Failed to start resource ora.db01.db CRS-5017: The resource action "ora.db01.db start" encountered the following error: ORA-01078: failure in processing system parameters ORA-01565: error in identifying file '+DATA/db01/parameterfile/spfiledb01.ora' ORA-17503: ksfdopn:10 Failed to open file +DATA/db01/parameterfile/spfiledb01.ora ORA-27300: OS system dependent operation:open failed with status: 13 ORA-27301: OS failure message: Permission denied ORA-27302: failure occurred at: sskgmsmr_7 . For details refer to "(:CLSN00107:)" in "/u01/app/grid/diag/crs/host01/crs/trace/ohasd_oraagent_grid.trc". CRS-2674: Start of 'ora.db01.db' on 'host01' failed
Thursday, March 3, 2022
Oracle SQLcl installation and configuration
Monday, February 21, 2022
Oracle RAC 19c pdb open failed with ORA-12963: A read-only instance cannot be the first instance to open a database
sys@rac01> alter pluggable database pdb1 open; alter pluggable database pdb1 open * ERROR at line 1: ORA-12963: A read-only instance cannot be the first instance to open a database.
Wednesday, February 16, 2022
Oracle 12.2 EXPDP Fails Exporting Full PDB with ORA-39126 On KUPW$WORKER.FETCH_XML_OBJECTS
Wednesday, February 9, 2022
Configure Reverse Path Filter parameter "rp_filter" on Oracle Linux and Red Hat Enterprise Linux
When installing Oracle Grid Infrastructure (GI) 12c or higher version (18c, 19c, 21c), multiple network interfaces (NIC) can be used as private interconnection to implement inter-communication load balance and failover. However, if this configuration is adopted on Oracle Linux (OL) 6 or Red Hat Enterprise Linux (RHEL) 6 or higher, the GI installation prerequists checking shows error
Wednesday, February 2, 2022
Oracle 19c GI installation failed with PRVG-13605 : Query of chrony daemon for its time sources could not be performed
The issue happens on Oracle Linux / Red Hat Enterprise Linux 7/8 on which chronyd is adopted as the network time protocol daemon instead of ntpd. When installing Oracle Grid Infrastructure 19c on these platform, the installation fails during prerequisit check, the message shows that
Verifying Network Time Protocol (NTP) ...FAILED Verifying chrony daemon is synchronized with at least one external time source ...FAILED rac01: PRVG-13605 : Query of chrony daemon for its time sources could not be performed on node "rac01". PRVG-2043 : Command "/usr/bin/chronyc sources " failed on node "rac01" and produced the following output: 506 Cannot talk to daemon rac02: PRVG-13605 : Query of chrony daemon for its time sources could not be performed on node "rac02". PRVG-2043 : Command "/usr/bin/chronyc sources " failed on node "rac02" and produced the following output: 506 Cannot talk to daemon