Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 28779 invoked from network); 17 Mar 2011 00:01:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Mar 2011 00:01:21 -0000 Received: (qmail 43600 invoked by uid 500); 17 Mar 2011 00:01:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 43551 invoked by uid 500); 17 Mar 2011 00:01:17 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 43542 invoked by uid 99); 17 Mar 2011 00:01:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 00:01:17 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cjderham@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Mar 2011 00:01:12 +0000 Received: by vws17 with SMTP id 17so3048068vws.18 for ; Wed, 16 Mar 2011 17:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type; bh=7NY5xdcqEEeJQ6atN694KcqPyZ7oV3QthlSxplzdAAA=; b=i2SbJjXmkijAakMnUGfIZcSESUUWNdNNBa9ei7dR5flO+IRRAd9KlF0ufXpsy0jqrf WWf3a6MfeP6ZltIMvjWUXY1GrA4CV1c/d5qrJ8E34M/1p5HrQGjrDw/Dc4VAWJgEwMYt 3sJYn69x2N9wTpzTzg9cB75nq3ZVCaJY4I3l4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=MpHmVKnOfIXqj2nPuMBH1K88QJ4Ff1RPhxZeDIAC4q36ref72VD59zd8RiytqPwl9a /qyfo/9GBSWfjqpd/MlviBzuO/tECPhe8jdET5AUI0VpzWin1XsjnsRbNAU8GNbiAGkf N5hmJxIstAPpTwBtFdfS+UBoWU0xTx+h3h6Aw= Received: by 10.52.0.199 with SMTP id 7mr777098vdg.307.1300320052111; Wed, 16 Mar 2011 17:00:52 -0700 (PDT) MIME-Version: 1.0 Sender: cjderham@gmail.com Reply-To: chris@derham.me.uk Received: by 10.52.168.37 with HTTP; Wed, 16 Mar 2011 17:00:32 -0700 (PDT) In-Reply-To: <85F7282D74974107A62C28E8277AF3DB@phoenix> References: <85F7282D74974107A62C28E8277AF3DB@phoenix> From: chris derham Date: Thu, 17 Mar 2011 00:00:32 +0000 X-Google-Sender-Auth: 6Icj86guvGpLfoF-AKfpPV0QpMA Message-ID: Subject: Re: Populating Oracle v$session.program from Tomcat Context.xml To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf304346f0ccea46049ea25a65 --20cf304346f0ccea46049ea25a65 Content-Type: text/plain; charset=ISO-8859-1 > > > 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 irrelevant. For thin you configure the dbcp connection pool with jdbc:oracle:thin:@//[HOST][:PORT]/SERVICE or if using oci use jdbc:oracle:oci:@myhost:1521:orcl 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 - CLIENT_IDENTIFIER and CLIENT_INFO seem likely candidates. Then each time a connection is added to the pool, suitable context parameters are set, and you can view them when querying gv$session. This seems like a suitable fix for the question originally posed.l I would like to learn if this won't work, what is wrong with it. Without feedback, hard to understand what is wrong Chris --20cf304346f0ccea46049ea25a65--