How to improve sql perfomance/access speed by altering session parameters

Dear friends
how to improve sql perfomance/access speed by altering the session parameters? without altering indexes & sql expression
regrads
Edited by: sak on Mar 14, 2011 2:10 PM
Edited by: sak on Mar 14, 2011 2:43 PM

One can try:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:3696883368520
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:5180609822543
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#sthref497
But make sure you understand the caveats you can run into!
It would be better to post the outcome of select * from v$version; first.
Also and execution plan would be nice to see.
See:
When your query takes too long ...
HOW TO: Post a SQL statement tuning request - template posting

Similar Messages

  • How to improve my mac pro speed

    how to improve my mac pro speed

    You don't have a Mac Pro, you have a MacBook Pro. There is no way to make it faster because you cannot replace the CPU with a faster one. You can add more RAM to help improve performance when you have a lot of concurrent applications running or use memory hungry applications. You can add a faster disk drive to improve the speed of I/O. You can sell it and buy a faster model.

  • How to tell if a user is issuing 'alter session statements'

    When I run 'alter session' from sqlplus in my schema, this does not get parsed and go to v$sql or show up in v$open_cursor. I have a user that is running queries from informatica. He says he is passing alter session statements through informatica, I want to see if they actually get there. The person is not real versed in oracle and I don't know informatica.
    i cant turn on trace cause he connects and disconnects and this would run immediately, I am not in a position to turn on system level tracing, add a trigger, or turn on auditing (not allowed).
    anyway to tell from a data dictionary view or something like that if these were issued by a given session? The queries run for a few minutes, so I have a bit before his session disconnects to query the data. I can't get him to change his code to stay connected. Is there a view that shows parameter changes for a given session?
    oracle: 10.2.0.5
    4 alter session commands are:
    Alter session set sort_area_size=999999999;
    Alter session set hash_area_size=999999999;
    Alter session set db_file_multiblock_read_count = 128;
    alter session enable parallel dml;
    Edited by: Guess2 on Jul 17, 2012 12:49 PM

    i cant turn on trace cause he connects and disconnects and this would run immediately, I am not in a position to turn on system level tracing, add a trigger, or turn on auditing (not allowed). If Informatica connects to Oracle via network, capturing TCP/IP traffic and mining in it may be your last resort.
    you can get session's PDML status from
    select pdml_status from v$session;
    i cant turn on trace cause he connects and disconnects and this would run immediatelythis contradicts to your following statement
    The queries run for a few minutes, so I have a bit before his session disconnects to query the data.
    I can't get him to change his code to stay connected. Informatica should have debug. Ask him if he can go step by step.
    Edited by: user11181920 on Jul 17, 2012 5:53 PM

  • How to improve SQL table perfomance

    Hi,
    I have one table having 5lacks recording during the select operation the query is very slow. The table is in third normal form having primary key and index.Is there any other way to improve table performance....

    Generally consider indexing ON clause and WHERE clause columns.
    Also make sure the WHERE clause predicates are SARGable:
    http://www.sqlusa.com/bestpractices/sargable/
    Optimizaton: http://www.sqlusa.com/articles/query-optimization/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • How to improve SQL Query

    Hi, I have to search record from one table that consists of more than 75 million row records. I've try to index in this table.
    My problem is query result execute so slowly. How to increase the performance so i can get query result quickly ??
    here is my explain plan :
    PLAN_TABLE_OUTPUT
    Plan hash value: 2042796762
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 12 | 45118 (10)| 00:09:02 |
    |* 1 | TABLE ACCESS FULL| EID_DATA | 1 | 12 | 45118 (10)| 00:09:02 |
    Predicate Information (identified by operation id):
    1 - filter(RAWTOHEX("UID_DATA")='80297CFA353B0488')
    13 rows selected
    Thank you..

    Hi,
    if you have an index on UID_DATA, the query cannot benefit from it because the column is wrapped in RAWTOHEX function. Creating a function-based index on RAWTOHEX(UID_DATA) should help. If this function call wasn't added to the query explicitly, then you should work on why it showed up there and how to get rid of it.
    Next time you post a similar problem, please don't forget to include the query's text.
    Best regards,
    Nikolay

  • How to improve sql server query response time

    I have a table that contains 60 million records with the following structure
    1. SEQ_ID (Bigint),
    2. SRM_CLIENT_ENTITIES_SEQ_ID (Bigint),
    3. CUS_ENTITY_DATA_SEQ_ID (Bigint),
    4. SRM_CLIENT_ENTITY_ATTRIBUTES_SEQ_ID (Bigint),
    5. ATTRIBUTE_DATETIME (DateTime),
    6. ATTRIBUTE_DECIMAL (Decimal(18,2)),
    7. ATTRIBUTE_STRING (nvarchar(255)),
    8. ATTRIBUTE_BOOLEAN (Char(1)),
    9. SRM_CLIENTS_SEQ_ID (Bigint)
    Clustered index with key SEQ_ID
    Non unique non clustered index : I've following four composite indexes
    a. SRM_CLIENTS_SEQ_ID, SRM_CLIENT_ENTITIES_SEQ_ID, SRM_CLIENT_ENTITY_ATTRIBTUES_SEQ_ID, ATTRIBUTE_DATETIME
    b. SRM_CLIENTS_SEQ_ID, SRM_CLIENT_ENTITIES_SEQ_ID, SRM_CLIENT_ENTITY_ATTRIBTUES_SEQ_ID, ATTRIBUTE_DECIMAL
    c. SRM_CLIENTS_SEQ_ID, SRM_CLIENT_ENTITIES_SEQ_ID, SRM_CLIENT_ENTITY_ATTRIBTUES_SEQ_ID, ATTRIBUTE_STRING
    d. SRM_CLIENTS_SEQ_ID, SRM_CLIENT_ENTITIES_SEQ_ID, SRM_CLIENT_ENTITY_ATTRIBTUES_SEQ_ID, ATTRIBUTE_BOOLEAN
    The problem is that when i execute a simple query over this table it does not return the results in an acceptable time.
    Query:
    SELECT CUS_ENTITY_DATA_SEQ_ID FROM dbo.CUS_PIVOT_NON_UNIQUE_INDEXES WHERE SRM_CLIENT_ENTITY_ATTRIBUTES_SEQ_ID = 51986 AND ATTRIBUTE_DECIMAL = 4150196
    Execution Time : 2 seconds
    Thanks

    Did you look at the execution plan.
    The query may not use none of the indexes. The Clustered index is on SEQ_ID and the non clustered index doesn't start with SRM_CLIENT_ENTITY_ATTRIBUTES_SEQ_ID
    OR ATTRIBUTE_DECIMAL.
    The order of the columns in an index matters. Just for testing ( if it is not prod. environment) Create an NCI with SRM_CLIENT_ENTITY_ATTRIBUTES_SEQ_ID
    and ATTRIBUTE_DECIMAL and check.
    Please use Marked as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • How to improve spreadsheet speed when single-threaded VBA is the bottleneck.

    My brother works with massive Excel spreadsheets and needs to speed them up. Gigabytes in size and often with a million rows and many sheets within the workbook. He's already refined the sheets to take advantage of Excel's multi-thread recalculation and
    seen significant improvements, but he's hit a stumbling block. He uses extensive VBA code to aid clarity, but the VB engine is single-threaded, and these relatively simple functions can be called millions of times. Some functions are trivial (e.g. conversion
    functions) and just for clarity and easily unwound (at the expense of clarity), some could be unwound but that would make the spreadsheets much more complex, and others could not be unwound. 
    He's aware of http://www.analystcave.com/excel-vba-multithreading-tool/ and similar tools but they don't help as the granularity is insufficiently fine. 
    So what can he do? A search shows requests for multi-threaded VBA going back over a decade.
    qts

    Hi,
    >> The VB engine is single-threaded, and these relatively simple functions can be called millions of times.
    The Office Object Model is
    Single-Threaded Apartments, if the performance bottleneck is the Excel Object Model operation, the multiple-thread will not improve the performance significantly.
    >> How to improve spreadsheet speed when single-threaded VBA is the bottleneck.
    The performance optimization should be based on the business. Since I’m not familiar with your business, so I can only give you some general suggestions from the technical perspective. According to your description, the size of the spreadsheet had reached
    Gigabytes and data volume is about 1 million rows. If so, I will suggest you storing the data to SQL Server and then use the analysis tools (e.g. Power Pivot).
    Create a memory-efficient Data Model using Excel 2013
    and the Power Pivot add-in
    As
    ryguy72 suggested, you can also leverage some other third party data processing tool
    according to your business requirement.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to improve speed of data acquisition? Help needed urgently.

    I want to convert analog signals to digital signals and simultaneously perform some search on the data acquired and this whole process has to be done continuously for few hours.
    So I tried writing two programs in Matlab, one acquires the analog data and converts it to digital and saves the data in small chunks on hard disk (like file1, file2, file3,...) continuously. The other program performs the search operation in those chunks of data continuously. I run both the programs at a time by opening two mat lab windows.
    But the problem Iam facing is that the data acquisition is slow. As a result I get an error message in the second program saying that
    "??? Error using ==> load
    Unable to read file file4.mat: No such file or directory."
    Iam unable to synchronize the two programs. I cannot use timers in search program because I cannot add any delays.
    Iam using a NI PCI-6036E ,16 Bit Resolution ,200 KS/s Sampling Rate A/D board.
    Should I switch to some other series such as M series having sampling rate of the order MS/s?
    Can anyone please tell me how to improve the speed of data acquisition?
    Thanks.

    Gayathri wrote:
    I want to convert analog signals to digital signals and simultaneously perform some search on the data acquired and this whole process has to be done continuously for few hours.
    So I tried writing two programs in Matlab, one acquires the analog data and converts it to digital and saves the data in small chunks on hard disk (like file1, file2, file3,...) continuously. The other program performs the search operation in those chunks of data continuously. I run both the programs at a time by opening two mat lab windows.
    But the problem Iam facing is that the data acquisition is slow. As a result I get an error message in the second program saying that
    "??? Error using ==> load
    Unable to read file file4.mat: No such file or directory."
    Iam unable to synchronize the two programs. I cannot use timers in search program because I cannot add any delays.
    Iam using a NI PCI-6036E ,16 Bit Resolution ,200 KS/s Sampling Rate A/D board.
    Should I switch to some other series such as M series having sampling rate of the order MS/s?
    Can anyone please tell me how to improve the speed of data acquisition?
    Thanks.
    Hi gayathri,
    well my email is [email protected]
    if ur from india mail me back.
    Regards
    labview boy

  • How to improve the speed for backing up files to time capsule via in hose wifi?

    How to improve the speed for backing up files to time capsule via in hose wifi?

    via in hose wifi?
    Use a bigger hose??
    House??
    Need to spell this out a bit more..
    But speed via 2.4ghz to the TC is restricted by Apple to max 130mbps link speed.. much slower actual transfer.. latest TC and laptops can do 450mbps on 5ghz but you need to be up close.. so place the TC near the device using it.. and force 5ghz connection by using a different name for 5ghz network.

  • How to improve this query speed ?....help me

    How to improve the query speed. Any hints can u suggest in the query or any correction. Here i am using sample tables for checking purpose, When i am trying with my original values, this type of query taking longer time to run
    select ename,sal,comm from emp where(comm is null and &status='ok') or (comm is not null and &status='failed');
    Thanx in advance
    prasanth a.s.

    What about
    select ename,sal,comm from emp where comm is null and &status='ok'
    union all
    select ename,sal,comm from emp where comm is not null and &status='failed';
    Regards
    Vaishnavi

  • How to insert data from access to sql server ?

    How to insert data from access to sql server ?
    Please help me
    thanks

    phamtrungkien wrote:
    How to insert data from access to sql server by JAVA?The first four words of my last post:
    masijade wrote:
    JDBC with two connectionsGet a resultset from the jdbc-odbc bridge access connection, cycle through it and add batch insert commands to the jdbc connection to sql server. Give it a try and if the code has an error, then post your code ans ask a question.
    The real question, though, is why you think it absolutely necessary to use Java for this.

  • How to increase internet access speed of OS X 10.5.8 whilst using telstra prepaid wirless broadband internet stick in Darwin, Australia

    Is it possible  to increase internet access speed of Mackbook Pro OS X 10.5.8 whilst using telstra prepaid wirless broadband internet stick in Darwin, Australia?
    How can i do this?

    Network Utility (in the Utilities folder) can tell you, in the Info pane, what speed you are actually connecting at.
    Just set the interface to the one you are using (which may show up as en2 or something). Link Staus and speed are shown along with error counts.
    If the data rate is very different from what you expected, you may have it manually set to a lower rate.
    YouTube files are enormous -- that may be the best it can do.

  • How to improve download speed

    Is there any Internet Download Managerment Software for Mac OX ? Many thanks,

    Is there any Internet Download Managerment Software
    for Mac OX ? Many thanks,
    There's also iGetter: http://www.igetter.net
    You may also want to look on how to optimize your network settings to achieve an overall networking improvement (not just "download speed")
    There are 2 utilities that do this for you:
    http://www.enigmarelle.com/broadbandoptimizer.py
    http://www.pimpmyosx.com
    Of course, if you're familiar with unix you can achieve such (and even better) optimizations by writing your own scripts
    a few Macs running 9.x, a bunch of Macs running 10.4.x and some serious SGI workstations running Irix 6.5.x
    Message was edited by: fu

  • How to improve the response speed

    Dear Consultants,
    In BI 7.0 EP Environment,  displaying 40000 detailed records wasted  3 minutes, this speed is slowly.
    How to improve the response speed ?
    Please give me some proposals and methods to solve this question.
    Thanks a lot & Best Regards
    Ricky

    Hello,
    3min. is not so bad for 40000 rows of data. Firstly you can analyze where the time spent is it olap or DB. you can use RSRT for analysis.
    Then,
    1. Create aggregates
    2. Use caching and precalculation
    3. check 'Use Selection of Structure Elements' from properties of query in RSRT
    4. Remove unnecessary calculations from query
    5. remove unnecessary rows. try to make them free characteristics.
    6. If there is unused data in infocube, you can archive this data.
    regards,

  • HOW TO IMPROVE PERFORMANCE ON SUM FUNCTION IN INLINE SQL QUERY

    SELECT NVL(SUM(B1.T_AMOUNT),0) PAYMENT,B1.ACCOUNT_NUM,B1.BILL_SEQ
    FROM
    SELECT P.T_AMOUNT,P.ACCOUNT_NUM,P.BILL_SEQ
    FROM PAYMENT_DATA_VIEW P
    WHERE TRUNC(P.ACC_PAYMENT_DATE) < '01-JAN-2013'
    AND P.CUSTOMER_NAME ='XYZ'
    AND P.CLASS_ID IN (-1,1,2,94)
    ) B1
    GROUP BY B1.ACCOUNT_NUM,B1.BILL_SEQ
    Above is the query.If we run inner query it takes few second to execute but while we are summing up the same amount and bill_Seq using inline view, it takes time to execute it.
    Note: Count of rows selected from inner query will be around >10 Lac
    How to improve the performance for this query?
    Pls suggest
    Thanks in advance

    989209 wrote:
    SELECT NVL(SUM(B1.T_AMOUNT),0) PAYMENT,B1.ACCOUNT_NUM,B1.BILL_SEQ
    FROM
    SELECT P.T_AMOUNT,P.ACCOUNT_NUM,P.BILL_SEQ
    FROM PAYMENT_DATA_VIEW P
    WHERE TRUNC(P.ACC_PAYMENT_DATE) < '01-JAN-2013'
    AND P.CUSTOMER_NAME ='XYZ'
    AND P.CLASS_ID IN (-1,1,2,94)
    ) B1
    GROUP BY B1.ACCOUNT_NUM,B1.BILL_SEQ
    Above is the query.If we run inner query it takes few second to execute but while we are summing up the same amount and bill_Seq using inline view, it takes time to execute it.
    Note: Count of rows selected from inner query will be around >10 Lac
    How to improve the performance for this query?
    Pls suggest
    Thanks in advancea) Lac is not an international unit, so is not understood by everyone. This is an international forum so please use international units.
    b) Please read the FAQ: {message:id=9360002} to learn how to format your question correctly for people to help you.
    c) As your question relates to performance tuning, please also read the two threads linked to in the FAQ: {message:id=9360003} for an idea of what specific information you need to provide for people to help you tune your query.

