Table of Oracle Database

DBA_TABLES >= ALL_TABLES >= USER_TABLES

  • DBA_TABLES:DBA 拥有的或者可以访问的所有关系表
  • ALL_TABLES:某一用户所拥有的或者可以访问的所有关系表
  • USER_TABLES:某一用户所拥有的所有关系表

查看表属于哪个用户

select owner from dba_tables where table_name=upper('table_name');

Alter Table

alter table table01 modify column01 varchar2(20);