Trace session based on CLIENT_IDENTIFIER
Hello all,
i am on 11.2.0.1....we have a sap application and trying to trace a session from DB end....and seems like the job that the end user runs jumps from one session to another....in this senerio...how would i trace a session ??? i read article about dbms_monitor package to trace it...but as i mention, sap keep chaning the session from one to another.....
i read the below article...
http://ocsurabaya.wordpress.com/2007/07/18/tracing-sql-in-oracle-database-10g/
in which it suggest to set the service name and module name....but the problem is its hard to get the module name as its doing quite a few things....it jumps from one module to another....is there anyway to trace a session based on its CLIENT_IDENTIFIER (from v$session)....as this looks like the domian user account for that user who is running the job....
as i mentioned during that time(when job is ran)...the sid changes, modeule changes...the only thing consistent is the CLIENT_IDENTIFIER ( which seems to be the domian user name )...
so how can i trace a session based on CLIENT_IDENTIFIER ??
user8363520 wrote:
Hello all,
i am on 11.2.0.1....we have a sap application and trying to trace a session from DB end....and seems like the job that the end user runs jumps from one session to another....in this senerio...how would i trace a session ??? i read article about dbms_monitor package to trace it...but as i mention, sap keep chaning the session from one to another.....
i read the below article...
http://ocsurabaya.wordpress.com/2007/07/18/tracing-sql-in-oracle-database-10g/
in which it suggest to set the service name and module name....but the problem is its hard to get the module name as its doing quite a few things....it jumps from one module to another....is there anyway to trace a session based on its CLIENT_IDENTIFIER (from v$session)....as this looks like the domian user account for that user who is running the job....
as i mentioned during that time(when job is ran)...the sid changes, modeule changes...the only thing consistent is the CLIENT_IDENTIFIER ( which seems to be the domian user name )...
so how can i trace a session based on CLIENT_IDENTIFIER ??is application 3-tier?
does application utilize connection pooling?
Similar Messages
-
Access to a logged-in user's information via a session based object
I am in the process of putting together a design for the security layer of a given
application I am working on. The requirements for authentication demand that
the framework take advantage of digital certificates and username/password verification.
The digital certificate end is relatively straightforward in terms of configuration
within WebLogic 6.1. I am planning on implementing a RDBMS security realm for
the username/password verification piece and again, from the documentation I have
seen, it seems relatively straightforward in setting that up as well.
The question I do have is in regards to once the user has successfuly logged in
to the application. Is there anyway to manage and have access to a set of user
info or credentials once they successfuly log in - aka some sort of session based
object that WebLogic Server facilitates? Or is this something that will have
to be explicitly built from our end if requirements do arise that necessitate
user information to be readily available as such?
Any feedback would be helpful....thanks!!Use the cfquery tag to query the database. If you don't know
how to write sql, I have heard good things about the book, Teach
Yourself SQL in 10 Minutes by Ben Forta. -
How to invalidate a session based on the session id
How to invalidate a session based on the session id
You have to write your own support for this.
It used to be in the API, but was deprecated as a security hole.
The best way to do it is implement a session listener (javax.servlet.http.HttpSessionListener) which notifies you when sessions are created/destroyed.
You can then keep a map of sessions in your own code, indexed by session Id, and access any/all of them to invalidate as you choose. -
Bug: Trace session from sessions report
Attempt to trace session against a 9.2.0.6 database, failed due to DBMS_MONITOR not available.
Is this a newer package that the database version needs to be verified and adjust to use this call instead for older databases? sys.dbms_system.set_boo_param_in_sessionActually what would be best would be to use this for < 10g databases:
dbms_system.set_ev (9,29,10046,X,'');
where level x would be in a dropdown box in the dialog when enabling tracing on the session.
As a developer and DBA, I enable trace at many different levels depending on what I am diagnosing. -
How to trace session(3rd paty application) accessing oracle
Solaris 9
oracle 9i and 10g
I would like to know how to trace session which is 3rd party application currently running .
I need to collect statisctics for currently running session.
Thanks.
Message was edited by:
user539835See this thread:
Re: SQL_TRACE help to newbie in oracle
Search the forum and you will also see how to manually decode most of the trace file.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
Event Trace Session missing for Failover Cluster
I have a failover cluster setup and is managed via a Windows Domain controller for the failover cluster network. I am troubleshooting a potential issue with the failover cluster and the recommendation is to go into event viewer, app & service
logs, Microsoft, windows and look for failover cluster diagnostics and operations logs and these do not exist.
It appears they are created by having an event trace session associated with windows failover clustering but apparently it was't created when the cluster was created for some reason. I am wondering how to create the proper event trace session
in order to get these additional failover cluster logs created?Hello,
the following forum mat be the better one for your needs:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverClustering
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://blogs.msmvps.com/MWeber
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
Twitter: -
CSS 11503 Stickyness session based
Need assistance comming up with a soulution for session based Stickyness.
1.can this be based on the J-Session ID?
2.Can the CSS send a cookie and the clients stick to the same servers until the session expires and the cookie os removed?
3. Also can we set a timeout value for the cookie?If servers are setting the cookies then you need something like this
Service webserver1
ip address 10.10.10.1
string server1 <-- server cookie value
active
Service webserver2
ip address 10.10.10.2
string server2 <-- server cookie value
active
Service webserver3
ip address 10.10.10.3
string server3 <-- server cookie value
active
content mycontent
vip address 12.12.12.12
add service webserver1
add service webserver2
add service webserver3
string prefix "JSESSIONID="
protocol tcp
port 80
url "/*"
advanced-balance cookies
sticky-inact-timeout 60 <-- Inactivity timeout value for cookie
active
The string prefix (that goes on the Content Rule) would need to match be the name of the
cookie string prefix "JSessionID="
Then the string on the services would need to match the value that is inserted on each
server:
Example:
Service webserver1
ip address 10.10.10.1
string server1
active
Then the cookies injected from server1 would need to look like this:
JSessionID=service1
That is how the CSS would then identify which server the cookie belongs to and how to send
it to it. If the JDSessionID values are random, then the CSS would not be able to match the values to a service. -
Failed to start one or more trace sessions
Hi,
I just installed the analyser on a Win2012R2 Core server and can not get the analyser to start.
===========================================
Failed to start one or more trace sessions due to the followinf errors:
Error Details:
Unable to start ETW session MMA-ETW-Livecapture-d28fac22-61bc-4e52-ac03-60fa79d2ec62
Host Name: Localhost
Error in the application.
===========================================
This is with the provider:
Microsoft-Windows-NDIS-PacketCapture
I have this error on two core machines so I missing something?!
BR
PerThis happens if you are not logged in as administrator, or perhaps if a session is already running. Does it change if you run Message Analyzer as administrator? What do you see when you type "Get-NetEventSession" form PowerShell?
Paul -
WS2012R2 - Session Based Printing Issues
So several months ago (four?) my organization moved and we upgraded all of our servers to 2012. We are a medical organization that uses terminal services aka RDS to rdp into a session based server to access our main clinical app. From this session,
the users need to print out various documents from that application. For printing, we have a print server that has all of the printers installed on it. Both users that use the remote session and users who do not access the printers through the
print server. The printers are deployed to each user via several GPOs so that they only get the printers that need access to. We do this mainly so people do not get confused with which printer to print to and so they do not send print jobs to our
other locations (connected through a WAN.) The main trouble we are having is with users on terminal server sessions. When I right click on a printer in the control panel of someone who is in a session, there are multiple copies of the same printer that
show up. It appears that our PDF application will not show these printers when this occurs.
I guess my main question is: in my organization's setup, what is the best way to set up the printers on the session server?
I was also wondering about the "Easy Print" driver? Is that something I need to enable/disable?
Lat me know of any clarifications I may need to make.
Thanks in advance.Hi,
Thank you for posting in Windows Server Forum.
Here providing you basic understanding to use Easy print driver.
RD Easy Print is a proxy for every print action that simply redirects all printing-related work to the user's local machine without the need to install any print drivers on the TS server. This system provides several benefits, such as being able to redirect
any printer from the user's client machine without having to reconfigure the server while still allowing the user to configure the print job as though he were printing on his client machine.
For your environment, you can use Easy print driver option also by which you don’t have to install printer driver on server.
For more information, you can refer beneath articles for detail.
Using Remote Desktop Easy Print in Windows 7 and Windows Server 2008 R2
http://blogs.msdn.com/b/rds/archive/2009/09/28/using-remote-desktop-easy-print-in-windows-7-and-windows-server-2008-r2.aspx
How to configure Microsoft RDS Universal Printing
http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/microsoft-hyper-v/how-configure-microsoft-rds-universal-printing.html
Hope it helps!
Thanks.
Dharmesh Solanki -
Killing a Session based on Session ID
Is it possible to kill a Session based on Session ID ?
The Scenarioo is when Same user logs in two different browser, the second user should not be allowed to login. But at the same tiome, the first user's session has to be killed . How to do this ?How to prevent duplicate posts?
http://forum.java.sun.com/thread.jspa?threadID=632857&tstart=0 -
Client identifier to trace sessions
Dear all,
I have CRM application installed in oracle soa 10.1.3 , (OID-connection pool). At the DB level, Data source user name is displayed in v$session. I understand that user session can be traced using
client_identifier. I referred below links :
http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/apdvprxy.htm#i1009003
http://download.oracle.com/docs/cd/B28359_01/network.111/b28531/app_context.htm#CIHCFDJG
I couldn't understand the above notes.. Does this client identifier to be set in DB or application ? how I can set trace for this OID users ?
I know this is a DOC question, But I cannot understand this as am a newbie.
Please guide?
KaiThe idea behind client identifier is that it should be set on the appserver so that session usage across pooled connections can be tracked.
-
Session based load balance + Prepared statements
Experts,
From the docs I understand that there are 3 load balancing techniques. One is client side and two are server side. Of the two, one is session count based load balancing, and as per docs, it is recommended for connection pool setting.
My question is if I have prepared statements originally created using connection to node1, and say if listener re-directs the conneciton to another node node2, will the prepared statement work on node2 ?.
Thanks
VissuJust to clarify, the question is:
Are the prepared statements usable when we use session count based load balancing. -
We run SAP-J2EE 6.4 SP 17 on linux with JVM 1.4.2 in a cluster environment with 2 nodes.
We found out that often, the system creates a few hundred sessions objects with the same login id within 1-2 minutes of time frame.
Each line (out of a few hundreds) contain the following attributes
User Name: [email protected]
Session ID : (J2EE1234567)ID0012345678DB12345678901234567890End
Created On:17:24 02/09/07
Last Access:17:24 02/09/07
Expiration 17:54 02/09/07
Application:<b>sap.com/irj</b>
Note that the application attribute does not provide any real information about the application and process that created the sessions.
Is there any way to trace those session.
ThanksHi,
You can change the settings of logs and traces in Visual administrator.
go to /usr/sap/SID/JCxx/j2ee/admin
Then,./go.sh
enter with administrator credentials.
Under SIDserver---sevices--Log configurator.
go to Locations tab at the right side.
Then go to com---sapengineservices--
trace.
Change the severity of the trace level as required there.
reward points if helpful.............. -
I want the list sql queries performed someone in one session based
V$SESSION V$SQLTEXT and audsid (taken from sys_context('USERENV','SESSIONID') ) are great .. session_id be generated by a trigger when the application logs on) but then uploading the list of sql queries made by that user (application) until they log off seems impossible.
I've tried creating triggers that check if V$SESSION changes with respect to an audsid number and sql_hash_value but it didn't work. I'm trying to work out why.
In the meantime I thought I'd post this to see if anyone else foudn another way.
I don't want to use sql trace that just gives load of info, I just want simple sql queries.
Auditting seemed a bit complicated, can that list ALL DML and DDL commands made by a user? if so how?
thanks
Bobbyquite right.
Oracle enterprise dedicated server 9.2.0.8 on solaris 10.
I just want to log all command DML and DDL, without stats or anything like that, simply a list, in a chronological order would be nice.
I found something called dbms_fga package but not sure if thats what I want. Seems I have to implement it on specific tables. which is not good if the application hasn't created the tables yet.
Thanks in advance. -
hi all
i read some articals of how to trace oracle sessions and i have some question
i use database 10g
trace vs event ??? different between them ????
how to trace individual statement i hope to give me this point in ex:
due to i can't get the sql_id ,how to know the sql_is of specify statement??
thanks861100 wrote:
hi all
i read some articals of how to trace oracle sessions and i have some question
i use database 10g
trace vs event ??? different between them ????
how to trace individual statement i hope to give me this point in ex:
due to i can't get the sql_id ,how to know the sql_is of specify statement??
thanksHow do I ask a question on the forums?
SQL and PL/SQL FAQ
below show how to trace single SQL statement
bcm@bcm-laptop:~$ sqlplus user1/user1
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 28 07:08:09 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
07:08:09 SQL> set autotrace trace explain
07:08:28 SQL> select sysdate from dual;
Execution Plan
Plan hash value: 1388734953
| Id | Operation | Name | Rows | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 2 (0)| 00:00:01 |
| 1 | FAST DUAL | | 1 | 2 (0)| 00:00:01 |
07:08:37 SQL>
Maybe you are looking for
-
ITunes 11.4 won't sync iPhone iOS 7.1.1 voice memos
I tried syncing my voice memos to iTunes 11.4 for PC from my iPhone that's running iOS 8, and only the ones made after the upgrade got synced. None of the ones made prior using iOS 7 got synced. I know I can email them, but there's a lot. Any help is
-
BAM / BPM integration (11.1.1.2.0)
Hi all, I'm trying to integrate 'BPM instances with BAM Reports. I have done all the initial works (BAM credentials in application server, Clear DisableActions, Creating Business indicators, etc ) When I invoke the BPM incident from bpm/workspace it
-
Why do words run together in the word doc I converted from PDF?
It happens not all the time, but randomly and frequently. Also, when I try to edit,I have to hit 'delete' before beginning a new sentence, or all of the inserted letters pile into one space! In other words, it's basically unusable. What am I doing wr
-
Hello Friends So far I have not worked on following transactions, Could u please explain specifically,importance / application of the following transactions and on what circumstances we can use the following transactions with simple example. In Logis
-
USB HD in Time Capsule do not work
Hi Sorry, my english is bad. I have connected a LaCie USB 2 HD to my Time Capsule. Airport Utilityrecognizes it, but the Finder and Time Machine can not access, show nothing of it. I do not remember if it is formatted FAT32 or NTFS, but I understand