<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DBAPundits.com &#187; Init.ora parameters</title>
	<atom:link href="http://www.dbapundits.com/blog/category/oracle-init-ora-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbapundits.com/blog</link>
	<description>Articles and resources for the DBAs.</description>
	<lastBuildDate>Wed, 23 Nov 2011 03:22:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FIXED_DATE Init.ora parameter</title>
		<link>http://www.dbapundits.com/blog/oracle-init-ora-parameters/fixed_date-init-ora-parameter/</link>
		<comments>http://www.dbapundits.com/blog/oracle-init-ora-parameters/fixed_date-init-ora-parameter/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 09:11:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Init.ora parameters]]></category>

		<guid isPermaLink="false">http://www.dbapundits.com/blog/?p=294</guid>
		<description><![CDATA[<script type="text/javascript"><!--
google_ad_client = "pub-9448554670318827";
google_alternate_color = "FFFFFF";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "image";
google_ad_channel ="Pundits";
google_color_border = "FFFFFF";
google_color_link = "0022C9";
google_color_bg = "FFFFFF";
google_color_text = "000000";
google_color_url = "128A00";
google_ui_features = "rc:0";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><p>Setting this parameter to a specified timestamp will make the time constant for the database engine (the clock will not tick) FIXED_DATE is a dynamic parameter and can be changed using the ALTER SYSTEM command.</p> SQL&#62; ALTER SYSTEM SET FIXED_DATE='2009-09-22-13:00:00'; <p>Once you set parameter, the value will be returned when &#8216;sysdate()&#8217; is used in the [...]]]></description>
			<content:encoded><![CDATA[<p>Setting this parameter to a specified timestamp will make the time constant for the database engine (the clock will not tick) FIXED_DATE is a dynamic parameter and can be changed using the ALTER SYSTEM command.</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; ALTER SYSTEM SET FIXED_DATE='2009-09-22-13:00:00';
</pre>
<p>Once you set parameter, the value will be returned when &#8216;sysdate()&#8217; is used in the queries/application.<br />
To see the server time, you can use systimestamp.</p>
<p>Eg:</p>
<pre class="brush: sql; title: ; notranslate">

SQL&gt; set lines 100
SQL&gt; select sysdate, systimestamp from dual;

SYSDATE					SYSTIMESTAMP
-------					-------------------------
2009 09 22 13:00:00 	10-DEC-09 03.01.41.142940 AM -06:00
</pre>
<p>This is usually used for testing/development purposes, when the application logic depends on a specific date/time combination.</p>
<p>To set the date back to the &#8216;system&#8217; clock, set the parameter to &#8216;none&#8217;</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; alter system set fixed_date='none';
</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.dbapundits.com%2Fblog%2Foracle-init-ora-parameters%2Ffixed_date-init-ora-parameter%2F&amp;title=FIXED_DATE%20Init.ora%20parameter" id="wpa2a_2"><img src="http://www.dbapundits.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbapundits.com/blog/oracle-init-ora-parameters/fixed_date-init-ora-parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

