Understanding Performance in Oracle 10.1.0.4.0

I've been looking over my Oracle instance in response to complaints of performance issues.
Basic queries, say 700-1500 rows, which have taken 10 seconds take 30-300 seconds.
I've dropped the wait classes results and time usage below.
It's a quad processor DL380G3, however, the CPUs are pegged at 80-100% most all of the time.
The Idle wait class accounts for 99% of the time.
I increased the SGA size, doubled it from our previous level of 700M. And increased the PGA Agg target to 50M.
Can anyone (see below) give me advice or clarification on how I might determine if the idle time is legitimate? Have I misconfigured something?
WAIT_CLASS TIME_WAITED
Idle 46350690
User I/O 124480
Commit 106737
Concurrency 60048
System I/O 17271
Configuration 10104
Network 10050
Application 3794
Other 3128
STAT_NAME SECONDS
DB time 15822.0971
sql execute elapsed time 13732.1841
DB CPU 11336.9654
PL/SQL execution elapsed time 1171.44213
background elapsed time 808.668192
parse time elapsed 782.996948
hard parse elapsed time 464.313661
failed parse elapsed time 174.245089
connection management call elapsed time 134.020711
PL/SQL compilation elapsed time 103.442958
background cpu time 46.878018
sequence load elapsed time 15.442131
hard parse (sharing criteria) elapsed time 3.196418
hard parse (bind mismatch) elapsed time .280402
Java execution elapsed time .004433

834681 wrote:
Basic queries, say 700-1500 rows, which have taken 10 seconds take 30-300 seconds.
It's a quad processor DL380G3, however, the CPUs are pegged at 80-100% most all of the time.
I increased the SGA size, doubled it from our previous level of 700M. And increased the PGA Agg target to 50M.
STAT_NAME                                                           SECONDS
DB time                                                          15822.0971
sql execute elapsed time                                         13732.1841
DB CPU                                                           11336.9654
PL/SQL execution elapsed time                                    1171.44213
background elapsed time                                          808.668192
parse time elapsed                                               782.996948
hard parse elapsed time                                          464.313661
failed parse elapsed time                                        174.245089
connection management call elapsed time                          134.020711
PL/SQL compilation elapsed time                                  103.442958
background cpu time                                               46.878018
sequence load elapsed time                                        15.442131
hard parse (sharing criteria) elapsed time                         3.196418
hard parse (bind mismatch) elapsed time                             .280402
Java execution elapsed time                                         .004433
Assuming this is a standard 1 hour snapshot, you've got 14,400 CPU seconds available, and the DB CPU is taking 11,337 of those - so your 80% - 100% of CPU report is not surprising.
Since you've got a quad-core CPU we might guess that the machine has several GB of RAM - so it's a little surprising that your SGA was only 700MB, and the pga_aggregate_target only 50MB.
What is the total memory on the machine, how many users of this database, and does the machine have to support other applications or databases.
You haven't given us much go go on, but my first guess would be either that execution plans have changed to something is much more CPU intensive (e.g. use of wrong index in wrong join order); or you always had some very bad plans which have gradually got worse over time as the data size increased, but you were protected to some extent by the O/S memory outside the Oracle database.
I would like to see the Load Profile section and Top N timed event section of your AWR. I think you'll benefit from looking at the "SQL ordered by CPU" because that will tell you which statements are worth reviewing first, and I'll probably suggest looking at some other bits once you've posted the first two.
There are other problems hinted at by the time usage report - and your decision to increase the size of the SGA was probably appropriate, although we may find it could be much bigger still. (The timings on parsing suggest a shared pool problem, but the size of that problem might drop dramatically once we eliminate the source of the CPU load.)
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful.

