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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 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 !!

    • @thefatdba
      @thefatdba  2 ปีที่แล้ว

      Thanks Neeraj!

  • @madhusudanaraonallamothu2792
    @madhusudanaraonallamothu2792 2 ปีที่แล้ว

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

  • @RitulRastogi
    @RitulRastogi ปีที่แล้ว +1

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

  • @mdhasibullah318
    @mdhasibullah318 ปีที่แล้ว +1

    Prashant it's very nice , please upload more .

  • @suryateja2043
    @suryateja2043 2 ปีที่แล้ว +1

    Very Good one, Thanks for sharing

    • @thefatdba
      @thefatdba  2 ปีที่แล้ว

      Thanks Surya!

  • @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.

  • @harishharish.r3338
    @harishharish.r3338 ปีที่แล้ว +1

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

  • @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 .

  • @deepjitsaha7532
    @deepjitsaha7532 9 หลายเดือนก่อน

    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.

  • @navdeepbhatia5030
    @navdeepbhatia5030 6 หลายเดือนก่อน

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

  • @Farhan640
    @Farhan640 ปีที่แล้ว

    Great video

    • @thefatdba
      @thefatdba  ปีที่แล้ว

      Thanks for the visit

  • @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

  • @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.

  • @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 7 หลายเดือนก่อน

      rea.sql Kindly share

  • @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

  • @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