首页 / 爱玩数码 / 正文

oracle查看当前用户的表空间

时间: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查看当前用户的表空间》不代表本网站观点,如有侵权请联系我们删除

点击排行

成长网提供支持 骄阳网版权所有网站地图 网站地图2 主办单位:广州小漏斗信息技术有限公司 粤ICP备20006251号

联系我们 关于我们 版权申明