{"id":2,"date":"2006-07-23T00:33:00","date_gmt":"2006-07-23T04:33:00","guid":{"rendered":"http:\/\/www.benh.org\/techie\/2006\/07\/how-to-find-the-uptime-of-the-oracle-database\/"},"modified":"2010-08-27T04:07:38","modified_gmt":"2010-08-27T09:07:38","slug":"oracle-server-uptime","status":"publish","type":"post","link":"https:\/\/www.benh.org\/techblog\/2006\/07\/oracle-server-uptime\/","title":{"rendered":"Oracle server uptime"},"content":{"rendered":"<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p><!--adsense#ads--><br \/>\nThe following query works well with Oracle 9i. i&#8217;ve no clue whether this works with others too or not.<\/p>\n<pre class=\"brush:sql\">\r\nSELECT TO_CHAR (startup_time, 'DD-MON-YYYY HH24:MI:SS') \"DB Startup Time\"\r\n  FROM SYS.v_$instance;\r\n<\/pre>\n<p>even there is possiblity to find the startup time by quering logon_time from sys.v_$session view.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following query works well with Oracle 9i. i&#8217;ve no clue whether this works with others too or not. SELECT TO_CHAR (startup_time, &#8216;DD-MON-YYYY HH24:MI:SS&#8217;) &#8220;DB Startup Time&#8221; FROM SYS.v_$instance; even there is possiblity to find the startup time by quering logon_time from sys.v_$session view.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[41,111,50],"class_list":["post-2","post","type-post","status-publish","format-standard","hentry","category-database","tag-oracle","tag-sql","tag-uptime"],"_links":{"self":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":3,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/2\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/posts\/2\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/media?parent=2"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/categories?post=2"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benh.org\/techblog\/wp-json\/wp\/v2\/tags?post=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}