![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am trying to get a list of DBMS connections using the IMA mechanism. The problem I'm getting is that I'm running 5 DBMS servers but the IMA script only returns the sessions for the DBMS that I'm connected to. The (sparse) manual documentation says I need to update ima_mib_objects to see the other DBMS servers, but I can't get it to work. My code is below, does anyone have any ideas? I'm running II 9.2.1 (su9.us5/103) Thanks, Matt. sql imadb <<END UPDATE ima_mib_objects SET value = DBMSINFO('IMA_VNODE') WHERE classid = 'exp.gwf.gwm.session.control.add_vnode' AND instance = '0' AND server = DBMSINFO('IMA_SERVER') \p\g select server,session_id,real_user,db_name ,client_host, client_user from ima_server_sessions where db_name<>''\g END |
#3
| |||
| |||
|
|
-----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info- ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Matt Charles Sent: 19 May 2011 08:09 To: info-ingres (AT) kettleriverconsulting (DOT) com Subject: [Info-Ingres] IMA Question Hi, I am trying to get a list of DBMS connections using the IMA mechanism. The problem I'm getting is that I'm running 5 DBMS servers but the IMA script only returns the sessions for the DBMS that I'm connected to. The (sparse) manual documentation says I need to update ima_mib_objects to see the other DBMS servers, but I can't get it to work. My code is below, does anyone have any ideas? I'm running II 9.2.1 (su9.us5/103) Thanks, Matt. sql imadb <<END UPDATE ima_mib_objects SET value = DBMSINFO('IMA_VNODE') WHERE classid = 'exp.gwf.gwm.session.control.add_vnode' AND instance = '0' AND server = DBMSINFO('IMA_SERVER') \p\g select server,session_id,real_user,db_name ,client_host, client_user from ima_server_sessions where db_name<>''\g END _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#4
| |||
| |||
|
|
Start with: execute procedure ima_set_vnode_domain \g |
#5
| |||
| |||
|
|
-----Original Message----- From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info- ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of Matt Charles Sent: 19 May 2011 09:22 To: info-ingres (AT) kettleriverconsulting (DOT) com Subject: Re: [Info-Ingres] IMA Question Start with: execute procedure ima_set_vnode_domain \g Thanks, trying that gives me some errors (that procedure isn't mentioned in the 9.2 manuals as far as I could see) : execute procedure ima_set_vnode_domain Executing . . . E_GW8045 GWM error-- GCM completion error to 'devhost' (class '' flags x00000000) (Thu May 19 09:16:29 2011) E_GC0132 User provided a vnode as part of the database name (vnode::dbname), but connection information for that vnode is missing. Enter connection information for the vnode using NETUTIL. (Thu May 19 09:16:29 2011) E_GW8081 GWM error-- Error querying name server 'devhost::/IINMSVR' (Thu May 19 09:16:29 2011) Looking at that procedure it's defined as follows: * help procedure ima_set_vnode_domain\g Executing . . . Procedure: ima_set_vnode_domain Owner: $ingres Procedure Type: native Object type: user object Created: 13-dec-2010 10:48:02 Procedure Definition: /* 1 */ create procedure ima_set_vnode_domain as begin update "$ingres". ima_mib_objects set value =dbmsinfo('ima_vnode') where classid = 'exp.gwf.gwm.session.control.add_vnode' and instance = '0' and server = dbmsinfo('ima_server'); /* 2 */ end So I think it's equivalent to the original update statement stated in the manual? Strange that this errors though. _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#6
| |||
| |||
|
#7
| |||
| |||
|
#8
| |||
| |||
|
|
I've seen similar errors before, this could be bug 125093. If so, we found a workaround is to ensure a vnode exists for the FQDN of the local host. I've tried creating a vnode using the FQDN, after that sql imadb |
#9
| |||
| |||
|
|
What does dbmsinfo('ima_vnode') return? And does it match the machine name you're running on? Are you using a fully qualified hostname (devhost.something.com)? |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |