Query very slow on Windows 2003 Server

Hi,
Our customer is running 10g on Windows 2003 server. Some queries perform badly. I imported the data into a 10g DB on Linux (at our office) to analyze and test. Strange enough the same query takes more than 10 times longer to run on the Windows machine compared to the Linux. The Windows machine is dedicated to Oracle, it is not 'overloaded'.
SELECT
plan_task.id_task,
plan_task.task_id,
plan_task.taskdef_y_n,
plan_task.description,
plan_task.status,
plan_task.team_id,
plan_task.activity_id,
plan_task.task_start_datetime,
plan_task.district_id,
plan_task.task_end_datetime,
plan_task.taskdef_freq_code,
plan_task.taskdef_start_time,
plan_task.taskdef_end_time,
plan_task.order_nr
d,
PREVENT.PLAN_PERSONS_AVAILABLE_SHORT(ID_TASK) PERS_OK,
PREVENT.PLAN_MATERIALS_AVAILABLE_SHORT(ID_TASK) MAT_OK
FROM PREVENT.PLAN_TASK
WHERE (TASKDEF_Y_N='N') AND (TASK_START_DATETIME>=to_date(to_char(SYSDATE,'dd-mm-yyyy'),'dd-mm-yyyy'))
AND (TASK_START_DATETIME<to_date(to_char(SYSDATE,'dd-mm-yyyy'),'dd-mm-yyyy')+1)
ORDER BY DESCRIPTION;
On LINUX (Intel 2 GHz, 2 Gb mem) takes 0,5 seconds to execute (46 rows returned)
================================================================================
Plan
SELECT STATEMENT ALL_ROWSCost: 27 Bytes: 2,436 Cardinality: 29                     
     4 SORT ORDER BY Cost: 27 Bytes: 2,436 Cardinality: 29                
          3 FILTER           
               2 TABLE ACCESS BY INDEX ROWID TABLE PREVENT.PLAN_TASK Cost: 26 Bytes: 2,436 Cardinality: 29      
                    1 INDEX RANGE SCAN INDEX PREVENT.PLAN_TASK_START_DATETIME_I Cost: 2 Cardinality: 30
On WINDOWS (Intel 2 GHz, 2 Gb mem) takes 11 seconds to execute (46 rows returned)
=================================================================================
Plan
SELECT STATEMENT ALL_ROWSCost: 35 Bytes: 3,276 Cardinality: 39                     
     4 SORT ORDER BY Cost: 35 Bytes: 3,276 Cardinality: 39                
          3 FILTER           
               2 TABLE ACCESS BY INDEX ROWID TABLE PREVENT.PLAN_TASK Cost: 34 Bytes: 3,276 Cardinality: 39      
                    1 INDEX RANGE SCAN INDEX PREVENT.PLAN_TASK_START_DATETIME_I Cost: 2 Cardinality: 40
NOTEs:
- The data is exactly the same on both machines
- I analyzed_schema on both machines/DB's before running the query
- The SGA size en DB_BUFFERS are (almost) set to the same value
- Oracle version is the same: 10g

On Windows:
- I exported the data
- Re-created my 2 tablespaces, to set: extent management local, uniform 1M
- imported the data
- dbms_stats.gather_schema_stats( option=>'GATHER')
Plan
SELECT STATEMENT ALL_ROWSCost: 36 Bytes: 3,32 Cardinality: 40                     
     4 SORT ORDER BY Cost: 36 Bytes: 3,32 Cardinality: 40                
          3 FILTER           
               2 TABLE ACCESS BY INDEX ROWID TABLE PREVENT.PLAN_TASK Cost: 35 Bytes: 3,32 Cardinality: 40      
                    1 INDEX RANGE SCAN INDEX PREVENT.PLAN_TASK_START_DATETIME_I Cost: 2 Cardinality: 41
Tested, takes 7 seconds now (was 11), but this is still slow compared to the run on Linux
Grt, Stephan
Edited by: Stephan van Hoof on Jan 9, 2009 8:41 PM

