Showing posts with label Oracle database performance tuning. Show all posts
Showing posts with label Oracle database performance tuning. Show all posts

Thursday, 30 December 2021

Oracle Database Performance Tuning Tips for Great Results


A lot of clients encounter performance issues while using data warehouse programs. In this post, we will discuss some important methods that will help users improve results in Oracle database performance tuning by examining and enhancing the performance of Oracle Analytics reports.

The Best Ways to Ensure Optimal Oracle Database Performance


Take a look at the tips and tricks for better Oracle report analysis explained below:

 

  1. Query Log Assessment: This involves the following steps-

●  Check the time you spend in your Oracle database and SQL and compare it to the amount of time a statement takes in Oracle Analytics. In other words, you’re comparing the statement duration and response time. Typically, the former takes no more than a few seconds.

●    Examine the individual steps in Oracle Analytics in case the response time takes more than a few seconds. You will need log level five for this.

 

  1. Go through the physical Structured Query Language

●   Take a look at all the tables being involved in the statement. Is every single one of them important for the query? You will also have to check whether there are any tables that are joined but don’t have filters other than the join condition, nor are they a part of the SELECT clause.

●    Find out the number of physical statements and sub-statements that are being generated in the Oracle database. To put it simply, you need to identify the number of times the statement reads a fact table. Under ideal conditions, the statement reads only one fact table and it does so only once, so it is important to know when there are multiple reads and the reason behind them so you can eliminate some of the extra reads.

You can do this by locating excluded columns, aggregation rules that are non-additive, such as those with concatenated count clauses, selection measures, reports with sub-statements, etc.

●   Look out for external joins: if you find any, locate their origins and find out ways to get rid of as many as possible (you may have to change the design).

 


  1. Assess the execution plan for the root cause of the performance-related problem: - Follow this tip in case the steps you took during Oracle database performance tuning didn’t prove sufficient. You may enlist the support of your DBA for this purpose. These are the 4 main methods to boost performance in this situation-

●     Work on the data access path by adding indexes to decrease IO volume.

●  Lower the IO volume by decreasing how much data is read. For instance, you may go through the filters or the architecture of the data model.

●      Raise the thread quantity for reading larger tables (parallelism).

●      Make other changes to boost the IO rate, such as infrastructure modifications, in-memory database, etc.

  1. Analyze the data model and take the following measures to decrease the data read volume: -

●      Generate aggregate tables

●      Use an Oracle query optimizer tool wherever required.

●      Apply fragmentation: You might find this example useful- in case users consistently select data from the current month or year, you can divide the data into two tables: archive and present. Partitioning is also an option in the case of the Oracle database.

●      Implement denormalization. You will be able to lower the join quantity.

●      You can also decrease column quantity by dividing tables.

 

To Sum Up


A large number of performance problems occur due to poor design which is why they require Oracle database performance tuning. This is true in the case of Oracle Analytics as well since inadequate design can lead to the creation of sub-par SQL statements.

Making changes to the design will not only optimize the SQL statements created by Oracle Analytics but will also affect the overall performance of the database. This will be because of the more efficient use of resources. 




Monday, 18 January 2021

Delayed Flushing & Its Role in MySQL SQL Performance Tuning


Fact: delayed flushing may actually lead to reduced load. It may sound hard to believe, but if you ask an expert about the reasons behind systems delaying flushing changes to durable storage, you might get one or both of these answers:

  1. In order to complete the task at a more convenient time
  2. To have less work overall

In this post, we will examine the second reason and whether it helps MySQL SQL performance tuning.


Higher Peak & Average IO Rates with Adaptive Flush

The total number of I/O operations performed definitely improves with adaptive flushing. What happens here is, the workload gets smoothed out by adaptive flushing, which results in more work getting done.

Why does this happen? As you might recall, InnoDB works on 16kb pages at a time. Suppose one of the users manipulates the data of one of the rows. If InnoDB flushes constantly, it will flush the whole 16kb page right then. Just after this flush, a different row undergoes changes on the same page, which causes one more page flush.

If the first flush were to be delayed, the two flushes would be performed as a single flush. Delaying a flush to perform along with other flushes as one flush is known as write combining in MySQL database and SQL.

In certain workloads, the same rows may end up getting updated numerous times, which is where delaying and allowing write combining may dramatically reduce the quantity of I/O operations.

Does Recovery Time Affect this Result?

Some of us might think that recovery time is a significant factor for MySQL SQL performance tuning, and that enabling this option is not really necessary if that isn’t the case. However, it actually depends on the workload, and if each flush takes up a resource that is also required by another task.

If the data is able to fit in the buffer pool, and no read operations are taking place at that moment - which means the disk isn’t required for any other operations - the disk would only be in use for write operations. Also, if everything is ready at the OS and RAID controller layers, a read operation won’t be needed for a write either, helping Oracle database performance tuning.

An important point to remember is that other than a mutex contention inside MySQL or InnoDB, write operations typically run in the background - so they don’t block foreground tasks.



 

 

Wednesday, 25 November 2020

SQL Tuning for Oracle: Examining the 1st Step in SQL Server


Before you set out fixing something, you need to know precisely what’s causing the problem. Otherwise, your efforts and resources are more likely to be wasted. 

For instance, a doctor cannot prescribe something until they have made a diagnosis, and this is also true for your organization’s database. In this case, the first step towards SQL tuning for Oracle is a detailed health check.


Oracle Performance Tuning Tips: More About SQL Server Health Check 


A health check in SQL Server is a comprehensive, detailed inspection of the database, including its settings, equipment, functioning, soundness, fallback strategy, and additional requirements. It informs your Database Administrator of what’s running fine, helps them pick out the problem-causing entities, and create a plan for strengthening. 


As a database professional, you may find a lot of the results and details in a health check report, but it is also important that the report yield action-oriented information. This, along with some useful Oracle performance tuning tips, should prove useful as it will bring you one step closer to the solution to your SQL Server related issues. 


At the same time, you need to analyze if the reports you are getting are accurate and easy to understand, or not. Preferably, a health check will not only enable you to uncover problems, but it will also help you with guidance on how to fix them.



How a Health Check Helps in Oracle Database Performance Tuning


Here are the various advantages of opting for a health check for your database - 


  • Eliminates Unwanted Surprises - A SQL Server database is highly complex, yet it is a crucial part of your business. There are several things that could go wrong at any given time, and simply contemplating this is enough to ensure sleepless nights. With a detailed health check, however, you will know all there is to know about your database, and be better equipped to decide whether your database requires Oracle database performance tuning or not.


  • Helps Creates a Decent Strategy - The health check you perform will uncover all the issues that need fixing straightaway as well as those that have more time to be worked upon. Also, it will give you a roadmap that will enable you to make minor adjustments, hasten slower processes that are creating performance related problems, and arrange them into a clear strategy, based on the order of priorities.


  • Long-Run Performance - A vital aspect of every health check is a review of present as well as long-term scalability in terms of performance. It helps the DBA comprehend the amount of load the current environment can handle without affecting its performance. 


Additionally, they will know about the scaling requirements, and whether SQL tuning for Oracle is needed, all of which helps them prepare for the organization’s requirements for the long haul.

  • Fresh Perspective - Regardless of whether you have an in-house Database Administrator or not, you gain a new perspective that will help you assess your database problems and create simple fixes. 

Although SQL Server database administration requires a lot of study, it also offers multiple approaches for an issue. The job of a DBA is to identify the best way around a difficult situation.




What do You Mean by Oracle Performance Tuning?

Performance tuning is a process in which we fine-tune a database to improve its operational performance. This process includes working on pe...