Algo que ainda não havia usado nem ao menos lido sobre.. mas fica a dica de como consultar dados de partições específicas.
SQL> select partition_name from dba_tab_partitions where table_name='AUD$UNIFIED';
PARTITION_NAME
--------------------------------------------------------------------------------
AUD_UNIFIED_P0
SYS_P49826
SYS_P50746
SYS_P51806
SYS_P53186
SYS_P54526
SYS_P56266
7 rows selected.
SQL> select count(*) from AUDSYS.AUD$UNIFIED partition (SYS_P54526);
COUNT(*)
----------
2904
SQL> select count(*) from AUDSYS.AUD$UNIFIED partition (SYS_P56266);
COUNT(*)
----------
8997
SQL> select count(*) from AUDSYS.AUD$UNIFIED partition (SYS_P56266) where OS_USER='apache';
COUNT(*)
----------
142


0 comentários:
Postar um comentário