Slow Running Query Tips |

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 58

  • @saadkhan45
    @saadkhan45 4 ปีที่แล้ว +3

    Request to include the following topics in Daily DBA series:
    - Performance Tuning with the help of AWR Report ( like, is there CPU load, memory issue etc )
    - EM Cloud Control 12c tips to observe and administer databases

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

      noted!~

    • @saadkhan45
      @saadkhan45 4 ปีที่แล้ว

      @@dbagenesis Thanks for your consideration :)

  • @durgasagar45678
    @durgasagar45678 3 ปีที่แล้ว +3

    Hi Arun... You have explained in a great way about to tune slow running queries. Thanks a lot..

    • @dbagenesis
      @dbagenesis  3 ปีที่แล้ว

      My pleasure! Keep Watching.

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

    Great video, great help! which one comes first: the AWR report or the user trace?

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

    Most of Qs are simple and answers can easily be found in docs/blogs. It would help people if you take some more adv Qs/topics. Same applies most of videos.

    • @dbagenesis
      @dbagenesis  3 ปีที่แล้ว

      Sure! if you are finding it difficult to get answers to your challenging DBA questions.. Send them onto support@dbagenesis.com and we shall shoot an advance QnA show for you!

  • @AltafHussain-hy6fo
    @AltafHussain-hy6fo 17 วันที่ผ่านมา

    Hello Sir, how to check which query is generating more archive

  • @ganeshhelaskar3811
    @ganeshhelaskar3811 4 ปีที่แล้ว +2

    Could you please explain LRU in buffer cache in real time example.

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

    Great sir.. Thank you so much😊👍

  • @shehbazphulmamdi3655
    @shehbazphulmamdi3655 4 ปีที่แล้ว +3

    What is the difference between CPU and load average which shows in uptime command..
    I have observed many time that CPU was normal but my load average was increased to 60.

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Below is a good read:
      serverfault.com/questions/667078/high-cpu-utilization-but-low-load-average

  • @naveenkumar-kw2ch
    @naveenkumar-kw2ch 3 ปีที่แล้ว

    Hi arun how to check application long running query with parameters or bind variables please help me

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

    If their is blocking sessions in database and in 1 session multiple dml statements are going on and session can't be killed manual or it's prohibited by db to killed then how we will resolve the blocking?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      You need to speak to application team to understand what is the session 1 doing. Is it necessary for session 1 to run dmls back to back or session 2 can wait until session 1 is finished... etc...etc...etc...

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

    @Arun Say suppose..If oracle gather the table stats and it's like 2weeks behind to till date..then will it require to gather the stats manually to till date? How will it perform in such cases..

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

      Think about it in this way, what if there was no change to the table, then you don't even need to gather stats :P
      Else, you can use DBMS_stats package to gather stats.

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

    How to recover only some deleted records for a table?When Flashback is disable? Can you share high level steps?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Except when you want to use FLASHBACK DATABASE, the FLASHBACK must be enabled. Else, even if its OFF, you can use FLASHBACK on tables.

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

    I am taking export using datapump for tables my export is get hang in database when i check it is showing defining state? But same i am running on other server export is running fine.
    ? What could be issue?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Needs more investigation!

  • @vickypatekar9532
    @vickypatekar9532 3 ปีที่แล้ว

    Sir Can you Please Explain how the Fiddler Tool is used ?

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

    Hi arun my question is I want to export a schema in db of 100GB but the space that i have at os level is not more that 20GB in all mount points. How will i do that?

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

      You can use PARALLEL option to generate small dump files of 10 GB and keep moving files to other disk as they get generated!

    • @himanshugarg4846
      @himanshugarg4846 4 ปีที่แล้ว

      @@dbagenesis one more on this that how will I specify the size of dumpfile because specifying the parallel parameter will only create the no. Of dumpfile that i defined in that parameter?

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

    Good content

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

    I have refreshed all schema in a database. When I compile the packages, few packages still shows invalid. How to make them valid? Invalid packages around 80 to 100.

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

      Try running utlrp.sql script

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

    Hi Arun, what is the difference between ASM Striping and ASM Rebalancing?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Both are same but used in different context.
      ASM STRIPING:
      =============
      If there are two disks inside a diskgroup, data will be evenly spread (stored) on both disks.
      ASM REBALANCING:
      =================
      If there are two disks inside a diskgroup and you add a third diskgroup, then data will be evenly distributed on all the three disks.

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

    could you please explain how to decide the value given to parallel option used in data pump exports & imports

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Depends on how many export dump files you would like to have. If you have give parallel = 10 for 10 GB export, you might end up with 10 export dump files.
      Try to decide via how many export dump files you need.

    • @gingzabala6507
      @gingzabala6507 3 ปีที่แล้ว

      Should depend on how many cpus you have on the server. You dont want to set parallel value way above the number of cpus you got. Also consider whether the server hosts single or multiple DBs. As you would not want to use all CPUs and affect other DBs

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

    Could you please explain what is the difference between SGA_Target, PGA_Target and Memory_Target?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Just use MEMORY_TARGET and forget about rest. Read more about MEMORY_TARGET on google

  • @bharathkumar-ds8cd
    @bharathkumar-ds8cd 4 ปีที่แล้ว +1

    Great peoples only share knowledge. 🙏

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

    What is meant by stale stats on a table ?how to resolve? kindly explain sir.

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      When stats are not gathered for a long time, old stats become stale (means waste). You just run gather schema/table stats (DBMS_STATS) package.

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

    Thanks

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

    Is there any difference between Explain plan and execution plan?
    Can you please explain this??

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      It's one and the same.

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

    Hi Sir,
    i am Rohan, currently working as oracle DBA since last 20 months
    I am very much concerned about the feature of DBAs in comming years, can you please suggest should i change the technology or i can learn cloud along with this, whether aws, azure or oracle cloud which will be better.
    Please suggest Sir
    Regards,
    Rohan

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      I am not sure why so many DBAs are scared of the role change! Even if everything is automated, few things cannot be automated:
      - Installation of Oracle
      - Provisioning of Oracle servers in cloud or physical
      - Designing the application backend
      - Creating application users and granting/revoking access
      - Debugging sql queries to tuning purpose
      - Setting up replication from physical to cloud
      and the list goes on!
      Yes, its time to learn cloud. Start with AWS and then with Oracle cloud. Thats enough for now.

  • @MrSuperIbro
    @MrSuperIbro 4 ปีที่แล้ว

    Why when I run query on database it is running faster than when I make same query as report using report builder 6i it is running too slow ... also some queries run too slow when I use condition to retrieve data for month but when I use same query to retrieve one year runs so fast also using report builder

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

    Hi Arun , u r doing great job, i have one que - when u say u have three group which further have two members a & b and process is like when first group is full it will start writing in group 2 and then group 3 but what will happen if all group is full bcoz we know that the size assign to redolog is nearly 300mb or nearby ...plz let me know ​ @dbagenesis

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

    hi... very good quesion ... even answering is good knowledgeable but.... pls dnt stand and answer.. or moving... .kindly use white board... back of you...

  • @rajatsanwal9919
    @rajatsanwal9919 3 ปีที่แล้ว

    Sir, As committed and uncommitted changes both are flushed to redo log files, during the time of instance recovery how the DB will come to know which one is committed or uncommitted?

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

      smon will clean up the uncommitted statements

  • @BabitaSingh-rn4ol
    @BabitaSingh-rn4ol 10 หลายเดือนก่อน

    So beautiful so elegant just looking like a wow

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

    Waiting for next episode sir

  • @vishalkunden4318
    @vishalkunden4318 4 ปีที่แล้ว

    I want to restore a table using rman does it recover using level 0 or level 1 can you share high level steps?

    • @dbagenesis
      @dbagenesis  4 ปีที่แล้ว

      Table? you can restore tablespace / datafile / database from rman.

    • @vishalkunden4318
      @vishalkunden4318 4 ปีที่แล้ว

      @@dbagenesis From 12c onwards you new feature which allow you restore a single table if required for that what backup to be used for restoration? L0 or L1.