Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Amount of redo

RE: Amount of redo

From: Boivin, Patrice J <BoivinP_at_mar.dfo-mpo.gc.ca>
Date: Wed, 14 Aug 2002 05:28:33 -0800
Message-ID: <F001.004B43B2.20020814052833@fatcity.com>


Try this little query:

Number of Log Files per Hour (Oracle 8i)

 select to_char(first_time,'YYYY-MM-DD Month (Day)') day,  

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'00',1,0)),'9999')
"00:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'01',1,0)),'9999')
"01:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'02',1,0)),'9999')
"02:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'03',1,0)),'9999')
"03:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'04',1,0)),'9999')
"04:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'05',1,0)),'9999')
"05:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'06',1,0)),'9999')
"06:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'07',1,0)),'9999')
"07:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'08',1,0)),'9999')
"08:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'09',1,0)),'9999')
"09:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'10',1,0)),'9999')
"10:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'11',1,0)),'9999')
"11:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'12',1,0)),'9999')
"12:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'13',1,0)),'9999')
"13:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'14',1,0)),'9999')
"14:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'15',1,0)),'9999')
"15:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'16',1,0)),'9999')
"16:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'17',1,0)),'9999')
"17:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'18',1,0)),'9999')
"18:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'19',1,0)),'9999')
"19:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'20',1,0)),'9999')
"20:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'21',1,0)),'9999')
"21:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'22',1,0)),'9999')
"22:00",
 

to_char(sum(decode(substr(to_char(first_time,'hh24'),1,2),'23',1,0)),'9999')
"23:00"

 from v$log_history
 group by to_char(first_time,'YYYY-MM-DD Month (Day)')  order by to_char(first_time,'YYYY-MM-DD Month (Day)')  /

Regards,
Patrice Boivin
Systems Analyst (Oracle Certified DBA)

Systems Admin & Operations | Admin. et Exploit. des systèmes
Technology Services        | Services technologiques
Informatics Branch         | Direction de l'informatique 
Maritimes Region, DFO      | Région des Maritimes, MPO

E-Mail: boivinp_at_mar.dfo-mpo.gc.ca

 -----Original Message-----

Sent:	Wednesday, August 14, 2002 9:09 AM
To:	Multiple recipients of list ORACLE-L
Subject:	Amount  of redo


Hi List,

I want to put my databse in archive mode(Presently it is non archive mode).I want to estimate
space that will be required for archive log taking we will be keeping one week archive on disk. How can i find out amount of redo generated in a week.

Regards
Pawan Dalmia
Extn -5259

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Pawan Dalmia
  INET: Pawan.Dalmia_at_orange.co.in

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Boivin, Patrice J
  INET: BoivinP_at_mar.dfo-mpo.gc.ca

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 14 2002 - 08:28:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US