<?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>UKoom &#187; Database</title>
	<atom:link href="http://www.ukoom.com/tag/database/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ukoom.com</link>
	<description>Documentum, SharePoint, Alfresco, ECM...</description>
	<lastBuildDate>Tue, 25 Oct 2011 15:11:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>SQL Server Profiler &#8211; Only TrueType fonts are supported</title>
		<link>http://www.ukoom.com/sql-server-profiler-only-truetype-fonts-are-supported.htm</link>
		<comments>http://www.ukoom.com/sql-server-profiler-only-truetype-fonts-are-supported.htm#comments</comments>
		<pubDate>Sun, 22 Aug 2010 05:12:27 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1115</guid>
		<description><![CDATA[Error message &#8211; &#8220;Only TrueType fonts are supported. This is not a TrueType font.&#8221; was thrown when using SQL Server Profiler. Solution： 1. Open SQL Server Profilr 2. Go to &#8216; Tool&#8217;Menu 3. Select Options 4. Change the font name to &#8220;Arial&#8221; 5. Click OK.]]></description>
			<content:encoded><![CDATA[<p>Error message &#8211; &#8220;Only TrueType fonts are supported. This is not a TrueType font.&#8221; was thrown when using SQL Server Profiler.</p>
<p>Solution：</p>
<p>1. Open SQL Server Profilr</p>
<p>2. Go to &#8216; Tool&#8217;Menu</p>
<p>3. Select Options</p>
<p>4. Change the font name to &#8220;Arial&#8221;</p>
<p>5. Click OK.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/sql-server-profiler-only-truetype-fonts-are-supported.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get definition for view in Oracle</title>
		<link>http://www.ukoom.com/get-definition-for-view-in-oracle.htm</link>
		<comments>http://www.ukoom.com/get-definition-for-view-in-oracle.htm#comments</comments>
		<pubDate>Fri, 23 Apr 2010 01:19:36 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1059</guid>
		<description><![CDATA[set LONG 10000 select TEXT from ALL_VIEWS where view_name = &#8216;MY_VIEW&#8216;; Line one must be at least the size of the statement used to create the view. Either pick a really big number if you think the view is large or use the following to determine how long it is first. If it isn&#8217;t, the [...]]]></description>
			<content:encoded><![CDATA[<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">set  LONG 1000<span>0</span><br />
select TEXT from ALL_VIEWS  where  view_name<span> </span>=<span> </span>&#8216;<span>MY_VIEW</span>&#8216;;</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">Line one must be at  least the size of the statement used to  create the view. Either pick a really  big number if you think the view  is large or use the following to determine how  long it is first. If it  isn&#8217;t, the text will be truncated</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">select   text_length from all_views where view_name = &#8216;MY_VIEW&#8217;</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">NOTE: name of the  view is case sensitive as are most every thing  in Oracle.</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">If you want to  capture output to something other than a SQL Plus  window such as a file, be sure  to include do the following before you  execute the select  statement.</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool   c:\v_person.sql</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;">To close the file  when you  are done writing output to it, call the following:</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool   off</span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><strong> </strong></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><strong>To  summarize:</strong></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"> </span></span></div>
<div><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">select text_length from all_views where   view_name = &#8216;MY_VIEW&#8217;</span></span></span></div>
<div><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">10000</span></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><span> </span></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><span>&#8211; whatever value you  get back, use on the next  statement.</span></span></span></div>
<div><span><span style="font-family: Arial; font-size: 85%;"><span> </span></span></span></div>
<div><span><span><span><span style="font-family: Arial;"><span style="font-size: 85%;"><span style="color: #0000ff;">set  LONG  1000<span>0</span></span></span></span></span></span></span></div>
<div><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"><span> </span></span></span></span></span></div>
<div><span><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool  c:\v_person.sql</span></span></span></span></span></div>
<div><span><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"> </span></span></span></span></span></div>
<div><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"><span>select TEXT from ALL_VIEWS where view_name<span> </span>=<span> </span>&#8216;<span>MY_VIEW</span>&#8216;;</span></span></span></span></span></div>
<div><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;"><span> </span></span></span></span></span></div>
<div><span><span><span><span><span style="font-family: Arial; font-size: 85%; color: #0000ff;">spool off</span></span></span></span></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/get-definition-for-view-in-oracle.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerDesigner Non SQLError</title>
		<link>http://www.ukoom.com/powerdesigner-non-sqlerror.htm</link>
		<comments>http://www.ukoom.com/powerdesigner-non-sqlerror.htm#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:35:56 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1042</guid>
		<description><![CDATA[The error &#8220;Non SQLError Could not load class Driver_name&#8221; was thrown when using PowerDesigner to generate the hibernate mapping files. This error occurs if you enter an incorrect Driver and URL in the Database Profile.]]></description>
			<content:encoded><![CDATA[<p>The error &#8220;Non SQLError Could not load class Driver_name&#8221; was thrown when using PowerDesigner to generate the hibernate mapping files.</p>
<p>This error occurs if you enter an incorrect Driver and URL in the Database Profile.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/powerdesigner-non-sqlerror.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerDesigner Reverse Engineer</title>
		<link>http://www.ukoom.com/powerdesigner-reverse-engineer.htm</link>
		<comments>http://www.ukoom.com/powerdesigner-reverse-engineer.htm#comments</comments>
		<pubDate>Fri, 05 Feb 2010 05:34:06 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=1040</guid>
		<description><![CDATA[Get the Physical Data Model 1. Menu Operation File, Reverse Engineer , Database, New Phycial Data Model 2. Connection Add a connect to the target database 3. Choose tables to generate the models Generate the Java Code 1. Menu Operation Tools , Generate Object-Oriented Model, Detail, O/R Mapping, Enable Transformations, Extended Model Definitions, O/R Mapping,      [...]]]></description>
			<content:encoded><![CDATA[<p>Get the Physical Data Model<br />
1. Menu Operation<br />
File, Reverse Engineer , Database, New Phycial Data Model<br />
2. Connection<br />
Add a connect to the target database<br />
3. Choose tables to generate the models</p>
<p>Generate the Java Code<br />
1. Menu Operation<br />
Tools , Generate Object-Oriented Model, Detail, O/R Mapping,<br />
Enable Transformations, Extended Model Definitions, O/R Mapping,      Hibernate</p>
<p>To be continued.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/powerdesigner-reverse-engineer.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle Tuning Documentum Server</title>
		<link>http://www.ukoom.com/oracle-tuning-documentum-server.htm</link>
		<comments>http://www.ukoom.com/oracle-tuning-documentum-server.htm#comments</comments>
		<pubDate>Mon, 07 Dec 2009 06:44:56 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Documentum]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=942</guid>
		<description><![CDATA[Modifying the dmcl.ini File on the Oracle WebCenter Content Service for Documentum Host On all computers that host the Oracle WebCenter Content Service for Documentum, you can increase the max_session_count variable in the dmcl.ini file to allow for additional concurrent sessions. By default, the max_session_count is set to 10, meaning there can be 10 concurrent [...]]]></description>
			<content:encoded><![CDATA[<h2>Modifying the dmcl.ini File on the Oracle WebCenter Content Service for Documentum Host</h2>
<p><a name="wp1046181"> </a> On all computers that host the Oracle WebCenter Content Service for Documentum, you can increase the <span style="font-weight: bold;">max_session_count</span> variable in the<span style="font-weight: bold;"> dmcl.ini</span> file to allow for additional concurrent sessions. By default, the <span style="font-weight: bold;">max_session_count</span> is set to 10, meaning there can be 10 concurrent sessions to Documentum.</p>
<div>
<ul>
<li><a name="wp1046182"> </a>The number of Documentum sessions depends on the number of content crawlers you expect to run concurrently, as well as the number of users you expect to click through links concurrently. We recommend you set the <span style="font-weight: bold;">max_session_count </span>parameter accordingly. You can increase this setting later if you find that you run out of sessions or want to increase the number of content crawlers running simultaneously.</li>
<li><a name="wp1046183"> </a>A session is started for each user with a unique user name/password that tries to click through to a Documentum document in the portal. The <span style="font-weight: bold;">max_session_count</span> must accommodate the estimated number of click through users to be handled concurrently.</li>
</ul>
<h2>Modifying the server.ini File on the Documentum Server</h2>
<p><a name="wp1046185"> </a> On the Documentum Server computer, you can change the settings in the <span style="font-weight: bold;">server.ini</span> file to allow for additional concurrent sessions.</p>
<div>
<ul>
<li><a name="wp1046186"> </a>The <span style="font-weight: bold;">concurrent_sessions</span> variable controls the number of connections the Documentum server can handle concurrently. This parameter should accommodate for the sum of all the <span style="font-weight: bold;">max_session_count</span> values in your environment.</li>
</ul>
</div>
<p><a name="wp1046187"> </a> If you plan to use the Oracle WebCenter Content Service for Documentum with several different docbases, you must modify the <span style="font-weight: bold;">server.ini</span> for each docbase. When making these configuration changes, consider the following:</p>
<div>
<ul>
<li><a name="wp1046188"> </a>As with any configuration changes, take into account any hardware limitations.</li>
<li><a name="wp1046189"> </a>The configuration settings depend on both existing and projected Documentum usage.</li>
</ul>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/oracle-tuning-documentum-server.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Session Statistics</title>
		<link>http://www.ukoom.com/oracle-session-statistics.htm</link>
		<comments>http://www.ukoom.com/oracle-session-statistics.htm#comments</comments>
		<pubDate>Mon, 07 Dec 2009 05:55:32 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=939</guid>
		<description><![CDATA[Here are some scripts related to Session Statistics . Session I/O By User SESSION I/O BY USER NOTES: Username &#8211; Name of the Oracle process user OS User &#8211; Name of the operating system user PID &#8211; Process ID of the session SID &#8211; Session ID of the session Serial# &#8211; Serial# of the session [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some scripts related to Session Statistics .</p>
<h2>Session I/O By User</h2>
<p><strong>SESSION I/O BY USER NOTES:</strong></p>
<div>
<li><strong>Username</strong> &#8211; Name of the Oracle process user</li>
<li><strong>OS User</strong> &#8211; Name of the operating system user</li>
<li><strong>PID</strong> &#8211; Process ID of the session</li>
<li><strong>SID</strong> &#8211; Session ID of the session</li>
<li><strong>Serial#</strong> &#8211; Serial# of the session</li>
<li><strong>Physical Reads</strong> &#8211; Physical reads for the session</li>
<li><strong>Block Gets</strong> &#8211; Block gets for the session</li>
<li><strong>Consistent Gets</strong> &#8211; Consistent gets for the session</li>
<li><strong>Block Changes</strong> &#8211; Block changes for the session</li>
<li><strong>Consistent Changes</strong> &#8211; Consistent changes for the session<br />
<blockquote>
<pre>select	nvl(ses.USERNAME,'ORACLE PROC') username,
	OSUSER os_user,
	PROCESS pid,
	ses.SID sid,
	SERIAL#,
	PHYSICAL_READS,
	BLOCK_GETS,
	CONSISTENT_GETS,
	BLOCK_CHANGES,
	CONSISTENT_CHANGES
from	v$session ses,
	v$sess_io sio
where 	ses.SID = sio.SID
order 	by PHYSICAL_READS, ses.USERNAME</pre>
</blockquote>
<h2>CPU Usage By Session</h2>
<p><strong>CPU USAGE BY SESSION NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>SID</strong> &#8211; Session id</li>
<li><strong>CPU Usage</strong> &#8211; CPU centiseconds used by this session (divide by 100 to get real CPU seconds)<br />
<blockquote>
<pre>select 	nvl(ss.USERNAME,'ORACLE PROC') username,
	se.SID,
	VALUE cpu_usage
from 	v$session ss,
	v$sesstat se,
	v$statname sn
where  	se.STATISTIC# = sn.STATISTIC#
and  	NAME like '%CPU used by this session%'
and  	se.SID = ss.SID
order  	by VALUE desc</pre>
</blockquote>
<h2>Resource Usage By User</h2>
<p><strong>RESOURCE USAGE BY USER NOTES:</strong></li>
<li><strong>SID</strong> &#8211; Session ID</li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>Statistic</strong> &#8211; Name of the statistic</li>
<li><strong>Value</strong> &#8211; Current value<br />
<blockquote>
<pre>select 	ses.SID,
	nvl(ses.USERNAME,'ORACLE PROC') username,
	sn.NAME statistic,
	sest.VALUE
from 	v$session ses,
	v$statname sn,
	v$sesstat sest
where 	ses.SID = sest.SID
and 	sn.STATISTIC# = sest.STATISTIC#
and 	sest.VALUE is not null
and 	sest.VALUE != 0
order 	by ses.USERNAME, ses.SID, sn.NAME</pre>
</blockquote>
<h2>Session Stats By Session</h2>
<p><strong>SESSION STAT NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>SID</strong> &#8211; Session ID</li>
<li><strong>Statistic</strong> &#8211; Name of the statistic</li>
<li><strong>Usage</strong> &#8211; Usage according to Oracle<br />
<blockquote>
<pre>select  nvl(ss.USERNAME,'ORACLE PROC') username,
	se.SID,
	sn.NAME stastic,
	VALUE usage
from 	v$session ss,
	v$sesstat se,
	v$statname sn
where  	se.STATISTIC# = sn.STATISTIC#
and  	se.SID = ss.SID
and	se.VALUE &gt; 0
order  	by sn.NAME, se.SID, se.VALUE desc</pre>
</blockquote>
<h2>Cursor Usage By Session</h2>
<p><strong>CURSOR USAGE BY SESSION NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>Recursive Calls</strong> &#8211; Total number of recursive calls</li>
<li><strong>Opened Cursors</strong> &#8211; Total number of opened cursors</li>
<li><strong>Current Cursors</strong> &#8211; Number of cursor currently in use<br />
<blockquote>
<pre>select 	user_process username,
	"Recursive Calls",
	"Opened Cursors",
	"Current Cursors"
from  (
	select 	nvl(ss.USERNAME,'ORACLE PROC')||'('||se.sid||') ' user_process,
			sum(decode(NAME,'recursive calls',value)) "Recursive Calls",
			sum(decode(NAME,'opened cursors cumulative',value)) "Opened Cursors",
			sum(decode(NAME,'opened cursors current',value)) "Current Cursors"
	from 	v$session ss,
		v$sesstat se,
		v$statname sn
	where 	se.STATISTIC# = sn.STATISTIC#
	and 	(NAME  like '%opened cursors current%'
	or 	 NAME  like '%recursive calls%'
	or 	 NAME  like '%opened cursors cumulative%')
	and 	se.SID = ss.SID
	and 	ss.USERNAME is not null
	group 	by nvl(ss.USERNAME,'ORACLE PROC')||'('||se.SID||') '
)
orasnap_user_cursors
order 	by USER_PROCESS,"Recursive Calls"</pre>
</blockquote>
<h2>User Hit Ratios</h2>
<p><strong>USER HIT RATIO NOTES:</strong></li>
<li><strong>Username</strong> &#8211; Name of the user</li>
<li><strong>Consistent Gets</strong> &#8211; The number of accesses made to the block buffer to retrieve data in a  consistent mode.</li>
<li><strong>DB Blk Gets</strong> &#8211; The number of blocks accessed via single block gets (i.e. not through the consistent get mechanism).</li>
<li><strong>Physical Reads</strong> &#8211; The cumulative number of blocks read from disk.</li>
<li>Logical reads are the sum of <strong>consistent gets</strong> and <strong>db block gets</strong>.</li>
<li>The <strong>db block gets</strong> statistic value is incremented when a block is read for update and when segment header blocks are accessed.</li>
<li>Hit ratio should be &gt; 90%<br />
<blockquote>
<pre>select	USERNAME,
	CONSISTENT_GETS,
        BLOCK_GETS,
        PHYSICAL_READS,
        ((CONSISTENT_GETS+BLOCK_GETS-PHYSICAL_READS) / (CONSISTENT_GETS+BLOCK_GETS)) Ratio
from 	v$session, v$sess_io
where 	v$session.SID = v$sess_io.SID
and 	(CONSISTENT_GETS+BLOCK_GETS) &gt; 0
and 	USERNAME is not null
order	by ((CONSISTENT_GETS+BLOCK_GETS-PHYSICAL_READS) / (CONSISTENT_GETS+BLOCK_GETS))</pre>
</blockquote>
</li>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/oracle-session-statistics.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Link to Oracle Database</title>
		<link>http://www.ukoom.com/link-to-oracle-database.htm</link>
		<comments>http://www.ukoom.com/link-to-oracle-database.htm#comments</comments>
		<pubDate>Wed, 18 Nov 2009 05:01:07 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Team Fight]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/link-to-oracle-database.htm</guid>
		<description><![CDATA[sqlplus user/pass@//IP:PORT/service]]></description>
			<content:encoded><![CDATA[<p>sqlplus user/pass@//IP:PORT/service</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/link-to-oracle-database.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL SELECT TOP N</title>
		<link>http://www.ukoom.com/sql-select-top-n.htm</link>
		<comments>http://www.ukoom.com/sql-select-top-n.htm#comments</comments>
		<pubDate>Fri, 13 Nov 2009 16:03:03 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=728</guid>
		<description><![CDATA[SQL Server: SELECT TOP 10 product, descr, email FROM products ORACLE: SELECT product, descr, email FROM products WHERE ROWNUM &#60;= 10 MySQL: SELECT product, descr, email FROM products LIMIT 10]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Verdana; font-size: x-small;">SQL Server:</p>
<div style="border: 1px solid black; padding: 5px; background-color: gainsboro;"><span style="font-size: 10pt; color: #000000; font-family: Courier New;"><strong style="color: black; background-color: #a0ffff;">SELECT</strong> <strong style="color: black; background-color: #99ff99;">TOP</strong> 10 product, descr, email<br />
FROM products<br />
</span></div>
<p><strong style="color: black; background-color: #ffff66;">ORACLE</strong>:</p>
<p><span style="font-size: 10pt; color: #000000; font-family: Courier New;"></p>
<div style="border: 1px solid black; padding: 5px; background-color: gainsboro;"><span style="font-size: 10pt; color: #000000; font-family: Courier New;"><strong style="color: black; background-color: #a0ffff;">SELECT</strong> product, descr, email<br />
FROM products<br />
WHERE ROWNUM &lt;= 10</span></div>
<p></span> </span> <span style="font-family: Verdana; font-size: x-small;">MySQL:</p>
<div style="border: 1px solid black; padding: 5px; background-color: gainsboro;"><span style="font-size: 10pt; color: #000000; font-family: Courier New;"><strong style="color: black; background-color: #a0ffff;">SELECT</strong> product, descr, email<br />
FROM products<br />
LIMIT 10</span></div>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/sql-select-top-n.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-00942: Table or view does not exist</title>
		<link>http://www.ukoom.com/ora-00942-table-or-view-does-not-exist.htm</link>
		<comments>http://www.ukoom.com/ora-00942-table-or-view-does-not-exist.htm#comments</comments>
		<pubDate>Fri, 13 Nov 2009 13:21:35 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=725</guid>
		<description><![CDATA[// // The table you are trying to access does not exists, or you do not have privileges to access the table. You can use following select to determine if you have access on the table: select owner, object_name, object_type from all_objects where object_name='&#60;table_name&#62; or &#60;view_name&#62;' If you do see the table/view in the previous [...]]]></description>
			<content:encoded><![CDATA[<div style="margin-bottom: 10px;"><script type="text/javascript">// <![CDATA[
google_ad_client = "pub-4452540816929287";
/* 728x90, created 12/5/08 */
google_ad_slot = "0095976115";
google_ad_width = 728;
google_ad_height = 90;
// ]]&gt;</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script> <script src="http://pagead2.googlesyndication.com/pagead/expansion_embed.js"></script> <script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"></script> <script src="http://pagead2.googlesyndication.com/pagead/render_ads.js"></script> <script type="text/javascript">// <![CDATA[
google_protectAndRun("render_ads.js::google_render_ad", google_handleError, google_render_ad);
// ]]&gt;</script> <ins style="border-style: none; margin: 0px; padding: 0px; visibility: visible; width: 728px; position: relative; height: 90px;"></ins>The table you are trying to access does not exists, or you do not have  privileges to access the table.</div>
<p>You can use following select to  determine if you have access on the table:<br />
<strong></p>
<pre>select owner, object_name, object_type
from all_objects
where object_name='<em>&lt;table_name&gt;</em> or <em>&lt;view_name&gt;</em>'</pre>
<p></strong>If you do see the table/view in the previous select, you might need to  add the owner in front of the table/view name.<br />
<strong></p>
<pre>select * from <em>owner</em>.<em>object_name</em></pre>
<p></strong>If you have to add the owner in front of the name, you can consider  creating a synonym.<br />
<strong></p>
<pre>create synonym <em>synonym_name</em> for <em>owner</em>.<em>object_name</em>.</pre>
<p></strong>From now on you can just select from the synonym name (which is  usually the same name as the table/view name).</p>
<p>If you do not have  privileges on the table or view, grant the necessary privileges as the owner of  the object:<br />
<strong></p>
<pre>grant select on <em>object name</em> to <em>privileged user</em>

Please refer to http://www.dbmotive.com/oracle_error_codes.php?errcode=00942</pre>
<p></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/ora-00942-table-or-view-does-not-exist.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DROP MATERIALIZED VIEW</title>
		<link>http://www.ukoom.com/drop-materialized-view.htm</link>
		<comments>http://www.ukoom.com/drop-materialized-view.htm#comments</comments>
		<pubDate>Fri, 27 Mar 2009 00:32:16 +0000</pubDate>
		<dc:creator>ukoom</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ukoom.com/?p=595</guid>
		<description><![CDATA[When you drop a materialized view, Oracle Database does not place it in the recycle bin. Therefore, you cannot subsequently either purge or undrop the materialized view. The keyword SNAPSHOT is supported in place of MATERIALIZED VIEW for backward compatibility. Prerequisites The materialized view must be in your own schema or you must have the [...]]]></description>
			<content:encoded><![CDATA[<p>When you drop a materialized view, Oracle Database does not place it in the recycle bin. Therefore, you cannot subsequently either purge or undrop the materialized view.</p>
<p>The keyword <code>SNAPSHOT</code> is supported in place of <code>MATERIALIZED</code> <code>VIEW</code> for backward compatibility.</p>
<p><strong><span style="font-family: arial,helvetica,sans-serif; color: #330099;">Prerequisites</span></strong></p>
<p>The materialized view must be in your own schema or you must have the <code>DROP</code> <code>ANY</code> <code>MATERIALIZED</code> <code>VIEW</code> system privilege. You must also have the privileges to drop the internal table, views, and index that the database uses to maintain the materialized view data.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ukoom.com/drop-materialized-view.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

