ALTER SEQUENCE Concept and Example

In Oracle, you can alter an existing sequence using the ALTER SEQUENCE statement. This allows you to change various properties of the sequence, such as its increment value, minimum and maximum values, caching behavior, and whether it cycles or not. O…

DBA_SEQUENCES in Oracle: Concept and Example

DBA_SEQUENCES in Oracle: Concept and Example Concept: In Oracle, a sequence is a database object that is used to generate a sequence of unique numbers. These numbers can be used to create unique identifiers for rows in a table, typically for a primar…

How to find your current session ID in Oracle

To find your current session ID in Oracle, you can query the V$SESSION view, which contains information about all active sessions in the database. Specifically, you can filter the view by your user name or the SID and SERIAL# values. Here’s how you…

Step by Step Demo of FOR UPDATE in Oracle

Let's prepare a demo to illustrate the usage of the FOR UPDATE clause in Oracle. This demo will show how to lock rows using FOR UPDATE , update the locked rows, and then commit the transaction. We will also demonstrate the usage of NOWAIT . Step-…

Usage of FOR UPDATE in ORACLE

In Oracle, the FOR UPDATE clause is used in a SELECT statement to lock the selected rows so that no other transaction can modify them until the transaction is committed or rolled back. This is useful in scenarios where you need to ensure data consis…

How to Display Numbers in Crores Using Custom Formatting in MS Excel

Using custom formatting is an efficient way to display numbers in crores directly in Excel.  Here are the detailed steps to achieve this: Steps to Display Numbers in Crores Using Custom Formatting Open Excel and Select the Cells: Open your Excel sheet…

CASE statement in SQL and PL/SQL - Oracle

In PL/SQL, the CASE statement is used to perform conditional logic within your SQL queries and PL/SQL blocks. It allows you to evaluate a condition and execute a specific block of code based on the result of that condition. Syntax of CASE in PL/SQL:…

Explain DBA_JOBS in oracle with examples

DBA_JOBS is a data dictionary view in Oracle that provides information about all the jobs scheduled in the database. These jobs are managed by the Oracle Job Scheduler, which allows you to automate and schedule various database tasks, such as running…

Tuning the UNDO_RETENTION parameter in Oracle

Tuning the UNDO_RETENTION parameter in Oracle is essential for optimizing the performance of transactions and ensuring efficient space management in the undo tablespace. The UNDO_RETENTION parameter specifies the time (in seconds) that Oracle retains …

How to tune redo log files in Oracle

Tuning redo logs in Oracle is crucial for database performance and ensuring efficient recovery processes. Here are key strategies and best practices for tuning redo logs: 1. Appropriate Redo Log Sizing Log File Size : Ensure redo log files are appropr…

Load More
That is All