{"id":153,"date":"2013-07-09T23:43:12","date_gmt":"2013-07-10T04:43:12","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=153"},"modified":"2026-02-07T15:34:47","modified_gmt":"2026-02-07T21:34:47","slug":"oracledb12c-new-feature-last-login-time-of-user","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2013\/153\/","title":{"rendered":"OracleDB12c New Feature: Last Login Time of User"},"content":{"rendered":"<p>The SYS.USER$ table in Oracle Database 12c includes a column to store the last login time of the user. In the previous releases, to be able to know the last login time of the user, we had to enable &#8220;AUDIT SESSION&#8221; and then query the AUD$ table. As part of the increased security features in 12c, last login time is now stored in the USER$ table itself, in SPARE6 column. This is great information to know when a user last used the database.<\/p>\n<p>Security related values in the USER$ table are [as existed in 11gR2]:<\/p>\n<p>CTIME: Date &amp; Time when user was created<\/p>\n<p>PTIME: Date &amp; Time when user password was last changed<\/p>\n<p>LTIME: Date &amp; Time when the user account was locked<\/p>\n<p>LCOUNT: Number of failed login attempts<\/p>\n<p>Added in Oracle Database 12c:<\/p>\n<p>SPARE6: Last login time of the user.<\/p>\n<p>The value from this column is what displayed when you invoke SQL*Plus:<\/p>\n<pre class=\"lang:default highlight:0 decode:true crayon-selected\">$ sqlplus hr\/hr\n\nSQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 9 23:34:32 2013\n\nCopyright (c) 1982, 2013, Oracle. All rights reserved.\n\nLast Successful login time: Tue Jul 09 2013 23:34:22 -05:00\n\nConnected to:\nOracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production\nWith the Partitioning, OLAP, Advanced Analytics and Real Application Testing options\n\nSQL&gt;<\/pre>\n<p>I discussed option in SQL*Plus command line to hide the last login time on<a title=\"OracleDB12c New Feature: SQL*Plus NOLOGINTIME Option\" href=\"https:\/\/bijoos.com\/oraclenotes\/oraclenotes\/2013\/oracledb12c-new-feature-sqlplus-nologintime-option\/\"> July 2.<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SYS.USER$ table in Oracle Database 12c includes a column to store the last login time of the user. In the previous releases, to be able to know the last login time of the user, we had to enable &#8220;AUDIT SESSION&#8221; and then query the AUD$ table. As part of the increased security features in &#8230; <a title=\"OracleDB12c New Feature: Last Login Time of User\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2013\/153\/\" aria-label=\"Read more about OracleDB12c New Feature: Last Login Time of User\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[133],"tags":[],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":3029,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/153\/revisions\/3029"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}