Discussions
Categories
- 385.5K All Categories
- 5.1K Data
- 2.5K Big Data Appliance
- 2.5K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
archivelog info

Friends,
Oracle: 11gR2
OS: Linux
I have below couple of questions...
1. What's the correct way to determine how much (size) archivelog generated yesterday on a primary db? ... there is also standby db in the infrastructure
Do I have to use dest_id of the primary db in my query?
If I don't use dest_id than the count is double.
SELECT completion_time, thread#, sum(blocks * block_size)/1024/1024 "SIZE_MB" FROM v$archived_log WHERE completion_time > trunc(sysdate - 1) AND dest_id = 1 GROUP BY completion_time, thread#;
2. V$BACKUP_ASYNC_IO: Is there anyway to find archivelog actual CREATION TIME from this view?
As I understand this view records all backupset details and archivelog details.
Basically we record all databases backup details from this view into centralized audit table, so trying to get archivelog original creation time from this view.
Thank you for reading this...
Answers
-
1. What's the correct way to determine how much (size) archivelog generated yesterday on a primary db? ... there is also standby db in the infrastructure Do I have to use dest_id of the primary db in my query?
If queries on v$ view confuse you, there is a much more simpler way. Simply look at your alert log for an entire day. Take how many log switches you have in a day and multiply by the size of your archivelog. You will then have the total size of redo generated by your dabase in a day.
Same with the time, every redo log switch means an archivelog creation.
-
>Do I have to use dest_id of the primary db in my query?
Yes, you must query for only the primary dest_id
>Is there anyway to find archivelog actual CREATION TIME from this view
You'd have to query V$ARCHIVED_LOG. V$BACKUP views show when the backup of the archivelog was done -- which is much after the time when the archivelog was actually created.
Hemant K Chitale