Question : Oracle Disk space

Hi,

Just need an input.  If transactional data is growing by 60000 records M-F, how much disk space we would need to be on the safe side to keep archive logs / data file size not to overflow.

This will turn into a BI table for DW.

thx.

Answer : Oracle Disk space

i'm using this function to get the whole scheme AVG record length.
and then I can decide how will be my database.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
DECLARE
   v_tot    NUMBER;
   v_size   NUMBER;
   vsele    VARCHAR2 (200);
BEGIN
   FOR i IN (SELECT table_name tname, column_name cname, data_type ctype
               FROM user_tab_cols
               where table_name in (select table_name from user_tables))
   LOOP
      IF i.ctype IN ('BLOB', 'CLOB')
      THEN
         vsele :=
               'select avg(dbms_lob.getlength( '
            || i.cname
            || ' )) csize from '
            || i.tname;
      ELSE
         vsele :=
              'select avg(vsize( ' || i.cname || ' )) csize from ' || i.tname;
      END IF;
 
      EXECUTE IMMEDIATE vsele
                   INTO v_size;
 
      v_tot := nvl(v_tot,0) + nvl(v_size,0);
   END LOOP;
 
   DBMS_OUTPUT.put_line ('total '|| (trunc(v_tot,4) / 1024) );
END;
Open in New Window Select All
Random Solutions  
 
programming4us programming4us