Similar Messages

  • Performance Testing Oracle Retail Demand Forecasting application

    Hi All
    Has anyone performance tested Oracle Retail Demand Forecasting application ( RDF ) using LoadRunner? If yes can you please give me the protocol used and steps followed for scripting ?
    Thanks

    Hussein Sawwan wrote:
    What is your application release?Our Application Release is 12.1.3
    How do you get the error?The error occurs during playback in which I am getting a "You are trying to access a page that is no longer active" error. In addition, it states "- The referring page may have come from a previous session. Please select Home to proceed."
    Can you post an example of "most of the correlation that is being referenced throughout the internet seemed to contain NCA functions"?
    This was the link I was referring to http://martinspier.co.uk/how-to-script-oracle-11i-apps-on-loadrunner. I don't have the current knowledge in the differences between 11i at the intricate level but it seemed like when I accessed our 11i environment, the login portion is also http/https protocol. From what I noticed though that some of the oracle forms (i.e. payments module) have been converted to Webforms. So I was thinking from a login testing standpoint, the use of this tutorial would still be applicable. However, I just checked the Test Starter Kit Information Center (Note 239746.1) that Steven Chan provided and have downloaded their sample login script for 12.0.4. It seemed that they used the same multi NCA, WEB protocol but login information captured seemed to be capturing http requests only.
    Thanks in advance Hussein and for anyone else who can chime in on this task. Any information would be greatly appreciated as I understand am new to not only Loadrunner but Oracle Financial Applications as well.
    Regards,
    Nikolai

  • How to improve performance of Oracle Forms Server ?

    Recently we converted our Application which was Developed in Forms 5.0 and Reports 3.0 into Forms6i to host that on to Web. We also loaded ORACLE 9iAS (on Windows NT 4 with service pack 3) from "Enterprise Edition" option by selecting Oracle Database Cache, Forms Server and Reports Server, HTTP Server(on port 80),Oracle Web Cache. Everything loaded succesfully including Caches.
    Forms server is working perfectly and we were able to run our Application in Browser, but performance is the issue. We thought the caches will improve the performance, but it seems they are not at all working. When we run a report or form the Database cache is not giving any statistics whether a particular Query is a Hit or Miss though the cache is running. We got a doubt and searched in FAQ's and we found the following questions.
    Oracle9iAS Web Cache Frequently Asked
    Questions February 2001
    Does Oracle9iAS Web Cache work with applications that use Oracle9iAS Forms?
    Not in the 1.x release of Oracle9iAS. Integration between Oracle9iAS Web Cache and Oracle9iAS Forms will be addressed at a future date.
    Oracle9iAS Database Cache
    Does the Cache work with Oracle Forms and Portal in Oracle9i AS?
    Since Oracle Forms and Portal utilize read/write PL/SQL stored procedures, these components cannot take advantage of the Cache. This support is being considered for a future version.
    After coming to know that Caches doesnot boost the performance of Oracle Forms and reports. We have the following queries.
    1) Clarify whether the above are True.
    2) Apart from DB and Web Cache is there any other way where in we can improve the performance of Oracle Forms and Reports in Forms Server including the start up time.
    3) What is the ideal configuration required for each tier (iAS Server,Database Server and Client) to host Forms on to Web considering our application as Medium scale.
    (Presently our configuration are,
    Application Server Configuration : Windows NT 4 with service pack 3,256 MB RAM,1 GB Virtual memory and 4GB free space and almost the same configuration is being used for
    Database Configuration.
    Client Configuration : Windows 98 with 64MB RAM).
    4) Is there any way to track the performance and know the problem areas like TRACE.
    Gopi Kumar
    null

    A couple of questions for you:
    1) What version of IAS are you using?
    2) What's the version of Forms&Reports and
    3) What version of patch are you using if any
    for forms&Reports?
    4) What applications are you running on the
    machine where Forms&Reports is installed?
    (I mean non-Oracle applications?)
    The problem could be that, the base addresses
    of the DLL's in Forms&Reports could be having base address conflicts with some other application's DLL's.
    Forms and Reports needs to be fully rebased to achieve full performance on NT. Before release of Forms and Reports, Oracle rebases all DLLs. Rebasing assigns unique base addresses to all of the DLL's in use by an executable. A properly based DLL will load at its preferred base address, greatly improving the efficiency of memory utilization and the runtime performance of the executable.
    Multiple utilities are available on NT to verify proper rebasing of DLLs. HandleEx v4.0 is one such freeware from Sysinternals and is available at www.sysinternals.com. Some others are "depends.exe" that's part of the MS Visual Studio or msinfo32.exe that comes with Office 2000 on NT.
    If after running any of these utilities you discover that the DLL's ar not properly rebased, you need to contact Oracle worldwide support.
    If you find that rebasing is not the problem, then please post your feedback again. Hope this helps.

  • Performance of Oracle forms application

    Hi,
    I would like to know about the performance of Oracle forms application over HTTP protocol. We may have citrix server and diskless nodes. Can you please let me know about the performance of the oracle forms application compared with html codes? Can you please send me some info about the performnance of the application? Do we need to have any software on the client side for this?
    Thanks
    regards,
    Vaidyanathan G

    Bruno, did you solve the performance problem? I'm experiencing the same lack of speed.

  • How to enhance Oracle Datapump Performance (AIX, Oracle 11.1.0.7.0)

    For some testing pupose we have to do import a 230GB dump file. This is very time consuming while import.
    1. How can I identify the MAX parallesim supported by Oracle 11.1.0.7.0 AIX.? Is it depend upon the no of processor on server.? How can i find that?
    2. Will it helpful if the expdp dump from source(production) will taken as compress=y .?
    3. Is it advisible to exclude the indexes while impdp import and will create it manually after import. Will it improve the performance and time can be saveed?
    (INCLUDE=TABLE_DATA)
    Regards,
    Sangram Keshari Dash

    Hi,
    we do a 100GB export and import both in around 15 minutes on AIX 5.3 and Oracle 10.2. We do the export parallel to 4 dump files. Oracle takes the tables in sequence as you give them to the export. We have in this dump 2 big tables, we put them first and then the rest. We see that there are 2 export running on the 2 big tables, and the rest is taken by the other 2. This gives a good balance for export. The import goes the same. We make full exports and imports, so including indexes (also some text indexes). This proces is not CPU bounded (there are 4 CPU), but mostly on I/O (we have a big SAN) or memory.
    The best is to give the most memory to Oracle, make the Caching of AIX OS to a minimum, but these are also the best practices to run a database on AIX.
    You have to make some test with the parameters of expdp to get the best result, or test export without indexes and with indexes. We also had to do it this way.
    Success
    Herald ten Dam
    Superconsult.nl

  • XQuery performance in Oracle 10gR2

    Hello
    I'm actually trying to measure the performances of XQuery FLOWR queries on Oracle 10gR2. For that, I've created a simple table with one integer field (ID) and one XMLType field. This XMLType field contains 10000 documents. The size of these documents varies between 2Kb and 14Kb approximately.
    A simple XQuery like below (without "WHERE" or complexe "RETURN" clause) runs quite well and I get the query results in a resonable time.
    SELECT xtab.COLUMN_VALUE
    FROM contractXDraft, XMLTABLE(
         'declare namespace ctxCD="contractX/contractXDraft";for $x in /ctxCD:contractXDraft
         return
         <response>
              Hello
         </response>'
    PASSING OBJECT_VALUE) xtab;
    On the other hand, if a add a "WHERE" clause to filter the results, the query execute time become very long (~hours...) and I must always abort the query execution by killing the "oracle" process because the page file memory used by this process increase linearly ! Here below is represented a such query :
    SELECT xtab.COLUMN_VALUE
    FROM contractXDraft, XMLTABLE(
         'declare namespace ctxCD="contractX/contractXDraft";for $x in /ctxCD:contractXDraft
    where $x/ctxCD:ReferenceDetails/ctxCD:ContractHeaderDetails/ctxCD:ContractNumber = "19163-contract657-2.xml"
         return
         <response>
              Hello
         </response>'
    PASSING OBJECT_VALUE) xtab;
    These above queries are executed on a server dedicated for these tests. This server is a Pentium IV 3.2 GHz with 1GB of RAM and Windows 2003 Server Enterprise SP1 is installed on it.
    I want to know if someone can give me an explanation about this huge difference of execution time between the two queries above ?? Is it a syntax mistake ? Is it an hardware problem ?
    Thank you very much for your help !!
    Regards
    MD

    MD,
    Sounds like your XMLType field is using unstructured storage (i.e., LOB-based) instead of the structured storage (i.e., O-R based). You can check out the XML DB online doc (http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb01int.htm#BABECDCF) to learn more about the differences between the two. Essentially, without any associated indexes, using XQuery over unstructured storage will result in a full table scan, which can be very slow when there are large number of rows.
    Regards,
    Geoff

  • Poor performance with Oracle Spatial when spatial query invoked remotely

    Is anyone aware of any problems with Oracle Spatial (10.2.0.4 with patches 6989483 and 7003151 on Red Hat Linux 4) which might explain why a spatial query (SDO_WITHIN_DISTANCE) would perform 20 times worse when it was invoked remotely from another computer (using SQLplus) vs. invoking the very same query from the database server itself (also using SQLplus)?
    Does Oracle Spatial have any known problems with servers which use SAN disk storage? That is the primary difference between a server in which I see this poor performance and another server where the performance is fine.
    Thank you in advance for any thoughts you might share.

    OK, that's clearer.
    Are you sure it is the SQL inside the procedure that is causing the problem? To check, try extracting the SQL from inside the procedure and run it in SQLPLUS with
    set autotrace on
    set timing on
    SELECT ....If the plans and performance are the same then it may be something inside the procedure itself.
    Have you profiled the procedure? Here is an example of how to do it:
    Prompt Firstly, create PL/SQL profiler table
    @$ORACLE_HOME/rdbms/admin/proftab.sql
    Prompt Secondly, use the profiler to gather stats on execution characteristics
    DECLARE
      l_run_num PLS_INTEGER := 1;
      l_max_num PLS_INTEGER := 1;
      v_geom    mdsys.sdo_geometry := mdsys.sdo_geometry(2002,null,null,sdo_elem_info_array(1,2,1),sdo_ordinate_array(0,0,45,45,90,0,135,45,180,0,180,-45,45,-45,0,0));
    BEGIN
      dbms_output.put_line('Start Profiler Result = ' || DBMS_PROFILER.START_PROFILER(run_comment => 'PARALLEL PROFILE'));  -- The comment name can be anything: here it is related to the Parallel procedure I am testing.
      v_geom := Parallel(v_geom,10,0.05,1);  -- Put your procedure call here
      dbms_output.put_line('Stop Profiler Result = ' || DBMS_PROFILER.STOP_PROFILER );
    END;
    SHOW ERRORS
    Prompt Finally, report activity
    COLUMN runid FORMAT 99999
    COLUMN run_comment FORMAT A40
    SELECT runid || ',' || run_date || ',' || run_comment || ',' || run_total_time
      FROM plsql_profiler_runs
      ORDER BY runid;
    COLUMN runid       FORMAT 99999
    COLUMN unit_number FORMAT 99999
    COLUMN unit_type   FORMAT A20
    COLUMN unit_owner  FORMAT A20
    COLUMN text        FORMAT A100
    compute sum label 'Total_Time' of total_time on runid
    break on runid skip 1
    set linesize 200
    SELECT u.runid || ',' ||
           u.unit_name,
           d.line#,
           d.total_occur,
           d.total_time,
           text
    FROM   plsql_profiler_units u
           JOIN plsql_profiler_data d ON u.runid = d.runid
                                         AND
                                         u.unit_number = d.unit_number
           JOIN all_source als ON ( als.owner = 'CODESYS'
                                   AND als.type = u.unit_type
                                   AND als.name = u.unit_name
                                AND als.line = d.line# )
    WHERE  u.runid = (SELECT max(runid) FROM plsql_profiler_runs)
    ORDER BY d.total_time desc;Run the profiler in both environments and see if you can see where the slowdown exists.
    regards
    Simon

  • Slow performance with oracle http server connecting weblogic

    I have a performance issue while using Oracle HTTP server as a proxy with weblogic server. It takes 10-15 seconds to pass the requests.
    I also received the error related to SSL in my error logs even though i havent configured the SSL.
    please find the error received in the OHS error logs
    nzos handshake error, nzos_Handshake returned 28862
    NZ Library Error: SSL IO error [Hint: the client stop the connection unexpectedly]
    And please find a request information from the access log files.
    Fri May 28 09:24:48 2010 <5944127503148828> getPooledConn: No more connections in the pool for Host[114.57.162.39] Port[6499] SecurePort[6499]
    Fri May 28 09:24:48 2010 <5944127503148828> general list: trying connect to '114.57.162.39'/6499/6499 at line 3082 for '/fed/user/authnoam?refid=id-ixGFItkxw4Nt4l3wlz4W9sWR-ao-'
    Fri May 28 09:25:00 2010 <5944127503148828> SSL is not configured for this connection
    Fri May 28 09:25:00 2010 <5944127503148828> Local Port of the socket is 4472
    it is visible that the while it is doing "general list trying to connect to" it takes a long time
    Any pointers are highly appreciated.

    Shannon,
    The OHS + Weblogic installation, just means you will have an admin server, with Enterprise Manager that can manage your OHS instances. That being said:
    1 - You don't have to extend any domain, since the only thing OHS will need is an Admin Server with Enterprise Manager.
    2 - I (myself, I don't speak for Oracle here) have a personal preference of having stand alone OHS. If you don't know how to work with httpd.conf and mod_wl.conf, I would suggest installing a separate domain only for it, that way you can keep the weblogic turned off, and turn it on only when you need to edit any configuration.
    Thanks

  • OAF page : How to get its query performance from Oracle Apps Screen?

    Hi Team,
    How to get the query performance of an OAF page using Oracle Apps Screen ??
    regards
    sridhar

    Go through this link
    Any tools to validate performance of an OAF Page?
    However do let us know as these queries performance can be check through backend also
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Problems While Performing Switchover Oracle 11g

    Hi All,
    I am using Oracle 11.2.0.1.0 version.
    I have a Primary-Physical Standby setup(Test Environment). I am performing a switchover between them.
    I have followed the below steps:-
    ON Primary:-
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO STANDBY
    SQL> alter database commit to switchover to physical standby;
    Database altered.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 2054373376 bytes
    Fixed Size 2214856 bytes
    Variable Size 1174406200 bytes
    Database Buffers 872415232 bytes
    Redo Buffers 5337088 bytes
    Database mounted.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    On the other side I am trying to bring up the phyical standby database to primary:-
    First I checked the switchover_status on standby database.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    SWITCHOVER PENDING
    SQL> alter database commit to switchover to primary;
    alter database commit to switchover to primary
    ERROR at line 1:
    ORA-16139: media recovery required
    Now I am in a situation where I have converted my primary to physical standby but physical standby-Primary is not happening..
    Please advice me on this. I have checked the archive log status for both the boxes before switchover and they were in sync....
    Your suggestions are required here.
    Regards,
    Arijit

    Hi ,
    With above approch there could be minor transaction loss & Need to rebuild stby , but you can make standby DB up as primary.
    With current senario , check if suggested sequence is generated at primary & try to register it on stby
    Also check if FAL_* is getting resolved
    It looks sync issue you should have rebooted both DB's before starting switchover as a best practise along with 2/3 switches
    Thanks,
    Ajay More
    http://moreajays.blogspot.com

  • Poor performance using Oracle Text

    We are currently using wildcard queries and we have setup substring or prefix index which is recommended in Oracle's documentation in order to improve performance but we have not seen any improvements. Does anyone have any other recommendations?

    We are currently using wildcard queries and we have setup substring or prefix index which is recommended in Oracle's documentation in order to improve performance but we have not seen any improvements. Does anyone have any other recommendations?

  • Performance tuning oracle 10G on Windows 2003

    Hi,
    At present we have 8GB physical RAM on Production server while the parameters sga_max_size = 1 GB and pga_aggregate_target = 629 MB are defined.
    When I hit transaction ST02 I observed that values for swaps are showing in red color for program, screen, Export/import, generic key buffers etc. We cannot restart the SAP more than once in a week, and it increases the number of swaps.
    We have plan to increase the buffer size by twice for program, screen, Export/import, CUA, Nametab, generic key buffers etc. The addition of current value for all this buffers is defined up to 350MB.
    I want to know if I increase this value by twice is it cause any problem to system or I need to increase the size of sga_max_size and pga_aggregate_target also.
    Is sga_max_size and pga_aggregate_target parameters are related to program buffer or screen buffer or generic key buffers.
    Thanks & Regards,
    Rajesh

    Hi,
    check following SAP Notes
    Note 618868 - FAQ: Oracle performance
    Note 830576 - Parameter recommendations for Oracle 10g
    Note 88416 - Zero administration memory management as of 4.0A/ Windows
    Note 546361 - FAQ: Storage problems on NT/Windows 2000
    Note 103747 - Performance: Parameter recommendations as of Release 4.0
    regards,
    kaushal

  • Performance Tunning - Oracle Reports 6i

    Hi Gurus,
    I have an Oracle Apps Reports 6i with a formula column having so much of conditions making the reports to take long time to get completed. Its taking 20 mins to complete. Please your help on this.
    Thanks,
    Genoo

    Hi
    what is your database version?
    what is your table size ?
    How many RAM do you have in this server?
    However, in Reports, the default optimizer mode is ALL_ROWS, this optimizer mode let you have the best system through put.
    In SQL*Plus, you have to set the optimizer mode to ALL_ROWS to tune the report SQL performance:
    Issue
    ALTER SESSION SET OPTIMIZER_MODE=ALL_ROWS;
    or add an optimizer hint in the SQL statement
    Select /*+ ALL_ROWS */
    from ....

  • Low Performance with Oracle Client 11g R2

    Hi Experts
    I installed Crystal Report Server 2008 on Windows Server 2003. We use Oracle Client 11R2 to create an ODBC to link with an Oracle Database which installed on another Redhat Linux Server.
    I found the performance of generating report by Crystal is really bad, it's a really simple SQL query.
    Before the Oracle, we used the SQL Server 2005 as the database, the time to open the same report only took 1-3 seconds, but on Oracle it took more than 20 seconds.
    Please help~~ thank you.

    Hi Don
    Thank you for your reply, I built a report by myself, it's really fast, so I think it's not the problem of ODBC.
    I double checked the 'Query SQL' of the old report, it only took 3 tables and generate a SQL like hereafter,
    then I checked this SQL on "SQL Developer", it's working fine, very fast.
    I don't know why Crystal Report Server take so long time to generate this report.
    ODBC
    SELECT
    a.CR01_NATURAL_PER_FLAG taxpayer_category,
    CASE WHEN a.CR01_NATURAL_PER_FLAG='Y' THEN to_char(to_number(a.cr04_natural_per_id)) else to_char(to_number(a.cr10_legal_per_id)) END per_id,
    to_char( to_number(a.cr01_internal_id)) cr01_internal_id,
    nvl(a.CR01_TIN_ID,'') cr01_tin_id,
    a.CSTD_TAXPAYER_STATUS,
    a.CSTD_SECURITY_LEVEL_ID,
    a.CSTD_CERTIFICATE_STATUS,
    a.CR01_MISS_INFO,
    a.CR01_ACT_START_DATE,
    B.CSTD_TAXPAYER_TYPE,
    d.CS04_ID,
    f.CSTD_ACTIVITY_CODE
    FROM tr01_taxpayer A,TR14_TAXPAYER_ACTIVE_TYPE B, TR16_TAXPAYER_OFFICE d,TR06_BRANCH_BUSINESS_ACTIVITY f
    WHERE a.cr01_internal_id = d.cr01_internal_id
    AND nvl(d.cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
    and nvl(d.cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>= sysdate
    AND A.cr01_internal_id = B.cr01_internal_id
    and nvl(B.cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
    and nvl(B.cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
    and a.cr01_internal_id = f.cr01_internal_id
    and f.CR03_BRANCH_CODE = '000'
    and nvl(f.cr06_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
    and nvl(f.cr06_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
    and f.CR06_PRIMARY_FLAG='Y'
    EXTERNAL JOIN TAXPAYER.TAXPAYER_CATEGORY={?ODBC: NAME.TAXPAYER_CATEGORY} AND TAXPAYER.PER_ID={?ODBC: NAME.PER_ID} AND TAXPAYER.CR01_INTERNAL_ID={?ODBC: INTERNALID.CR01_INTERNAL_ID}
    ODBC
    select 'Y' taxpayer_category,to_char(to_number(a.cr04_natural_per_id)) per_id,
    cr11_first_name||' '||cr11_second_name||' '||cr11_third_name||' '||cr11_last_name NAME
    FROM
    tr01_taxpayer A, TR11_NATURAL_PER_NAME B
    WHERE cr01_natural_per_flag = 'Y'
    and A.cr04_natural_per_id=B.cr04_natural_per_id
    and nvl(b.cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
    and nvl(b.cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
    union
    select 'N' taxpayer_category,to_char(to_number(a.cr10_legal_per_id)) per_id,
    cr13_name NAME
    FROM
    tr01_taxpayer A, TR13_LEGAL_PER_NAME C
    WHERE cr01_natural_per_flag = 'N' and A.cr10_legal_per_id = C.cr10_legal_per_id
    and nvl(c.cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=sysdate
    and nvl(c.cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=sysdate
    EXTERNAL JOIN NAME.TAXPAYER_CATEGORY={?ODBC: TAXPAYER.TAXPAYER_CATEGORY} AND NAME.PER_ID={?ODBC: TAXPAYER.PER_ID}
    ODBC
    select distinct x.cr01_internal_id from
        (select to_char(to_number(cr01_internal_id)) cr01_internal_id from TR16_TAXPAYER_OFFICE where
        (nvl(cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and nvl(cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr16_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr16_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr16_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr16_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        AND to_char(cs04_id) = case when '{?p_taxoffice}' is null then to_char(cs04_id) else '{?p_taxoffice}' END
        ) x,
        (select to_char(to_number(cr01_internal_id)) cr01_internal_id from TR14_TAXPAYER_ACTIVE_TYPE where
        (nvl(cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and nvl(cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr14_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr14_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or(
        nvl(cr14_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr14_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and cstd_taxpayer_type = case when '{?p_taxpayerType}' is null THEN cstd_taxpayer_type else '{?p_taxpayerType}' END
        ) y,
        (select cr01_internal_id from(
        select to_char(to_number(cr01_internal_id)) cr01_internal_id,'Y' taxpayer_category
        FROM
         tr01_taxpayer A, TR11_NATURAL_PER_NAME B
        WHERE cr01_natural_per_flag = 'Y'
        and A.cr04_natural_per_id=B.cr04_natural_per_id
        and
        (nvl(cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and nvl(cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr11_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr11_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or(
        nvl(cr11_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr11_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and cr11_first_name||' '||cr11_second_name||' '||cr11_third_name||' '||cr11_last_name like
        case when '{?p_taxpayerName}' is null then cr11_first_name||' '||cr11_second_name||' '||cr11_third_name||' '||cr11_last_name  else '%{?p_taxpayerName}%' end
        union
        select to_char(to_number(cr01_internal_id)) cr01_internal_id,'N' taxpayer_category
        FROM
         tr01_taxpayer d, TR13_LEGAL_PER_NAME C
        WHERE cr01_natural_per_flag = 'N' and d.cr10_legal_per_id = C.cr10_legal_per_id
        and
        (nvl(cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and nvl(cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr13_start_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or
        (nvl(cr13_end_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        or(
        nvl(cr13_start_date,to_date('1950-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))<=to_date('2011-05-01 00:00:00','yyyy-mm-dd HH24:mi:ss') 
        and nvl(cr13_end_date,to_date('3000-01-01 00:00:00','yyyy-mm-dd HH24:mi:ss'))>=to_date('2011-05-31 00:00:00','yyyy-mm-dd HH24:mi:ss')
        and cr13_name like
        case when '{?p_taxpayerName}' is null then cr13_name else '%{?p_taxpayerName}%' end
        where taxpayer_category =
        case when '{?p_taxpayerCategory}' is null then taxpayer_category else '{?p_taxpayerCategory}' END
        ) z
    where x.cr01_internal_id=y.cr01_internal_id
    and x.cr01_internal_id=z.cr01_internal_id      
    EXTERNAL JOIN INTERNALID.CR01_INTERNAL_ID={?ODBC: TAXPAYER.CR01_INTERNAL_ID}
    Edited by: WangGang0411 on Jul 3, 2011 12:27 PM

  • Very poor performance on oracle linux 6.3 on virtual-box 4.2

    Dear all,
    I installed an oracle linux 6.3 on vbox VM (2 gb RAM, 20 gb disk): the installation took a long time and after, I faced poor performance and big latency.
    One bug reported:
    WARNING: at kernel/time/clockevents.c:47 clockevent_delta2ns+0x79/0x90()
    Hardware name: VirtualBox
    Modules linked in:
    Pid: 1, comm: swapper Not tainted 2.6.39-200.24.1.el6uek.x86_64 #1
    Call Trace:
    [<ffffffff8106ad1f>] warn_slowpath_common+0x7f/0xc0
    [<ffffffff8106ad7a>] warn_slowpath_null+0x1a/0x20
    [<ffffffff8109d649>] clockevent_delta2ns+0x79/0x90
    [<ffffffff819b8427>] calibrate_APIC_clock+0xeb/0x2f6
    [<ffffffff819b874c>] setup_boot_APIC_clock+0x59/0x7e
    [<ffffffff819b8336>] APIC_init_uniprocessor+0xfc/0x102
    [<ffffffff819b60fc>] smp_sanity_check+0x69/0x145
    [<ffffffff819b62fd>] native_smp_prepare_cpus+0x125/0x215
    [<ffffffff819a776b>] kernel_init+0x1c9/0x2a8
    [<ffffffff8150edc4>] kernel_thread_helper+0x4/0x10
    [<ffffffff819a75a2>] ? parse_early_options+0x20/0x20
    [<ffffffff8150edc0>] ? gs_change+0x13/0x13
    I upgraded memory to 4 gb RAM but it was on vain
    Please, any idea so far ?
    Best Regards

    I can confirm that there is no issue with Virtualbox 4.2 and Oracle Linux 6.3. I use it all the time. Performance should be near native and some aspects like disk I/O may even be faster. Your problem could be insufficient hardware, like missing x86_64 or hardware virtualization support. However, like rukbat wrote, this is not the right forum to discuss Virtualbox and your computer hardware here. I suggest to start with the Virtualbox documentation to verify your hardware is sufficient.
    https://www.virtualbox.org/manual/ch10.html#hwvirt
    https://www.virtualbox.org/manual/ch14.html

Maybe you are looking for