<?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>Arkytekture &#187; arkytekture</title>
	<atom:link href="http://psoug.org/blogs/arkytekture/author/arkytekture/feed/" rel="self" type="application/rss+xml" />
	<link>http://psoug.org/blogs/arkytekture</link>
	<description>Oracle and Data architecture blog</description>
	<lastBuildDate>Sat, 18 Dec 2010 17:22:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>VirtualBox</title>
		<link>http://psoug.org/blogs/arkytekture/2010/12/18/110/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/12/18/110/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 17:22:16 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://psoug.org/blogs/arkytekture/?p=110</guid>
		<description><![CDATA[Oracle VM VirtualBox If you haven&#039;t had a chance to work with it, consider visiting http://dlc.sun.com/virtualbox/vboxdownload.html It runs on windows, linux, mac os/x and solaris. I downloaded a pre-installed VM with a database, development tools, and an application server pre-installed.&#160; Though I had the minimum required config (~2 GHz processor, 2 GB RAM), I was [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Oracle VM VirtualBox</strong></p>
<p>If you haven&#039;t had a chance to work with it, consider visiting</p>
<p><a href="http://dlc.sun.com/virtualbox/vboxdownload.html">http://dlc.sun.com/virtualbox/vboxdownload.html</a></p>
<p>It runs on windows, linux, mac os/x and solaris.</p>
<p>I downloaded a pre-installed VM with a database, development tools, and an application server pre-installed.&nbsp; Though I had the minimum required config (~2 GHz processor, 2 GB RAM), I was surprised that it ran as well as it did.</p>
<p>Though the initial setup is quite quick, the downloads of actual VMs to use in VirtualBox can take a while, but compared to the aggravation of pulling together Oracle 11gR2, SQL Developer, Apex, and a Weblogic server on your own, it&#039;s a more than fair trade.</p>
<p>If you&#039;ve been putting off exploring Hands-On Database Technology on a home PC or a spare machine at work (<a href="http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html">http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html</a>), then this could be a good way to jump in &#8212; with a virtual machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/12/18/110/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search PSOUG from SQL Developer !</title>
		<link>http://psoug.org/blogs/arkytekture/2010/10/20/search-psoug-from-sql-developer/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/10/20/search-psoug-from-sql-developer/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 02:11:18 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://psoug.org/blogs/arkytekture/?p=73</guid>
		<description><![CDATA[Extend Oracle&#039;s SQL Developer to search PSOUG web pages and&#160; see how much more productive you can be! Anyone who&#039;s used SQL Developer may have noticed the search engines tucked away in the upper right corner of the screen.&#160; With a nod to Firefox, the people who created SQL Developer made it easy to look [...]]]></description>
				<content:encoded><![CDATA[<p>Extend Oracle&#039;s SQL Developer to search PSOUG web pages and&nbsp; see how much more productive you can be!</p>
<p><img src="/blogs/wp-content/SqlDev_Search2.png" /></p>
<p>Anyone who&#039;s used SQL Developer may have noticed the search engines tucked away in the upper right corner of the screen.&nbsp; With a nod to Firefox, the people who created SQL Developer made it easy to look up an error message on Google, consider going to Oracle Technology Network (OTN) forums with your SQL Developer issue, or checking the AskTom or Oracle documentation sites.&nbsp;&nbsp;</p>
<p>While the sites provide valuable information, often they get into esoteric areas or long blogs.&nbsp; PSOUG succinctly exposes the concepts that a developer needs right away with examples of usage and scripts that illuminate topics such as CREATE MATERIALIZED VIEW.</p>
<p>It&#039;s exceedingly easy to try out.&nbsp; Add PSOUG to your search domains by placing an image file and a source file in the <strong>sqldeveloper/sqldeveloper/searchengines</strong> path of your installation.</p>
<p>First file: psoug.src</p>
<p>&lt;search<br />
	&nbsp;&nbsp; name=&quot;PSOUG&quot;<br />
	&nbsp;&nbsp; description=&quot;PSOUG Search&quot;<br />
	&nbsp;&nbsp; method=&quot;POST&quot;<br />
	&nbsp;&nbsp; action=&quot;http://psoug.org/search.htm&quot;<br />
	&nbsp;&nbsp; searchForm=&quot;http://psoug.org/search.htm&quot;<br />
	&nbsp;&nbsp; queryEncoding=&quot;utf-8&quot;<br />
	&nbsp;&nbsp; queryCharset=&quot;utf-8&quot;<br />
	&gt;</p>
<p>&lt;input name=&quot;qwords&quot; user&gt;<br />
	&lt;input name=&quot;querytype&quot; value=&quot;allwords&quot;&gt;<br />
	&lt;input name=&quot;catid&quot; value=&quot;0&quot;&gt;<br />
	&lt;input name=&quot;searchtype&quot; value=&quot;basic&quot;&gt;<br />
	&lt;input name=&quot;submit&quot; value=&quot;GO&quot;&gt;</p>
<p>&lt;interpret<br />
	&nbsp;&nbsp;&nbsp; browserResultType=&quot;result&quot;<br />
	&nbsp;&nbsp;&nbsp; charset = &quot;UTF-8&quot;<br />
	&nbsp;&nbsp;&nbsp; resultListStart=&quot;&lt;!&#8211;a&#8211;&gt;&quot;<br />
	&nbsp;&nbsp;&nbsp; resultListEnd=&quot;&lt;!&#8211;z&#8211;&gt;&quot;<br />
	&nbsp;&nbsp;&nbsp; resultItemStart=&quot;&lt;!&#8211;m&#8211;&gt;&quot;<br />
	&nbsp;&nbsp;&nbsp; resultItemEnd=&quot;&lt;!&#8211;n&#8211;&gt;&quot;<br />
	&gt;<br />
	&lt;/search&gt;</p>
<p>Second file: psoug.gif</p>
<p><img src="/blogs/wp-content/psoug.gif" /></p>
<p>I downloaded the PSOUG title.gif and scaled it down by a factor of about 4.&nbsp; Use whatever tool makes sense to manipulate your image such as GIMP (multi-platform)&nbsp; or Microsoft&#039;s Image editor, or whatever works on the Mac OS/X into an icon-sized image.&nbsp; Jpeg, png, gif are all acceptable formats.</p>
<p>Your files will be discovered automatically the next time you start SQL Developer.</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/10/20/search-psoug-from-sql-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build and maintain an Oracle shell</title>
		<link>http://psoug.org/blogs/arkytekture/2010/08/22/how-to-build-and-maintain-an-oracle-shell/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/08/22/how-to-build-and-maintain-an-oracle-shell/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 03:37:12 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://psoug.org/blogs/arkytekture/?p=65</guid>
		<description><![CDATA[Using import, export, and strings command to maintain software baselines and Oracle shells for productized software development.]]></description>
				<content:encoded><![CDATA[<p>In productized development where installation scripts and Oracle dump files are the basis for building a new database instance, complexities can be managed by storing Oracle exports and all SQL files in a version control system (such as CVS, Perforce, or Subversion).</p>
<p>A shell database is essentially the logical starting point of a database wth some tables preloaded with essential lookup data, stored database code, constraints, and views defined, but the many of the segments start out empty.</p>
<p><span id="more-65"></span></p>
<p>To build a new database deliverable one can follow a number of steps.</p>
<p>1)&nbsp; Get the latest shell (export dmp)&nbsp; and create user SQL scripts from version control</p>
<p>2) Connect to the target database with SYSDBA and drop the application users (USERA, USERB)&nbsp; and their tablespaces (including USER_DATA and USER_INDEXES).</p>
<p>3) Create the users&#39; tablespaces, then create the users anew with the SQL scripts.</p>
<p>4) Import the latest shell&nbsp; (e.g.&nbsp; imp fromuser=(USERA,USERB)&nbsp; touser=(USERA,USERB) file=last_shell.dmp log=step4.log )</p>
<p>5) Apply any database upgrade scripts readied for deployment since last shell was created.</p>
<p>6) Drop and recreate sequences.&nbsp; This will assure that the actual sequence numbers will be computed from values in associated tables.</p>
<p>7) Review the newly created schemas and recompile any invalid triggers, PL/SQL, and views.&nbsp;&nbsp; Investigate objects that won&#39;t recompile and remove any obsolete objects not cleared by upgrade scripts. Invalid objects will raise errors when imported by end-users and cause calls to product technical support.</p>
<p>8) Rebuild indexes on unique or primary keys that appear to be on the USER_DATA into the USER_INDEXES tablespace.</p>
<p>9) Export the full database&nbsp; &#8212; save this as it will be needed later.&nbsp; (e.g. exp userid=sys file=NEW_SHELL_STEP9.dmp full=Y compress=N log=STEP13.log )</p>
<p>10) Export the database &#8212; all user object definitions<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g. exp userid=USERA file=NEW_SHELL_USERA.dmp&nbsp; rows=N statistics=NONE log=STEP10A.log )</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g. exp userid=USERB file=NEW_SHELL_USERB.dmp&nbsp; rows=N statistics=NONE log=STEP10B.log )</p>
<p>11) Export the database &#8212; all user data</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g. exp userid=USERA file=NEW_DATA_USERA.dmp&nbsp; rows=Y statistics=NONE log=STEP11A.log )</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g. exp userid=USERB file=NEW_DATA_USERB.dmp&nbsp; rows=Y statistics=NONE log=STEP11B.log )</p>
<p>12) With SQLPlus, connect to the target database as SYSDBA, then enter the following commands:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DROP USER USERA CASCADE;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DROP USER USERB CASCADE;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then re-run the create users script.&nbsp;</p>
<p>13) Extract DDL for creating USERA objects to a text file.<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g. strings NEW_SHELL_USERA.dmp&nbsp; | egrep -v -fgrep_v.inp | sed -fsed_nl.inp &gt; USERA_DDL.SQL )</p>
<p>14) Extract DDL for creating USERB objects to a text file.<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (e.g.&nbsp; strings NEW_SHELL_USERB.dmp&nbsp; | egrep -v -fgrep_v.inp | sed -fsed_nl.inp &gt; USERB_DDL.SQL )</p>
<p>15)&nbsp; Edit the USERA_DDL.SQL to remove extraneous information<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Remove the header information from the 1st line down to the line after CONNECT USERA.<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Skip DDL statements until you find the first CREATE TRIGGER, CREATE FUNCTION,&nbsp; CREATE PROCEDURE, or CREATE VIEW statement.&nbsp; Delete all lines from this point to the end of the file.</p>
<p>15) Perform the same editing to the USERB_DDL.SQL file.</p>
<p>16) With SQLPlus, connect to the target database as USERA, then enter the following commands:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPOOL STEP16.LOG<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET ECHO ON<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @USERA_DDL.SQL<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPOOL OFF<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXIT</p>
<p>17) With SQLPlus, connect to the target database as USERB, then enter the following commands:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPOOL STEP17.LOG<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SET ECHO ON<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @USERB_DDL.SQL<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPOOL OFF<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXIT</p>
<p>18) Re-import the data saved from Step 11.</p>
<p>&nbsp; (e.g. imp userid=usera file=DATA_USERA.dmp log=STEP18A.log ignore=Y rows=Y constraints=N )</p>
<p>&nbsp; (e.g. imp userid=userb file=DATA_USERB.dmp log=STEP18B.log ignore=Y rows=Y constraints=N )<br />
	&nbsp;</p>
