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?
Kai
The idea behind client identifier is that it should be set on the appserver so that session usage across pooled connections can be tracked.
Similar Messages
-
Container Managed Entity Beans and Client Identifier in Oracle
Is it possible to use Container Managed Entity Beans (EJB with CMP)
in a way that the Oracle database sessions still know the
individual Client Identifiers of the actual users
(not just the Identifier of the proxy user defined in the
Connection Pool)?
If Yes: How?
If No: The consequence would be that the
technologies EJB with CMP cannot be user together with
Oracle Virtual Private Databases (VPN) because VPN requires
some kind of Client Identifier.
I am grateful for any hint.
Regards,
Martin Siepmann
+49 (0)163 / 7765328Not quite an auto-incrementing PK, but it is managed by the container. the following is from the turorial
Generating Primary Key Values
For some entity beans, the value of a primary key has a meaning for the business entity. For example, in an entity bean that represents a phone call to a support center, the primary key might include a time stamp that indicates when the call was received. But for other beans, the key's value is arbitrary--provided that it's unique. With container-managed persistence, these key values can be generated automatically by the EJB container. To take advantage of this feature, an entity bean must meet these requirements:
* In the deployment descriptor, the primary key class is defined as a java.lang.Object. The primary key field is not specified.
* In the home interface, the argument of the findByPrimaryKey method must be a java.lang.Object.
* In the entity bean class, the return type of the ejbCreate method must be a java.lang.Object.
In these entity beans, the primary key values are in an internal field that only the EJB container can access. You cannot associate the primary key with a persistent field or any other instance variable. However, you can fetch the bean's primary key by invoking the getPrimaryKey method, and you can locate the bean by invoking its findByPrimaryKey method.
Maybe that is good enough
christina -
Global Application Contexts - Where to set Client Identifier?
Hi,
I am trying to use global application contexts as part of an implementation of fine grain access control.
This is within an eBusiness Suite environment, specifically CRM, so is a multi-tiered environment.
Users access both Forms based screens and OA framework screens.
I believe I need to use global application contexts as users may have multiple database sessions.
Also, all users will login using the same database login account.
Provided I can set a unique identifier for a user that persists throughout all their sessions I can make use of the username and client_id parameters of set_context, below:-
DBMS_SESSION.set_context (namespace => 'XXUOM_CONTEXTS',
attribute => 'EXEMPT_FROM_VPD_POLICIES',
VALUE => l_exempt,
username => USER,
client_id => pi_user_id);
The difficulty I am having is finding a suitable place to set the client identifier.
I am not sure if the value is being cleared by some other code or if the value isn't being set in all sessions.
I am using:-
DBMS_SESSION.set_identifier (pi_user_id)
That I call from after insert triggers on either tables icx_sessions or fnd_logins.
However, the client identifier is always null when I query it from within the application, via:-
SELECT SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') from dual
If I set the value via a personalisation rule within a Form, then the value remains.
I would greatly appreciate it if someone can advise me on where I am going wrong.
AndyIt's a different patch.
The patch support have given me is 9275708, FND_GLOBAL.ORG_NAME RETURNS ENGLISH, EVEN WHEN SESSION LANGUAGE IS NOT.
This patch has been superceded by 12875860, HR SECURITY PROFILE IS NOT SET CORRECTLY.
So we have applied patch 12875860.
I've tried to find out from support what happened to the original patch and why it was removed/deleted rather than superceded.
I have not found it possible to find out what each of these patches does. There's very little documentation on them.
I have raised an SR.
The details are 3-4943519401: How to add DBMS_SESSION.SET_IDENTIFIER() to FND_GLOBAL.INITIALIZE.
The results of:
select fnd_profile.value('FND_CONNECTION_TAGGING') from dual
gives nothing on our Release 11 environment.
select * from fnd_profile_options where profile_option_name = 'FND_CONNECTION_TAGGING';
gives nothing.
On Release 12, the results are:
select fnd_profile.value('FND_CONNECTION_TAGGING') from dual;
ENABLED
select * from fnd_profile_options where profile_option_name = 'FND_CONNECTION_TAGGING';
returns a record.
Many thanks for continuing to look into this for me.
Andy -
Oracle Client Identifier, Web, JPA
I am working on a Web application that uses Struts along with EJB3. I want to user Oracle Virtual Private Database to restrict access to data based on the current user.
Is there any way to set the Client_Identifier based on the Principal currently using the connection? I am looking to see if there are perhaps any Interceptors I could use or some function of JPA that allows me access to the connection just before it is actually used. Any idea?865496 wrote:
Hello,
in my java web app running on Weblogic which uses connection pooling, I am calling an Oracle Stored Proc that sets client identifier to userid using dbms_session.set_identifier
I then retrieve it in triggers attached to db tables to capture before-after image
I must have missed a step because this is what I find (testing locally):
1. I login to my app as USER1 and update some data
2. I check the audit tables and sure enough last_updated_by is set to USER1
3. Without logging out, I start a different browser (Firefox, in step 1 I used Chrome) and login as USER2
4. I now switch to USER1 session in Chrome browser (still logged in as USER1) and update some data
5. This time I see that the audit tables show last_updated_by as USER2 (instead of USER1)
What am I missing?
Many thanks!since Connection Pooling is being used, do you acknowledge that both USER1 & USER2 could actually use the same Oracle session to execute SQL?
At what point in time is the Stored Procedure that sets Client Identifier actually called?
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
How to configure dhcp client identifier
Hi Everybody,
The DHCP client ID is an id that is unique for DHCP clients at least in the same subnet. Usually the client uses MAC-address as Client-Identifier in the DHCPDISCOVER message. The Client-Identifier may be different other than MAC-Address, For example a FQDN name, as per the RFC 2132 Ref, (code 61).+_
Usaually, we use the following to bind the ip address based on MAC-address
pntadm -r SUNWfiles -p /var/dhcp -A 10.42.32.86 -i '0:3:ba:a5:a9:93' -a 10.42.32.80
At server side, I am using the following for specifying the FQDN name.
pntadm -r SUNWfiles -p /var/dhcp -A 10.42.32.86 -i 'one.atr.com' -a 10.42.32.80
and at client side, I am inserting the following entry in the /etc/default/dhcpagent file
CLIENT_ID='one.atr.com'
But this is not working. What I am doing wrong.
+1. At the server side, then how to assign the ip addresses to the clients , if the Client-Identifier is FQDN name in the DHCPDISCOVER message other than MAC-Address.+
+2. How to configure the client-identifier as FQDN name at client side.+
Please help me,
Thanks Inadvance,
Mummaneni.Sandman,
Here is an example of a router acting as a DHCP server. Please remember that you have to exclude IP addresses that you don't want to lease out.
ip dhcp pool example
import all
network 192.168.1.0 255.255.255.0
dns-server 1.2.3.4
default-router 192.168.1.1
ip dhcp excluded-address 192.168.1.1 192.168.1.149
ip dhcp excluded-address 192.168.1.200 192.168.1.254
HTH,
Mark -
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 identify which trace file is your backup controlfile trace in udump
I have a 10.2.0.3 database on unix.
I want to setup a job to run a script every night to backup the controlfile as text format.
such as "alter database backup controlfile to trace".
How my script can identify which trace file is the one just created for backup controlfile and copy the file to a backup disk?
Thanks a lot!I thought it's
alter database backup controlfile to trace as 'absolute path of any file where you want the control file in clear text format ';
for ex. in Windows..
alter database backup controlfile to trace as *'c:\temp\create_ORCL_control.sql'*;
This way you will know where your job is going to backup controlfile to trace -
What to send in DHCP's Discover Option 61 Client identifier?
So i'm trying to use my own router, and it HAS TO include Option 61 "Client identifier" in it's DHCP Discover packet. But i noticed that if that option is included i don't get a DHCP Offer back from FiOS! I tried throwing my MAC in there but no love. What does FiOS expects to see in there? It's a very technical question so if i can't get help here how can i contact an engineer that would be able to answer this?
Thanks,
AlexWelcome to the forums. Just so you know, this is a peer-to-peer support forum. Verizon does not answer questions here.
Sometimes the Verizon moderators escalate issues to the support team, which is an extension of the Verizon folk you can reach by using the "contact us" link at the bottom of these pages. If that happens to your issue, be sure to follow the instructions the moderators post.
Unfortunately, I do not know of any methods to reach Verizon's network engineers. They keep them very well separated from customers. Verizon keeps their residential customer contact very focused on the public support channels.
It's possible some of the other users here may know details about your question, but I'm not one of them.
Good Luck.
If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem. -
How to get into desktop screen at once when client come into RDP session?
How to get into desktop screen at once when client come into RDP session?
When users login into terminal server I would like they see own desktop and open web page of corp portal.
How to do that?Hi
Hope below links will help
http://blog.cloud-client.info/2012/10/03/tip-configure-a-keyboard-shortcut-to-minimize-fullscreen-citrix-or-microsoft-rds-sessions-for-a-linux-based-igel-os/
Also there are some Remote Desktop Services shortcut keys
http://msdn.microsoft.com/en-us/library/aa383500%28v=vs.85%29.aspx
Regards,
Rajesh J S -
Problem using application client for local stateful session bean
Hi,
I have deployed a local stateful session bean in Sun J2EE 1.4 application server.
On running the applclient for the stateful session bean application client i get the following error:
Warning: ACC006: No application client descriptor defined for: [null]
cant we use application client for local stateful session beans. becoz the application runs smoothly when i changed the stateful sesion bean to remote.Hi,
No, an ejb that exposes a local view can only be accessed by an ejb or web component packaged within the same application. Parameters and return values for invocations through the ejb local view are passed by reference instead of by value. That can't work for an application client since it's running in a separate JVM.
--ken -
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: -
Strange DHCP client identifier
I am troubleshooting DHCP between server and client (both Cisco IOS). I have discovered, that server sees client under completely nosensical client identification:
R1#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
10.0.6.3 0063.6973.636f.2d30. Apr 01 2001 10:40 PM Automatic
3062.302e.6332.3838.
2e31.3637.312d.4661.
30
Yes, the client id server sees is "3062.302e.6332.3838.2e31.3637.312d.4661.30" instead of little more conventional "00b0.c288.1671". What's up here? This thing makes manual binding impossible, as that long number is not accepted in "client-identifier" on server.
Edit: No, I wasn't cut'n'pasting properly, that long client-id can be entered into pool configuration. So that solves the problem, and the only think that remains unanswered for me is what were Cisco thinking, when they decided that client-id is going to be this kind of crazy stuff instead of plain MAC.Some Cisco networking devices use a DHCP client identifier format that is different from the format used by networking devices running Cisco IOS release 12.4(1) or newer.
Ref link: http://www.cisco.com/en/US/partner/products/ps6441/products_configuration_guide_chapter09186a008054afa2.html
But, you should be able to bind that full (long) address to the the client IP in your DHCP pool configuration and I've done that before. If you are having problems refer to this link:
http://www.cisco.com/en/US/partner/products/ps6350/products_configuration_guide_chapter09186a008054addc.html#wp1204466
HTH
Sundar -
Removing DHCP Client identifier Option 61
Long story short after wasting a LOT of time i figured out that my ISP won't offer IP if there's Option 61 Client identifier included in my DHCP Discover. (i tried throwing my MAC in there but it didn't work) is there any way to remove it? Or filter it out?
Welcome to the forums. Just so you know, this is a peer-to-peer support forum. Verizon does not answer questions here.
Sometimes the Verizon moderators escalate issues to the support team, which is an extension of the Verizon folk you can reach by using the "contact us" link at the bottom of these pages. If that happens to your issue, be sure to follow the instructions the moderators post.
Unfortunately, I do not know of any methods to reach Verizon's network engineers. They keep them very well separated from customers. Verizon keeps their residential customer contact very focused on the public support channels.
It's possible some of the other users here may know details about your question, but I'm not one of them.
Good Luck.
If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem. -
How to uniquely identify a users session
Hi,
I need to identify a users session, I am aware of the wwctx_api.get_user function but this returns the user name, my problem is that, how do I identify a session, if the user logs on twice then the get_user() function is not unique basically I need to identify the session by some kind of id number and no the users name.
or can I stop a user logging on twice ?
thanks in antcipation.
SD.it will cause problems in the database !..
in another words it is overloading objects.........
Maybe you are looking for
-
Print only a specific control or indicator on a front panel to HTML document
Is there any way to print a specific control or indicator (not the whole front panel) to HTML document? I am trying to print a report that has a graph and some indicator value on it.
-
CS6 too small on Surface 3 device
I just purchased a Surface 3. Very happy with the device, but bought it because it touted being able to run Photoshop. I installed CS6 and the icons are too small to read! I noticed that Creative Cloud has a new option in Preferences called "Exper
-
I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?
-
IPhoto missing photos - do I rebuild or restore or ?
I have read & utilized many of the threads here but haven't found one that's exactly like my situation. Before I do anything that could be irreversible, I'm hoping someone can point me in the right direction. I opened iPhoto & the majority of my ph
-
QT can't export 10 bit images?
I have 10 bit uncompressed quicktime movies, from which I need to export 10 bit image sequences. When I export using either QT 7.0.2 or FCP5, I get 8 bit images. What's going on?