My Oracle Support Banner

How to Query IDENTITY_COLUMN's Sequence Information by Join ALL_TAB_COLS and DBA_SEQUENCES? (Doc ID 3053593.1)

Last updated on OCTOBER 29, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Cloud Infrastructure - Exadata Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Gen 2 Exadata Cloud at Customer - Version N/A and later
Information in this document applies to any platform.

Goal

We can create IDENTITY_COLUMN column as below syntax, then a new sequence would be created silently:

This arcticle explains how to join all_tab_cols and dba_sequences to obtain IDENTITY_COLUMN's sequence information like SEQUENCE_NAME, LAST_NUMBER etc.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.