https://www.fandangotrading.com/3z6r5nmos SQL> set timing on SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_RUN_DETAILS; MIN(LOG_DATE) --------------------------------------------------------------------------- 28-MAY-17 06.54.44,788384 AM -03:00 Elapsed: 00:00:00.19 SQL> SQL> SQL> SQL> SQL> SELECT count(1) FROM DBA_SCHEDULER_JOBS J WHERE (J.STATE NOT IN ('SCHEDULED', 'RUNNING') OR J.FAILURE_COUNT > 0) AND NOT EXISTS (SELECT 1 FROM DBA_SCHEDULER_JOB_RUN_DETAILS JRD WHERE (JRD.ACTUAL_START_DATE = (SELECT MAX(AUX.ACTUAL_START_DATE) FROM DBA_SCHEDULER_JOB_RUN_DETAILS AUX WHERE AUX.JOB_NAME = JRD.JOB_NAME) AND JRD.STATUS = 'FAILED' AND JRD.JOB_NAME = J.JOB_NAME)); 2 3 4 5 6 7 8 9 10 11 COUNT(1) ---------- 7 Elapsed: 00:00:26.05 SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_LOG; MIN(LOG_DATE) --------------------------------------------------------------------------- 28-MAY-17 06.00.02,007816 AM -03:00 Elapsed: 00:00:45.12 SQL> SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_RUN_DETAILS; MIN(LOG_DATE) --------------------------------------------------------------------------- 28-MAY-17 06.54.44,788384 AM -03:00 Elapsed: 00:00:00.10 SQL> select count(1) from DBA_SCHEDULER_JOB_RUN_DETAILS; COUNT(1) ---------- 49507 Elapsed: 00:00:01.02 SQL> select count(1) from DBA_SCHEDULER_JOB_LOG; COUNT(1) ---------- 52472 Elapsed: 00:00:00.09 SQL>
get link SQL> set serveroutput on; DECLARE x VARCHAR2(100); BEGIN dbms_scheduler.get_scheduler_attribute('LOG_HISTORY', x); dbms_output.put_line('LH: ' || x); END; / SQL> 2 3 4 5 6 7 LH: 30 PL/SQL procedure successfully completed. Elapsed: 00:00:00.00 SQL
https://www.modulocapital.com.br/1rlukf979 É possivel alterar a retenção através da procedure DBMS_SCHEDULER.SET_SCHEDULER_ATTRIBUTE. No exemplo abaixo vamos alterar para 15 dias.
follow exec DBMS_SCHEDULER.SET_SCHEDULER_ATTRIBUTE('log_history','15');
https://semnul.com/creative-mathematics/?p=zruhbgn exec DBMS_SCHEDULER.SET_SCHEDULER_ATTRIBUTE('job_name','log_history','15');
https://ragadamed.com.br/2024/09/18/k2bftlovx4 exec DBMS_SCHEDULER.PURGE_LOG();
go to link exec DBMS_SCHEDULER.PURGE_LOG(log_history => 90); SQL> exec DBMS_SCHEDULER.PURGE_LOG(log_history => 90); PL/SQL procedure successfully completed. Elapsed: 00:00:01.44 SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_LOG; MIN(LOG_DATE) --------------------------------------------------------------------------- 20-OCT-17 11.00.01,016819 PM -02:00 Elapsed: 00:00:00.10 SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_RUN_DETAILS; MIN(LOG_DATE) --------------------------------------------------------------------------- 20-OCT-17 11.24.16,675612 PM -02:00 Elapsed: 00:00:00.09 SQL>
Buy Chinese Diazepam A limpeza também pode ser realizada de acordo com um job específico. Para isso basta passar os parametros log_history e job_name para a procedure PURGE_LOG. No exemplo abaixo, estaremos realizando uma limpeza dos logs para o job KILL_SESSION_AUTO_JOB.
https://trevabrandonscharf.com/ivgh6wkkl64 exec DBMS_SCHEDULER.PURGE_LOG(log_history => 10, job_name => 'KILL_SESSION_AUTO_JOB, sys.DEFAULT_JOB_CLASS'); SQL> select job_name, JOB_CLASS from dba_scheduler_jobs where job_name='KILL_SESSION_AUTO_JOB'; JOB_NAME JOB_CLASS ------------------------------ ------------------------------ KILL_SESSION_AUTO_JOB DEFAULT_JOB_CLASS Elapsed: 00:00:00.18 SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_LOG where job_name='KILL_SESSION_AUTO_JOB'; MIN(LOG_DATE) --------------------------------------------------------------------------- 18-DEC-17 09.02.01,125723 PM -02:00 Elapsed: 00:00:00.13 SQL> exec DBMS_SCHEDULER.PURGE_LOG(log_history => 10, job_name => 'KILL_SESSION_AUTO_JOB, sys.DEFAULT_JOB_CLASS'); PL/SQL procedure successfully completed. Elapsed: 00:00:02.02 SQL> select min(LOG_DATE) from DBA_SCHEDULER_JOB_LOG where job_name='KILL_SESSION_AUTO_JOB'; MIN(LOG_DATE) --------------------------------------------------------------------------- 08-JAN-18 09.40.01,921620 AM -02:00 Elapsed: 00:00:00.07 SQL>
https://marcosgerente.com.br/5feeyq1ivm SQL> SELECT count(1) FROM DBA_SCHEDULER_JOBS J WHERE (J.STATE NOT IN ('SCHEDULED', 'RUNNING') OR J.FAILURE_COUNT > 0) AND NOT EXISTS (SELECT 1 FROM DBA_SCHEDULER_JOB_RUN_DETAILS JRD WHERE (JRD.ACTUAL_START_DATE = (SELECT MAX(AUX.ACTUAL_START_DATE) FROM DBA_SCHEDULER_JOB_RUN_DETAILS AUX WHERE AUX.JOB_NAME = JRD.JOB_NAME) AND JRD.STATUS = 'FAILED' AND JRD.JOB_NAME = J.JOB_NAME)); 2 3 4 5 6 7 8 9 10 11 COUNT(1) ---------- 7 Elapsed: 00:00:00.24
Autor: Jhonata Lamim
Buy Valium With Credit Card MBA em Banco de Dados Oracle, formado pelo Centro Universitário de Araraquara (UNIARA), graduado em Sistemas de Informação pelo Centro Universitário de Brusque (UNIFEBE).
https://marcosgerente.com.br/qg6a5alycj Atua com Banco de Dados Oracle desde Junho de 2010. Atualmente é DBA Senior na Exímio Soluções em TI (www.eximioti.com.br)
go site https://vbmotorworld.com/apksb8baa Principais atividade:
follow site Implementação, migração, gerenciamento e suporte a produtos Oracle (10g, 11g, 12c, RAC), multiplataforma;
Monitoramento de ambientes 24×7;
Backup e Recovery;
Performance e Tuning;
Alta disponibilidade (HA);
EM database/grid/cloud control 12c/13c;
Conversão de databases;
Standby database / Oracle Data Guard;
Migração de dados para Oracle;
https://semnul.com/creative-mathematics/?p=5pmz5zhtwh7 Buy Roche Valium Uk Experiência:
Order Diazepam India DBA Oracle Teiko Soluções em TI – Jun/2010 – Abr/2018
DBA Oracle, Outsourcing – Marfrig Group – Set/2013 – Abr/2018
DBA Oracle, Outsourcing – Grupo Notre Dame – Intermédica – Mar/2017 – Abr/2018
DBA Oralce, Outsourcing – Hospital Beneficiência Portuguesa de São Paulo – Set/2015 – Abr/2018
DBA Oracle, Outsourcing – Fundação São Francisco Xavier – Set/2015 – Fev/2017
DBA Oracle, Outsourcing – Unimed Grande Florianopolis – Set/2014 – Jul/2016
DBA Oracle, Outsourcing – Hospital Moinhos de Vento – Set/2014 – Set/2015
DBA Oracle, Outsourcing – Santa Casa de Misericórdia de Porto Alegre – 2013
source https://www.parolacce.org/2024/09/18/ffl8epvl9o Certificações:
enter OCS 12C – Oracle Real Application Clusters 12c Certified Implementation Specialist
OCS 12C – Oracle Database 12c Certified Implementation Specialist
OCE 11G – Oracle Database 11g: Performance Tuning
OCA 11G – Oracle Certified Associate Administrator
OCP 11G/12C – Oracle Certified Professional Administrator
OCS 11G – Oracle Certified Specialist
OPNCS 11G – Oracle Partner Network Certified Specialist
OCS – Oracle Linux 6 Implementation Essentials
https://www.parolacce.org/2024/09/18/fgybbun30i Linkedin: https://www.linkedin.com/in/jhonata-lamim-dba-oracle-61366484/
https://www.fandangotrading.com/p9yivso8