Sharing knowledge is the ultimate key to gaining knowledge..
The only two things that stay with you for life
are you & your knowledge !
Live while you can!
Teach & inspire while you could &
Smile while you have the teeth.. 😉
-
ASM
- Creating ASM Instance and diskgroups manually without DBCA
- 20 ASM Realtime | Interview Questions
- How to make a cold backup for database running on ASM ( using RMAN )
- Moving a Single Datafile from File System to ASM System (METHOD 1)
- Moving a Single Datafile from File System to ASM System (METHOD 2)
- Things to consider while adding new disk/ Rebalancing existing Disk Group
-
Dataguard
- Dataguard Modes
- Dataguard Modes - II
- Oracle DataGuard Setup
- invalid archived log deletion policy
- recover from the Loss of a Datafile on a Standby Database ?
- MRP terminated with ORA-00600: internal error code, arguments
- Recover archive gaps in standby database - using 2 methodss
- Gap Resolution in Dataguard
- Convert Physical Standby to Snapshot Standby and Vice Versa
- Re-create Redo-logs on Standby/ Primary
- Pre-check for DataGuard switchover Process
- ORA-19815: WARNING: db_recovery_file_dest_size
- How do you purge old archivelogs which are applied on Standby DB
- Pre-check For SWITCHOVER using DG Broker
- https://oracle-dba-help.blogspot.com/2016/03/data-guard-modes.html
- ORA-01274 : RENAME THE UNKNOW FILE IN THE STANDBY DATABASE
- Database Creation in Easy 6 Steps
- Oracle Networking
- Tablespace management
- Housekeep : Quick Tips for DBA
- Health check for DB
- ORA-12537 While Connecting To Database Via Listener
- How to identify the applied patche-set of your Oracle Home
- Accessing a schema without knowing the password
- ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
- Session Related Scripts
- How to check ORA Error on DB Server – Beginner Tip
- Working with Redo Logs
- Decommission of Oracle Database
- Roles in Oracle - Managing Users
- Oracle Release Number Format
- Troubleshooting Handy-Guide
- Understanding the Upgradation Process
- Query to find the session creating more redo
- Audit in Oracle
- Troubleshooting Internal Errors and Error-Look-up Tool on MOS
- Troubleshooting Issues with Undo Tablespace
- User Management
- User Management - II
- Data Pump Gets Better
- MEMORY_TARGET Parameter
- Oracle 21c: INCLUDE and EXCLUDE in Data Pump
- Behind the Scenes of COMMIT
- Data Guard Redo Transport Encryption
- Oracle 19C with ADG DML Redirection
- 19c PDB Refreshable Clones
- Solving the Mysterious Database Connection Timeouts
- How to identify the applied patche-set of your Oracle Home
- Topic need to get clear to become expert in Oracle DBA
- Working with Redo Logs
- Oracle Database Block corruption
- What happens during Instance Recovery
- Oracle Datapump Scenarios
- Troubleshooting Issues with Undo Tablespace
- General Tips to Prepare for an Oracle DBA Job Interview
- RMAN Questions
- Installing PostgreSQL Server on CentOS, RHEL 6 / 7 Systems
- Creating a database in Postgres
- Initialize multiple Postgres instance on the same RHEL server
- How to stop starting of clusters while starting up services
- Setup a streaming replication
- Switchover- master server and warm standby (with streaming replication)
- All About Physical Replication and Log shipping
- PostgreSQL Upgrade and troubleshooting
- Timeline Switch issue
- Query to identify the lag in replication
- Drop table : ERROR: must be owner of relation table_name
- PgBadger
- PgCenter
- PgTune
- Internals of Toast Table
- Influencing Query Execution Plan
- Create Extension ERROR
- Find Uptime in PostgreSQL
- Set DB Timezone
- Clear RAM Cache, Buffer
- Read-Only User in Postgres
- Everything you need to know about Streaming Replication
- Ora2Pg Migrate Oracle to Postgres
- Total Page Cost
- PostgreSQL 13 - Everything you need to know
- Startup Failure - .conf file
- All About Postgres Upgrade
- Basic Guide
- Session Related Scripts
- AWR :: Beginners Guide
- All About ASH - Active Session History
- Wait Events : checkpoint busy waits or archiver busy waits
- Find sessions performing sort operations : TEMP Tablespace occupants
- Generate ADDM task and generate its report for Tuning
- Database Performance Tuning Scripts -Keep Handy
- Buffer Busy Wait
- Simulating the Deadlock
- Latches
- Steps to Schedule any RMAN Jobs In Windows Server
- ORA-01194: file 1 needs more recovery to be consistent
- Loss of Current Online Redo-Log
- RMAN "baby Steps"
- Recovery of ControlFiles
- Loss of Datafile
- Recovery from complete loss of all online redo log files
- Block Change Tracking
- RMAN Questions
- Instance Recovery
- Redundancy and Recovery window in RMAN
- Cold Backup
- Database Cloning
- Contact
- Drop Database using RMAN
- PITR to older Incarnation
Monday, 25 November 2024
How to Check CPU Core Count in Oracle: Essential Queries for Performance Tuning
Saturday, 23 November 2024
Exploring the Key Differences Between pglogical and Native Logical Replication in PostgreSQL
Hey, PostgreSQL enthusiasts! 🌟 Ready to dive into the fascinating world of logical replication?
Sunday, 17 November 2024
Optimizing Oracle Databases with Huge Pages
Memory management plays a critical role in any operating system (OS), providing lower latency and higher throughput. Even though memory is volatile, it significantly reduces data access times compared to disk I/O. This is especially true for databases, where the size of memory can have a profound effect on performance. A crucial aspect of memory management is how the kernel manages memory pages. Here, we'll dive into how Oracle databases benefit from configuring Huge Pages, a feature that addresses the challenges of large memory environments.
Sunday, 10 November 2024
Oracle - A Quick-Action Guide for Performance Issues
In the world of application management, performance issues are inevitable. While you might have a solid methodology for establishing and improving application performance, emergencies demand a different approach. When a system suddenly shifts from being reliable and predictable to sluggish and unresponsive, immediate action is required to restore normal service.
Responding to Performance Emergencies
When faced with a performance emergency, the first priority is to quickly identify what has changed and take corrective action. Here’s how to navigate through these high-pressure situations effectively:
1. Survey the Problem and Gather Symptoms
Begin by surveying the performance problem to understand the symptoms:
- User Feedback: Get insights from users about how the system is underperforming. Determine whether the issue is related to throughput, response time, or another metric.
- Identify Changes: Ask the critical question, "What has changed since the system last performed well?" While this might seem straightforward, getting accurate answers during an escalated situation can be challenging. Look for objective reference points, such as statistics or log files, to compare the system's performance before and after the issue arose.
- Use Diagnostic Tools: Leverage automatic tuning features and tools like Oracle Enterprise Manager Cloud Control to diagnose the problem. These tools can help identify top SQL queries and sessions that may be contributing to the performance issue.
2. Conduct a Sanity Check on Hardware Utilization
Next, check the hardware utilization across all components of the application system:
CPU, Disk, Memory, and Network Performance: Determine where the highest CPU utilization is occurring and assess disk, memory, and network performance. This quick analysis will help you identify which tier of the system—application, database, or another component—is causing the problem.
Application vs. Database Server: If the issue appears to be with the application, shift your focus to debugging the application. If the problem lies within the database server, proceed with a more detailed analysis of the database.
3. Analyze Database Server Constraints
If the database server is the bottleneck, identify whether it’s constrained by CPU usage or wait events:
- CPU Constraints: If the database server is CPU-constrained, investigate sessions consuming high CPU resources. Use views like V$SESS_TIME_MODEL for database CPU usage and V$SESSTAT and V$SQLSTATS to identify sessions or statements with high buffer gets. Look for execution plan changes that may be causing suboptimal SQL execution, incorrect initialization parameters, or algorithmic issues due to recent code changes or upgrades.
- Wait Events: If the database is experiencing wait events, follow the wait events listed in V$SESSION_WAIT to diagnose what’s causing the delays. The V$ACTIVE_SESSION_HISTORY view provides a sampled history of session activity, which is useful for post-incident analysis. If there’s significant contention, especially for resources like the library cache latch, you may need to rely on historical data to understand the root cause.
4. Apply Emergency Actions
To stabilize the system, you may need to take drastic actions:
- Restrict Workload or Take Components Offline: In some cases, it might be necessary to restrict the workload on the system or take parts of the application offline to reduce the load. This could involve restarting the system or terminating processes that are consuming excessive resources.
- Service Level Implications: Be aware that these emergency actions could have service level implications, such as temporary outages or reduced functionality for users.
5. Validate System Stability
After applying emergency actions, it’s crucial to ensure the system is stable:
- Collect Reference Statistics: Once the system is stabilized, gather a new set of reference statistics for the database. This will help in future performance analysis and in ensuring that the system remains stable.
- Long-Term Performance Improvement: While the immediate issue may be resolved, the work isn’t over. Follow a rigorous performance improvement method to fully restore functionality and user access. This might involve significant reengineering of the application or other components.
Conclusion
Performance emergencies require a swift and methodical approach to bring a system back to normal operation. By following these steps, you can quickly diagnose the problem, apply necessary fixes, and stabilize the system. Remember, keeping detailed notes throughout the process is essential, as it provides valuable insights for both immediate resolution and future prevention. Just like a doctor documenting patient records, your notes will serve as a critical reference for ongoing performance management.
Read more :
DBA's Guide to Troubleshooting Database/Query Performance Problems
&
Addressing Client-Reported Slowness: A DBA's Guide