Best performance with forms 4.5 than 6i ?!!!

Hi,
Since i'd upgrade my app with forms 6i, i find that when i make a query, this is more slow with 6i than 4.5, with the same db(8i).
Does anyone else had the same problem?
What could i do to resolve the problem?
Thanks.
null

See my earlier posting 'Speeding load time of WEB Forms50'. I
have had no takers yet on a solution to this. There may be some
hints for you there.
Good luck on this one - Forms over the WEB seems to be very
processor and memory hungry. We would like to support about 200
users on a VERY simple search screen, but we need about 2Gbyte
of physical memory on the server to get any amount of useful
speed out of it. Each Forms session takes up about 10Mbyte on
the server - as soon as this starts swapping out to disk then
your run-time performance goes right downhill. The earlier-
mentioned posting gives some hints on speeding up the startup
time, and it does work.
Regards,
Jason Judge
Natasha Murillo (guest) wrote:
: How I can Get better performance with Forms 4.5 and 6.0 on the
: WEB???
: It is very slow and my customers are not very happy with
that...
: Please help me...
null

Similar Messages

  • How get the best performances with a McBook Pro 2,3GHz and 16 Go of Ram ?

    Hi,
    I've recently bought a MacBook Pro and I want to optimize my After Effects preferences to enjoy the best performances.
    There's the specifications from Apple:
    2.3GHz quad-core Intel Core i7
    Turbo Boost up to 3.5GHz
    16GB 1600MHz memory
    512GB PCIe-based flash storage
    Intel Iris Pro Graphics
    NVIDIA GeForce GT 750M
    with 2GB GDDR5 memory
    Thanks in advance if one of you could help me to do this
    Maurice

    Optimizing for performance: Adobe Premiere Pro and After Effects | After Effects region of interest

  • Worse performance with Radeon HD 6750m than Intel 3000?

    Lately when i play games (specifically World of Warcraft and Skyrim) and watch movie i get worse FPS and performance on my dedicated GPU than intel 3000. i called apple care and they had me reset the VRAM(?) and something else, i forget. to get rid of the problem i need to restart my computer, but it will resurface after a couple hours.

    Lately when i play games (specifically World of Warcraft and Skyrim) and watch movie i get worse FPS and performance on my dedicated GPU than intel 3000. i called apple care and they had me reset the VRAM(?) and something else, i forget. to get rid of the problem i need to restart my computer, but it will resurface after a couple hours.

  • Configuration for best performance with concurrent access

    Could someone tell me the flags I need to specify to achieve the best BDB performance in a multithreaded (concurrent) environment?
    I am using Hash type and have simple access protocol. Just key/value get/put and delete. I don't need transactions or recovery
    I tried DB_CREATE | DB_INIT_MPOOL | DB_INIT_CDB | DB_THREAD env. open flags and DB_CREATE | DB_THREAD db open flags, but I can only achieve 10000 requests per second.
    I can get up to 40000 RPS with a single thread and just DB_CREATE | DB_INIT_MPOOL for environment and DB_CREATE for database. That should be sufficient, but I need that performance in multithreaded environment.
    I tried EnvOpenFlags = DB_CREATE | DB_INIT_MPOOL | DB_THREAD and DbOpenFlags = DB_CREATE | DB_THREAD, but I am getting the following errors on Put:
    page 29778: illegal page type or format
    PANIC: fatal region error detected; run recovery
    PANIC: Invalid argument
    If I add DB_INIT_LOCK to the EnvOpenFlags, I get deadlocks. I am not sure why I even getting them based on my access schema.
    Thanks,
    Igor

    I am running test on 64 bit Windows 2003.
    Data is accessed randomly, but in the test, I do only inserts. Data is just a list of key/value pairs. Key is int and Value is byte array or size 50 (but it could vary up to about 50000).
    In production it could be around 30 database files (one database per file), but for the test I use only one file.
    I don't have config.log file. I built only db_dll and db_stat projects in VSN2005 and I use it form C# code through managed C++ wrapper.
    Here are the stats for the DB_CREATE | DB_INIT_MPOOL | DB_INIT_CDB | DB_THREAD set of flags:
    db_stat -e =>
    Tue Feb 06 09:44:37 2007 Local time
    0x120897 Magic number
    0 Panic value
    4.5.20 Environment version
    Mon Feb 05 17:57:21 2007 Creation time
    0x440a8ca8 Environment ID
    1 Primary region allocation and reference count mutex [0/0 0% !Own]
    2 References
    Thread status blocks:
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    33 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    5 Number of lock modes
    1000 Maximum number of locks possible
    1000 Maximum number of lockers possible
    1000 Maximum number of lock objects possible
    3 Number of current locks
    5 Maximum number of locks at any one time
    4 Number of current lockers
    6 Maximum number of lockers at any one time
    2 Number of current lock objects
    4 Maximum number of lock objects at any one time
    6813619 Total number of locks requested
    6813616 Total number of locks released
    0 Total number of locks upgraded
    12 Total number of locks downgraded
    3262547 Lock requests not available due to conflicts, for which we waited
    0 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    0 Lock timeout value
    0 Number of locks that have timed out
    0 Transaction timeout value
    0 Number of transactions that have timed out
    536KB The size of the lock region
    8090 The number of region locks that required waiting (0%)
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    5GB 50MB Total cache size
    1 Number of caches
    5GB 50MB Pool individual cache size
    0 Maximum memory-mapped file size
    0 Maximum open file descriptors
    0 Maximum sequential buffer writes
    0 Sleep after writing maximum sequential buffers
    0 Requested pages mapped into the process' address space
    17M Requested pages found in the cache (99%)
    25834 Requested pages not found in the cache
    22234 Pages created in the cache
    11856 Pages read into the cache
    88248 Pages written from the cache to the backing file
    0 Clean pages forced from the cache
    0 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    34063 Current total page count
    5424 Current clean page count
    28639 Current dirty page count
    786431 Number of hash buckets used for page location
    17M Total number of times hash chains searched for a page (17031608)
    1 The longest hash chain searched for a page
    16M Total number of hash chain entries checked for page (16971686)
    0 The number of hash bucket locks that required waiting (0%)
    0 The maximum number of times any hash bucket lock was waited for (0%)
    0 The number of region locks that required waiting (0%)
    0 The number of buffers frozen
    0 The number of buffers thawed
    0 The number of frozen buffers freed
    34100 The number of page allocations
    0 The number of hash buckets examined during allocations
    0 The maximum number of hash buckets examined for an allocation
    0 The number of pages examined during allocations
    0 The max number of pages examined for an allocation
    0 Threads waited on page I/O
    Pool File: data.bdb30
    8192 Page size
    0 Requested pages mapped into the process' address space
    17M Requested pages found in the cache (99%)
    25832 Requested pages not found in the cache
    22234 Pages created in the cache
    11854 Pages read into the cache
    88240 Pages written from the cache to the backing file
    Pool File: e:/BerkeleyDb\admin.bdb
    8192 Page size
    0 Requested pages mapped into the process' address space
    19 Requested pages found in the cache (90%)
    2 Requested pages not found in the cache
    0 Pages created in the cache
    2 Pages read into the cache
    8 Pages written from the cache to the backing file
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    96MB 88KB Mutex region size
    0 The number of region locks that required waiting (0%)
    4 Mutex alignment
    100 Mutex test-and-set spins
    1574134 Mutex total count
    1239 Mutex free count
    1572895 Mutex in-use count
    1572897 Mutex maximum in-use count
    Mutex counts
    1239 Unallocated
    1 db handle
    1 env dblist
    1 env region
    1 lock region
    5 logical lock
    2 mpoolfile handle
    1 mpool filehandle
    17 mpool file bucket
    1 mpool handle
    786431 mpool hash bucket
    786431 mpool buffer I/O
    1 mpool region
    1 unknown mutex type
    1 twister
    db_stat -d =>
    Tue Feb 06 09:46:42 2007 Local time
    61561 Hash magic number
    8 Hash version number
    Little-endian Byte order
    Flags
    8192 Underlying database page size
    0 Specified fill factor
    6048411 Number of keys in the database
    6048411 Number of data items in the database
    27229 Number of hash buckets
    14M Number of bytes free on bucket pages (93% ff)
    0 Number of overflow pages
    0 Number of bytes free in overflow pages (0% ff)
    8438 Number of bucket overflow pages
    30M Number of bytes free in bucket overflow pages (57% ff)
    0 Number of duplicate pages
    0 Number of bytes free in duplicate pages (0% ff)
    1 Number of pages on the free list
    db_stat -m =>
    5GB 50MB Total cache size
    1 Number of caches
    5GB 50MB Pool individual cache size
    0 Maximum memory-mapped file size
    0 Maximum open file descriptors
    0 Maximum sequential buffer writes
    0 Sleep after writing maximum sequential buffers
    0 Requested pages mapped into the process' address space
    17M Requested pages found in the cache (99%)
    27219 Requested pages not found in the cache
    22444 Pages created in the cache
    13241 Pages read into the cache
    120831 Pages written from the cache to the backing file
    0 Clean pages forced from the cache
    0 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    35672 Current total page count
    35658 Current clean page count
    14 Current dirty page count
    786431 Number of hash buckets used for page location
    17M Total number of times hash chains searched for a page (17471571)
    1 The longest hash chain searched for a page
    17M Total number of hash chain entries checked for page (17408653)
    0 The number of hash bucket locks that required waiting (0%)
    0 The maximum number of times any hash bucket lock was waited for (0%)
    0 The number of region locks that required waiting (0%)
    0 The number of buffers frozen
    0 The number of buffers thawed
    0 The number of frozen buffers freed
    35695 The number of page allocations
    0 The number of hash buckets examined during allocations
    0 The maximum number of hash buckets examined for an allocation
    0 The number of pages examined during allocations
    0 The max number of pages examined for an allocation
    0 Threads waited on page I/O
    Pool File: data.bdb30
    8192 Page size
    0 Requested pages mapped into the process' address space
    17M Requested pages found in the cache (99%)
    27217 Requested pages not found in the cache
    22444 Pages created in the cache
    13239 Pages read into the cache
    120821 Pages written from the cache to the backing file
    Pool File: e:/BerkeleyDb\admin.bdb
    8192 Page size
    0 Requested pages mapped into the process' address space
    25 Requested pages found in the cache (92%)
    2 Requested pages not found in the cache
    0 Pages created in the cache
    2 Pages read into the cache
    10 Pages written from the cache to the backing file
    db_stat -CA =>
    Default locking region information:
    39 Last allocated locker ID
    0x7fffffff Current maximum unused locker ID
    5 Number of lock modes
    1000 Maximum number of locks possible
    1000 Maximum number of lockers possible
    1000 Maximum number of lock objects possible
    0 Number of current locks
    5 Maximum number of locks at any one time
    0 Number of current lockers
    6 Maximum number of lockers at any one time
    0 Number of current lock objects
    4 Maximum number of lock objects at any one time
    6975306 Total number of locks requested
    6975306 Total number of locks released
    0 Total number of locks upgraded
    15 Total number of locks downgraded
    3423839 Lock requests not available due to conflicts, for which we waited
    0 Lock requests not available due to conflicts, for which we did not wait
    0 Number of deadlocks
    0 Lock timeout value
    0 Number of locks that have timed out
    0 Transaction timeout value
    0 Number of transactions that have timed out
    536KB The size of the lock region
    8274 The number of region locks that required waiting (0%)
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock REGINFO information:
    Lock Region type
    4 Region ID
    e:\BerkeleyDB\__db.004 Region name
    0x90a0000 Original region address
    0x90a0000 Region address
    0x9125f00 Region primary address
    0 Region maximum allocation
    0 Region allocated
    REGION_JOIN_OK Region flags
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock region parameters:
    1572884 Lock region region mutex [8274/17M 0% 1552/2884]
    1031 locker table size
    1031 object table size
    532064 obj_off
    515560 locker_off
    1 need_dd
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Lock conflict matrix:
    0 0 0 0 0
    0 0 1 0 0
    0 1 1 1 1
    0 0 0 0 0
    0 0 1 0 1
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Locks grouped by lockers:
    Locker Mode Count Status ----------------- Object ---------------
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Locks grouped by object:
    Locker Mode Count Status ----------------- Object ---------------

  • Tabbing and Data Entry Performance With Forms

    Hello,
    I am using Adobe Reader 11.0.2 on Windows XP. I've found that there is a lag between the time I hit the tab key to move between form fields and when my cursor actually moves between the form fields. I've also found that there is a lag between the time I type information into a form field and when the information actually appears in the form field. This is especially true with numbers. There have been times when I type numbers and only the first few numbers appear. I waited 30 seconds for the information to appear and it didn't, but as soon as I hit the right arrow on my keyboard, the numbers appear with my cursor at the end.
    I've tested the PDF in other readers to determine if it was the file, but I have found that other readers do not have this issue.
    Anyone have any thoughts on this?
    Thanks,
    Will

    Hi Sally,
    Yes you can define it at infoprovider level as well in planning application,If  you are  using IP then go infoprovider tab in RSPLAN Tcode,there you will see CR tab in lower panel - where you can specify characteristic relatioship and how to derive.
    Similarly you can use in BPS as well.
    Can refer to the link below for more details for IP:-
    http://help.sap.com/saphelp_nw70/helpdata/en/43/1c3d0f31b70701e10000000a422035/content.htm
    For BPS:-
    http://help.sap.com/saphelp_sem320bw/helpdata/en/ea/39a64281c611d5b3e50050dadfb23f/content.htm

  • Server Performance with Form 6i server

    Hi,
    I am still on 6i. Recently I begin to move from the traditional client-server to the web and discovered that the 6i could not operate well in Windows XP on P4 machines. So I started to put in patch 10. It works fine.
    However, I could not find a solution to stop the end users from closing their browser while the 6i applet is still running. This is casuing a major problem to us becasue when ever a user does this, my server's processor indicator will shows that my processor is running at 100% and the memory (both virtual and physical) will increase unlimitedly until cilling and the entire server will jam and services will stop.
    Then when I tried to restart the services, the server will report that the port is being use and cannot start the service. Result of so, I will have to wait for 30-40 minutes and all my users are interrupted.
    I have even tried to tell the users to exit the application prior to closing the browsers, but some of them were the directors and they just being too buzy to follow the steps and would rather choose to close the browser and continue with their other routines.
    Can any one share some ideas to protect this? Thanks
    Thank you

    I shall try that, but jon, for your information, I cannot patch 15 becasue with patch 15, I will be facing the same problem with P4 on xp again.

  • Exchange 2010 CAS proxy to Exchange 2013 CAS: Use the following link to open this mailbox with the best performance:

    Hello,
    I've installed Exchange 2013 into Exchange 2010 infrastructure
    [ single Exchange 2010 server; single AD site; AD = 2003 ],
    and moved one mailbox [ Test user ] to Exchange 2013.
    When I login internally through 2013 OWA to access mailboxes on 2010, then proxy works fine.
    When I login internally through 2010 OWA to access mailboxes on 2013, then a message appears:
        Use the following link to open this mailbox with the best performance: with link to 2013 OWA...
    What is wrong ?
    I've checked and changed settings by:
    Get-OwaVirtualDirectory, Set-OwaVirtualDirectory
    [PS] C:\work>Get-OwaVirtualDirectory -Identity 'ex10\owa (Default Web Site)' | fl server,name, *auth*,*redir*,*url*
    Server                        : EX10
    Name                          : owa (Default Web Site)
    ClientAuthCleanupLevel        : High
    InternalAuthenticationMethods : {Basic, Fba, Ntlm, WindowsIntegrated}
    BasicAuthentication           : True
    WindowsAuthentication         : True
    DigestAuthentication          : False
    FormsAuthentication           : True
    LiveIdAuthentication          : False
    AdfsAuthentication            : False
    OAuthAuthentication           : False
    ExternalAuthenticationMethods : {Fba}
    RedirectToOptimalOWAServer    : True
    LegacyRedirectType            : Silent
    Url                           : {}
    SetPhotoURL                   :
    Exchange2003Url               :
    FailbackUrl                   :
    InternalUrl                   : https://ex10.contoso.com/owa
    ExternalUrl                   : https://ex10.contoso.com/owa
    [PS] C:\work>Get-OwaVirtualDirectory -Identity 'ex13\owa (Default Web Site)' | fl server,name, *auth*,*redir*,*url*
    Server                        : EX13
    Name                          : owa (Default Web Site)
    ClientAuthCleanupLevel        : High
    InternalAuthenticationMethods : {Basic, Ntlm, WindowsIntegrated}
    BasicAuthentication           : True
    WindowsAuthentication         : True
    DigestAuthentication          : False
    FormsAuthentication           : False
    LiveIdAuthentication          : False
    AdfsAuthentication            : False
    OAuthAuthentication           : False
    ExternalAuthenticationMethods : {Fba}
    RedirectToOptimalOWAServer    : True
    LegacyRedirectType            : Silent
    Url                           : {}
    SetPhotoURL                   :
    Exchange2003Url               :
    FailbackUrl                   :
    InternalUrl                   : https://ex13.contoso.com/owa
    ExternalUrl                   :
    best regards Janusz Such

    Hi Janusz Such,
    Based on my knowledge, CAS proxy can only from later version to previous version.
    Some like CAS2013 to CAS2010/2007, CAS2013 to CAS2013. 
    Thanks
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Mavis Huang
    TechNet Community Support

  • Help to rewirte query for best performance

    Hi All,
    can you kindly help me to rewirte the below mentioned query for best performance. this is taking more than 20 min in our production server.
    SELECT cp.name,mis.secondary_type U_NAME,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-161,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-154,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-154,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-147,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-147,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-140,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-140,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-133,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-133,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-126,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-126,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-119,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-119,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-112,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-112,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-105,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-105,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-98,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-98,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-91,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-91,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-84,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-84,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-77,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-77,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-70,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-70,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-63,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-63,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-56,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-56,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-49,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-49,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-42,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-42,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-35,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-35,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-28,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-28,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-21,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-21,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-14,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage,
    count(CASE WHEN (mis.start_time between To_DATE(to_char(next_day (sysdate-14,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-7,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))THEN mis.event_audit_id END) Usage
    FROM mis_event_audit mis,USER u,com_pros cp where
    mis.user_id=u.email_address and u.cp_id=cp.cp_id
    and (mis.start_time between To_DATE(to_char(next_day (sysdate-161,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy') and To_DATE(to_char(next_day (sysdate-7,'monday'),'MM/DD/YYYY'),'mm/dd/yyyy'))
    GROUP BY cp.name, mis.secondary_type;
    Thanks,
    krish

    Hi, Krish,
    Something like this will probably be faster, because it cuts out most of the function calls:
    WITH     got_cnt          AS
         SELECT    cp.name
         ,       mis.secondary_type          AS u_name
         ,       COUNT (mis.event_audit_id)     AS cnt
         ,       ( TRUNC (mis.start_time, 'IW')
                - TRUNC (SYSDATE,        'IW')
                ) / 7                    AS week_num
         FROM      mis_event_audit  mis
         JOIN       user_table        u     ON   mis.user_id  = u.email_address     -- USER is not a good table name
         JOIN       com_pros        cp     ON   u.cp_id       = cp.cp_id
         WHERE       mis.start_time   >= TRUNC (SYSDATE, 'IW') - 161
         AND       mis.start_time   <  TRUNC (SYSDATE, 'IW')
         GROUP BY  cp.name
         ,            mis.secondary_type
         ,       TRUNC (mis.start_time, 'IW')
    SELECT       name
    ,       secondary_type
    ,       SUM (CASE WHEN week_num = 22 THEN cnt END)     AS week_23
    ,       SUM (CASE WHEN week_num = 21 THEN cnt END)     AS week_22
    ,       SUM (CASE WHEN week_num = 20 THEN cnt END)     AS week_21
    ,       SUM (CASE WHEN week_num =  0  THEN cnt END)     AS week_1
    FROM       got_cnt
    GROUP BY  name
    ,            secondary_type
    ;TRUNC (d, 'IW')       is midnight on the last Monday before or equal to the DATE d. It does not depend on you NLS settings.
    Whenever you're tempted to write an exprssion as complicated as
    ,     COUNT ( CASE
                       WHEN ( mis.start_time BETWEEN TO_DATE ( TO_CHAR ( NEXT_DAY  ( SYSDATE - 161
                                                                       , 'monday'
                                                  , 'MM/DD/YYYY'
                                        , 'MM/DD/YYYY'
                              AND     TO_DATE ( TO_CHAR ( NEXT_DAY ( SYSDATE - 154
                                                                 ,'monday'
                                                , 'MM/DD/YYYY'
                                          , 'MM/DD/YYYY'
                  THEN mis.event_audit_id
               END
             )               AS usageseek alternate ways. Oracle provides several handy functions, especially for manipulating DATEs. In particular "TO_DATE (TO_CHAR ...)" is almost never needed; think very carefully before doing a round-trip conversion like that.
    Besides being more efficient, this will be easier to debug and maintain.
    If you're using Oracle 11.1 (or higher), then you can also use SELECT ... PIVOT in the main query, but I doubt that will be any faster, and it might not be any simpler.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Simplify the problem as much as possible. For example, instead of posting a problem that covers the last 23 weeks, pretend that you're only interested in the last 3 weeks. You'll get a solution that's easy to adapt to any number of weeks.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}
    For performance problems, there's another page of the forum FAQ {message:id=9360003}, but, before you start that process, let's get a cleaner query, without so many functions.
    Edited by: Frank Kulash on Oct 2, 2012 11:50 AM
    Changed week_num to be non-negative

  • Are my After Effects preferences set up for best performance?

    I'm just wondering if my current settings are going to give me the best performance with what I have. Would you please look over these and see if I should change anything? Thank you.
    I have a Windows 7 laptop. It has an Intel Core 2 Duo T6500 Mobile Processor @ 2.1 GHz and 3GB of RAM.
    Here are my important preferences:
    Previews
    Display
    Media & Disk Cache
    Memory & Multiprocessing
    I have a couple of specific questions pertaining to that last link. I'm confused what Minimum allocation per CPU does. And for my setup, would it be better to have longer RAM previews or Faster Rendering? Also, should Prevent DLL Address Space Fragmentation?
    Thank you so much for your help! I greatly appreciate it!!

    If it is of any importance, my Page File is set to 4500 MB and a max of 6000.

  • Should I do this with Java Code or Stored Procs ? (for best performance)

    Hi All,
    I need to decide where should I implement my business logic, in Java code or Stored procs.
    Here is the requirement :
    - One Order has 70 products (Order_Table )
    - Can be duplicate products, so I have to do summarize / grouping by product
    - For every product, I have to check, if it is entitled for a Bonus product, then I have to Insert one to Bonus_Table.
    - This is done when/after the transaction is SAVED (COMMIT)
    The question is, which one has better PERFORMANCE :
    (1) Create a rowsetIterator on the Order details (70 products) and call a stored procedure to do the logic for every single product (so that the Insert to Bonus_Table done in stored proc). means the stored proc will be called 70 times.
    OR
    (2) After the transaction is COMMITted, call the stored procs ONCE to do the logic for all the products at once.
    OR
    (3) I do all the logic with Java Code within ADF
    Given the requirement above, which approach is most efficient / best performance ?
    Thank you very much,
    xtanto

    Problem with this is that you ask 100 people and you probably get 100 different answers. ;o)
    Many would say that you push as much business logic into the database with your data; others might say you only put data in your database and your business logic is kept on the application server.
    In reality your would probably have a mix of both and your decision would probably be influenced by your own background ...
    Can't be more precise than that.
    Grant

  • How do I access "Firefox is NOT compatible with this application. For best performance, please use Internet Explorer 5.0 and above...." web sites; when I try to download any alternate browser, then a warning that alternate is "imcompatable with your opera

    How do I access websites that warn: "Firefox is NOT compatible with this application. For best performance, please use Internet Explorer 5.0 and above...."? When I try to download any alternate browser, all I get is another warning that the alternate is "not compatible with your operating system." Is Firefox preventing this? The site listed below is a job application site. I've had this same problem with other job application sites also.
    == URL of affected sites ==
    https://storefront.kenexa.com/lithia/cc/Home.ss

    There should be a User Agent Switcher menu item under Tools, which gives you the browser names you can impersonate.
    The menu item name changes to the browser UA you are presently using.
    There is also a User Agent Switcher button, you can add it using View -> Toolbars -> Customize, and dragging the button to your toolbar.
    See http://chrispederick.com/work/user-agent-switcher/features/ and http://chrispederick.com/work/user-agent-switcher/help/
    You can just start trying IE versions (or the versions it says on the site) until it lets you in.

  • Cannot perform rounding for invoices with a currency other than the documen

    Hi all,
    I need some one to help me
    I want to process the incoming payment.
    The AR Invoice is using USD
    In Incoming Payment i want to pay using SGD,
    I already set the BP in all currency
    I also set the Bank account in Bank transfer payment mean in all currency.
    But when i add the document i saw the message like this
    "Cannot perform rounding for invoices with a currency other than the document currency.  [Message 3524-31]"
    What should i do ?
    Thanks in advance
    Regards
    KK

    Hi gordon,
    Thanks for your respon.
    I still do not understand, what you mean.
    I test it in SBO DEMO Au which is the local currency is AUD and the system currency is also AUD.
    Is the any special setting for this issue?
    Or Do i miss the settings in SBO
    My version is 8.81 pl 9
    Thanks in advance

  • What version of osx would give an Imac 24'' 2.3 ghz intel core 2 Duo, with 4gb of DDR2 SDRAM, the best performance? To do illustration and design jobs.

    What version of osx would give an Imac 24'' 2.3 ghz intel core 2 Duo, with 4gb of DDR2 SDRAM, the best performance? To do illustration and design jobs.
    Would the more recents os versions increase the overall performance? Is it worth it?

    Hello!
    Snow Leopard is what i am currently using. But i guess it does need some clean up and maybe a clean install to see if it gets faster.
    I believe 4gb is the limit for this model, although i've seen some with 6gb…
    Thank you for the help

  • Performance with LinkedList in java

    Hello All,
    Please suggest me any solution to further improve the performance with List.
    The problem description is as follows:
    I have a huge number of objects, lets say 10,000 , and need to store the objects in such a collection so that if i want to store an object at some particular index i , I get the best performance.
    I suppose as I need indexed based access, using List makes the best sense as Lists are ordered.
    Using LinkedList over ArrayList gives the better performance in the aforementioned context.
    Is there are way I can further improve the performance of LinkedList while solving this particular problem
    OR
    Is there any other index based collection using that i get better performance than LinkedList?
    Thanks in advance

    The trouble with a LinkedList as implemented in the Java libraries is that if you want to insert at index 100, it has no option but to step through the first 100 links of the list to find the insert point. Likewise is you retrieve by index. The strength of the linked list approach is lost if you work by index and the List interface gives no other way to insert in the middle of the list. The natural interface for a linked list would include an extended Iterator with methods for insert and replace. Of course LinkedLists are fine when you insert first or last.
    My guess would be that if your habitual insertion point was half way or more through the list then ArrayList would serve you better especially if you leave ample room for growth. Moving array elements up is probably not much more expensive, per element, than walking the linked list. Maybe 150% or thereabouts.
    Much depends on how you retrieve, and how volatile the list is. Certainly if you are a read-mostly situation and cannot use an iterator then a LinkedList won't suit.

  • Compiling error ORA-00600 with Forms 6 and Database 10g

    Hi,
    I am using "Oracle Database 10g Enterprise Edition Release 10.1.0.4.0" and "Forms [32 Bit] Version 6.0.8.26.0 " with patch 17, when i compile a form that works with some tables in another database under dblink the error ORA-00600:internal error code, arguments:[16203],[],[],[],[],[],[],[] is displayed.
    If i word with reports or sqlplus no error is displayed.
    Before we installed 10g everything worked ok
    What is wrong with forms or do i need to configure something else?
    Regards
    Yuri V. López Manrique

    I searched for this error on Google and found the following blog:
    Is there a tool to troubleshoot ORA-00600 and ORA-07445 errors?
    February 27th, 2006 By Fahd Mirza
    ORA-00600 and ORA-07445 errors are the most esoteric errors in Oracle.
    There is a tool called “ORA-600/ORA-7445 Troubleshooter” available at Metalink. It asks for the first argument of ORA-600 error with an optional database version number.
    For example, to see the description of the error:
    ORA-00600: internal error code, arguments: [723], [25908], [25908], [memory leak]
    You enter 723 in the “ORA-600 First Argument” field. The first argument is a pointer to where in the code the error was caught and thus is the key information in identifying the problem.
    You can also embed (copy/paste) the “Call Stack Trace” there, and, when you click on the “Search Call Stack” button an advanced MetaLink search is performed to find documents containing relevant sections from the call stack.
    Call Stack extracts from the following files are supported:
    * Generic foreground and background server trace files located in background_dump_dest and user_dump_dest
    * OpenVMS NETV2 and BEQ log files located in ORA_ROOT:[NETWORK.LOG]
    * WINDOWS CORE.LOG files
    * GDB (debugger) backtrace call stacks (best endeavors)
    Of course you will need a login to Oracle's Metalink site.
    Hope that helps,
    c

Maybe you are looking for

  • After update Apple tv 3

    After the update of ATV 3 it is not possible too play more than one song of my libary the second play only for 2 seconds. ATV 3 see everything in the libary but don't play it.{movie or song}.

  • Cinelerra 1.2.1 progress

    Hello all, im able now to compile cinelerra without any errors but some warnings still remain. But befor you are looking foreward to using cinelerra 1.2.1 on archlinux, you should recognice, that there seems to be problems with glibc-NPTL or somethin

  • Moving music across 4 devices?

    Ok this situation gets a bit complicated so I'm gonna explain how everything is right now A few years ago I changed from a PC that was pretty much dead(I'll call it PC1) to another PC(I'll call it PC2), and very recently I changed to a Mac. I have an

  • Pallet in or out of the BOM

    In our project there is a huge discussion about the pallet. It is a stockable and valuable material. The question is that it should be put in the BOM (as a normal packaging material - it is not returnable pallet) or it should be managed outside the B

  • Web services with axis & servlets ????

    Hi ! Iwould like to know if it is possible to reach a tomcat servlet when we are running a service with axis integrated in tomcat : can we use the servetcontext and share it between tomcat & axis ???? TU a lot... PA