2 sessions in 1 connection to DB
Hello there. I want to ask about sessions in ADF. Is it any possibility that ADF creates more than one session with DB in the same time?
And if so, is it any way to handle this it?
Yes this is possible. Every root application module comsumes 1 connection to the db. So if you have multiple root AM you need multiple connections to the db. However, sessions to the db are recycled, meaning that you can have 1000 AM with only 50 connections defined. Connections are pooled and reused by multiple AMs.
The article should help you to understand: Understanding Application Module Pooling Concepts and Configuration Parameters and something about optimizing the settings http://andrejusb.blogspot.de/2010/02/optimizing-oracle-adf-application-pool.html
Timo
Similar Messages
-
IFS-21000: Session is not connected or has timed-out
Hi folks,
I am getting the error message "IFS-21000: Session is not
connected or has timed-out" when uploading the following XML
command:
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>tuser1</UserName>
<Password>tuser1</Password>
<HasPrimaryUserProfile>TRUE</HasPrimaryUserProfile>
<HasHomeFolder>FALSE</HasHomeFolder>
<HasContentQuota>FALSE</HasContentQuota>
<HasEmail>FALSE</HasEmail>
<PrimaryUserProfileAcl>Protected</PrimaryUserProfileAcl>
</SimpleUser>
Why?Hi guys,
thanks for the feedback, I did get a response on metalink that
answers my questions. Here it is if you are interested...
An example would something like this.
<?xml version = '1.0' standalone = 'yes'?>
<SimpleUser>
<UserName>fred</UserName>
<Password>fred</Password>
<DirectoryUserAcl reftype="name">Private</DirectoryUserAcl>
<DistinguishedName>fred</DistinguishedName>
<DistinguishedNameSuffix>.fthw.siemens.de</DistinguishedNameSuffi
x>
<EmailAddressSuffix>@fthw.siemens.de</EmailAddressSuffix>
<HasEmail>true</HasEmail>
<EmailUserProfileAcl
reftype="name">Private</EmailUserProfileAcl>
<AdminEnabled>false</AdminEnabled>
<CanChangePassword>true</CanChangePassword>
<HomeFolderRoot>/home</HomeFolderRoot>
<HasHomeFolder>true</HasHomeFolder>
<HomeFolderAcl reftype="name">Private</HomeFolderAcl>
<HasContentQuota>true</HasContentQuota>
<ContentQuotaEnabled>true</ContentQuotaEnabled>
<ContentQuotaAcl reftype="name">Private</ContentQuotaAcl>
<ContentQuotaAllocatedStorage>10000</ContentQuotaAllocatedStorage
>
<HasPrimaryUserProfile>true</HasPrimaryUserProfile>
<PrimaryUserProfileAcl
reftype="name">Private</PrimaryUserProfileAcl>
</SimpleUser>
2. It would depend on the following:
<PrimaryUserProfileAcl
reftype="name">Private</PrimaryUserProfileAcl>
<DefaultAclsBundleName>userAclBundleForClasses</DefaultAclsBundle
Name>
<DefaultAcls>MyAclBundleForClasses</DefaultAcls>
However, there is a problem with current versions (bug1736384,
unpublished) in which you can't use XML to set the default ACL
to an existing property bundle.
According to the bug the workaround is to "use Java or the Admin
utilities tasks
- "CreateDirectoryuser" to create a User
and "CreatePropertybundle" to create a Propertybundle that
represents the defaultACLs
- "CreateUserProfile" and set the DEFAULTACLS attribute to the
bundle "" -
WRVS4400N breaks VPN session during https connection to a LAN host
Hello,
here comes the incident description:
WRVS4400N breaks established VPN session if I am trying to connect to any LAN host via HTTPS.
Did anyone experience similar issue?
What a workaround could be?
Many thanks in advance, appreciate your time.
Solved!
Go to Solution.These products are being handled by the Cisco Small Business Support Community. (URL: https://supportforums.cisco.com/community/netpro/small-business )
-
Reconnecting to the session after loosing connection
Hello Experts,
I've done some work within an transaction, not saved it and i've lost the network connection. I connected to SAP again, and as I see in sm04, my previous session is still there. Now I want to get this session back to continue the work. Very very long time ago, I known the possibility to do it, but now I cant remember. Please help me ... ;-).
Thanx
Wojtekhi,
sm50 are processes. if in the lost session nothing happens what need a DIA-Process, nothing is shown. Beside this I dont see an option for 'take over'.
thanx
Wojtek -
Session scope/Database connection
Hi y'all!
I got some questions about session scope and database connections:
I'm using a bean called dataBase. With this bean i open a database connection and execute some sql statements. the bean has page-scope, which means, as far as i know, the bean will be destroyed after the user leaves the current page.
but what happens with my dataBase connection?!? could it be possible that it is still active after the bean was destroyed? so should i close my database connection manually or will it close automatically when the bean is beeing destroyed?
thanks for your help!You should explicitly close the connection. One way is to use the finally clause to ensure that the connection is closed even if your code throws an exception.
-
Create new user session after RFC connects
Hi,
My client is non SAP. They connect to SAP through an intermediate software , using RFC connections. My client requires that when creating a BOM through BAPI, the "created by" column should have a user name they pass, and not the username with which the RFC connected .
Is it possible to have a FM in which I can create a new user session, passing username and password, call the bapi that will create the BOM with this username, and close the session?
Kindly help.
Thanks in advanceMost security audits will trigger a warning when they determinate that the RFC common user is allowed to use another logon id. Usually you can provide auditors a list of such id with explanation before the audit execution, sample of explanation to provide :
- The RFC enabled FM which create the batch job must pass the logon id to be used, and the calling application must not allow user to change this value.
- The RFC default logon, should be allowed to the minimal authorization required, and could be for example allowed to no transaction, only some RFC FM. (start with [Note 460089 - Minimum authorization profile for external RFC programs|https://service.sap.com/sap/support/notes/460089])
Regards,
Raymond -
WebService with Session manager and Connection pooling
I've created many a Oracle users in our RDBMS. It comes to this, that every
user in our Company has its own oracle account.
We are developing now a Web application (Internal information system) for my
Company.
This Web application will have GUI created in perl and middle tier will be
Oracle WebServices.
This WebServices will be connected to the DB for every oracle user and it also
must have a session management.
And this is a Action plan:
1. the user will log to the Web GUI with his oracle login name and a password
2. this oracle user name and the password will be sent from this Web app to the
WebService
3. this WebService will create a connection over a JDBC (not over DataSources)
and will create also a session (maybe like a servlet)
4. in this session the instance of the created connection for this user will be
saved and the WebService will return to the Web app the session id
5. and this session id will be then used for further calling of WebServices
Then comes another user, signs up over the Web app with his oracle account and
this whole process repeats.
Finally every logged user will have its own session id with his own connection
instance to DB.
Maybe it's possible, that it will work only with Servlet (with HttpSession) and
WebService created from this Servlet.Take a look at the Statefull Java Web Services. It may be able to handle your use case.
http://download-west.oracle.com/docs/cd/B14099_04/web.1012/b14027/javaservices.htm#i1027664
You should be able to cache the database connection, directly in your service implementation class.
Hope this helps,
Eric -
Find history user session total idle/connection time
HI Friends,
We can find current session total idle and connection time. How can we find users each history session total connect time and idle time?
I try find in v$active_session_history but no luck. we use oracle 11g with audit
Any suggestion?
newdba592815 wrote:
HI Friends,
We can find current session total idle and connection time. How can we find users each history session total connect time and idle time?
I try find in v$active_session_history but no luck. we use oracle 11g with audit
Any suggestion?
newdba
is application 3-tier like below?
EndUser<=>browser<=>WebServer<=>ApplicationServer<=>DatabaseServer
How do I ask a question on the forums?
https://forums.oracle.com/message/9362002#9362002 -
Safari session problem? (Connecting... forever)
Two sites I frequently use do not work well with Safari. Both sites require a login and will work well for awhile. Then, suddenly, Safari will stop loading the pages. It will just say "contacting [sitename]" in the status bar. Then, it will refuse to load any page on that site until I restart Safari. Other sites continue to work normally.
1 - this problem does not occur on Macs using Firefox or Camino. It does not occur on any browser on a windows machine.
2 - I have confirmed that the site and my internet is functioning when this happens (e.g. by using another browser, which will load the content while Safari still says Contacting...).
3 - this problem does occur on other Macs using Safari.
4 - clearing cache does not help.
5 - restarting the browser does fix the problem, but it will happen again.
Thus, I assume it is a problem with session cookies. Unfortunately, Safari provides no way to restart a session without restarting the browser, so I can't verify this.
Any insight? Does anyone else have this problem?
It is very frustrating... I am restarting Safari 20+ times a day (I use these sites throughout the day).
Thanks in Advance,
JBAfter reading lots of other similar situations, i tried one fix recommended by (Bee):
"You also might go to your Safari Icons folder.
USERS>YourName>Library>Safari>Icons.
Then take that file and put it in the trash.
A new one will be regenerated.
(That file keeps copies of all of the Favicons of all the sites your visit.
It gets huge after a while, and needs cleaning out.)
and that fixed my problem.
Just for the record i noticed my history menu wasn't being updated.. AT ALL.. so if that matches your troubles give this a try -
We have a Windows Server 2008 R2 SP1 RDS supporting many ThinClients, mostly using a mandatory profile on a Windows 2003 R2 AD environment
at the moment of the hang what we experienced was:
New RDP sessions got stucked in the legend "Iniciando" (we have the spanish MUI).
Systems Events shows a lot of Warnings:
The Group Policy Client Side Extension Group Policy Shortcuts may have caused the Group Policy Service to terminate unexpectedly. To prevent further failures in the Group Policy
Service, this extension has been temporarily disabled until after the next system restart. Group Policy settings managed by this extension may no longer be enforced until the system is restarted. The vendor of this extension should be contacted if this issue
recurs.
and after that a lot of this errors:
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the CryptSvc service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the NlaSvc service.
The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client.
timeout (30000 milliseconds) was reached while waiting for a transaction response from the Schedule service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the gpsvc service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the BITS service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the SessionEnv service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the ShellHWDetection service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the CertPropSvc service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the IKEEXT service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the iphlpsvc service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the SessionEnv service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the iphlpsvc service.
During the problem we ping DC and Network Share where Profile and Document Redirection resides and they were working OK (we also did a
\\server\HomeUsers and we reached it without problem)
Only reseting the server worked, Any Ideas of what could be causing this ?? Best Regards
Federico Giampietri Latamsupport IT Infrastructure ServicesHi Clarence,
Today we experienced the problem again,
Users can’t login to RDS, but now they got stucked at “"Please wait for the Group Policy client”;
System log events recorded the following errors again:
timeout (30000 milliseconds) was reached while waiting for a transaction response from the Schedule service.
timeout (30000 milliseconds) was reached while waiting for a transaction response from the sessionenv service.
timeout (30000 milliseconds) was reached while waiting for a transaction response from the ShellHWDetection service.
timeout (30000 milliseconds) was reached while waiting for a transaction response from the Wuauserv service.
timeout (30000 milliseconds) was reached while waiting for a transaction response from the BITS service.
timeout (30000 milliseconds) was reached while waiting for a transaction response from the CertPropSvc service.
What path do you suggest to investigate further?
Thanks a lot!
Federico Giampietri Latamsupport IT Infrastructure Services -
Multiple sessions in a single database connection.
I have copied the following text from Forms Developer2000
"At runtime, Form Builder automatically establishes and manages a single connection to ORACLE. By default, one user session is created for this connection. However, the multiple-sessioning feature of ORACLE allows a single client to establish multiple sessions within a single connection. ORACLE transaction-management and read-consistency features all are implemented at the session level, so creating multiple sessions allows a single user to have multiple, independent transactions."
If ORACLE allows a single client to establish multiple sessions within a single connection, I want to leverage on this feature in my application which uses BC4J.
Can anybody tell me if
1. its possible achieve this in Java(BC4J).
2. If Yes, How?
regards,
vikrantThank you for your valuable suggestion.
I believe createing multiple root Application
Modules, will create as many number of connections to
database, hence multiple transactions.
But What I wanted was multiple sessions in a single
connection, who's behavior will be similar to two
different connections.Could you tell me the advantage you're looking for in multiple sessions in one connection vs. multiple connections (where connections may be pooled)?
Thanks.
Sung -
How to Create a connection and User Seesion and Authentificate Session
Hi
I would like that someone provide my the code to set a connection with MDM through the MDM Java APIS SP6 Patch2. I need to connect with the repository, and authentificate the User and the Password. Furthermore I would need the code to pick up events like add record and modified record. When a record is added or modified is neccesary to pick up the value of a lookup field in the main table to check that this value is a specific value in order to syndicate this record. That´s possible that someone provide this code to me.
thanks in advance. If the reply is useful there will be rewards Points.Hi,
Check this out
ConnectionAccessor simpleConnection=null;
RepositorySchema repSchema=null;
RepositoryIdentifier repIdentifier=null;
DBMSType dbmsType = DBMSType.MS_SQL;
String session=null;
String connection = "MDM_SERVER_PROD";
String repository = "TEST_REP";
simpleConnection = SimpleConnectionFactory.getInstance(connection);
repIdentifier = new RepositoryIdentifier(repository, connection, dbmsType);
RegionProperties dataRegion = getRegion();
CreateUserSessionCommand createUSesCmd = new CreateUserSessionCommand(simpleConnection);
createUSesCmd.setDataRegion(dataRegion);
createUSesCmd.setRepositoryIdentifier(repIdentifier);
createUSesCmd.execute();
session = createUSesCmd.getUserSession();
AuthenticateUserSessionCommand authUSesCmd = new AuthenticateUserSessionCommand(simpleConnection);
authUSesCmd.setSession(session);
authUSesCmd.setUserName("Admin");
authUSesCmd.setUserPassword("pass123");
authUSesCmd.execute();
GetRepositorySchemaCommand getRepSchCmd = new GetRepositorySchemaCommand(simpleConnection);
getRepSchCmd.setSession(session);
getRepSchCmd.execute();
Just put all the execute statements within try catch block
Regards,
Jitesh Talreja -
Granting system privileges DEBUG ANY PROCEDURE and CONNECT SESSION in 10gXE
I am using Oracle DB 10g Express Edition and trying out SQL Developer. Whenever I want to debug a procedure I got the error:
This session requires DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE user privileges.
But I don't see these privileges to grant in the XE GUI for users.
Does anybody know if this is supported in XE.
Thanks.Hi
Use SQL*Plus (or the apex interface), logon as dba and type this sql statements:
grant DEBUG CONNECT SESSION to <username>;
grant CONNECT SESSION to <username>; -
Why is this session not connecting to the preferred Instance ?
Grid Infrastructure/DB Version : 11.2.0.3
Platform : RHEL 5.8
We have a 3-node cluster and I've configured the RAC service PKDS_UAT_01 with its preferred instance as JDSCFS3
$ srvctl config service -s PKDS_UAT_01 -d JDSCFS
Service name: PKDS_UAT_01
Service is enabled
Server pool: JDSCFS_PKDS_UAT_01
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: NONE
Edition:
Preferred instances: JDSCFS3
Available instances: JDSCFS1
Then I start a remote session through SQL*Plus like
sqlplus scott/tiger@rtfms-scan:1624/PKDS_UAT_01.acproot.net
When I check in the DB, it shows that the session is actually connected to instance 1 despite the preferred instance set as Instance3 (JDSCFS3) for the service PKDS_UAT_01
SQL> select inst_id, sid from gv$session where username='SCOTT';
INST_ID SID
1 3839
Why is this happening ?1. check that all services are running on all nodes. Actually, you service should run only on preffered node
srvctl status service -d db_name
2. restart services
3. try again
Regards
Ed -
Connection to the database and session
Friends I am developing a JSP based application ,and I am storing Connection (to the database) info in a session variable in my main menu , and then I retrieve the connection session in all the pages that I navigate to.
But a friend of mine told me it is not a good programming practice.He adviced me to use the connection pooling to make effecient use of the connection.
So using session for storing connection to the database is a bad idea ?
I thought it is bad idea to get connected to the database everytime a jsp is thrown ...hence I was using session variable.
Please give ur thought about this.
Thanks.Well.
You are using a kind of connection pooling already, since you make a connection and reuse it along every jsp page in a session but reusability is at the cut&paste level here.
And what would you do if you needed to share a connection between sessions (scope:application)
Or how would you resolve the need to connect to 2 databases in one JSP page ?? Duplicate the code from the "main menu" ?
If you have let's say 5 applications written as you described and the connection data (ip address, SID, host) changes as someone moves the database to another machine (for example :-))) you will have to manually correct all 5 applications. So it's not much of flexibility in this kind of code.
Connection pooling as I understood it (I might be wrong :-))) is placing the code in a bean or servlet and the parameters in a txt (or better xml) file so when something changes you don't rewrite applications, just rewrite one txt (xml) file and you are done.
If you use a connection pool as a bean you have the bean scopes you can choose from and so on.....
Visit
http://www.codestudio.com/index.shtml
for an example of a very well written connection pool. Maybe there you will find other issues to help you decide.
Hope this helps!
Bye
Maybe you are looking for
-
My iPhone is Not Charging From the mains or even not showin up in itunes after as soon as i have updated it to ios 5.1.1 Please Help me to Fix this issue!! My iPhone model is 3GS and was on ios 5.1 before it was updated to 5.1.1 Help Me out please!!!
-
GridBagLayout: JInternalFrames and internal JDesktopPanes?
What I want: A JToolbar a the top of my main JFrame and a JPanel (status bar) at the bottom of my frame that stretches/shrinks with the screen. AND JInternalFrames in the center area (the number is arbitrary and the position is -- for now -- arbitrar
-
Display randomly falling asleep
My PowerBook has begun to randomly go into sleep mode while I am in the process of using it. The screen simply goes dark, the sleep light indicator on the front of the computer begins to slowly flash, but it is only half as bright as full sleep mode.
-
Hello everyone, I need my report ro show dates with HH:MM:SS. But the report only shows dates as DD-MON-RR. I think I chose all the correct format masks in the report builder (DD-MON-RR HH24:MI:SS), and in the rtf tags. Another point is that all the
-
Possible to extract data from DB
Hello All, Can any one let me know is it possible to extract data from DB ? for the initial we need to extract all the records and we need to extract from 5 tables and perform match and merge and create a unique records..Is it possible? Once done the