
<?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>Razorleaf Corporation &#187; Oracle Database Report for SmarTeam | Razorleaf Corporation</title>
	<atom:link href="http://www.razorleaf.com/author/stevedunn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.razorleaf.com</link>
	<description>Innovative Process Solutions. Bottom-Line Results.</description>
	<lastBuildDate>Mon, 23 Jan 2012 19:09:14 +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>Oracle Database Report for SmarTeam</title>
		<link>http://www.razorleaf.com/2010/10/oracle-db-report-for-st/</link>
		<comments>http://www.razorleaf.com/2010/10/oracle-db-report-for-st/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 17:15:05 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[SmarTeam Multi-Site]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=8440</guid>
		<description><![CDATA[<p><img width="135" height="80" src="http://www.razorleaf.com/wp-content/uploads/2010/09/Oracle-Database-Logo-Thumbnail.gif" class="attachment-post-thumbnail wp-post-image" alt="Oracle-Database-Logo-Thumbnail" title="Oracle-Database-Logo-Thumbnail" /></p><img class="alignleft size-full wp-image-8446" title="Oracle-Database-Logo" src="http://www.razorleaf.com/wp-content/uploads/2010/10/Oracle-Database-Logo.gif" alt="" width="100" height="40" />For those of you running an Oracle database as your repository for SmarTeam, check out this helpful utility.  The <strong>SmarTeam Database Oracle General Report</strong> tool is a collection of plain text files containing batch commands and SQL statements that can generate a detailed HTML report of key Oracle statuses and settings.  The tool is available from <a href="http://www.3ds.com/support/" target="_blank">Dassault’s support site</a> by searching for QA00000002533.  <span id="more-8440"></span>

The output report from the tool includes information on:
<ul>
	<li><img class="alignright size-full wp-image-8442" title="SmarTeam Database Oracle General Report Sample" src="http://www.razorleaf.com/wp-content/uploads/2010/10/SmarTeam-Database-Oracle-General-Report-Sample.png" alt="" width="338" height="278" />Current server connections</li>
	<li>Versions of installed Oracle components</li>
	<li>Database file names, locations, and sizes</li>
	<li>Database object counts by type and owner</li>
	<li>Invalid code objects and indices</li>
	<li>Scheduled jobs</li>
	<li>General database parameters</li>
	<li>NLS parameters</li>
	<li>SmarTeam-specific information (DB version and last upgrade date)</li>
</ul>
In our case, the tool was particularly helpful in troubleshooting an <strong>ENOVIA SmarTeam Multi-Site</strong> issue.  The system was generating “Error No. 23325 – Database contains invalid database objects.  Please perform necessary steps to fix them” while trying to initiate the primary site.
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8441" title="SmarTeam Error Dialog 23325" src="http://www.razorleaf.com/wp-content/uploads/2010/10/SmarTeam-Error-Dialog-23325.png" alt="" width="383" height="222" /></p>
Although the error message was accurate, locating the problematic database object was tricky.  However, running the SmarTeam Database Oracle General Report was helpful in honing in on the Oracle package that was causing the issue.

Please <a href="../../../../../contact">contact us</a> if you need help with or have questions about your SmarTeam Oracle environment, or have questions about this tool.  Leave us a comment if you have other techniques to share related to <strong>Oracle setup, configuration, or troubleshooting</strong> for ENOVIA SmarTeam or other PLM systems.]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/10/oracle-db-report-for-st/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gotcha with Oracle 11g for SmarTeam</title>
		<link>http://www.razorleaf.com/2010/09/oracle-11g-smarteam/</link>
		<comments>http://www.razorleaf.com/2010/09/oracle-11g-smarteam/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 02:06:21 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[ENOVIA SmarTeam V5R20]]></category>
		<category><![CDATA[Export]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle 11g]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=8331</guid>
		<description><![CDATA[<p><img width="135" height="80" src="http://www.razorleaf.com/wp-content/uploads/2010/09/Oracle-Database-Logo-Thumbnail.gif" class="attachment-post-thumbnail wp-post-image" alt="Oracle-Database-Logo-Thumbnail" title="Oracle-Database-Logo-Thumbnail" /></p><img class="alignright size-full wp-image-8332" title="Oracle 11gR2 splash screen" src="http://www.razorleaf.com/wp-content/uploads/2010/09/Oracle-11gR2-splash-screen.png" alt="" width="138" height="79" />For those of you planning to move to Oracle 11g with SmarTeam V5R20, watch out for this one.  With 11g, Oracle has introduced a feature called <strong>Deferred Segment Creation</strong>.  Generally speaking, this is a nice feature because it saves space in exports and eliminates unneeded storage allocation in many databases.  It can create problems with ENOVIA SmarTeam, however.  <span id="more-8331"></span>

This is a quick one, but a very important tip.  Deferred Segment Creation in Oracle 11g means that Oracle won’t actually create the tables defined in your schema until the table has at least 1 row (deferring creation of table segments).  By default, Deferred Segment Creation is turned on in Oracle 11g.  So after creating your SmarTeam database in a brand new Oracle 11g environment, your first export will skip a large number of SmarTeam tables (many SmarTeam tables have 0 rows initially).  <img class="size-medium wp-image-4656 alignright" title="Database Schema" src="http://www.razorleaf.com/wp-content/uploads/2009/09/Database-Schema-250x187.jpg" alt="" width="250" height="187" />As you’re probably aware, SmarTeam expects certain tables to be present at all times and without those tables, the software can <strong>fail to start or become unstable</strong>.  So your export would be complete and consistent from an Oracle perspective, but worthless from a SmarTeam perspective.  To address this issue, you simply need to turn Deferred Segment creation off with this command:
<pre>alter system set deferred_segment_creation=false;</pre>
Good luck, and leave us a comment to let us know what other goodies you’ve found in working with Oracle 11g for ENOVIA SmarTeam.  You can read more about Deferred Segment Creation <a href="http://www.nativeread.com/2010/04/09/11gr2-empty-tables-skipped-by-export-deferred-segment-creation/" target="_blank">here</a>, including a methodology for seeing it in action.  Please <a href="http://www.razorleaf.com/contact" target="_self">contact us</a> if we can help you with your Oracle for ENOVIA SmarTeam.]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/09/oracle-11g-smarteam/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Phantom Assemblies in ENOVIA SmarTeam</title>
		<link>http://www.razorleaf.com/2010/08/phantoms-in-smarteam/</link>
		<comments>http://www.razorleaf.com/2010/08/phantoms-in-smarteam/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 10:45:07 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[ENOVIA SmarTeam BOM]]></category>
		<category><![CDATA[phantom]]></category>
		<category><![CDATA[PLMDB]]></category>
		<category><![CDATA[SmarTeam Engineering Express]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=8066</guid>
		<description><![CDATA[<p><img width="135" height="80" src="http://www.razorleaf.com/wp-content/uploads/2010/08/Casper-Friendly-Ghost-Thumbnail.jpg" class="attachment-post-thumbnail wp-post-image" alt="Casper Friendly Ghost Thumbnail" title="Casper Friendly Ghost Thumbnail" /></p><img class="alignleft size-full wp-image-8085" title="Casper Friendly Ghost" src="http://www.razorleaf.com/wp-content/uploads/2010/08/Casper-Friendly-Ghost.jpg" alt="" width="99" height="90" />For any who create or interact with Bills of Material, you know that there are often structures in the design that should be consolidated in the BOM - <strong>phantoms </strong>(sometimes also called "ghost" assemblies).  There are also sometimes components, and even entire structures, that should not be represented at all in the BOM.  To help accommodate these needs, ENOVIA SmarTeam’s BOM functionality provides flexibility when it comes to displaying and rolling up items in a BOM structure.  In particular, the <strong>InBOM</strong> attribute and related functionality is worth diving into for addressing these needs.  <span id="more-8066"></span>

<img class="alignright size-medium wp-image-6533" title="ENOVIA Logo" src="http://www.razorleaf.com/wp-content/uploads/2010/02/Enovia_3C_800-250x172.png" alt="" width="150" height="103" />The display and roll-up behavior of a subassembly and its components within a BOM structure is controlled via the SmarTeam tree link attribute, "InBOM".  This attribute was introduced as part of the <strong>SmarTeam Engineering Express methodology</strong> and is present in PLMDB on the Documents Tree link.  It controls the roll-up behavior of a document's related item (or child items) within a BOM structure.  Valid values include “Yes”, “No”, and “Phantom”.  A value of “Yes” includes the subassembly (and any children with a “Yes” value) in the BOM.  A value of “No” omits the entire subassembly including children, grandchildren, etc.  A value of “Phantom” omits the top level subassembly item, but includes any children configured with a “Yes” value.  Additionally, when using “Phantom”, the children will show on the BOM as attached to the parent of the phantom item and the <strong>quantities will be rolled-up</strong> (with appropriate calculations) for the children configured to be included.

Note that each time a subassembly’s "InBOM" value is updated, the BOM must be updated by invoking the <strong>Create/Update BOM from Document Tree</strong> command for the changes to take effect.  This can be done via a right mouse click on the top level assembly.

<span><img class="size-full wp-image-8067 alignnone" title="ST Phantom - BOM from Docs Command" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-BOM-from-Docs-Command.png" alt="" width="468" height="68" /></span>

<span>To demonstrate the behavior of the “InBOM” attribute, let’s look at an assembly with multiple subassemblies.  The image below shows the Documents Tree of the “2 SEATER JET SKI”.  Note that we’ll be configuring the subassembly “PANEL PCB” in the following example.</span>
<p style="text-align: center;"><img class="size-full wp-image-8069 aligncenter" title="ST Phantom - Docs Tree" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-Docs-Tree.png" alt="" width="284" height="340" /></p>
&nbsp;
<h4>InBOM = Yes (Full Structure)</h4>
By default, a document’s “InBOM” value is “Yes”.  This will result in the subassembly being displayed in the structure.  The image below shows the “InBOM” attribute on the Composition tab of the “PANEL PCB” profile card:
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8075" title="ST Phantom - InBOM Yes" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-InBOM-Yes.png" alt="" width="369" height="172" /></p>
<p style="text-align: left;">When the BOM structure of the jet ski is shown in the BOM editor, the "PANEL PCB" item is displayed along with the child "SQUARE BOARD".  For clarity, all children in the "PANEL PCB" subassembly other than the Square Board are configured with an “InBOM” value of “No”.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8079" title="ST Phantom - BOM After InBOM Yes" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-BOM-After-InBOM-Yes.png" alt="" width="466" height="282" /></p>
&nbsp;
<h4>InBOM = No (Exclude from BOM)</h4>
<p style="text-align: left;">In the following example, the “InBOM” attribute is set to “No” on the "PANEL PCB" profile card to demonstrate the effect on the BOM.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8071" title="ST Phantom - InBOM No" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-InBOM-No.png" alt="" width="369" height="172" /></p>
<p style="text-align: left;">With the "PANEL PCB" set to “No”, the subassembly <em>and all its children</em> do not show up in the BOM structure.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8077" title="ST Phantom - BOM After InBOM No" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-BOM-After-InBOM-No.png" alt="" width="466" height="253" /></p>
&nbsp;
<h4>InBOM = Phantom (Children Rolled-up)</h4>
<p style="text-align: left;">In this last example, the “InBOM” attribute is set to “Phantom” to show the effect this option has on the subassembly and its children.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8073" title="ST Phantom - InBOM Phantom" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-InBOM-Phantom.png" alt="" width="369" height="172" /></p>
<p style="text-align: left;"> The "PANEL PCB" does not show in the BOM structure.  However, the “SQUARE BOARD” is shown as a child of the jet ski with a rolled-up quantity of three since there were three “PANEL PCB” components in the assembly.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-8078" title="ST Phantom - BOM After InBOM Phantom" src="http://www.razorleaf.com/wp-content/uploads/2010/08/ST-Phantom-BOM-After-InBOM-Phantom.png" alt="" width="466" height="269" /></p>
<p style="text-align: left;"></p>
<p style="text-align: left;">There you have it, the flexibility of phantom assemblies in ENOVIA SmarTeam.  If you have questions about this functionality, or about BOM methodologies or SmarTeam BOM best practices in general, please <a href="http://www.razorleaf.com/contact" target="_self">contact us</a> - we're experts at ENOVIA SmarTeam BOM.</p>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/08/phantoms-in-smarteam/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ENOVIA SmarTeam Multi-Site and RepliWeb</title>
		<link>http://www.razorleaf.com/2010/04/repliweb/</link>
		<comments>http://www.razorleaf.com/2010/04/repliweb/#comments</comments>
		<pubDate>Sat, 01 May 2010 02:00:54 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[ENOVIA SmarTeam V5R20]]></category>
		<category><![CDATA[RepliWeb]]></category>
		<category><![CDATA[SmarTeam Multi-Site]]></category>
		<category><![CDATA[SmarTeam Multi-Vault]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=7491</guid>
		<description><![CDATA[We are sometimes asked the questions, &#8220;Should I upgrade RepliWeb in our ENOVIA SmarTeam Multi-Site / Multi-Vault environment?” and “If so, how should I do the upgrade?”  These  <a href="http://www.razorleaf.com/2010/04/repliweb/">Read More...</a>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/04/repliweb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with Timezones in a Global Environment</title>
		<link>http://www.razorleaf.com/2010/04/timezones-in-global-plm/</link>
		<comments>http://www.razorleaf.com/2010/04/timezones-in-global-plm/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 03:58:14 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Developer's Corner]]></category>
		<category><![CDATA[Development / Programming]]></category>
		<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[global environment]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[SmarTeam ServerMode]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=7325</guid>
		<description><![CDATA[Global collaboration can be tricky for a number of reasons.  For instance, when developing an application that is shared between users in two or more time  <a href="http://www.razorleaf.com/2010/04/timezones-in-global-plm/">Read More...</a>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/04/timezones-in-global-plm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reasons to Develop using VMs</title>
		<link>http://www.razorleaf.com/2010/03/reasons-to-develop-using-vms/</link>
		<comments>http://www.razorleaf.com/2010/03/reasons-to-develop-using-vms/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 22:00:28 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Developer's Corner]]></category>
		<category><![CDATA[Development / Programming]]></category>
		<category><![CDATA[development environment]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[VMs]]></category>
		<category><![CDATA[VMWare Workstation]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=7189</guid>
		<description><![CDATA[When planning any software development project, whether it is a point or enterprise solution, there are several key questions to answer before a line of code  <a href="http://www.razorleaf.com/2010/03/reasons-to-develop-using-vms/">Read More...</a>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/03/reasons-to-develop-using-vms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing Virtual Disks Via Windows</title>
		<link>http://www.razorleaf.com/2010/03/accessing-virtual-disks-via-windows/</link>
		<comments>http://www.razorleaf.com/2010/03/accessing-virtual-disks-via-windows/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:30:24 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Platform Technologies]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[Virtual Disk Mapping]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[VMWare Workstation]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=7133</guid>
		<description><![CDATA[One of the often overlooked features of VMWare Workstation is the Virtual Disk Mapping utility.  Available through the standard VMware Workstation GUI, the tool maps a  <a href="http://www.razorleaf.com/2010/03/accessing-virtual-disks-via-windows/">Read More...</a>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/03/accessing-virtual-disks-via-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automating Transfer of SmarTeam Vault Data</title>
		<link>http://www.razorleaf.com/2010/02/smarteam-vault-data-xfer/</link>
		<comments>http://www.razorleaf.com/2010/02/smarteam-vault-data-xfer/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 18:00:59 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Developer's Corner]]></category>
		<category><![CDATA[Development / Programming]]></category>
		<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[BasicScript]]></category>
		<category><![CDATA[file transfer]]></category>
		<category><![CDATA[rendition management]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[SmarTeam]]></category>
		<category><![CDATA[SmarTeam Vault Server]]></category>
		<category><![CDATA[test environment]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=6657</guid>
		<description><![CDATA[<p><img width="134" height="67" src="http://www.razorleaf.com/wp-content/uploads/2010/02/SmarTeam-CopyFilesToTest-Files-Successfully-Copied-Thumbnail.png" class="attachment-post-thumbnail wp-post-image" alt="SmarTeam CopyFilesToTest Files Successfully Copied Thumbnail" title="SmarTeam CopyFilesToTest Files Successfully Copied Thumbnail" /></p><img class="alignleft size-medium wp-image-4637" title="Staples Easy Button" src="http://www.razorleaf.com/wp-content/uploads/2009/09/Staples-Easy-Button-250x250.png" alt="" width="120" height="120" />With every upgrade to ENOVIA SmarTeam (not to mention upgrades to CAD, Office and database platforms) there's no question about the <a href="http://www.razorleaf.com/2009/12/prod-test-dev-environments/" target="_self">benefits of building a test environment for validation</a> prior to a production roll-out.  An important piece of building a test environment is a <strong>properly configured test vault</strong>.  Quite often, a successful test doesn't require a complete copy of the entire production vault, so let's take a look at a simple process to copy specific files from a production system to a test environment on demand.  <span id="more-6657"></span>

To get started, build a working ENOVIA SmarTeam test environment with a copy of the production database, scripts, configuration files, NLS files, and icons (learn more about <strong>ENOVIA SmarTeam environment duplication details</strong> <a href="http://www.razorleaf.com/2009/04/avoiding-test-vault-pitfalls-in-smarteam/" target="_self">here</a>).  Identify and configure the test vaults you'll be copying the files to.  <em><strong>Important Note:</strong></em>  When building a test environment, ensure that the <strong>ENOVIA SmarTeam Vault Server Setup</strong> tool is pointing to the newly created test vaults and not the production vaults. <img class="alignright size-medium wp-image-5162" title="Free Sign" src="http://www.razorleaf.com/wp-content/uploads/2009/10/Free-Sign-250x199.jpg" alt="" width="150" height="119" />To keep things simple, the example script for this article (request the <strong>free sample code</strong> by <a href="http://www.razorleaf.com/contact" target="_self">contacting us</a>) has just three possible destination vaults: Checked In, Released, and Obsolete.  Record the UNC paths of each of these destination (test) vaults and setup NTFS permissions on them so that the logged-in Windows user has write access.

Note that this script will copy files for each object selected.  It will not copy other revisions of selected objects, nor will it automatically copy any linked objects (such as SolidWorks models if a drawing is selected).  The tool will, however, copy viewer files automatically (like PDFs used for rendition management).
<h3>Step One - Create the script file</h3>
Create a script file named <strong>CopyFilesToTest.bs</strong> in the script folder on the production environment.
<h3>Step Two - Copy the code to the script file</h3>
Open the script file you received from Razorleaf and copy/paste the text to the newly created <strong>CopyFilesToTest.bs</strong> script file.
<h3>Step Three - Modify Destination Vaults</h3>
The three destination vaults must be configured to match the location of the vaults on your test SmarTeam Vault Server.  The code that configures this is as follows:

CheckedInVault = "\\UNCPathToCheckedIn"

ReleasedVault = "\\UNCPathToReleased"

ObsoleteVault = "\\UNCPathToObsolete"

The screenshot below shows a sample configuration:
<p style="text-align: center;"><img class="aligncenter size-large wp-image-6777" title="SmarTeam CopyFilesToTest Script Vault Paths" src="http://www.razorleaf.com/wp-content/uploads/2010/02/SmarTeam-CopyFilesToTest-Script-Vault-Paths-490x366.png" alt="" width="490" height="366" /></p>
&nbsp;

Note that the full UNC path must be enclosed within quotations.   Remember to configure NTFS permissions to allow the logged-in Windows user to write to the UNC paths.
<h3>Step Four - Hook the script</h3>
Hook the script function to a <strong>User-Defined Tool (UDT)</strong> on the Documents super class in ENOVIA SmarTeam using the <strong>Script Maintenance</strong> tool.
<p style="text-align: center;"><img class="aligncenter size-large wp-image-6778" title="SmarTeam CopyFilesToTest Script Maintenance" src="http://www.razorleaf.com/wp-content/uploads/2010/02/SmarTeam-CopyFilesToTest-Script-Maintenance-490x378.png" alt="" width="490" height="378" /></p>
&nbsp;

&nbsp;
<p style="text-align: center;"><strong><img class="aligncenter size-large wp-image-6779" title="SmarTeam CopyFilesToTest Script Browser" src="http://www.razorleaf.com/wp-content/uploads/2010/02/SmarTeam-CopyFilesToTest-Script-Browser-490x346.png" alt="" width="490" height="346" /></strong></p>

<h3>Step Five - Run the Script</h3>
Finally, identify objects for the file transfer.  This can be either from browsing a Documents tree or performing a search.  <strong>CTRL</strong> or <strong>SHIFT</strong> + left-click to select one or more objects.  Once the desired objects are selected, simply right-click, select <strong>User Defined Tools</strong> and choose <strong>Copy Files to Test</strong>.
<p style="text-align: center;"><img class="aligncenter size-full wp-image-6782" title="SmarTeam CopyFilesToTest UDT" src="http://www.razorleaf.com/wp-content/uploads/2010/02/SmarTeam-CopyFilesToTest-UDT.png" alt="" width="409" height="307" /></p>
A confirmation message will be shown if successful.
<p style="text-align: center;"><img class="aligncenter size-full wp-image-6783" title="SmarTeam CopyFilesToTest Files Successfully Copied" src="http://www.razorleaf.com/wp-content/uploads/2010/02/SmarTeam-CopyFilesToTest-Files-Successfully-Copied.png" alt="" width="168" height="84" /></p>
Browse to the SmarTeam Vault Server test location using Windows Explorer to ensure the files were copied as expected.  Since the <strong>CopyFilesToTest.bs</strong> script is installed on the production environment, permissions should be set on the UDT to only allow access to an administrator.
<h3>Summary</h3>
With the test files copied, validation can begin in the test system using copies instead of the actual production files.  Not only is this a <strong>time saver</strong>, but user acceptance testing can be performed on files familiar to the users.  Please leave us a comment below to let us know what you think of the tool and if you have ideas for improving it.]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/02/smarteam-vault-data-xfer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64-bit Oracle Support for ENOVIA SmarTeam</title>
		<link>http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam/</link>
		<comments>http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 00:00:35 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[ENOVIA SmarTeam V5R18]]></category>
		<category><![CDATA[OLEDB]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SmarTeam Foundation]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=6653</guid>
		<description><![CDATA[The population of 64-bit PCs has steadily increased since their mainstream introduction in 2003, and ENOVIA SmarTeam has supported the use of 64-bit machines since V5R18  <a href="http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam/">Read More...</a>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64-bit Oracle Support for ENOVIA SmarTeam</title>
		<link>http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam-2/</link>
		<comments>http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam-2/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 00:00:35 +0000</pubDate>
		<dc:creator>Steve Dunn</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[ENOVIA SmarTeam]]></category>
		<category><![CDATA[Product Data Management]]></category>
		<category><![CDATA[Product Lifecycle Management]]></category>
		<category><![CDATA[Technical Tips]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[ENOVIA SmarTeam V5R18]]></category>
		<category><![CDATA[OLEDB]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SmarTeam Foundation]]></category>

		<guid isPermaLink="false">http://www.razorleaf.com/?p=6653</guid>
		<description><![CDATA[The population of 64-bit PCs has steadily increased since their mainstream introduction in 2003, and ENOVIA SmarTeam has supported the use of 64-bit machines since V5R18  <a href="http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam-2/">Read More...</a>]]></description>
		<wfw:commentRss>http://www.razorleaf.com/2010/02/64-bit-oracle-smarteam-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
