DisplayAdd1

TechnoTechDB is a platform, which will help to grow your carrier in Information sector. Having 15 years of Experience in Oracle/MongoDB/Postgres/Mysql databases, along with having good expertise level of knowledge in Scripting to automate database task. Our goal to start with zero to hero level expertise in Database. You can access/refer my some blogs on https://mrorcldba.blogspot.com link and post your comments and your suggestion to motive us.

Wednesday, 20 July 2022

How to get Actual Total and Free size of tablespace when autoextend on .

Hello Friends, 

Below Test I have done for those people, who are curious to know or monitor free and total tablespace size when autoextend on. Because most of our DBA use below generic script to monitor tablespace which actually don't show till what extent or size this tablespace will grow and they add another datafile. 


Tried to show how, you can check and can avoid datafile addition. You may test below steps at on your own lab and see the result. 


1. Create a test tablespace.








2.  Check the used size of newly created tablespace, it will now show when you will run below query. Because tablespace this time does not contain any segment. 

3.   Create a dummy table and run query from step 2, now it will show test1 tablespace because it has a dummy segment in this tablespace.




4.  start in insert data in table1 and open another terminal when you will continually have to monitor (from step2) how tablespace test1 is gowning.


See below how tablespace is growing when we insert data into tablespace.


No comments:

Post a Comment

Steps to Rename Host in Oracle RESTART (ASM) in Linux

  oracle@localhost ] asmcmd ASMCMD> lsdg State    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_...