<?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>DbMotive - Oracle Software Products and Services</title>
	<atom:link href="http://www.dbmotive.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbmotive.com</link>
	<description>Oracle software and services</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:08:21 +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>Display OLE DB Providers</title>
		<link>http://www.dbmotive.com/2010/11/19/display-ole-db-providers/</link>
		<comments>http://www.dbmotive.com/2010/11/19/display-ole-db-providers/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:57:05 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[Connect]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[UDL]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=425</guid>
		<description><![CDATA[Sometimes it can happen that you need to change a property for a certain OLE DB drivers, such as the ADO.NET Microsoft drivers, the ODP.NET Oracle driver, &#8230; You can get an overview of all available OLE DB Drivers in the &#8220;Data Link Properties&#8221; application which is delivered together with the Microsoft operating system. But ...]]></description>
			<content:encoded><![CDATA[<p>Sometimes it can happen that you need to change a property for a certain OLE DB drivers, such as the ADO.NET Microsoft drivers, the ODP.NET Oracle driver, &#8230;</p>
<p>You can get an overview of all available OLE DB Drivers in the &#8220;Data Link Properties&#8221; application which is delivered together with the Microsoft operating system.<br />
But the application itself is rather cumbersome to find&#8230;</p>
<p>We tell you have to find the &#8220;Data Link Properties&#8221; window.</p>
<p>First of all, create a new &#8220;Universal Data Link&#8221; file in a location of your choice. Let&#8217;s name it test.udl<br />
Don&#8217;t worry, you do not need to fill in any information inside the file, just leave it empty.<br />
<img src="/wp-content/uploads/2010/11/udl_file.jpg" alt="UDL File"/></p>
<p>Notice how the icon is changed, the associated program is &#8220;Microsoft Data Link&#8221;.</p>
<p>Next, you need to double click on the file, and this will open up the &#8220;Data Link Properties&#8221; Window.</p>
<p><img src="/wp-content/uploads/2010/11/dlp.jpg" alt="Data Link Properties"/></p>
<p>Next, you can choose the correct OLE DB Provider and go to the All tab page to change the properties you want.<br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/display-ole-db-providers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>component &#8216;SET_NO_OUTLINES&#8217; must be declared</title>
		<link>http://www.dbmotive.com/2010/11/19/component-set_no_outlines-must-be-declared/</link>
		<comments>http://www.dbmotive.com/2010/11/19/component-set_no_outlines-must-be-declared/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:45:07 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=423</guid>
		<description><![CDATA[When exporting data from a database, you receive following error: EXP-00056: ORACLE error 6550 encountered ORA-06550: line 1, column 41: PLS-00302: component 'SET_NO_OUTLINES' must be declared ORA-06550: line 1, column 15: PL/SQL: Statement ignored EXP-00000: Export terminated unsuccessfully You are probably using another version of the export tool than the version of the database. For ...]]></description>
			<content:encoded><![CDATA[<p>When exporting data from a database, you receive following error:</p>
<pre>
<a href="/support/oracle-error-codes/?type=EXP&#038;errcode=56">EXP-00056</a>: ORACLE error 6550 encountered
<a href="/support/oracle-error-codes/?type=ORA&#038;errcode=6550">ORA-06550</a>: line 1, column 41:
<a href="/support/oracle-error-codes/?type=PLS&#038;errcode=302">PLS-00302</a>: component 'SET_NO_OUTLINES' must be declared
<a href="/support/oracle-error-codes/?type=ORA&#038;errcode=6550">ORA-06550</a>: line 1, column 15:
PL/SQL: Statement ignored
<a href="/support/oracle-error-codes/?type=EXP&#038;errcode=0">EXP-00000</a>: Export terminated unsuccessfully
</pre>
<p>You are probably using another version of the export tool than the version of the database.<br/><br />
For instance, you use the Oracle 10g export tool to export a schema from an Oracle 9i database.<br/><br />
<br/><br />
The export tool of Oracle contain some version specific code.<br/><br />
In this case, the export tool is executing a procedure at connect time (set_no_outlines) which does not exist on an Oracle 9i database.<br/><br />
<br/><br />
It is good practice to keep the version of the Oracle client tools and database in sync.<br/><br />
<br/><br />
This problem will disappear if you use the Oracle 9i version of the export tool.<br/><br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/component-set_no_outlines-must-be-declared/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Create an Oracle password file</title>
		<link>http://www.dbmotive.com/2010/11/19/create-an-oracle-password-file/</link>
		<comments>http://www.dbmotive.com/2010/11/19/create-an-oracle-password-file/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:40:13 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=419</guid>
		<description><![CDATA[Oracle password file In order to startup an Oracle database, one need to have either an Oracle password file or rely on Operating system authentication. If the init.ora parameter remote_login_passwordfile is set to either exclusive or shared, Oracle will search for a password file to do the authentication. Default Location of the Password File The ...]]></description>
			<content:encoded><![CDATA[<h3>Oracle password file</h3>
<p>In order to startup an Oracle database, one need to have either an Oracle password file or rely on Operating system authentication.<br/><br />
If the init.ora parameter <strong>remote_login_passwordfile</strong> is set to either exclusive or shared, Oracle will search for a password file to do the authentication.</p>
<h3>Default Location of the Password File</h3>
<p>The default location for an Oracle password file is the %ORACLE_HOME%/database on Windows and $ORACLE_HOME/dbs on Unix flavours.<br/><br />
On windows, the filename should be: PWD%ORACLE_SID%.ora<br/><br />
On Unix, the filename should be: orapw$ORACLE_SID<br/><br />
<br/></p>
<h3>Command to create a password file</h3>
<p>You can use the orapwd command to create a new password file.</p>
<pre>
Usage: orapwd file=&lt;fname&gt; password=&lt;password&gt; entries=&lt;users&gt; force=&lt;y/n&gt; nosysdba=&lt;y/n&gt;

  where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA,
    force - whether to overwrite existing file (opt),
    nosysdba - whether to shut out the SYSDBA logon (opt for Database Vault only).
  There are no spaces around the equal-to (=) character.
</pre>
<p>If you want to create a new password file, make sure the database is closed, else the password file will be overwritten at next startup.<br/></p>
<h3>Check users in a password file</h3>
<p>You can query the v$pwfile_users data dictionary view in order to know which users are in the password file including the gratned privileges.</p>
<pre>
SQL> select * from v$pwfile_users;

USERNAME                       SYSDB SYSOP
------------------------------ ----- -----
SYS                            TRUE  TRUE
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/create-an-oracle-password-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write a message to a trace file or the alert.log file</title>
		<link>http://www.dbmotive.com/2010/11/19/write-a-message-to-a-trace-file-or-the-alert-log-file/</link>
		<comments>http://www.dbmotive.com/2010/11/19/write-a-message-to-a-trace-file-or-the-alert-log-file/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:34:20 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=415</guid>
		<description><![CDATA[In case you want to write something to the Oracle alert.log file, you can use an undocumented package procedure to do so. The dbms_system.ksdwrt package procedure takes 2 arguments, the first parameter is where you want to write the message, indicated by the second parameter to. The first parameter can take 3 different values: 1: ...]]></description>
			<content:encoded><![CDATA[<p>In case you want to write something to the Oracle alert.log file, you can use an undocumented package procedure to do so.<br/><br />
<br/><br />
The <strong>dbms_system.ksdwrt</strong> package procedure takes 2 arguments, the first parameter is where you want to write the message, indicated by the second parameter to.<br/><br />
The first parameter can take 3 different values:</p>
<ul>
<li>1: Write the message to a trace file </li>
<li>2: Write the message to the alert.log file </li>
<li>3: Write the message to both a trace file and the alert.log file</li>
</ul>
<p>For example, your application can write something to the alert.log file whenever a critical condition is encountered.<br/><br />
In order to write something to the alert.log, we need to provide 2 as the first parameter.</p>
<pre>
SQL> exec dbms_system.ksdwrt(2, '[YOURAPP] A Critical error was detected in module: INIT');

PL/SQL procedure successfully completed.
</pre>
<p>Now, if we check the <a href="/2010/11/19/location-of-alert-log-file/">alert.log file</a>, we can see the message:</p>
<pre>
SQL> select value from v$parameter where name='background_dump_dest';

VALUE
--------------------------------------------------------------------------------
/u01/app/oracle/product/10.2.0/rdbms/log

SQL> select name from v$database;

NAME
---------------------------
ORA10G

SQL> host tail /u01/app/oracle/product/10.2.0/rdbms/log/alert_ORA10G.log
Mon Jun 15 21:57:47 2009
[YOURAPP] A Critical error was detected in module: INIT
</pre>
<p>Starting from Oracle 11g, you can query the X$DBGALERTEXT internal view to check the alert.log from within Oracle.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/write-a-message-to-a-trace-file-or-the-alert-log-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Location of alert.log file</title>
		<link>http://www.dbmotive.com/2010/11/19/location-of-alert-log-file/</link>
		<comments>http://www.dbmotive.com/2010/11/19/location-of-alert-log-file/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:31:49 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=411</guid>
		<description><![CDATA[The alert.log file contain messages related to the startup and running of a specific database. The name of the alert.log file is: alert&#60;ORACLE_SID&#62;.log on Windows, or alert_&#60;ORACLE_SID&#62;.log On Unix/Linux The alert.log file normally is in the $ORACLE_BASE/&#60;ORACLE_SID&#62;/bdump location, or since Oracle 11g in the database specific location in the diagnostic_dest. If the database is running, ...]]></description>
			<content:encoded><![CDATA[<p>The alert.log file contain messages related to the startup and running of a specific database.<br/><br />
<br/><br />
The name of the alert.log file is:</p>
<pre>
alert&lt;ORACLE_SID&gt;.log
</pre>
<p>on Windows, or</p>
<pre>
alert_&lt;ORACLE_SID&gt;.log
</pre>
<p>On Unix/Linux<br/><br/><br />
The alert.log file normally is in the $ORACLE_BASE/&lt;ORACLE_SID&gt;/bdump location, or since Oracle 11g in the database specific location in the diagnostic_dest.<br/><br />
<br/><br />
If the database is running, you can issue following select to be able to identify the location of the background_dump_dest:</p>
<pre>
SQL> select value from v$parameter where name='background_dump_dest';

VALUE
--------------------------------------------------------------------------------
/oracle/diag/diag/rdbms/ora11g/ORA11G/trace
</pre>
<p>To find the location of the diagnostic_dest, one can use the following select:</p>
<pre>
SQL> select value from v$parameter where name='diagnostic_dest';

VALUE
--------------------------------------------------------------------------------
/oracle/diag/
</pre>
<p>In order to know the current ORACLE_SID, you can use following select:</p>
<pre>
SQL> select name from v$database;

NAME
---------------------------
ORA11G
</pre>
<p>In our example, because we are on Linux, the name of the alert.log file will be:</p>
<pre>
/oracle/diag/diag/rdbms/ora11g/ORA11G/trace/alert_ORA11G.log
</pre>
<div class="note_box">
If the alert.log file is not in any of these locations, or the parameters are not set, the alert.log file will be in your %ORACLE_HOME/rdbms/trace directory.
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/location-of-alert-log-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable database auditing</title>
		<link>http://www.dbmotive.com/2010/11/19/enable-database-auditing/</link>
		<comments>http://www.dbmotive.com/2010/11/19/enable-database-auditing/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:24:11 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=409</guid>
		<description><![CDATA[Oracle database auditing can be enabled by setting the audit_trail initialization parameter. You can check the current status using following select: select value from v$parameter where name='audit_trail' Value can have a number of different possibilites: none or false: auditing is not enabled OS: audit records are written to your operating system db or true / ...]]></description>
			<content:encoded><![CDATA[<p>Oracle database auditing can be enabled by setting the <strong>audit_trail</strong> initialization parameter.<br/><br />
You can check the current status using following select:</p>
<pre>
select value from v$parameter where name='audit_trail'
</pre>
<p>Value can have a number of different possibilites:</p>
<ul>
<li>none or false: auditing is not enabled</li>
<li>OS: audit records are written to your operating system</li>
<li>db or true / db, extended: audit trail records are written to the SYS.AUD$ table in your database. Under normal circumstances, this table exists in the SYSTEM tablespace.</li>
<li>xml / xml, extended: audit trail records are written to XML OS files.</li>
</ul>
<p>If you want to enable auditing, the value should not be NONE or FALSE.<br/><br />
<br/><br />
You change the value either in the init&lt;ORACLE_SID&gt;.ora file if you are using a pfile, or in the spfile using following command:</p>
<pre>
SQL> alter system set audit_trail=DB scope=spfile;

System altered.
</pre>
<p>You need to bounce (stop and restart) the database in order to let the parameter become active.<br/><br />
<br/><br />
Now, if you want to enable auditing when users connect, use following statement to enable session logon (creation) auditing:</p>
<pre>
SQL> audit create session;

Audit succeeded.
</pre>
<p>If you want to disable a certain audit action, you can use the NOAUDIT statement:</p>
<pre>
SQL> noaudit create session;

Noaudit succeeded.
</pre>
<p>Now, you can use the dba_audit_trail or any other audit table to check for audit records:<br/></p>
<pre>
-- select all invalid logon sessions for a certain user ordered by last logon attempt
select * from dba_audit_session where username='<strong>username</strong>' and returncode != 0 order by timestamp desc;
</pre>
<p>If you want to know to what operating system file location audit files are written, you can run following query:</p>
<pre>
SQL> select value from v$parameter where name='audit_file_dest';

VALUE
--------------------------------------------------------------------------------
/u01/app/oracle/product/10.2.0/rdbms/audit
</pre>
<p>To check the tablespace the AUD$ table belongs to, use following select:</p>
<pre>
SQL> select tablespace_name from dba_tables where owner='SYS' and table_name='AUD$';

TABLESPACE_NAME
------------------------------
SYSTEM
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/enable-database-auditing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable 10046 trace in a session</title>
		<link>http://www.dbmotive.com/2010/11/19/enable-10046-trace-in-a-session/</link>
		<comments>http://www.dbmotive.com/2010/11/19/enable-10046-trace-in-a-session/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:22:25 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[trace]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=406</guid>
		<description><![CDATA[There are a number of ways to trace a session: Enable trace at the beginning of your session Enable trace of a running session 1. Enable tracing at the begin of your session To enable tracing for a particular session we will need to set the Oracle event 10046. This event contains a level which ...]]></description>
			<content:encoded><![CDATA[<p>There are a number of ways to trace a session:</p>
<ol>
<li>Enable trace at the beginning of your session</li>
<li>Enable trace of a running session</li>
</ol>
<h3>1. Enable tracing at the begin of your session</h3>
<p>To enable tracing for a particular session we will need to set the Oracle event 10046.</p>
<p>This event contains a level which can be combined using a logical OR relation to mix different trace functions.</p>
<p>This is what the different levels are used for:</p>
<table style="border-collapse: collapse; border: 1px solid #ccc;" border="1">
<tbody>
<tr>
<td>1</td>
<td>Enable statistics for parse, execute, fetch, commit and rollback operations.</p>
<p>This is the same as doing a <strong>&#8216;alter session set sql_trace=true&#8217;</strong> SQL call.</td>
</tr>
<tr>
<td>2</td>
<td>No information available</td>
</tr>
<tr>
<td>4</td>
<td>Enable tracing of bind variables</td>
</tr>
<tr>
<td>8</td>
<td>Enable tracing for wait events. These should match the events as found in v$event_name</td>
</tr>
</tbody>
</table>
<p>As said before we can combine the different levels to enable combination&#8217;s of  tracing.</p>
<p>A level of 12 means that we will trace bind variables as well as wait events. When setting the level to a value other than zero, level 1 will also be activated. So setting the level to 12 also enables tracing for parse, execute, fetch,&#8230; operations.</p>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">&#8211; To enable tracing</span></p>
<pre>alter session set events '10046 trace name context forever, level 12'

--To stop tracing of the current session
alter session set events '10046 trace name context off'</pre>
<h2>Enable trace of a running session</h2>
<p>In order to enable tracing for a running application, one can use the dbms_system package.</p>
<pre>
-- to enable tracing for another sid, serial# pair
sys.dbms_system.set_ev( sid, serial#, 10046, 12, '');

-- to disable tracing.
sys.dbms_system.set_ev( sid, serial#, 10046, 0, '');</pre>
<p>Alternatively, to just enable a level 1 trace:</p>
<pre>-- to enable tracing for another sid, serial# pair
sys.dbms_system.set_sql_trace_in_session(sid, serial#, true);
-- to disable tracing.
sys.dbms_system.set_sql_trace_in_session(sid, serial#, false);</pre>
<p>When your application require frequent tracing for a particular setting, one might think about including an option into the application which &#8211; when enabled &#8211; just starts tracing the session.</p>
<p>Alternatively, you can create a schema logon trigger which enables tracing when a user logs on to the schema.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/enable-10046-trace-in-a-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate Workload CPU statistics using dbms_stats.gather_system_stats</title>
		<link>http://www.dbmotive.com/2010/11/19/generate-workload-cpu-statistics-using-dbms_stats-gather_system_stats/</link>
		<comments>http://www.dbmotive.com/2010/11/19/generate-workload-cpu-statistics-using-dbms_stats-gather_system_stats/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 14:17:25 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=403</guid>
		<description><![CDATA[In Oracle 9i and up, you can generate CPU cost information during a workload with a procedure of the dbms_stats package. The dbms_stats.gather_system_stats packaged procedure can be used during a certain interval to measure the actual I/O and CPU usage during a workload, typically a days work. SQL> exec dbms_stats.gather_system_stats('START') PL/SQL procedure successfully completed. SQL> ...]]></description>
			<content:encoded><![CDATA[<p>In Oracle 9i and up, you can generate CPU cost information during a workload with a procedure of the dbms_stats package.<br/></p>
<p><br/></p>
<p>The dbms_stats.gather_system_stats packaged procedure can be used during a certain interval to measure the actual I/O and CPU usage during a workload, typically a days work.<br/></p>
<pre>
SQL> exec dbms_stats.gather_system_stats('START')

PL/SQL procedure successfully completed.

SQL> -- days processing

SQL> exec dbms_stats.gather_system_stats('STOP')

PL/SQL procedure successfully completed.
</pre>
<p>Now, when you gathered workload CPU statistics, one can query the sys.aux_stats$ data dictionary table to see the actual values that will be used when generating your Sql plan:</p>
<pre>
select sname, pname, pval1
from sys.aux_stats$;

SNAME       	PNAME      PVAL1
-------------	---------  -------
SYSSTATS_INFO   STATUS
SYSSTATS_INFO   DSTART
SYSSTATS_INFO   DSTOP
SYSSTATS_INFO   FLAGS	    1
SYSSTATS_MAIN   CPUSPEEDNW  502.005
SYSSTATS_MAIN   IOSEEKTIM   10
SYSSTATS_MAIN   IOTFRSPEED  4096
SYSSTATS_MAIN   SREADTIM    7.618
SYSSTATS_MAIN   MREADTIM    14.348
SYSSTATS_MAIN   CPUSPEED    507
SYSSTATS_MAIN   MBRC 	    6
SYSSTATS_MAIN 	MAXTHR      32768
SYSSTATS_MAIN 	SLAVETHR      

13 rows selected.
</pre>
<p>CPUSPEEDNW, IOSEEKTIM, and IOTFRSPEED are noworkload statistics; <br/><br />
SREADTIM, MREADTIM, CPUSPEED, MBRC, MAXTHR, and SLAVETHR represent workload statistics.<br/><br />
<br/><br />
When you have both workload and noworkload statistics, the optimizer will use workload statistics.</p>
<ul>
<li>SREADTIM &#8211; single block read time (msec): the average time Oracle takes to read a single block</li>
<li>MREADTIM &#8211; multiblock read time (msec): the average time taken to read sequentially</li>
<li>MBRC &#8211; multiblock read count: the average amount of blocks read during multiblock sequential reads. This value is used instead of the db_ multiblock_read_count parameter during query optimization to compute costs for table and fast full index scans</li>
<li>MAXTHR &#8211; maximum I/O system throughput: is captured only if the database runs parallel queries</li>
<li>SLAVETHR &#8211; maximum slave I/O throughput: is captured only if the database runs parallel queries</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/generate-workload-cpu-statistics-using-dbms_stats-gather_system_stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle startup sequence</title>
		<link>http://www.dbmotive.com/2010/11/19/oracle-startup-sequence/</link>
		<comments>http://www.dbmotive.com/2010/11/19/oracle-startup-sequence/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 10:33:05 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=399</guid>
		<description><![CDATA[The Oracle startup phase consist out of 3 steps: nomount phase: during this phase, the initialization file is read mount phase: during this phase, the controlfile file is read open phase: during this phase, the datafiles and redolog files are checked for consistency and opened nomount phase During the nomount phase, the Oracle initialization file ...]]></description>
			<content:encoded><![CDATA[<p>The Oracle startup phase consist out of 3 steps:</p>
<ul>
<li>nomount phase: during this phase, the initialization file is read</li>
<li>mount phase: during this phase, the controlfile file is read</li>
<li>open phase: during this phase, the datafiles and redolog files are checked for consistency and opened</li>
</ul>
<h2>nomount phase</h2>
<p>During the nomount phase, the Oracle initialization file is read. If it is found, the memory structures are created and the Oracle processes are started.<br/><br />
The memory area and startup of the processes are done using the &#8216;startup nomount&#8217; command.</p>
<pre>
SQL> conn / as sysdba
Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area  171966464 bytes
Fixed Size                  2082496 bytes
Variable Size             113248576 bytes
Database Buffers           50331648 bytes
Redo Buffers                6303744 bytes
</pre>
<p>We can check the v$instance view to check if the instance was started successfully and check the status of the instance</p>
<pre>
SQL> select instance_name, status from v$instance;

INSTANCE_NAME STATUS
------------- ----------------------
ORA11G        STARTED
</pre>
<p>Because we only have read the initialization file, we cannot check the status of the database.<br/><br />
To be able to check the database, we need to mount the database.</p>
<pre>
SQL> select * from v$database;
select * from v$database
              *
ERROR at line 1:
<a href="/support/oracle-error-codes/?type=ORA&#038;errcode=1507">ORA-01507</a>: database not mounted
</pre>
<h2>mount phase</h2>
<p>During the mount phase, the controlfile(s) are checked for availability and read.<br/><br />
The controlfile contain information about the database, such as the database name and the number and location of the datafiles.<br/><br />
The database is mounted using the &#8216;alter database mount&#8217; command.</p>
<pre>
SQL> alter database mount;

Database altered.
</pre>
<p>Should there be a problem with (one of the) controlfile(s), you will get an error.<br/><br />
In order to mount a database, all controlfiles should be available and accessible.</p>
<pre>
SQL> alter database mount;
alter database mount
*
ERROR at line 1:
<a href="/support/oracle-error-codes/?type=ORA&#038;errcode=205">ORA-00205</a>: error in identifying control file, check alert log for more info
</pre>
<p>You need to check the alert.log file in order to rectify the problem.<br/><br />
You can use following query to check what controlfiles are needed to mount the database.</p>
<pre>
SQL> select value from v$parameter where name='control_files';

VALUE
--------------------------------------------------------------------------------
/u01/app/oracle/product/10.2.0/dbs/cntrlORA11G.dbf
</pre>
<p>Now you can check the status of the database using the v$database view:</p>
<pre>
SQL> select name, open_mode from v$database;

NAME      OPEN_MODE
--------- ----------
ORA11G    MOUNTED
</pre>
<p>In order to use the database, we need to open the database.</p>
<h2>open phase</h2>
<p>During the open phase, the datafiles and redolog files are check for consistency and opened.<br/><br />
When the database is open, you can also access the data dictionary views. Because the data dictionary views are stored in datafiles, you can only query the views when the database is open.</p>
<pre>
SQL> select count(*) from dba_users;
select count(*) from dba_users
                     *
ERROR at line 1:
<a href="/support/oracle-error-codes/?type=ORA&#038;errcode=1219">ORA-01219</a>: database not open: queries allowed on fixed tables/views only
</pre>
<p>In order to open the database, we issue the &#8216;alter database open&#8217; command.</p>
<pre>
SQL> alter database open;

Database altered.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/19/oracle-startup-sequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SEVERE] – My Oracle Support Username/Email Address Not Specified</title>
		<link>http://www.dbmotive.com/2010/11/09/severe-my-oracle-support-usernameemail-address-not-specified/</link>
		<comments>http://www.dbmotive.com/2010/11/09/severe-my-oracle-support-usernameemail-address-not-specified/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 14:04:47 +0000</pubDate>
		<dc:creator>Wim Jans</dc:creator>
				<category><![CDATA[Oracle Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.dbmotive.com/?p=350</guid>
		<description><![CDATA[When you are trying to install Oracle 11gr2 software using a silent install, you might encounter following error: [SEVERE] - My Oracle Support Username/Email Address Not Specified In order to fix this problem, make sure you set following response file parameter to TRUE: DECLINE_SECURITY_UPDATES=true By default, this parameter is empty and defaults to FALSE, meaning ...]]></description>
			<content:encoded><![CDATA[<p>When you are trying to install Oracle 11gr2 software using a silent install, you might encounter following error:</p>
<p><code><br />
[SEVERE] - My Oracle Support Username/Email Address Not Specified<br />
</code></p>
<p>In order to fix this problem, make sure you set following response file parameter to TRUE:</p>
<p><code><br />
DECLINE_SECURITY_UPDATES=true<br />
</code><br />
By default, this parameter is empty and defaults to FALSE, meaning that Oracle tries to download new security updates from My Oracle Support.<br />
This means that you need to provide the correct credentials, or just skip this by setting the parameter to TRUE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dbmotive.com/2010/11/09/severe-my-oracle-support-usernameemail-address-not-specified/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

