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

Thread: Forcing rule based for a session

Hybrid View

  1. #1
    Join Date
    Feb 2000
    Posts
    23
    Is it possible to force a non interactive session into rule based optimizer mode?

    The session is started by an application via OCI call to the d/b ? No change to the code for the app is possible, so it would have to be done via procedure/pkg calls. Something like
    sql>alter session set optimizer_mode=rule;

    The rest of the database can operate in COST based with the parameter optimizer_mode=choose and stats for the tables/indexes.

    The application runs as one oracle user/schema.

    Any help will be appreciated.

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    I don't think it would be feasible to alter the session to rule base. Instead you could use the hints to enforce the rule base criterias in your sql statements.


    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #3
    Join Date
    Apr 2001
    Posts
    219
    I would check out system triggers and see if you could catch the login of that session. If the trigger runs in that sessions process then it should effect the session. This is all theory of course, but I hope this helps.

  4. #4
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    342
    If the application has it's own schema, with it's own objects,
    just remove all the statistics.

    Oracle will automatically use rule-based optimization.

    Hope this helps
    Gert

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