Oracle SQL Plan Hash Value Flip : How to create SQL Profile identify and Fix

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • This is a common scenario when the SQL_ID flipped to a different, possibly a suboptimal execution plan or PHV and causes disaster to the database performance. This video is all about identifying the issues and how to tackle them proactively.
    Files used: github.com/fat... (1.sql) and github.com/fat... (2.sql)

Комментарии • 37

  • @neerajgupta1140
    @neerajgupta1140 2 года назад +1

    Nice explanation. Great work Prashant !!

  • @mdhasibullah318
    @mdhasibullah318 Год назад +1

    Prashant it's very nice , please upload more .

  • @madhusudanaraonallamothu2792
    @madhusudanaraonallamothu2792 2 года назад

    Thank you very much for sharing your knowledge. Very much informative..🙏🙏🙏

  • @RitulRastogi
    @RitulRastogi 11 месяцев назад +1

    thanku sir for this amazing videos ...keep posting sir it helps alot :)

  • @suryateja2043
    @suryateja2043 2 года назад +1

    Very Good one, Thanks for sharing

  • @harishharish.r3338
    @harishharish.r3338 Год назад +1

    Hi Prashanth,
    very well explained , could you please share the query rea.sql

  • @vigneshn1121
    @vigneshn1121 Год назад +1

    Good Day Prashant,
    Thank you so much for this explanation.
    I need to know that, How we should track session details(start and end time, elapsed time, still how much rows pending to complete the session). Kindly suggest.

  • @helpwithramesh
    @helpwithramesh 2 года назад +1

    Hi brother very excellent explain and one suggestion Please share the documents if possible thanks .

  • @harelex07
    @harelex07 2 года назад +1

    Good one !

    • @thefatdba
      @thefatdba  2 года назад

      Thanks mate. Stay tuned for all upcoming videos

  • @Mrpro119
    @Mrpro119 Год назад

    Hello Prashant , Really very good video and you explaining very well . if possible could you please share code snippet which you are using .

  • @Farhan640
    @Farhan640 Год назад

    Great video

  • @mayankbaliyan5441
    @mayankbaliyan5441 2 года назад +1

    Excellent video Prashant , please keep it up for all of us . Can I have those 1.sql and 2.sql scripts from you ?

    • @thefatdba
      @thefatdba  2 года назад

      Sure, please share me your email

    • @thefatdba
      @thefatdba  2 года назад +1

      Files used: github.com/fatdba/Oracle-Database-Scripts/blob/main/sqlflip1.sql (1.sql) and github.com/fatdba/Oracle-Database-Scripts/blob/main/sqlflip2.sql (2.sql)

    • @mukkamalamahendra
      @mukkamalamahendra 2 года назад

      @@thefatdba Thanks a lot

  • @navdeepbhatia5030
    @navdeepbhatia5030 6 месяцев назад

    thanks SIr very nicely explained , kindly share rea.sql as well

  • @deepjitsaha7532
    @deepjitsaha7532 8 месяцев назад

    Hi Prashant, could you please tell me how to release PHV value from sql ID after lock PHV value. It will be really helpfull for me if you can.

  • @PKBIJ82
    @PKBIJ82 7 месяцев назад

    After creating custom profile , still SQL is picking bad execution plan , how can I fix then, please suggest.

  • @satendrarajput8120
    @satendrarajput8120 2 года назад

    Thanks Sir, very good explanation for sql_id, I am getting issue to execute second query
    ORA-01476: divisor is equal to zero

    • @thefatdba
      @thefatdba  2 года назад

      Then you have more than 4 or 5 PHVs

    • @thefatdba
      @thefatdba  2 года назад

      You can go and use DBA _HIST_SQL_STATS view to get same details

    • @thefatdba
      @thefatdba  2 года назад

      Or try
      easyoradba.com/2013/08/23/ora-01476-divisor-is-equal-to-zero/?amp=1

  • @ravinbharathmaharaj9269
    @ravinbharathmaharaj9269 2 года назад +1

    How can you identify a ‘stale’ sql profile ?

    • @thefatdba
      @thefatdba  2 года назад

      Thanks Ravin for watching the video and for your comment, and thats a great and a valid question as that can happen to a SQL prflofile. But I guess its not possible to answer it here, so I am pasting a link of asktom where same question was answer by Chris Saxon
      asktom.oracle.com/pls/apex/asktom.search?tag=sql-profile-stale

    • @thefatdba
      @thefatdba  2 года назад

      Maybe I have found my next blog topic to test and showcase.

  • @faruqansari3342
    @faruqansari3342 2 года назад +1

    its possible to share doc

    • @thefatdba
      @thefatdba  2 года назад

      Hi buddy,
      Please check description of the video for scripts used in video

  • @VenkyPotla369
    @VenkyPotla369 Год назад

    @Prashanth could you please share the rea.sql script

    • @thefatdba
      @thefatdba  7 месяцев назад

      Though all of them are available on my GitHub public repo, which in particular you are looking for and I will dhare the direct link

    • @ramkumarsharma5490
      @ramkumarsharma5490 6 месяцев назад

      rea.sql Kindly share

  • @palagirikrishna2719
    @palagirikrishna2719 2 года назад +1

    Sir.. could you please send @coe_xfr_sql_profile.sql script also..Prashant sir.. i need one more help sir... what is the sql profile and what use sql profile.. could you please explain please

    • @rafiabbasi1
      @rafiabbasi1 8 месяцев назад

      you will get this script when you install SQLT ,

    • @thefatdba
      @thefatdba  7 месяцев назад

      Its inside SQLT package, download and you will find inside sqls folder