How to setting sessions on XE
Hi, i need I need to know how to configure my server Oracle XE to be able to connect from 3 to 10 concurrent users. (value of SESSIONS and PROCESS)
My application is a document management and for 8 hours a day Monday through Friday, users will access the database in order to generate Word documents.
Additionally, the limit of 1GB of RAM, which is the number of users who can connect to Oracle XE?
Roberto.
user584812 wrote:
Thank you, very good. But, Oracle Database XE support up 300 conected users?
Roberto.Hi Roberto,
what do you mean by 300 connected users? Will all them have a persistent connection via JDBC, OCI or .Net? Or will they be served as a web application via APEX, perl, php or J2EE?
In the web scenario it should only result in a few concurrent sessions anyway. In the client/server scenario you could also configure XE to use MTS (multi threaded server, now called Shared Server).
This will cut down your number of processes on the server side. If not many users are active at the same time this could be a viable option:
http://www.scribd.com/doc/2713811/Oracle-Configuration-And-Tuning-MultiThreaded-Server-Architecture
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7811879860826
http://www.dba-oracle.com/t_mts_multithreaded_servers_shared.htm
Aside from that the Oracle development team did load and performance testing for XE with 50 concurrent active users which went fine.
Regards,
~Dietmar.
Similar Messages
-
How to set session attributes in a bean?
How do I set a session attribute in a server-side bean?
I'm not sure if I asked the question the right way. What I meant is, while it's easy to set session attributes in a JSP page (session.setAttribute("sessionname", "sessionvalue")), I'd want to set such an attribute within a server-side bean defined in this web application. But what is the syntax for doing it?Here a simple bean that stores something in the session and retrieves something from it.
import javax.servlet.http.HttpSession;
public class TestBean {
private String value;
public void doSomething(HttpSession session, int a, int b) {
if (a+b > 0) {
session.setAttribute("ab",Boolean.TRUE);
} else {
session.setAttribute("ab",Boolean.FALSE);
public void init(HttpSession session) {
if (session != null) {
Boolean b = (Boolean)session.getAttribute("ab");
if (b == Boolean.TRUE) {
value = "a + b is greater than zero";
} else {
value = "a + b is not greater than zero";
} else {
value = "no session";
public String getValue() {
return value;
}In your JSP, use something along the lines of :
<%
TestBean bean = new TestBean();
bean.init(session);
bean.doSomething(session,1,2);
%>If your bean only lives during one request, you can pass the session to the constructor, which stores it in a private variable. This saves passing the session each time.
Hope this helps,
--Arnout -
How to set session timeout per user
Hi,
Ho do I set the session timeout per User in the
Application.cfm File??
I tried using
<cfif SESSION.UID EQ 1>
<CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
</cfelse>
<CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
sessiontimeout="#CreateTimeSpan(1,0,0,0)#">
</cfif>
But this didnt work because the cfapplication seems to have
to be at the top before I call the variable SESSION.UID which
I set on my login page..
Someone know how to do this??
Regards
MartinMartin,
Your code example cannot work because the "session" scope
doesn't exist until your application scope is defined. So you have
to handle this manually. Here's how you can get it done. First,
define your application to the maximum sessiontimeout you want to
have.
<CFAPPLICATION NAME="appControl" SESSIONMANAGEMENT="Yes"
SESSIONTIMEOUT="#CreateTimeSpan(1,0,0,0)#">
Then, I don't know how you are doing your login
authentication but when you have authenticated the user, you need
to define the userid and the most recent activity in the session.
Also determine your timeout value based on the userid. See example:
<CFIF IS_AUTHENTICATED>
<CFSET session.user.uid = form.userid>
<CFSET session.user.most_recent_activity = now()>
<CFIF session.user.id eq 1>
<CFSET session.user.timeout_mins = 20>
<CFELSE>
<CFSET session.user.timeout_mins = 1440>
</CFIF>
</CFIF>
Now, all you have to do is check whether the user has been
idle for too long and kill the session by purging all session
variables. For example:
<!--- if user id is defined, this means user is logged in
--->
<CFIF structKeyExists(session, "user") and
structKeyExists(session.user, "id")>
<!--- check if timeout has expired --->
<CFIF datediff("n", session.user.most_recent_activity,
now()) gt session.user.timeout_mins>
<!--- timeout has expired, kill the session and log the
user out --->
<CFSET StructClear(session)>
<!--- insert your logout code here --->
<CFELSE>
<!--- user hasn't timed out, so reset the most recent
activity to now --->
<CFSET session.user.most_recent_activity = now()>
</CFIF>
</CFIF> -
Iplanet 4.1 - How to set session timeout for a specific application
Hi everyone,
I have a Iplanet 4.1 old web instance running on Solaris 8. We are using this web instance to connect to few application instances running on Websphere 3.5. We have upgraded most of our web/app to higher version except this.
One of the websphere applications need more session timeout. (Which I fuguredout not possible to do on Websphere).
How do I achieve this on Iplanet 4.1.
NOTE: I referred to Iplanet 6.x where we can achieve this by updating web-app.xml timeOut value per URI. I do not find web-app.xml under v4.1
Thanks in advance,Sorry to say that we can't help here. WS4.1 is obsolete a long time ago.
As you mentioned that you should use WS6.1SPx or WS7.0 for your production and get support. -
How to set report output to session variable
Hi,
Is there any way to set report output to session variable . If my report returns 1 row and 1 column.
I have a dashboard prompt where i am selecting Name , but i want to find out the ID of that name .
that ID i want to pass to a column Fx , to achieve this i created a intermediate report and i got the ID. Now my problem is how do i set this ID in session variable .
Please help if anyone knows...Did you read this:
how to set session / presentation variable in repository variable
Dashboard prompt on Month Name but report filter on month ID:
Re: Dashboard prompt on Month Name but report filter on month ID needed
If you have dashboard prompt (name) then you may have only one report that is filtered by name but show id or not show id but use id in the function. Or two reports like in the solution in the second link above and the second report has id in the function and filter by id from the first report. You don't need to set this ID in session variable for this example.
Please close your previous threads if they are answered.
Regards
Goran
http://108obiee.blogspot.com -
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
How to set a variable in portal session using web dynpro java.
Hi,
I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
Can anyone tells me how to set a variable in portal session using web dynpro java.
thanks
ArushHi,
Try this:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
Ex:
WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
/people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
Regards,
Charan -
How to set a object value bound to a session to JavaScript variable
In a JSP, I store an object value in a HttpSession and I also write a Javascript function to display something on the screen. I need to use the Javascript function to display the object value which is stored in the session. How to set the object value to variable of the JavaScript function. Thanks.
I write a class JavaScriptHelper to convert the object value to variable of the JavaScript;
1.get the data to a javabean from database;
2.convert the data to variable of the JavaScript as a String ;
3.store the object in a HttpSession or Httprequest ;
4.use in Jsp get the String (variable of the JavaScript )
YourBean bean = (YourBean) request.getAttribute("model");
if (bean != null) out.println(bean .getJsCode())
convert function,(this is only for the matrix):
public static String formatJsCode(Vector vector) {
String sJsCode = "";
//get js head
sJsCode = getJsHeader();
//define js array;
sJsCode += "var data=new Array();\n";
Vector v = null;
String sTemp = "", sLine = "";
for (int i = 0; i < vector.size(); i++) {
v = (Vector) vector.get(i);
sLine = "";
for (int j = 0; j < v.size(); j++) {
sTemp = (String) v.get(j);
//replace " to \"
sTemp = sTemp.replaceAll("\"", "\\\\\\\"");
//escape Html Tag
//sTemp = StringUtil.escapeHTMLTags(sTemp);
//replace \r\n to <br>
sTemp = sTemp.replaceAll("\r\n", "<br>");
if (j != 0)
sLine += ",";
sLine += "\"" + sTemp + "\"";
sJsCode += "data[" + i + "]=new Array(" + sLine + ");\n";
//get js foot
sJsCode += getJsFooter();
return sJsCode;
public static String getJsHeader(){
return "<script language=\"JavaScript\">";
public static String getJsFooter(){
return "</script>";
} -
How to Set and Use a global variable within a session?
Dear All,
I'm new to jsp, and would like to ask how to set and use a global variable within a session?
Thanks in advance.
Regards,
CecilWith session.setAttribute("name",object) you can store a Attribute in the session object.
with session.getAttribute("name") you can get it.
That's it.
Regards,
Geri -
How to set a new session variable?
Hi all,
Can anybody say how to set a new session variable in istore?Hi,
you can use either
pageContext.getAttribute(VAR, PageContext.REQUEST_SCOPE);
or
<%@page session="true" %>
session.putValue
session.getValue
Hope this will help.
Thanks
Gurjeet -
Hi,
I would like to know how to set a session variable for the following purpose.
At the top of my application I have a "Welcome <username>" I'd like it instead to have "Welcome <firstname> <lastname>".
So the concept would be after the user logs in succesfully this session variable is dynamically set so it can be displayed.Hi Scott,
I realize that I can set items etc in pages. The case I'm referring to is a reference in a template. My template has a "Welcome <user name>" ... so the code looks like "Welcome &APP_USER." Anyway to make it say "Welcome first_name last_name" in the template? Note I'll have to get the first/last names from a query
Thanks,
Marty -
If user disable cookie how to set and use session with URL Rewritting
if user disable cookie how to set and use session with URL Rewritting by append session ID in url
If cookies are disabled, then app server will automatically try to use URL rewriting for session control. Programmer's responsibility is to encode any links or redirects using
response.encodeURL("/yourPage.jsp")
and
response.encodeRedirectURL("/yourPage.jsp")
See API for details
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String)) -
How to set SAP idle session time out
Hello gurus,
I want to know how to set the time to terminate idle SAP session. What is the parameter and what is the T-code to access that parameter?
Thanks and Regards,
RahulHi Udvadia
Maximum work process runtime parameter
rdisp/max_wprun_time 600
If its a portal or something else it might differ, above parameter is for a regular work process in a SAP Netweaver installation.
This can be set in the startup profile of your system using transaction RZ10.
*Indeed dynamic parameters do not require stop/start
Reward points if useful.
Kind regards
Tom
Message was edited by:
Tom -
How to set the session using onClick event?
Dear All,
I have a link, which once the user click on it, I want to set the session.
<a href="link.jsp" > Link </a>How to set the session? Where should I put <%session1.setAttribute ("test", "1234"); %>?
Any idea?
Thankswhen u click on Link
the control goes to link.jsp/.
and in this page u can write the session related code. -
How to set time zone for a session in Client Only installation
Environment:
OS : Unix (HP-UX 11.0)
Oracle DB : Ver 8.0.5
Developer : Ver 1.6 ( Client only Installation)
Developer also on Unix.
RDBMS and Developer Installed on different
home directories.
Our development is Forms 4.5 on X windows.
Runtime is forms character mode.
Probelm Description:
To run the application I am using TWO_TASK to connect to the database. In our application we have to take care of time zones. For that in previous versions(NO TWO_TASK used) I used TZ unix environment variable, to get time zone dependent time wherever sysdate is used.
Now because I am using TWO_TASK, oracle is no more using users TZ settings.
Question : Is there any way I can make oracle to use the TZ environment settingThanks for replying Johnny!
What you are referring to is adding a city. I need to know how to set the time zone in settings -> Date & Time -> Timezone. Unless & untill this is set properly the iPod will never show me the right time. Please help me with it.
I will definately use your advice on the second query.
Thanks once again!
Windows XP Pro
Maybe you are looking for
-
Creating a query for a custom report layout
hello guys, i am really stuck with this task - i need to populate a report with rows with "0" values based on a particular criteria, here is the example: lets say we have a table BROKERS with company names, their transaction types and cumulative amou
-
Can't move files - creates alias instead
When I try to move a file/folder elsewhere, it creates and alias instead of moving the file. Yes, the folder I'm working under is in the Applications directory. I understand that this was something new added to 10.7 The problem is, I'm working with M
-
It's only a problem on my home desktop and isn't a problem with IE. It must be an option I can change but I can't find it. Please help.
-
G500s freezes while working and even when no program is running
my lenovo g500s laptop is 13 months old and is out of warranty. it freezes frequently with no specific reason and it stuck for very long time so i have to restart it everytime it gets freeze. it is very irritating to restart it again and again so pls
-
Problems w/ Apple Mighty Mouse and 2013 Macbook Pro
I recently purchased a 2013 Macbook Pro (13-inch, non-retina), and have tried connecting my 2010 (apprx.) Apple Mighty Mouse via bluetooth. While it does connect, the right mouse button, "centre mouse button" (pressing down on the scroll wheel), and