简体   繁体   中英

Is Dual table Oracle managed tablespace or User managed table space

I have been trying to search which tablespace does the DUAL table belong to in Oracle database. Either it belongs to Oracle managed tablespace or User managed table space.

I ran the following query to see the tablespace but it did not help:

select tablespace_name from all_tables where owner='USR00' and table_name='dual';

Please suggest.

PS: I understand DUAL table is a dummy table.

DUAL is a SYS-owned table.

SQL> select owner, tablespace_name from all_tables where table_name = 'DUAL';

OWNER                          TABLESPACE_NAME
------------------------------ ------------------------------
SYS                            SYSTEM

SQL>

What you see and use is a public synonym , ie you don't "own" it, so your owner='USR00' couldn't return anything.

SQL> select owner, synonym_name, table_owner, table_name from all_synonyms where synonym_name = 'DUAL';

OWNER      SYNONYM_NAME TABLE_OWNER  TABLE_NAME
---------- ------------ ------------ ----------
PUBLIC     DUAL         SYS          DUAL

SQL>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM