DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Bind variables and SGA_TARGET?

  1. #1
    Join Date
    Apr 2001
    Location
    Congleton
    Posts
    258

    Bind variables and SGA_TARGET?

    Does SGA_TARGET take into account the use of BIND variables?

    We have an 3rd party applications that doesn't use bind variables. It uses dynamic SQL. It never mattered how big you made the shared_pool_size as the SQL was never shared, therefore I always kept it low 150M, and db_cache_buffers=250m. This worked fine for the application and performance was ok.

    Now we have migrated to 10g, I have set the SGA_TARGET to 400M, but we are now getting performance problems. On looking at the memory advice, it has set the DB Buffers to 130M and Shared pool to 250M. I am now assuming that the memory advice is not that clever, and doesn't take into account the application not using bind variables. Has anyone else experience this? Thanks.
    Rgds. Sheryl

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828
    Hi Sheryl

    The correct way to solve that problem is to make use of bind variables.
    However if you are no in a position to do that first find out how the mmeory is being taken from other areas of the SGA to maintain the sga_target.

    In our case we had to go with a lower limit for the db_cache_size and still set the sga_target that way the db_cache_size was never resized dynamically below the lower threshold we wanted.

    regards
    Hrishy

  3. #3
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    well I dont think the advisor take that sort of thing into account because the database does not know what type of application is yours, what if you really want to use literals and not binds? It's a piece of software which at the moment cannot determine your database type IMHO unless there are some magic parametr such as db_type =OLTP|DWH|MIXED

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by ssmith
    Now we have migrated to 10g, I have set the SGA_TARGET to 400M, but we are now getting performance problems.
    Have you migrated from single instance to RAC?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  5. #5
    Join Date
    Apr 2001
    Location
    Congleton
    Posts
    258
    Its not RAC its a single instance.

    Should I set db_cache_buffers and shared_pool_size manually, instead of using SGA_TARGET? Rgds. Sheryl

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width