| |
|
If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
|
 |

07-28-09, 10:37
|
|
Registered User
|
|
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
|
|
|
'list utility show detail' does not work
|
|
db2 ESE v9.5.1/AIX 6.1
i started reorg:
db2 -v reorg indexes all for table DBA.AAA allow no access
and want to monitor the process by:
db2 list utility show detail
and it does not show any processes:
SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000
Tried it on other servers and sometimes it works and sometimes it does not.
Queries below does not show any processes either:
db2 “SELECT SUBSTR(TABNAME, 1, 15) AS TAB_NAME, SUBSTR(TABSCHEMA, 1, 15) AS TAB_SCHEMA,REORG_PHASE,SUBSTR(REORG_TYPE, 1, 20) AS REORG_TYPE,REORG_STATUS, REORG_COMPLETION FROM SYSIBMADM.SNAPTAB_REORG ORDER BY TAB_NAME”
or
db2 -x "select substr(table_name,1,20),REORG_START ,REORG_END ,REORG_STATUS,REORG_CURRENT_COUNTER,REORG_max_COUN TER from table (snapshot_tbreorg('smcirrif',-1)) as gg order by table_name"
Did anyone have same issues? Does anyone know why? Thanks in advance
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
|
Last edited by MarkhamDBA; 07-28-09 at 10:43.
|

07-28-09, 10:52
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
|
|
When you issue the REORG, are you connected to the database in the default instance (the one indicated by the DB2INSTANCE environment variable)? If not, you may need to attach to the proper instance.
|
|

07-28-09, 13:23
|
|
Registered User
|
|
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
|
|
|
|
Quote:
|
Originally Posted by n_i
When you issue the REORG, are you connected to the database in the default instance (the one indicated by the DB2INSTANCE environment variable)? If not, you may need to attach to the proper instance.
|
Ok, I checked
echo $DB2INSTANCE
db2v9i1
perfdb22[/home/dba/move_table]db2 get instance
The current database manager instance is: db2v9i1
and changed my script to attach to instance:
db2 attach to db2v9i1
before starting reorg. Still no show:
db2 list utilities show detail
SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
|
|

07-28-09, 14:14
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
|
|
You don't need to explicitly attach to the default instance. My question was if the database where you were running the REORG was in the same instance where your ran LIST UTILITIES.
|
|

07-28-09, 14:20
|
|
Registered User
|
|
Join Date: Nov 2005
Location: IL
Posts: 554
|
|
this is a similar problem that I had with db2pd command while back. You have to run this command on the partition that is holding those tables. Specially if those partitions are on a diff server.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
DB2 v9.1.0.2 os 5.3.0.0
|
|

07-28-09, 14:49
|
|
Registered User
|
|
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
|
|
Quote:
|
Originally Posted by Cougar8000
this is a similar problem that I had with db2pd command while back. You have to run this command on the partition that is holding those tables. Specially if those partitions are on a diff server.
|
if you mean DPF we don't use it. I submitted 'list utilities' command in the same screen (script was 'nohuped') so I guess I was on the same partition anyway.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
|
|

07-28-09, 14:51
|
|
Registered User
|
|
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
|
|
Quote:
|
Originally Posted by n_i
You don't need to explicitly attach to the default instance. My question was if the database where you were running the REORG was in the same instance where your ran LIST UTILITIES.
|
it is the same, Nick. it would be a silly mistake, wouldn't it?
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
|
|

07-28-09, 15:00
|
|
:-)
|
|
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
|
|
Quote:
|
Originally Posted by MarkhamDBA
it is the same, Nick.
|
Prove it.
Quote:
|
Originally Posted by MarkhamDBA
it would be a silly mistake, wouldn't it?
|
Doesn't mean it couldn't happen, does it?
|
|

07-28-09, 15:11
|
|
∞∞∞∞∞∞
|
|
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
|
|
list utilities doesn't display reorg info. Try db2pd with -reorg.
You can also see some reorg info from db2diag.log/notify.log and list history
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|