Similar Messages

  • Printing from CS3 under Vista to Windows 2003 server print que very slow

    I just upgraded one of my machines to vista with CS3. I normally print to a windows 2003 server print spool que. When I go to print it takes forever to pull up my different printers and then go to properties. On my XP machines there is no problem, I can select the print que, go into properties for my printer and it works fine. Something with Vista, CS3 and WIndows 2003 server?
    Thanks

    shadeDream
    Im curious about your 802.1x issues are. Im testing user profiles VS login window profiles for 802.1x on our Cisco wi-fi LAN right now, and I'm scratching my head on how the login window profile is actually supposed to work. Its a chicken-and-the-egg situation for me. I cant use user login window profiles, I have to use user profiles, which don't work very well in my environment for various reasons. Granted, it has improved since 10.5.3, but its still not working as I expect it to work. Do you have a Apple Discussion post related to this issue I can read?
    Sorry for hijacking this discussion with off-topic content...

  • Slow connection with OS X 10.7 while trying to access a Windows 2003 server

    Good afternoon:
    I am a systems engineer in an enterprise environment that is now deploying Macs and I have been finding that the Macs have a very slow connection to the Windows 2003 server; even after installing all necessry components.
    All of the Macs access network services via Active Directory
    The issue is the connection speed when trying to access folders on the servers.
    Does anyone have any ideas as to speed up this connectivity issue?

    Did you resolve this issue? Any links to anwers to this?
    thank you.

  • Windows 2003 server access getting slow from Windows7/8 client

    We have Windows 2003 Enterprise Server. If I try to access through Windows 7 or Windows 8 client PC then I am getting very slow access. Slow access in terms of, if I am taking remote desktop of server [OR] if I directly browse server directory [OR] even
    accessing any web application on server it is very slow.
    But if I am accessing though any Windows-XP base client or even other servers having Windows 2003 or Windows 2008 then access in good.
    But interesting thing is even we have other Windows 2003 server for which I am getting normal response.
    Can someone guide me on the same? I am not able to understand the root cause of it.
    -Abhay

    Start with decreasing SMB version in clients. For inspiration look here
    http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htm
    Rgds
    Milos

  • Oracle 10G slow Performance on Windows 2003 Server

    Hi there,
    Looking for a little assistance in locating a bottleneck that's started to hit our system this week. It's really odd because it's been starting around 10am every morning this week.
    today is the worst that I've seen it because it's almost brought the system to a halt.....
    We're running Oracle 10.2.0.1 64b on Windows 2003 Server 64
    The server has 16 processors and 64GB of RAM currently the CPU is sitting at 5% and the RAM usage is at 16.4GB
    It's a blade server with a SAN backend and I'm assuming the latency is coming from the disk but I need to determine this for a fact.
    I've only been a DBA for about a year and I'm stilling learing how to locate and identify issues. According to OEM I'm seeing
    a ton of I/O from the users. So anyways, any help or insight would be much appreciated and a learning experience for me.
    Thank you for your time and asistance.
    SB

    Thank you for the reply!
    We've had finding one FOREVER, I can't resolve it and I've read somewhere to ignore because OEM is false reporting. I'm adjusting DB_Cache now...
    Isn't possible that too much cache could be bad for the system and cause slow downs?
    FINDING 1: 100% impact (29725 seconds)
    Significant virtual memory paging was detected on the host operating system.
       RECOMMENDATION 1: Host Configuration, 100% benefit (29725 seconds)
          ACTION: Host operating system was experiencing significant paging but no
             particular root cause could be detected. Investigate processes that
             do not belong to this instance running on the host that are consuming
             significant amount of virtual memory. Also consider adding more
             physical memory to the host.
       RECOMMENDATION 2: DB Configuration, 100% benefit (29725 seconds)
          ACTION: Consider enabling Automatic Shared Memory Management by setting
             the parameter "sga_target" to control the amount of SGA consumed by
             this instance.
    FINDING 2: 51% impact (15210 seconds)
    The buffer cache was undersized causing significant additional read I/O.
       RECOMMENDATION 1: DB Configuration, 9% benefit (2685 seconds)
          ACTION: Increase the buffer cache size by setting the value of parameter
             "db_cache_size" to 7568 M.
       ADDITIONAL INFORMATION:
          The value of parameter "db_cache_size" was "6912 M" during the analysis
          period.
       SYMPTOMS THAT LED TO THE FINDING:
          SYMPTOM: Wait class "User I/O" was consuming significant database time.
                   (84% impact [25073 seconds])

  • Very long search times from an IMac running 10.6.7 Snow Leopard when searching for files on a windows 2003 server

    The issue is as follows:
    The Imac is connected to the  windows 2003 server via SMB type connection.
    There are four sub folders in the main directory. We go to one of the sub folders in this case Server.
    We go to search window and type the file name that we want to search such as test .
    The choices selected for search parameters are Server for location and contains (same results if picked by file name)
    Search takes roughly 6 minutes before it returns the result.
    If we do the same search on the old Mac Server it will take 15 seconds to complete using same search parameters.
    Any ideas on how to speed up search times to the Windows 2003 Server? I have tried going to finder preferences and removing the sharing section. That did not help.

    Okay, I've....
    1) Reinstalled XE, to start from scratch
    2) Went in to SQL*Plus, did a "create pfile from spfile;"
    3) Shutdown the database
    4) Started it up in MOUNT mode
    5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
    6) Shutdown the database again
    7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
    8) Started up the database
    And that worked! So that's good... but now my question is:
    How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
    SQL> select instance_name
    2 from v$instance;
    INSTANCE_NAME
    xe
    I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
    CTXMGMT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
    (CONNECT_DATA = (SID = CTXMGMT))
    Could someone explain how to get the database to this state? Thanks.
    - Gary

  • (Very Ergent)R12 on windows 2003 server with itanium processor...

    Hi,
    Is it possible.
    Processor : Itanium 2(64bit)
    OS : Windows 2003 server for itanium (don't know 32/64bit)
    http://www.microsoft.com/servers/64bit/itanium/overview.mspx
    ERP: R12 for windows(32bit)
    Is it possible with these combination
    Thanks & Regards,
    Shankar

    Duplicate thread (please post only once):
    Is it possible?
    Re: Is it possible?

  • Oracle HTTP Server download bandwidth limited on Windows 2003 Server

    Hi,
    we have an ApEx application with the following configuration on the server:
    OS: Windows 2003 Server 64Bit
    DB: 10.2.0.3 64bit
    HTTP Server: the one that comes on the companion CD of Oracle DB 10g 32 bit
    and after the bandwidth in the datacenter where the server resides was increased, I discovered a problem related to the server download bandwidth. I found on Metalink a Note [568075.1 - HTTP Server File Download Speed Is Slow |https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=568075.1] , but unfortunately not a very clear resolution given the fact that we use Oracle DB SEOne, so options 1 & 2 will involve additional licenses costs.
    I tried option 3 suggested in the note by using the HTTP Server that comes with 11g (I assume this is a supported configuration also from licenses point of view HTTP Server from 11g on top of Oracle DB 10g) and I got a boost in performance but the bandwidth is still 70% compared to the bandwidth I get when downloading from the IIS on the same server.
    Has anyone went through this exercise and found a solution for fully using the server bandwidth without needing to go for option 4 in the note, using Linux :), as in our case this will involve again additional licenses and/or hardware costs as the HTTP Server that comes with the DB has to be installed on the machine where the DB is installed?
    Thanks in advance,
    Florin

    Ooops ... things like this happen with Oracle Support, no answer?
    Can you tell me anyway the SR number or the SR title so that I can write it in the SR I make? Like that maybe Oracle Support will work harder on the case, as there are more customers hitting the same problem.
    Anyway in the meanwhile, I run some tests with the original Apache and this one works like a charm even in Windows 2003 Server. What remains now to be done is to use the Open Source Apache as proxy to the HTTP Server, as it looks like it handles much better the static content, it supports also mod_gzip or mod_deflate, but does not support mod_plsql :(. So I think the combination of the two: will do the work for me, but it is really a pity that I have to configure 2 web servers because the HTTP Server has flaws in it :(. Hopefully these will be fixed soon

  • Trying to access Windows 2003 Server share with Mac OS 9.04

    Hi
    I cannot connect to a Windows 2003 Server share on my 2003 domain. I can access the share with my MacBook (10.4.9) & my G4. I have File Services for Mac installed & can ping the server from all OS 9 Mac.
    Can anyone give me some tips?
    MacBook     Administrator

    How are you trying to connect to the server? Via AppleTalk or IP? (What utility are you using to ping the server from the Mac OS 9 machine?) Since you're not providing any information about error messages you're receiving or the symptoms of your problem I can only provide the following information.
    If you're selecting the server from a list in the Chooser and clicking the OK button then the connection should switch to IP automatically. Make sure your Mac has TCP/IP enabled and is receiving an IP address or that you have an appropriate IP address hard-coded. You can try forcing an IP connection by entering the IP address or DNS name of the server in the Chooser rather than selecting it from the list in the Chooser.
    Or you can try forcing an AppleTalk connection by selecting the server in the Chooser and holding down the Option key as you click the Connect button. If you're asked to enter your name and password then you're communicating properly with the server. This is, however, a very slow connection compared to IP.
    Finally, be sure you update to the latest version of Mac OS 9, which is 9.2.2 <http://docs.info.apple.com/article.html?artnum=75288>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Installing problem on Windows 2003 Server 64 bit

    Dear All,
    I'am trying to install XE onto a Windows 2003 Server 64 bit.. The installation process ends without any errors but the database itself seems not to start.
    I tried several hints that have been mentioned here within the forum. But none of them worked. While experimenting I saw that there is not a single registry entry of Oracle within HKEY_LOCAL_MASCHINE\Software .
    Is there a possiblity to set those needed registry entries manually? Is there a script for that purpose?
    Thank you very much for your help!
    Regards
    Matthias

    Hi,
    thank you for your reply. As 32bit programs should run under Windows 64bit I thought the XE should run under 64bit, too.
    The installation of XE itself seems to finish without any errors. But within the log files it can be read that the database has not started up due to a out of memory problem. This causes many log entries within all other logfiles as no database could be created.
    The out of memory problem might be the same as within Advice on running XE on a small virtual Linux host ("Virtuozzo") because I am using a virtual windows 2003 server with "Virtuozzo", too.
    At this time I am on discussing the issue with the provider. Maybe I will get a dedicated server with Windows Server 2003 64bit. Hopefully the XE could be installed on the 64bit Windows Server because 32bit dedicated servers are rare.
    Best regards
    Matthias

  • Crystal Ras 9 on Windows 2003 Server, IIS6.0, single threaded?

    We have just migrated from Windows 2000 server to Windows 2003 Server over the weekend. We ran into an issue with Crystal Ras 9.0 where the server serving up reports slower that our previous box. We are using IIS 6.0 and .net 2.0 framework with 1.1 installed for backward compat on our some of our old legacy codes. From what our developers can tell, the issue seems to be Crystal Ras queuing up the request and process them one at a time. That didn't happen before the migration. In fact, we also saw it working in our test environment before the migration. Once the pool is filled no further reports are generated which causes all report to stop which also starts to hang our server. They symptoms is worst under heavy user load. We tested with 6 simultaneous users and all 6 are done at the same time no matter the size of the report. Even the one that fail with an error message came up at the exact same time.
    Are there anyway we can adjust the IIS pools and or Crystal Ras to support additional threads?  We are connecting to Windows 2008 SQL Server EE. Any suggestions and or help is appreciated. I cannot find any references that would help us diagnose this further.
    Also, if you can also detail the cost to buying a phone case, that would be helpful as well.
    Thanks
    -atiwat

    Since you are not changing the version of RAS, I am not sure why the queuing would be different on different Operating Systems? You may want to check on how the queuing is setup on the WIN 200 server and duplicate that on the WIN 2003 server. Also, RAS has a limited number of licenses out of the box. Ensure that you are using the same license on both environments.
    Re. phone support. You can obtain a phone case here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    However, please note that support of version 9 products terminated years ago, so you will not be able to get support for your version. To get phone support, you will have to upgrade to a supported version of RAS (XI r2 at minimum).
    Ludek
    BTW.; Windows 2008 SQL Server EE came way after RAS / CR 9 and has thus not been tested in this environment...

  • Installing Oracle 10.1.0.2.0 (32 bit)  on windows 2003 server

    Hi all,
    During installation of Oracle 10.1.0.2.0 (32 bit) on windows 2003 server 64 bit standard edition there is failure in Oracle Net configuration , oracle Data Base configuration Assistance.
    and i saw the log file of the installtion but its very complex and saying some Unexpected error occured and showing some coding. any suggestions about this. thanks in advance.
    BEST REGARDS
    Edited by: user11153253 on Jan 10, 2011 11:57 PM

    user11153253 wrote:
    Hi all,
    During installation of Oracle 10.1.0.2.0 (32 bit) on windows 2003 server 64 bit standard edition there is failure in Oracle Net configuration , oracle Data Base configuration Assistance.
    and i saw the log file of the installtion but its very complex and saying some Unexpected error occured and showing some coding. any suggestions about this. thanks in advance.
    BEST REGARDS
    Edited by: user11153253 on Jan 10, 2011 11:57 PMYes, I would suggest you actually show us the error message. All of our crystal balls are out for repair at this time.
    "My car won't start. It makes funny sounds when I try. I looked under the hood and saw a lot of complex machinery. Any suggestions on how to start my car?"

  • XMII installation on Windows 2003 Server ( 64- Bit)

    Hello,
    Can we install xMII 11.5 SR01 on Win 2003 server ( 64 -Bit ) ??? When i am trying to download xMII software from SAP market place , under xMII downloads
    -> i can see only win32 link.
    Thanks
    Sharat

    Sharat,
    Did you try installation? I think that hasn't problem. The Windows 2003 Server has the full compabillity with x86 (32 bits) softwares.
    Post here your issues, I will try to help you. I'm very interested in this results.
    Regards,
    Vinicius Martins
    Neoris/Konitech
    Brasil

  • Problem faced in viewing SVG elements in IE 7 in windows 2003 server machine

    Hi All,
    We are using SVG to use graphics elements in web page for our product. The web page contains HTML+SVG elements.
    If we use an HTML Image element in our web page display and if we draw or configure SVG elements like rectangle or circle over the image element, then on viewing it in browser, the html image element overlaps the SVG elements and they get hidden behind the image.
    Please help us in resolving this issue.
    This scenarios works fine if we use browser IE7 in windows XP machine.
    But on using IE7 in windows 2003 server machine, the problem is faced.
    We have tried all possible and valid IE settings and properties to make the display work. But its helpless. The SVG plugin is also installed properly on systems. But still the display is not as intended.
    I have attached the working scenario screenshot and non working scenario screenshot
    The screenshot here contains an html image which is showing text as Incom tax department and on top of it is SVG element rectangle. This is viewed in Windows XP in IE 7 browser
    This screenshot contains the same page above but when viewed in Windows 2003 IE 7 browser. The SVG rectangle is overlapped by the html image element here
    Kindly please help us in this regard as we are unable to proceed further with this issue. If anyone of you have face this before, then please help us on the resolution. We will be very grateful
    Thanks a lot.
    Regards,
    Shwetha

    If you are using Dreamweaver to create your webpage, please post in the Dreamweaver forum. If you are hand-coding you might try posting in the Web Design forum. This forum is for help using the forums not for general tech support.

  • Import ECC6 using DB2 9.5 in Windows 2003 server got error in Phase Insatlla database soft ware .

    Hi Expert,
    When i am going to import ECC6 in windows 2003 server  using DB9.5 i got error in phase Install data base software  like below.
    Invalid command line argument. consult the windows installer SDK for detailed command line help.
    Please help me for this error.
    Thanks in Advance.
    Thanks
    J Jana

    'invalid command line argument' - Most probably the SAPinst is not able to find the right path for the DB2 UDB DVD or the the argument is too long to interpret which is a very common problem during installations.
    Check the path for db2 DVD, and keep it shorter - that means you have to reduce the number of folders where the DVD resides. Copy the DVD in a short path let's say C:\DB2\dvdname and re-try installation by giving the new path of dvd in SAPinst.
    Thank you.

Maybe you are looking for