on 2013 Dec 05 10:44 AM
Hi All,
I want to reorg DB2 Tablespace in Linux as we have ECC6.0 Installed.
Can anyone please tell me the detailed steps for this.I need help in urgent guys.
As I have to do this for my Production System.Kindly help me out ASAP.
Many Thanks
Ajitabh
Hello Ajitabh,
Check the below thread link for details on DB2 Tablespace Re-org.
"there is no native tablespace reorganization command for DB2 LUW but there is a job available in the SAP DBA Planning calendar called 'REORG of Tables in Tablespaces(s)'. This job can be used to reorganize all tables which are stored within a specific tablespace. It simply gets the list of all tables of this tablespace out of the SYSCAT and then calls the REORG command table by table. The job is sometimes useful to reduce the high-water mark of tablespaces and reclaim space. Reduction of the high-water mark might not be perfect, as the REORG command does not necessarily move tables to free parts at the beginning."
Thread link : http://scn.sap.com/thread/1181284
Hope it helps.
Mudasir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mudasir,
I am completely new into DB2.So can please send me any document regarding the same.
My Email ID is:ajitabh.dubey@gmail.com
It will be a great help if you can send me any doc with screenshot as well.
Many Thanks
Ajitabh
Hello Ajitabh,
Can you try with the below db2 commands to re-org all the tables in tablespace.
" db2 -x "select 'reorg table',substr(rtrim(tabschema)||'.'||rtrim(tabname),1,50),';' \
from syscat.tables where type = 'T' and tbspace='<tablespace_name>'" > reorg.out
db2 -tvf reorg.out"
Reference link : http://www.dbatodba.com/db2/how-to-do/how-to-run-reorg-reorgchk-and-runstat-on-all-tables-in-a-datab...
Execute and let us know the output.
Mudasir.
Hi Mudasir,
Thanks for your reply.I want to know regarding the command:
As "tbspace =<tablespace_name>"
As I have to reorg every tablespace,so I have to enter every Tablespace name in the script?
Can you please send me a sample script for reference,so that I can generate it accordingly.
Many Thanks
Ajitabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I have successfully reorg the Tables with the below command as:
db2 reorg table <Table Name>
As we have specific Tables which has to be reorged,so I have followed this way.
Now I want to know is there any specific commands in DB2 through which I can get the list
of the Reorged Tables?As my server is in Linux.
Kindly help me out ASAP.
Many Thanks
Ajitabh
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.