SQL*Plus (MOSC)

MOSC Banner

How to avoid temporary table

in SQL*Plus (MOSC) 3 commentsAnswered ✓

Hi all,

I have written a well-running sqlplus script with Oracle RDBMS 19.11.0.0 :

create table HRZX_MOYE as (
select table_name, sum(num_rows) s from all_tables where tablespace_name='HRZX' group by table_name
union
select table_name, sum(num_rows) s from all_tab_partitions where tablespace_name='HRZX' group by table_name
) ;
select table_name, s from HRZX_MOYE where s>=(select avg(s) from HRZX_MOYE) order by s ;
drop table HRZX_MOYE ;

I receive correct table_name and size of tables with size bigger than the global average.

But, the temporary table HRZX_MOYE is not very pretty here, under SYS account.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center