User Tools

Site Tools


oracle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
oracle [2026/08/05 12:14] – [RMAN commands] mduerschoracle [2026/09/11 07:22] (current) – [Environement] mduersch
Line 15: Line 15:
   ---------------------------------------------------------------   ---------------------------------------------------------------
   EMD upload completed successfully   EMD upload completed successfully
 +
 +
 +  $AGENT_HOME/bin/emctl getmetric agent sorame01.intern.hessen.de,host,Load
 +  $AGENT_HOME/bin/emctl getmetric agent sorame01.intern.hessen.de,host,CPUUsage 
 +  $AGENT_HOME/bin/emctl getmetric agent sorame01.intern.hessen.de,host,Processes
 +  $AGENT_HOME/bin/emctl listplugins agent -type all 
 +  $AGENT_HOME/bin/emctl pingOMS
 +  $AGENT_HOME/bin/emctl upload agent
 +  $AGENT_HOME/bin/emctl status agent
 +  
 +  
 +EMCC Log Files:
 +
 +  1- EM Agent NOHUP file. (emagent.nohup)
 +  2- EM Agent log file. (gcagent.log)
 +  3- EM Agent Perl Trace file. (emagent_perl.trc)
 +  4- Standard emctl command operation log file. (emctl.log)
 +  5- EM Agent SDK trace file. (gcagent_sdk.trc)
 +  6- EM Agent MDU log. (gcagent_mdu.log) 
 +  7- EM OMS main trace file for the OMS Console (emgc) application. (emoms.trc)
 +  8- EM OMS main log file for the OMS Console (emgc) application. (emoms.log)
 +  9- EM OMS main log file for the OMS pbs (empbs) application. (emoms_pbs.log)
 +  10- EM OMS main trace file for the OMS pbs (empbs) application. (emoms_pbs.tc)
 +
 +Promoted Discovered Error und emcli
 +
 +  SQL> connect / as sysdba
 +  SQL> show parameter job_queue_processes;  --->Verify the current value of job queue process.
 +  SQL> alter system set job_queue_processes = 0; (Note: Please track the existing value before making it to 0)
 +  SQL> connect sysman/
 +  SQL> exec emd_maintenance.remove_em_dbms_jobs;
 +  SQL>exec gc_interval_partition_mgr.partition_maintenance; 
 +  SQL> connect / as sysdba
 +  SQL> alter system set job_queue_processes = 300; (Note: Set the value which was verified before making it to 0)
 +  SQL> connect sysman/
 +  SQL> exec emd_maintenance.submit_em_dbms_jobs;
 +  SQL> commit;
 +
 +
  
 ==== CDB PDB ==== ==== CDB PDB ====
Line 498: Line 537:
      
 Backup Pieces: Backup Pieces:
-  SELECT handle, bytes / 1024 / 1024 AS size_mb, status, completion_time from  v$backup_piece where handle like '%full%' + 
 +  column handle format a40 
 +  column size_mb format a30   
 +  column status format a30 
 +  column completion_time a40 
 +  SELECT handle, bytes / 1024 / 1024 / 1024 AS size_gb, status, completion_time from  v$backup_piece where handle like '%full%' 
  
 ==== Invalid Components ==== ==== Invalid Components ====
Line 598: Line 642:
    V$SESSION - This gives detailed session information about all connected Oracle users.    V$SESSION - This gives detailed session information about all connected Oracle users.
    V$SESSION_EVENT - This is used to show the number of session waits and session timeouts.    V$SESSION_EVENT - This is used to show the number of session waits and session timeouts.
- 
  
    SELECT username, elapsed_time, plsql_exec_time, sql_text, cpu_time, rm_last_action, rm_last_action_reason, rm_last_action_time, rm_consumer_group FROM v$sql_monitor WHERE username is not null;    SELECT username, elapsed_time, plsql_exec_time, sql_text, cpu_time, rm_last_action, rm_last_action_reason, rm_last_action_time, rm_consumer_group FROM v$sql_monitor WHERE username is not null;
 +
 +==== Long running Statements v$session_longops ====
 +  
 +  col opname for a20
 +  col username for a20
 +  col prozent for clear 
 +  col time_remaining for clear 
 +
 +  SELECT opname, username, 
 +     to_char(start_time,'DD-MON-YYYY HH24:MI:SS'),
 +     (sofar/totalwork)*100 prozent, time_remaining 
 +     FROM v$session_longops
 +     WHERE time_remaining>0;
 +  
 +
 ==== RESSOURCES ==== ==== RESSOURCES ====
  
Line 729: Line 787:
   select PATCH_ID, PATCH_UID, STATUS, ACTION_TIME, DESCRIPTION from DBA_REGISTRY_SQLPATCH;   select PATCH_ID, PATCH_UID, STATUS, ACTION_TIME, DESCRIPTION from DBA_REGISTRY_SQLPATCH;
  
 +  ./datapatch -purge_old_metadata
 +  https://mikedietrichde.com/2025/02/28/final-blog-post-about-datapatch-cleanup-and-purge/ 
 +  
  
 ====== ORACLE 11G ====== ====== ORACLE 11G ======
oracle.1785932061.txt.gz · Last modified: by mduersch