加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 数据库 > MySql > 正文

oracle 查看表属主和表空间sql

发布时间:2020-05-23 15:31:00 所属栏目:MySql 来源:互联网
导读:查看表空间select * from user_tablespaceswhere table_name = TableName查看表属主select Owner from all_tab_columns where table_name = TableName附录:Atablespaceis a storage location where the actual data underlyingdatabaseobjects can be kept.

查看表空间

select * from user_tablespaceswhere table_name = 'TableName'

查看表属主

select Owner from all_tab_columns where table_name = 'TableName'

附录:

Atablespaceis a storage location where the actual data underlyingobjects can be kept. It provides a layer of abstraction between physical and logical data,and serves to allocate storage for allmanaged segments. (A database segment is a database object which occupies physical space such asdata and.) Once created,a tablespace can be referred to by name when creating database segments.

Tablespaces specify only the database storage locations,not the logical database structure,or. For instance,different objects in the same schema may have different underlying tablespaces. Similarly,a tablespace may service segments for more than one schema. Sometimes it can be used to specify schema as to form a bond between logical and physical data.

By using tablespaces,an administrator can control the disk layout of an installation. A common use of tablespaces is to optimize performance. For example,a heavily used index can be placed on a fast. On the other hand,a database table which contains archived data that is rarely accessed could be stored on a less expensive but slowerdisk.

While it is common for tablespaces to store their data in a filesystem file,a single file must be part of a single tablespace. Someallow tablespaces to be configured directly over operating-system device entries,called,providing better performance by avoiding the OS filesystem overheads.

stores data logically in tablespaces and physically in datafiles associated with the corresponding tablespace.

reference:http://en.wikipedia.org/wiki/Tablespace

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读