Setting the Client Info for the TOraAlerter extra session
Posted: Mon 11 Apr 2005 12:52
hi,
when a TOraAlerter object is activated a new oracle session is created. In my multithreaded application i need to create many oracle sessions. Each thread have one session for insert/update/deletes and can have one ToraAlerter-Object. To have the possibility to know which session depends to which thread from the v$session database view, i set the client info via OraSession.ExecProc('DBMS_APPLICATION_INFO.SET_CLIENT_INFO',['Thread for ' + ThreadName]);
unfortunately i can't find a way to set the client info of the new spawned session of the TOraAlerter. Is there a way to set the Client-Info of the Extra-ToraAlerterSession?
If not, it would be great if CoreLab would implement an extra constructor for this class with a parameter ClientInfo for Setting the Client info of the new spawned session.
br, klaus.
when a TOraAlerter object is activated a new oracle session is created. In my multithreaded application i need to create many oracle sessions. Each thread have one session for insert/update/deletes and can have one ToraAlerter-Object. To have the possibility to know which session depends to which thread from the v$session database view, i set the client info via OraSession.ExecProc('DBMS_APPLICATION_INFO.SET_CLIENT_INFO',['Thread for ' + ThreadName]);
unfortunately i can't find a way to set the client info of the new spawned session of the TOraAlerter. Is there a way to set the Client-Info of the Extra-ToraAlerterSession?
If not, it would be great if CoreLab would implement an extra constructor for this class with a parameter ClientInfo for Setting the Client info of the new spawned session.
br, klaus.