Maybe you are looking for

  • Satellite C660D-1GD: no sound and Red Cross over speaker

    Just turned on my Laptop, Satellite C660D - 1GD and my sound isn't working. There is a red cross over the speaker and the diagnosis didn't help at all. Tried a system restore, nothing - no change at all. Tried going through the system drivers and the

  • Exchange Best Practices Analyzer and Event 10009 - DCOM

    We have two Exchange 2010 SP3 RU7 servers on Windows 2008 R2 In general, they seem to function correctly. ExBPA (Best Practices Analyzer) results are fine. Just some entries about drivers being more than two years old (vendor has not supplied newer d

  • Cannot install 11gR2 on Win7 Pro

    My Setup: Windows 7 Professional 64-bit Laptop i3, 6GB RAM Trying to install Oracle SE 11gR2 (64-bit) which I downloaded and verified from Oracle website.I get as far as the 'System Class' where I chose 'Desktop Class' then selected 'Next'. The windo

  • Export-AutoDiscoverConfig Query

    Hi there, I want to export autodiscover from one forest to another, to enable Outlook on machines which are in the old forest to be able to find their mailboxes in the new forest. Both forests have Exchange installed, so the SCP records exist on both

  • Exception : LDAPAttributeHelper failed to initialize

    Hi, I am using S1 Identity server 6.0 for identity management installed with a new Directory server on a win2000 server box. The application to be protected is deployed S1AS 7.0 & S1 Policy Agent 2.1 in URL_POLICY operation mode on a seperate box. Th