时间:2024-12-31 16:01:48
oracle 如何查看当前用户的表空间名称
相关查询的用法,也顺便记录一下
1)查询当前用户表空间。/* 查看用户所属的表空间 */ select default_tablespace from dba_users where username = ' TMS21 ' ;
2)查询所有表空间。/* 查看所有的表空间 */ -- 1 )方式1:dba_tablespaces -- select * from dba_tablespaces; -- 2 )方式2:v$tablespace -- select * from v$tablespace;
3)查询用户下所有表。/* 查看用户下面的所有的表 */ -- 1 )方式1:user_tables -- select * from user_tables; -- 2 )方式2: dba_tables -- select * from dba_tables where owner = ' TMS21 ' ;
《oracle查看当前用户的表空间》不代表本网站观点,如有侵权请联系我们删除
精彩推荐
点击排行