{"id":14922,"date":"2022-11-14T11:38:30","date_gmt":"2022-11-14T14:38:30","guid":{"rendered":"https:\/\/www.dbarj.com.br\/?p=14922"},"modified":"2022-11-14T11:38:30","modified_gmt":"2022-11-14T14:38:30","slug":"list-tables-with-identity-column-oracle","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/","title":{"rendered":"List tables with identity column oracle"},"content":{"rendered":"<p>Below are the 3 views that will list the tables with identity columns in Oracle:<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/19\/refrn\/USER_TAB_IDENTITY_COLS.html\" target=\"_blank\" rel=\"noopener\"><code class=\"codeph\">USER_TAB_IDENTITY_COLS<\/code><\/a><\/li>\n<li><a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/19\/refrn\/ALL_TAB_IDENTITY_COLS.html\" target=\"_blank\" rel=\"noopener\"><code class=\"codeph\">ALL_TAB_IDENTITY_COLS<\/code><\/a><\/li>\n<li><a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/19\/refrn\/DBA_TAB_IDENTITY_COLS.html\" target=\"_blank\" rel=\"noopener\"><code class=\"codeph\">DBA_TAB_IDENTITY_COLS<\/code><\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>PS: I know this post does not make any sense, but sometimes I try to quickly find those table names in Google and for whatever reason, Google Indexer can&#8217;t find proper websites. So I make this post to help myself.<\/p>\n<p>The table structure:<\/p>\n<table class=\"FormalWide\" title=\"\" border=\"1\" summary=\"This table describes the columns for this database view\" width=\"100%\" frame=\"hsides\" rules=\"rows\" cellspacing=\"0\" cellpadding=\"4\">\n<thead>\n<tr align=\"left\" valign=\"top\">\n<th id=\"d681277e188\" align=\"left\" valign=\"bottom\" width=\"24%\">Column<\/th>\n<th id=\"d681277e191\" align=\"left\" valign=\"bottom\" width=\"18%\">Datatype<\/th>\n<th id=\"d681277e194\" align=\"left\" valign=\"bottom\" width=\"14%\">NULL<\/th>\n<th id=\"d681277e197\" align=\"left\" valign=\"bottom\" width=\"45%\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr align=\"left\" valign=\"top\">\n<td id=\"d681277e202\" headers=\"d681277e188 \" align=\"left\" valign=\"top\" width=\"24%\"><code class=\"codeph\">OWNER<\/code><\/td>\n<td headers=\"d681277e202 d681277e191 \" align=\"left\" valign=\"top\" width=\"18%\"><code class=\"codeph\">VARCHAR2(128)<\/code><\/td>\n<td headers=\"d681277e202 d681277e194 \" align=\"left\" valign=\"top\" width=\"14%\"><code class=\"codeph\">NOT NULL<\/code><\/td>\n<td headers=\"d681277e202 d681277e197 \" align=\"left\" valign=\"top\" width=\"45%\">Owner of the table<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"d681277e218\" headers=\"d681277e188 \" align=\"left\" valign=\"top\" width=\"24%\"><code class=\"codeph\">TABLE_NAME<\/code><\/td>\n<td headers=\"d681277e218 d681277e191 \" align=\"left\" valign=\"top\" width=\"18%\"><code class=\"codeph\">VARCHAR2(128)<\/code><\/td>\n<td headers=\"d681277e218 d681277e194 \" align=\"left\" valign=\"top\" width=\"14%\"><code class=\"codeph\">NOT NULL<\/code><\/td>\n<td headers=\"d681277e218 d681277e197 \" align=\"left\" valign=\"top\" width=\"45%\">Name of the table<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"d681277e234\" headers=\"d681277e188 \" align=\"left\" valign=\"top\" width=\"24%\"><code class=\"codeph\">COLUMN_NAME<\/code><\/td>\n<td headers=\"d681277e234 d681277e191 \" align=\"left\" valign=\"top\" width=\"18%\"><code class=\"codeph\">VARCHAR2(128)<\/code><\/td>\n<td headers=\"d681277e234 d681277e194 \" align=\"left\" valign=\"top\" width=\"14%\"><code class=\"codeph\">NOT NULL<\/code><\/td>\n<td headers=\"d681277e234 d681277e197 \" align=\"left\" valign=\"top\" width=\"45%\">Name of the identity column<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"d681277e250\" headers=\"d681277e188 \" align=\"left\" valign=\"top\" width=\"24%\"><code class=\"codeph\">GENERATION_TYPE<\/code><\/td>\n<td headers=\"d681277e250 d681277e191 \" align=\"left\" valign=\"top\" width=\"18%\"><code class=\"codeph\">VARCHAR2(10)<\/code><\/td>\n<td headers=\"d681277e250 d681277e194 \" align=\"left\" valign=\"top\" width=\"14%\">&nbsp;<\/td>\n<td headers=\"d681277e250 d681277e197 \" align=\"left\" valign=\"top\" width=\"45%\">Generation type of the identity column. Possible values are <code class=\"codeph\">ALWAYS<\/code> or <code class=\"codeph\">BY DEFAULT<\/code>.<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"d681277e271\" headers=\"d681277e188 \" align=\"left\" valign=\"top\" width=\"24%\"><code class=\"codeph\">SEQUENCE_NAME<\/code><\/td>\n<td headers=\"d681277e271 d681277e191 \" align=\"left\" valign=\"top\" width=\"18%\"><code class=\"codeph\">VARCHAR2(128)<\/code><\/td>\n<td headers=\"d681277e271 d681277e194 \" align=\"left\" valign=\"top\" width=\"14%\"><code class=\"codeph\">NOT NULL<\/code><\/td>\n<td headers=\"d681277e271 d681277e197 \" align=\"left\" valign=\"top\" width=\"45%\">Name of the sequence associated with the identity column<\/td>\n<\/tr>\n<tr align=\"left\" valign=\"top\">\n<td id=\"d681277e287\" headers=\"d681277e188 \" align=\"left\" valign=\"top\" width=\"24%\"><code class=\"codeph\">IDENTITY_OPTIONS<\/code><\/td>\n<td headers=\"d681277e287 d681277e191 \" align=\"left\" valign=\"top\" width=\"18%\"><code class=\"codeph\">VARCHAR2(298)<\/code><\/td>\n<td headers=\"d681277e287 d681277e194 \" align=\"left\" valign=\"top\" width=\"14%\">&nbsp;<\/td>\n<td headers=\"d681277e287 d681277e197 \" align=\"left\" valign=\"top\" width=\"45%\">Options for the identity column sequence generator<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-14922 jlk' href='javascript:void(0)' data-task='like' data-post_id='14922' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-14922 lc'>+3<\/span><\/a><\/div><\/div> <div class='status-14922 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Below are the 3 views that will list the tables with identity columns in Oracle: USER_TAB_IDENTITY_COLS ALL_TAB_IDENTITY_COLS DBA_TAB_IDENTITY_COLS &nbsp; PS: I know this post does not make any sense, but sometimes I try to quickly find those table names in Google and for whatever reason, Google Indexer can&#8217;t find proper websites. So I make this &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-14922","post","type-post","status-publish","format-standard","hentry","category-database-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>List tables with identity column oracle - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"List tables that contain auto identity columns in oracle database.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"List tables with identity column oracle\",\"datePublished\":\"2022-11-14T14:38:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/\"},\"wordCount\":114,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"Oracle Database General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/\",\"name\":\"List tables with identity column oracle - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2022-11-14T14:38:30+00:00\",\"description\":\"List tables that contain auto identity columns in oracle database.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2022\\\/11\\\/list-tables-with-identity-column-oracle\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List tables with identity column oracle\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"List tables with identity column oracle - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"List tables that contain auto identity columns in oracle database.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"List tables with identity column oracle","datePublished":"2022-11-14T14:38:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/"},"wordCount":114,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["Oracle Database General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/","url":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/","name":"List tables with identity column oracle - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2022-11-14T14:38:30+00:00","description":"List tables that contain auto identity columns in oracle database.","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2022\/11\/list-tables-with-identity-column-oracle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"List tables with identity column oracle"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/14922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=14922"}],"version-history":[{"count":1,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/14922\/revisions"}],"predecessor-version":[{"id":14923,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/14922\/revisions\/14923"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=14922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=14922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=14922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}