Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tablespace where the oracle mobile table resides

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Modify the table space alter table TABLE_NAME move tablespace TABLESPACENAME query all tables under the current user select 'alter table' | | table_name | | 'move tablespace tablespacename;' from user_tables;2. Modify the space of the index of the table alter index INDEX_NAME rebuild tablespace TABLESPACENAME queries all indexes under the current user select 'alter index' | | index_name | | 'rebuild tablespace tablespacename;' from user_indexes

Log table is not suitable for moving

Set linesize 200

Col table_name format a5

Col column_name format a5

SELECT b.table_name

A.segment_name

B.index_name

A.segment_type

B.column_name

A.tablespace_name

B.chunk

B.cache

B.freepools

B.pctversion

B.retention

FROM dba_segments a,dba_lobs b

WHERE a.segment_name = b.segment_name

AND a.tablespace_name = 'TEST'

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 212

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report