Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle archivelog usage

WITH hours AS (
    SELECT trunc(sysdate) + ((LEVEL - 1) / 24) AS HOURS
    FROM DUAL
    CONNECT BY LEVEL < = 24
)
SELECT h.HOURS AS DATE_HOUR,
    round(sum(BLOCKS * BLOCK_SIZE) / 1e9, 2) SIZE_GB
FROM hours h
    LEFT OUTER JOIN V$ARCHIVED_LOG al ON h.HOURS = trunc(al.FIRST_TIME, 'HH24')
GROUP BY h.HOURS
ORDER BY h.HOURS;
Comment

PREVIOUS NEXT
Code Example
Sql :: IS THEre any difference between using default and := in plsql 
Sql :: docmd openargs 
Sql :: mariadb current date plus 1 day 
Sql :: não é possível executar uma operação DML dentro de uma consulta 
Sql :: unpdate pl sql 
Sql :: error infor in sql server 
Sql :: Alter precision 
Sql :: tsql default value when no value returned by query 
Sql :: pl/ sql change currency 
Sql :: how to add column in oracle 
Sql :: md5 encryption for existing records 
Sql :: kimball data warehouse sql calendar 
Sql :: how much table store postgres 
Sql :: conectar base de datos mysql con java 
Sql :: sql how to get courses that i have made prerequisites 
Sql :: like in openquery 
Sql :: 9999 
Sql :: sql server convert string list integers list 
Sql :: rails sql query converstion 
Sql :: *Action: Options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger. 
Sql :: sql group by and having 
Sql :: mysql table inspector command line 
Sql :: sql server system messeges 
Sql :: could not find driver (SQL: PRAGMA foreign_keys = ON;) larave 
Sql :: Join base on multiple and conditions 
Sql :: xampp table doesn 
Sql :: upload multipe databases mysql 
Sql :: select between dates opstgres 
Sql :: fonction stockée sql 
Sql :: update having mysql 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =