dbTalk Databases Forums  

db2top err

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss db2top err in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
db2Harakiri
 
Posts: n/a

Default db2top err - 06-29-2011 , 03:27 AM






Anybody have a solution for this error:

db2top -d $dbname
Function not implemented (smcr_procattr)

info: db2 9.5 fp7 on AIX 5.3

Reply With Quote
  #2  
Old   
MarkB
 
Posts: n/a

Default Re: db2top err - 07-01-2011 , 02:22 AM






On Jun 29, 12:27*pm, db2Harakiri <non... (AT) gmail (DOT) com> wrote:
Quote:
Anybody have a solution for *this error:

db2top -d $dbname
* * Function not implemented (smcr_procattr)

info: db2 9.5 fp7 on AIX 5.3
This is APAR IC75720.
Ask the support to provide you a new version of the db2top utility.

Reply With Quote
  #3  
Old   
MarkB
 
Posts: n/a

Default Re: db2top err - 07-01-2011 , 04:26 AM



On Jun 29, 12:27*pm, db2Harakiri <non... (AT) gmail (DOT) com> wrote:
Quote:
Anybody have a solution for *this error:

db2top -d $dbname
* * Function not implemented (smcr_procattr)

info: db2 9.5 fp7 on AIX 5.3
This is APAR IC75720.
Ask the IBM support to provide you a new version of the db2top
utility.

Sincerely,
Mark B.

Reply With Quote
  #4  
Old   
MarkB
 
Posts: n/a

Default Re: db2top err - 07-01-2011 , 09:12 AM



On Jun 29, 12:27*pm, db2Harakiri <non... (AT) gmail (DOT) com> wrote:
Quote:
Anybody have a solution for *this error:

db2top -d $dbname
* * Function not implemented (smcr_procattr)

info: db2 9.5 fp7 on AIX 5.3
This is APAR IC75720.
Ask the IBM support to provide you a new version of the db2top utility.

Reply With Quote
  #5  
Old   
MarkB
 
Posts: n/a

Default Re: db2top err - 07-01-2011 , 09:23 AM



This is the APAR IC75720.
Ask the IBM support to provide you a new version of the db2top utility.

Reply With Quote
  #6  
Old   
Nonejm
 
Posts: n/a

Default Re: db2top err - 07-05-2011 , 02:30 AM



On 1 jul., 16:23, MarkB <mark.barinst... (AT) gmail (DOT) com> wrote:
Quote:
This is the APAR IC75720.
Ask the IBM support to provide you a new version of the db2top utility.
Thanks for the answer MarkB.

Reply With Quote
  #7  
Old   
Bernard
 
Posts: n/a

Default Re: db2top err - 08-08-2011 , 10:33 AM



On Jun 29, 10:27*am, db2Harakiri <non... (AT) gmail (DOT) com> wrote:
Quote:
Anybody have a solution for *this error:

db2top -d $dbname
* * Function not implemented (smcr_procattr)

info: db2 9.5 fp7 on AIX 5.3
A (faulty) change in AIX is causing this (even a workaround fix is
available in db2).

db2top is shipped as 'not stripped' (file db2top)

So.

Create a new program mydlsym.c

#include <errno.h>
#include <dlfcn.h>
#include <stdio.h>
static int i=0;
static char * po_1;
void * realdlsym(void * handle, const char * name);
void * mydlsym(void * handle, const char * name)
{
if(i==0) {i=1;
fprintf(stderr,"\n Before addidtional dlerror call");
dlerror();
fprintf(stderr,"\n After addidtional dlerror call");
}
return realdlsym(handle,name);
}


cc -c -q64 mydlsym.c

Then

DB2DIR=${DB2DIR:=/usr/opt/db2_09_05_install}

rm -f db2top.new

ld -b64 -r -o tmp0.o $DB2DIR/bin/db2top -brename:.dlsym,.mydlsym

ld -b64 -o db2top.new tmp0.o mydlsym.o -brename:.realdlsym,.dlsym
$DB2DIR/lib32/libdb2trcapi.a $DB2DIR/lib32/libdb2osse.a $DB2DIR/lib32/
libdb2g11n.a $DB2DIR/lib32/libdb2install.a $DB2DIR/lib32/
libdb2genreg.a $DB2DIR/lib32/libdb2locale.a $DB2DIR/lib32/
libdb2dascmn.a /usr/lib/libC.a $DB2DIR/lib32/libdb2.a /usr/lib/
libdl.a /usr/lib/libpthreads.a -lcurses -lc

rm tmp0.o

chmod +x db2top.new

Will create a working db2top.new that can be installed over db2top.


Bernard (Dhooghe)

Reply With Quote
  #8  
Old   
Nonejm
 
Posts: n/a

Default Re: db2top err - 08-23-2011 , 04:55 AM



Thanks Bernard,

your solution solved the problem.

LP, Bojan

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.