473,382 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Oracle Apache Session

I am currently running Oracle 8i with Apache setup in a 4-CPUs Windows
2000 Server. Users on their workstations connect to Oracle through
Internet Explorer which accesses Apache's DAD object and eventually
the PL/SQL packages in Oracle.

My application is mainly built by differenct PL/SQL packages in
Oracle. The packages build the html page based on the contents in the
database. In one part of my application, the users simply click a
search button and the application will return a list of records and
displays through Internet Explorer. The results are displayed in a
new Popup windows using basic html and jsp scripts.

The problem is that for each login through Apache to Oracle in
Internet Explorer, I can only trigger two of the four CPUs to work
when I click on the serach button. When I click the button for third
time, the new popup window is displayed but it waits until one of the
two previous windows finishes the SQL. Thus, I always cannot get all
CPUs to utilize at the same time.

I already checked CPU_COUNT in V$PARAMETER table, and the value is
four. If I run the query (the SQL statement behind the search button)
in sqlplus using four sessions at the same time, all four CPUs are
utilized.

Also, I checked the profiles of my user accounts and there is no limit
on CPU_PER_SESSION...etc.

If I open two Internet Explorers and login for two sessions, I can
open up to four windows to process the Search SQL at the same time (4
CPUs working at the same time).

Based on my find, Oracle is actually able to utilize all CPUs in the
system. However, when I work from the Internet Explorer and Apache, I
will get the utilizatoin limit problem. I wonder if there are any
parameters that limit my Oracle Apache session.
Jul 19 '05 #1
4 4350
mo*******@yahoo.com (Wilson) wrote in message news:<bc**************************@posting.google. com>...
I am currently running Oracle 8i with Apache setup in a 4-CPUs Windows
2000 Server. Users on their workstations connect to Oracle through
Internet Explorer which accesses Apache's DAD object and eventually
the PL/SQL packages in Oracle.

My application is mainly built by differenct PL/SQL packages in
Oracle. The packages build the html page based on the contents in the
database. In one part of my application, the users simply click a
search button and the application will return a list of records and
displays through Internet Explorer. The results are displayed in a
new Popup windows using basic html and jsp scripts.

The problem is that for each login through Apache to Oracle in
Internet Explorer, I can only trigger two of the four CPUs to work
when I click on the serach button. When I click the button for third
time, the new popup window is displayed but it waits until one of the
two previous windows finishes the SQL. Thus, I always cannot get all
CPUs to utilize at the same time.

I already checked CPU_COUNT in V$PARAMETER table, and the value is
four. If I run the query (the SQL statement behind the search button)
in sqlplus using four sessions at the same time, all four CPUs are
utilized.

Also, I checked the profiles of my user accounts and there is no limit
on CPU_PER_SESSION...etc.

If I open two Internet Explorers and login for two sessions, I can
open up to four windows to process the Search SQL at the same time (4
CPUs working at the same time).

Based on my find, Oracle is actually able to utilize all CPUs in the
system. However, when I work from the Internet Explorer and Apache, I
will get the utilizatoin limit problem. I wonder if there are any
parameters that limit my Oracle Apache session.


That parameter would be a fundamental lack of understanding of how
Oracle works.
There is no guarantee at all each new session will get a different
CPU.
Most likely your queries are unscalable and hog Oracle, so that would
be the reason why you have to wait for a query to complete.
Check out whether your queries executes full table scans, my bet is
they all do.
Now try to learn Oracle and rebuild your application from scratch.

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #2
When you said my queries are unscalable and hog Oracle, what do you
mean? In fact, my query is a big one which involves some table scan.
Can you show me an example?

I appreciate for your help!
Jul 19 '05 #3
Your problem is Internet Explorer, not Apache or Oracle. By default,
IE will only let you perform 2 concurrent HTTP downloads at a time.
You can increase this number by adding 2 new values to your registry
under the following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings

Then, you would create 2 new DWORD values:
MaxConnectionsPer1_0Server
MaxConnectionsPerServer

If you use 4 (Dword:00000004) as the value for each then all 4 Windows
will download at the same time.

If you are really tying up a CPU with each window, you might want to
tune the application. Otherwise how will you get more than 4
concurrent users?
Jul 19 '05 #4
joe
Nicely done Mr.Serial # 19781010. He actually knows how to resolve an issue
instead of snapping at people.
I guess Mr. Sybrand Bakker (aka Senior Oracle DBA) only know about Oracle
and nothing else. I hate to work for that guy. An Arrogant CS people like
him give us bad reputation for being to arrogant and unsociable.

Really Wilson, you need to optimize your query.

Joe
No nothing DBA
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Geoff Muldoon | last post by:
Hi all, Help please. Environment: Unix (Tru64) / Apache / PHP4.0.6 / Oracle8i Establish connection to Oracle: for ($I=0; $I<$max_attempts; $I++) {
3
by: Chad The Man | last post by:
I have been developing some applications on suse 9 / apache 1.37 / php 4.3.4 / Oracle 9i / OCI8. We recently moved servers, apache works fine, php works fine, oracle works fine... however, trying...
1
by: a153153153 | last post by:
Hi I have the following problem. Any help is greatly appreciated. I have installed Oracle Enterprise Version 9i. During installation, something went wrong and it doesnt work ( was trying to get...
1
by: vishnu mahendra | last post by:
i am new to javascript. Can any one please tell me how to connect javascript to oracle in windows 98 using apache.where i could get information on connecting? thank you in advance, vishnu
6
by: hegyvari | last post by:
Hi, I have a few apps written in PHP, running on Fedora Core. After porting these applications from PostgreSQL to Oracle a bug appeared: sometimes, not in a reproducable manner, the web page...
0
by: spookdog | last post by:
Hi, I have apache installed on our dmz server, while applying oracle patches some file must have gotten over-ridden as now when I start apache with httpdsctl startssl apache starts but not the...
0
by: Yannick | last post by:
Hi, I'm Julien from France, We have recently install a new Web Server for my company The server is composed : - Linux RedHat RHEL4 U4 - Httpd-2.0.52-27.ent - Oracle Database 10.2.0.1
0
by: newdbprgmer | last post by:
I am using a business objects API that is a web service and has axis as dependency. it works fine with 1.1 version, but with 1.3 gives an error. The code is as follows: public void...
4
by: Wilson | last post by:
I am currently running Oracle 8i with Apache setup in a 4-CPUs Windows 2000 Server. Users on their workstations connect to Oracle through Internet Explorer which accesses Apache's DAD object and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.