Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread David Fisher
> We'd like to be able to tell apart database sessions from the 15 or so > tomcat applications we have running on our web-servers. Most of them > use similar logins, so we can't query the username from gv$session. We > were hoping to instead query to program field to tell them apart. > > We were a

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread David Fisher
Chris, > You can use the following in the connectionInitSqls to make sure a suitable > variable it set > > exec dbms_application_info.set_action('INSERTING'); > > The site http://psoug.org/reference/sys_context.html references a bucket > load of different context parameters that can be set - CLI

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread chris derham
> > > The problem he appears to be encountering is that he is unable to customize > the > value in v$session.program. The reason for the problem is that he does not > know > how to do it either when using the OCI jdbc driver (it is likely not > possible). > Jason, So oci or thin driver is largely

RE: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread Jason Pyeron
> -Original Message- > From: chris derham > Sent: Wednesday, March 16, 2011 15:41 > To: Tomcat Users List > Subject: Re: Populating Oracle v$session.program from Tomcat > Context.xml > > > We'd like to be able to tell apart database sessions from > th

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread chris derham
> We'd like to be able to tell apart database sessions from the 15 or so > tomcat applications we have running on our web-servers. Most of them > use similar logins, so we can't query the username from gv$session. We > were hoping to instead query to program field to tell them apart. > > We were ab

RE: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread Jason Pyeron
> -Original Message- > From: Dan > Sent: Wednesday, March 16, 2011 14:34 > To: Tomcat Users List > Subject: Re: Populating Oracle v$session.program from Tomcat > Context.xml > > We'd like to be able to tell apart database sessions from the > 15 o

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread Dan
We'd like to be able to tell apart database sessions from the 15 or so tomcat applications we have running on our web-servers. Most of them use similar logins, so we can't query the username from gv$session. We were hoping to instead query to program field to tell them apart. We were able to make

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-15 Thread Jorge Medina
What is the problem that you are trying to solve? On Mon, Mar 14, 2011 at 4:25 PM, Dan wrote: > On Mon, Mar 14, 2011 at 11:25 AM, Dan wrote: >> On Mon, Mar 14, 2011 at 10:57 AM, chris derham wrote: We have some working tomcat 6 instances that we'd like to identify >>> >>> >>> Can you use t

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-15 Thread chris derham
> > We have some working tomcat 6 instances that we'd like to identify > > > >> As David said, this does work with the thin driver, but I need the > > >> service/load balancing functionality from OCI. Any more suggestions > > >> are welcome! > You didn't say what connection pool you are usi

RE: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Martin Gainty
> Subject: Re: Populating Oracle v$session.program from Tomcat Context.xml > From: dfis...@jmlafferty.com > Date: Mon, 14 Mar 2011 18:08:53 -0700 > To: users@tomcat.apache.org > > >>>> We have some working tomcat 6 instances that we'd like to identify

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread David Fisher
We have some working tomcat 6 instances that we'd like to identify >>> >>> >>> Can you use the combination of machine and schema name to identify the >>> instance? You didn't detail your environment, but if you have a cluster, >>> then the machine name would uniquely identify the instance. I

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Dan
On Mon, Mar 14, 2011 at 11:25 AM, Dan wrote: > On Mon, Mar 14, 2011 at 10:57 AM, chris derham wrote: >>> We have some working tomcat 6 instances that we'd like to identify >> >> >> Can you use the combination of machine and schema name to identify the >> instance? You didn't detail your environme

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread Dan
On Mon, Mar 14, 2011 at 10:57 AM, chris derham wrote: >> We have some working tomcat 6 instances that we'd like to identify > > > Can you use the combination of machine and schema name to identify the > instance? You didn't detail your environment, but if you have a cluster, > then the machine nam

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread David Fisher
> Hello all... > > We have some working tomcat 6 instances that we'd like to identify by > querying the v$session.program field the oracle database they connect > to. While there are no errors on startup for the tomcat instance, and > we can connect to the database, nothing gets populated in v$ses

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread chris derham
> We have some working tomcat 6 instances that we'd like to identify Can you use the combination of machine and schema name to identify the instance? You didn't detail your environment, but if you have a cluster, then the machine name would uniquely identify the instance. If you have multiple dif