We can see Reclaimable space in Schema by using below query.
SELECT'Task Name : ' || f.task_name || CHR(10) ||'Start Run Time : ' || TO_CHAR(execution_start, 'dd-mon-yy hh24:mi') || chr (10) ||'Segment Name : ' || o.attr2 || CHR(10) ||'Segment Type : ' || o.type || CHR(10) ||'Partition Name : ' || o.attr3 || CHR(10) ||'Message : ' || f.message || CHR(10) ||'More Info : ' || f.more_info || CHR(10) ||
'------------------------------------------------------' Advice FROM dba_advisor_findings f,dba_advisor_objects o,dba_advisor_executions e WHERE o.task_id = f.task_id AND o.object_id = f.object_id AND f.task_id = e.task_id AND e. execution_start > sysdate - 1 AND e.advisor_name = 'Segment Advisor' ORDER BY f.task_name;
Solution
There are a couple of effective methods for freeing up unused space associated with an index:
•Rebuilding the index
•Shrinking the index
Before you perform either of these operations, first check
USER_SEGMENTS to verify that the amount of space used corresponds with the Segment Advisor’s advice. In this example, the segment name is F_REGS_IDX1
SQL> select bytes from user_segments where segment_name = 'F_REGS_IDX1';
BYTES----------
166723584
This example uses the
ALTER INDEX...REBUILD
statement to re-organize and compact the space usedby an index:
SQL> alter index f_regs_idx1 rebuild;
Alternatively, use the
ALTER INDEX...SHRINK SPACE statement to free up unused space in an index—for example:
SQL> alter index f_regs_idx1 shrink space;
Now query
USER_SEGMENTS
again to verify that the space has been de-allocated. Here is the output forthis example:
BYTES----------
524288
The space consumed by the index has considerably decreased.
I prefer export and import is the another useful method to reclaim free space.
Reclaiming Unused Space in Index.
Tags Cloud
Abstract Class
Android
Apps
Archivelog
Array
Audit management in BAAN ERP
BAAN ERP
BAAN programming tools
BSE
collection Classes
Collections
Control file
Data Block
Data Dictionary
Database
Database Auditing
Database Connection
Database Management in BAAN ERP
Database Process
Database Recovery
Datafile
DBA
DBA Responsibility
DBCA
DBMS
Deadlock
Device Management in BAAN ERP
directory structure
Enterprise tools
ERP
Exception
Exception Question
Facebook
Force View
Form management in BAAN ERP
Gaming
Generics
Google
Index
Inheritance in Java
Initialization Parameter
Instance Memory Structure
Java Interface
Java Question
Logical Storage
Logminer
Manually Database Creation
Materialized View
NoArchivelog
Oracle
Oracle Background Process
oracle components
Oracle Database Creation
Oracle Instance
Oracle Managed Files
Oracle Problems
Performance
PFile
PHP
PHP Problem
Physical Storage
PL/SQL
Planning DB Files
Procedure
RBA
RDBMS
Recovery
Recovery Catalog
Redo Log
Report management in BAAN ERP
Server Process
Session management in BAAN ERP
SGA
Shutdown Oracle Database
SPfile
SQL in BAAN ERP
standard software coding in BAAN ERP
Startup
Startup Oracle Database
Tablespace
Technology
Technology's News
Temp
Thread
Thread Related Question
Tools customization and development
Troubleshooting
Undo
Unique Constraint
User Management in BAAN ERP
User Process
Version Release Customization
View
World news






5 comments:
thnx
Players operating in the market also face challenges which are impeding their development and growth.
sap erp system
" Thank you for your posting.
Seems like a nice blog.
Stock Tips
you discuss this topic,its very useful for the business people all are want to new update so thanks for sharing
Comfortabl y, the post is actually the sweetest on this deserving topic. I concur with your conclusions and will eagerly look forward to your upcoming updates. Saying thanks will not just be adequate, for the phenomenal lucidity in your writing. I will right away grab your rss feed to stay informed of any updates. Pleasant work and much success in your business endeavors!
Post a Comment