<p>19) Re-import the data saved from Step 10</p>
<p>&nbsp; (e.g. imp userid=sys fromuser=USERA touser=USERA file=NEW_SHELL_USERA.dmp log=STEP19A.log ignore=Y rows=N constraints=Y )<br />
	&nbsp; (e.g. imp userid=sys fromuser=USERB touser=USERB file=NEW_SHELL_USERB.dmp log=STEP19B.log ignore=Y rows=N constraints=Y )<br />
	&nbsp;</p>
<p>20) Export data for the last time</p>
<p>&nbsp;(e.g. exp userid=sys full=Y file=last_shell.dmp compress=N log=STEP20.log )</p>
<p>21) Put the last_shell.dmp back into your source control system.</p>
<p>================================================<br />
	NOTES: Step 13, Step 14:&nbsp;&nbsp;&nbsp;&nbsp; The strings command is available on both Windows and Unix platforms.<br />
	================================================</p>
<p>It might be a good idea to store the extracted DDL files in version control as they are useful artifacts of the software development process and are useful as reference representations of the database definitions at various points in the software lifecycle.<br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/08/22/how-to-build-and-maintain-an-oracle-shell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Paying attention to Oracle sequences when upgrading / migrating</title>
		<link>http://psoug.org/blogs/arkytekture/2010/04/24/paying-attention-to-oracle-sequences-when-upgrading-migrating/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/04/24/paying-attention-to-oracle-sequences-when-upgrading-migrating/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 20:56:35 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[DBA tips]]></category>
		<category><![CDATA[dynamic SQL]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[planning]]></category>
		<category><![CDATA[rescue]]></category>
		<category><![CDATA[reverse enginering]]></category>
		<category><![CDATA[sequences]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://psoug.org/blogs/arkytekture/?p=50</guid>
		<description><![CDATA[it would not be feasible to use the shiny, trusted front-end tool that the DBAs had to browse and navigate to each application schema and manually click on each sequence to reverse engineer it.  We needed dynamic SQL to do them all in one shot but without all those those SYS, sample and unused schemas detailed in support docs  207560.1 and 270516.1]]></description>
				<content:encoded><![CDATA[<p>The task of upgrading databases in Oracle comes along about as often as new U.S. presidents, however many of the important tasks are the same, setting up new infrastructure, parting ways with the past letting some of it wither on the vine, and planning what needs to be preserved while moving ahead.</p>
<p>Instead of upgrading an Oracle database in place, some plans also call for moving to new hardware. A tried and true approach is to generate scripts and use DataPump exports to recreate your application data on the future database.&nbsp;</p>
<p>Let me tell you about of a team of DBAs who took an export and began to import the data structures and data rows into the new database.&nbsp; After a while, they realized one of the schemas was kind of large and that the whole operation&nbsp; might take longer to complete than allotted.&nbsp; Desparate to beat the clock, they began reverse engineering all the tables schema by schema and applying the resulting scripts to the new target database.&nbsp; Now DBAs were competing with the import to create schemas and move data.</p>
<p>Triggers were not firing in the new system, and applications fell flat on their faces.&nbsp; Alas, the grants, synonyms, roles, and sequences were left behind in this haste, and the applications were not working on the new production environment.</p>
<p>What to do to rescue the installation?&nbsp; Well, reverse engineering sequences would be an onerous chore with the shiny, trusted front-end tool that the DBAs used every day because navigating to each application schema and manually clicking on each sequence to reveal its definition.&nbsp;</p>
<p>The other issue was not ALL of the sequences were needed.&nbsp; Not all of those SYS, sample, special purpose schemas created by Oracle installations were going to be migrated.&nbsp; Besides the new production database was all set and we didn&#39;t want collisions or kibble.</p>
<p>The solution:&nbsp; use dynamic SQL to generate a single script of the sequences required from the old system, and run them on the new system, excluding unnecessary schemas.</p>
<p>Here&#39;s the Oracle SQL script that took care of that problem:</p>
<p><span id="more-50"></span></p>
<blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select&nbsp;&nbsp; &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;CREATE SEQUENCE &#39;||sequence_owner||&#39;.&#39;||sequence_name||&#39;&nbsp; START WITH &#39;|| TO_CHAR(last_number+1) ||<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39; INCREMENT BY &#39;|| TO_CHAR(increment_by)||&#39; MAXVALUE &#39;||TO_CHAR(max_value) || &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39; MINVALUE &#39;||TO_CHAR(min_value),<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE WHEN cycle_flag=&#39;N&#39; THEN &#39; NOCYCLE &#39; ELSE &#39; CYCLE &#39; END cyc_flag,<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE WHEN order_flag=&#39;N&#39; THEN &#39; NOORDER &#39; ELSE &#39; ORDER &#39; END ord_flag,<br />
		&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sequence_owner, sequence_name, last_number,<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CASE WHEN&nbsp; cache_size=0 THEN&nbsp; &#39; NOCACHE &#39; ELSE &#39; CACHE &#39;||TO_CHAR(cache_size) END,<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39; ;&#39;<br />
		&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; min_value, max_value, &nbsp;<br />
		&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; increment_by,<br />
		&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cycle_flag,<br />
		&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; order_flag<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from sys.dba_sequences<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sequence_owner NOT IN (&#39;SYS&#39;,&#39;SYSTEM&#39;) &#8212; usual DBA accounts<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and sequence_owner NOT IN ( &#8212; Oracle 9i Demo Schemas<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212; Doc ID: &nbsp;&nbsp; &nbsp;207560.1 &nbsp;&nbsp; &nbsp;Type: &nbsp;&nbsp; &nbsp;FAQ &nbsp;&nbsp;&nbsp; &nbsp;Modified Date: &nbsp;&nbsp; &nbsp;22-MAR-2009<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;HR&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_ADM&#39;,&#8211;&nbsp;&nbsp;&nbsp; (Administration)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_WS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp; (Western Shipping)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_ES&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp; (Eastern Shipping)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_OS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp; (Overseas Shipping)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_CBADM&#39;,&#8211;&nbsp; (Customer Billing Administration)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_CB&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp; (Customer Billing)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;QS_CS&#39;)&#8211;&nbsp;&nbsp;&nbsp;&nbsp; (Customer Service)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and sequence_owner NOT IN (&#39;IX&#39;,&nbsp; &#8212; new sample schema in Oracle 10g<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;BI&#39;)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and sequence_owner NOT IN (&#8211; Schemas created by Oracle<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212; Doc ID: &nbsp;&nbsp; &nbsp;160861.1 &nbsp;&nbsp; &nbsp;Type: &nbsp;&nbsp; &nbsp;REFERENCE &nbsp;&nbsp;&nbsp; &nbsp;Modified Date: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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Enterprise Manager Intelligent Agent is installed &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;MGMT_VIEW&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is part of the DB Control Repository<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;SYSMAN&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is part of the DB Control Repository and Grid<br />
		&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; see Note 270516.1 for details<br />
		&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sp;&nbsp; /<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;MDSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Spatial option is installed &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;MDDATA&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Spatial option is installed &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;ORDSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if interMedia Audio option is installed&nbsp; &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;ORDPLUGINS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if interMedia Audio option is installed&nbsp; &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;SI_INFORMTN_SCHEMA&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if interMedia option is installed&nbsp; &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;CTXSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Text option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;WKSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Ultra Search option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;WKUSER&#39;,&#8211; (9i)<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;WK_TEST&#39;,&#8211; (10g) if Oracle Ultra Search option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;REPADMIN&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Replication Option is installed &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;LBACSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Label Security option is installed &nbsp;<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;DVF&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Database Vault option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;DVSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Database Vault option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;ODM&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Data Mining option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;ODM_MTR&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idem<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;DMSYS&#39;,&#8211; (10g)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if Oracle Data Mining 10g option is installed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;DMSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in 10g version to replace ODM and ODM_MTR schemas<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbs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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;ANONYMOUS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if catqm.sql catalog script for SQL XML management<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;XDB&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is executed<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;EXFSYS&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is the Expression Filter Feature repository<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;DIP&#39;,&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for provisioning event processing<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#39;TSMSYS&#39;&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Transparent Session Migration<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; order by sequence_owner, sequence_name ;</p>
</blockquote>
<p>If other users besides the named owners need SELECT privileges on the sequence objects, then another script to generate those privileges would need to follow the sequences creation script, but that is an easy adaptation of the above script for most DBAs.</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/04/24/paying-attention-to-oracle-sequences-when-upgrading-migrating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dear DBA ( a note from a principal developer)</title>
		<link>http://psoug.org/blogs/arkytekture/2010/04/17/dear-dba-a-note-from-a-principal-developer/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/04/17/dear-dba-a-note-from-a-principal-developer/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 21:43:12 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[data loading]]></category>
		<category><![CDATA[advisor report]]></category>
		<category><![CDATA[append hint]]></category>
		<category><![CDATA[bulk loading]]></category>
		<category><![CDATA[commit strategy]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[noarchive]]></category>
		<category><![CDATA[nologging]]></category>
		<category><![CDATA[redo log]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://psoug.org/blogs/arkytekture/?p=27</guid>
		<description><![CDATA[Besides changing commit intervals, noarchive,  nologging, and SQL append hints can greatly aid bulk-loading data to an Oracle system.]]></description>
				<content:encoded><![CDATA[<blockquote>
<p>Dear DBA, as I am running loadtests with product XYZ in preparation<br />
		for uploading of many thousands of XML documents , I find that there is something<br />
		that&#39;s bogging down your database. I thought your equipment<br />
		should easily outpace the old Compaqs that we have running Windows, and that<br />
		Oracle should do better than our PostgreSQL-based setup. Yet<br />
		I find the numbers show the opposite:</p>
<p>733 Documents in 2325.713 s for an average of 3.173 s<br />
		at ~11% CPU load</p>
<p>944 Documents in 1960.4 s for an average of 2.077 s<br />
		at ~15% CPU load</p>
<p>It takes 50% longer on the Oracle setup. Since the<br />
		application server load is negligible at the same time, it<br />
		goes to show that we are waiting for the database.</p>
<p>I wonder why.</p>
</blockquote>
<p><span id="more-27"></span><br />
	Hmmm, I thinking that this developer is not acquainted with the Oracle database technology choices available to him. He continues on.</p>
<blockquote>
<p>Since I can not observe the Oracle database server&#39;s IO and<br />
		CPU activity directly, I have looked at the Oracle ADVISOR<br />
		report [Query 2: ADVISOR REPORT below]. I am showing<br />
		the most important part from report on task_id 4313<br />
		and task_name ADDM:6344221675_1_1349:<br />
		|<br />
		| FINDING 1: 60% impact (489 seconds)<br />
		| &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
		| Waits on event &quot;log file sync&quot; while performing COMMIT and ROLLBACK<br />
		| operations<br />
		| were consuming significant database time.</p>
<p>Is there anything you could do about this? For example, could<br />
		you move the redo logs onto a different disk device? Or is this<br />
		database or hardware very busy processing other transactions?</p>
<p>The loading of data might take at least 50% longer than expected<br />
		(and possibly more, because we&#39;ll hit the database with 4-8<br />
		processes in parallel). Your help will be much appreciated.</p>
<p>regards,<br />
		Prince</p>
</blockquote>
<p>Dear Prince-<br />
	We&#39;ve noticed many (hundreds of thousands) insert statements being executed through jdbc-client and wondered what your commit strategy was.</p>
<p>Sometimes java programs have auto commit turned on (every DML statement is committed one-at-a-time). If that&#39;s the case, then it is causing a lot of round-trips through the network to confirm a committed row in the database.</p>
<p><!--more--></p>
<p>Other times, a bulk load will attempt to load thousands of rows at a time before committing. That can cause the growth of a large amount of undo segments that slows throughput as well. If that&#39;s the case then the commit interval needs to be changed.</p>
<p>If you are using jdbc&#39;s <a href="http://www.java2s.com/Code/JavaAPI/java.sql/PreparedStatementaddBatch.htm">addBatch</a> and <a href="http://www.java2s.com/Code/JavaAPI/java.sql/StatementexecuteBatch.htm">executeBatch</a> methods for processing multiple SQL statements, then you can make adjustments in how many rows in the batch that you need to commit.</p>
<p>Alternatively, you could make modifications to commit pending transactions after a given number of iterations in your code. If possible, try starting at 500 and varying it either higher or lower to meet your throughput goals.</p>
<p>One thing you should know about the test database that we&#39;re hosting is that we are not collecting and archiving redo logs.</p>
<p>We circulate through the logs very frequently. We have enlarged the redo log size to 200 MB (up from 55 MB), but we need to reduce the amount of redo being written. To that end, we recommend that the<br />
	insert SQL statements for the following tables be rewritten to use the <a href="http://psoug.org/reference/hints.html">&quot;Append&quot; hint</a> since it appears that you are performing bulk load inserts on them.</p>
<p>If you want, we can even put the target tables into &quot;nologging&quot; mode during this phase where you need to load a lot of data. That would ensure that you could put hundreds of thousands of rows in the database in a very brief period of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/04/17/dear-dba-a-note-from-a-principal-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s your XML strategy?</title>
		<link>http://psoug.org/blogs/arkytekture/2010/04/15/whats-your-xml-strategy/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/04/15/whats-your-xml-strategy/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 01:49:38 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[CLOB]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[LOB Index]]></category>
		<category><![CDATA[LOB Segment]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XMLType]]></category>
		<category><![CDATA[XSD]]></category>

		<guid isPermaLink="false">http://psoug.org/blogs/arkytekture/?p=10</guid>
		<description><![CDATA[The choices you have on implementing XML depends upon the architecture of your solution. 1) Do you plan to a) parse the XML docs and store them into multiple relational tables&#160;&#160; ? If so, what languages or techniques do you intend to use to accomplish this? b) store an XML doc in a single XMLType [...]]]></description>
				<content:encoded><![CDATA[<p>The choices you have on implementing XML depends upon the architecture of your solution.</p>
<h2>1) Do you plan to</h2>
<p>a) parse the XML docs and store them into multiple relational tables&nbsp;&nbsp; ?</p>
<p style="padding-left: 30px"><em>If so, what languages or techniques do you intend to use to accomplish this?</em></p>
<p>b) store an XML doc in a single XMLType column in the Oracle database?</p>
<p style="padding-left: 30px"><em>Do you need to index the data to perform XML or &quot;free text&quot; searches?</em></p>
<p style="padding-left: 30px"><em>If so, what XPATH indexing do you intend to perform?</em></p>
<p>c) Register XSD as an XML Schema and have Oracle validate incoming XML documents such that<br />
	data is automatically shredded into object-relational tables based upon the different<br />
	types and attributes?</p>
<p style="padding-left: 30px"><em>If you choose (c), how will you reload and revalidate data against the new XSD should<br />
	new data elements become available in the XSD?</em></p>
<h2>2) How important is it to preserve the exact XML document ingested in Oracle?</h2>
<p>&nbsp;</p>
<p><li>Will you&nbsp; need to reconstruct or otherwise output data in the exact format to interchange with<br />
		people working in a regulated industry such as banking, health care, education ?</li>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<li>Or will a logical copy that is faithful to the structure be acceptable?</li>
<p>&nbsp;</p>
<h2>About Character Large Objects (CLOBs)</h2>
<p>Yes, you can store CLOBs in line with a database row up to 4,000 characters, else it&#39;s written to a separate LOB segment.</p>
<p>	Oracle automatically creates LOB indexes whether you want them or not, so you might want to review the non-XML CLOBS in your design and determine whether they would be well under the 4,000 characters and thus fit into a VARCHAR2 data column.</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/04/15/whats-your-xml-strategy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In the Arkytekture</title>
		<link>http://psoug.org/blogs/arkytekture/2010/04/09/hello-world/</link>
		<comments>http://psoug.org/blogs/arkytekture/2010/04/09/hello-world/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 01:47:55 +0000</pubDate>
		<dc:creator>arkytekture</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ to share some real-world experiences (ok, maybe thinly disguised ones) that illustrate either database technology issues, software engineering practices, or some other philosophy. ]]></description>
				<content:encoded><![CDATA[<p>Welcome to<strong> Arkytekture.</strong></p>
<p>PSOUG.org is a great resource that people should be looking at when solving data management problems in Oracle.Â  Sharing knowledge and assisting others is part and parcel of the user group experience.</p>
<p>AlthoughÂ  a new feature from Oracle holds great promise, some strategies work better than others.Â  Developers and architects should know about the different ways and choose carefully to achieve better successes with their projects.</p>
<p>The spirit of <strong>Arkytekture </strong> is to share some real-world experiences (ok, maybe thinly disguised ones) that illustrate either database technology issues, software engineering practices, or some other philosophy.</p>
<p>Upcoming topics will include bulk-loading, measurements, error-handling, dynamic PL/SQL, and Apex.</p>
]]></content:encoded>
			<wfw:commentRss>http://psoug.org/blogs/arkytekture/2010/04/09/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
