Showing posts from August, 2024

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…

Load More
That is All