{"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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[133],"tags":[],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-oracledb"],"acf":[],"jetpack-related-posts":[{"id":2101,"url":"https:\/\/bijoos.com\/oraclenotes\/2017\/2101\/","url_meta":{"origin":153,"position":0},"title":"ODC Appreciation Day: Two Cool 12c Security Features #ThanksODC #ThanksOTN","author":"Biju","date":"October 10, 2017","format":false,"excerpt":"There are quite a lot of new features in the 12c database that I like and have discussed and talked about them at various events. On this #ThanksODC day, I would like to take the opportunity to thank Oracle Technology Network (or Oracle Developer Community) and Oracle ACE Program for\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2017\/10\/ODC-300x117.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":393,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/393\/","url_meta":{"origin":153,"position":1},"title":"OracleNotes TidBits &#8211; May 2014","author":"Biju","date":"May 31, 2014","format":false,"excerpt":"According to the dictionary, meaning of \"tidbit\" is \"a small and particularly interesting item of gossip or information\"... hope you find the \"Oracle TidBits\" published at https:\/\/www.facebook.com\/oraclenotes\u00a0interesting... Here is a compilation of the tidbits published in May 2014. You will also see these tidbits, one tidbit at a time, for\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"Oracle TidBit","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2014\/05\/TidBit-300x123.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":76,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/76\/","url_meta":{"origin":153,"position":2},"title":"OracleDB12c New Feature: SQL*Plus NOLOGINTIME Option","author":"Biju","date":"July 2, 2013","format":false,"excerpt":"Oracle Database 12c has added a lot of features to the database and supporting tools. SQL*Plus is no exception. The login or invoking of SQL*Plus includes more command line options. As in the previous releases, the -H command line option shows the help information. By default SQL*Plus displays the last\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":495,"url":"https:\/\/bijoos.com\/oraclenotes\/2014\/495\/","url_meta":{"origin":153,"position":3},"title":"Oracle TidBits &#8211; July 2014","author":"Biju","date":"August 1, 2014","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d published at\u00a0https:\/\/www.facebook.com\/oraclenotes\u00a0on all weekdays\u00a0in July 2014. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you of its existence and\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":102,"url":"https:\/\/bijoos.com\/oraclenotes\/2013\/102\/","url_meta":{"origin":153,"position":4},"title":"OracleDB12c New Feature: Identity Column","author":"Biju","date":"July 3, 2013","format":false,"excerpt":"Let's talk about a \"developer\" feature today. If you have a need to generate a column value [mostly primary key] based on a sequence, in pre-12c Oracle database we have to create a number data type column in the table, and use a sequence that is separately created. There is\u2026","rel":"","context":"In &quot;Oracle Database&quot;","block_context":{"text":"Oracle Database","link":"https:\/\/bijoos.com\/oraclenotes\/category\/oracledb\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2087,"url":"https:\/\/bijoos.com\/oraclenotes\/2017\/2087\/","url_meta":{"origin":153,"position":5},"title":"Oracle Tidbits &#8211; August 2017 #oratidbit","author":"Biju","date":"September 3, 2017","format":false,"excerpt":"\u201cOracle *daily* TidBits\u201d (#oratidbit) published on Facebook, Twitter, and Google+\u00a0during weekdays\u00a0in August 2017. You will also see these tidbits, one tidbit at a time, for each page refresh on the right side of this blog as well\u2026 Hope you find these helpful to learn something new or to remind you\u2026","rel":"","context":"In &quot;TidBits &amp; Quick Tips&quot;","block_context":{"text":"TidBits &amp; Quick Tips","link":"https:\/\/bijoos.com\/oraclenotes\/category\/tidbits\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bijoos.com\/oraclenotes\/wp-content\/uploads\/2017\/02\/oratidbit.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_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}]}}