<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Oracle Designer/Oracle SCM Meta Model</title>
	<atom:link href="http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oracle-designeroracle-scm-meta-model</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Headphones For Less</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-314</link>
		<dc:creator>Headphones For Less</dc:creator>
		<pubDate>Sun, 29 Apr 2007 14:04:58 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-314</guid>
		<description><![CDATA[&lt;strong&gt;Headphones For Less&lt;/strong&gt;

I really doubt that is true.]]></description>
		<content:encoded><![CDATA[<p><strong>Headphones For Less</strong></p>
<p>I really doubt that is true.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: High Heel Shoes Store</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-313</link>
		<dc:creator>High Heel Shoes Store</dc:creator>
		<pubDate>Sat, 28 Apr 2007 06:31:53 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-313</guid>
		<description><![CDATA[&lt;strong&gt;High Heel Shoes Store&lt;/strong&gt;

Is that a template? If not your a great designer!]]></description>
		<content:encoded><![CDATA[<p><strong>High Heel Shoes Store</strong></p>
<p>Is that a template? If not your a great designer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Honda Auto Parts Locator</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-312</link>
		<dc:creator>Honda Auto Parts Locator</dc:creator>
		<pubDate>Wed, 25 Apr 2007 19:08:07 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-312</guid>
		<description><![CDATA[&lt;strong&gt;Honda Auto Parts Locator&lt;/strong&gt;

Are you sure?]]></description>
		<content:encoded><![CDATA[<p><strong>Honda Auto Parts Locator</strong></p>
<p>Are you sure?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Camping Equipment Cheap</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-311</link>
		<dc:creator>Camping Equipment Cheap</dc:creator>
		<pubDate>Sun, 22 Apr 2007 10:56:08 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-311</guid>
		<description><![CDATA[&lt;strong&gt;Camping Equipment Cheap&lt;/strong&gt;

Are you sure?]]></description>
		<content:encoded><![CDATA[<p><strong>Camping Equipment Cheap</strong></p>
<p>Are you sure?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-310</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Fri, 09 Jul 2004 20:18:52 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-310</guid>
		<description><![CDATA[The following query returns the list of Child Elements - and the tables in the Designer Schema that hold their data - for a given (master) element:

select distinct
         &#039;i$&#039;&#124;&#124;tab2.table_name child_tab_name
  ,      col.column_name child_to_parent_ref_column
  ,      child_et.ID child_type_id
  ,      child_et.SHORT_NAME child_type_of
  from   i$RM_SQL_TABLES tab1
  ,      i$RM_SQL_TABLES tab2
  ,      i$RM_SQL_CONSTRAINTS con1
  ,      i$RM_SQL_CONSTRAINTS con2
  ,      rm_element_types et
  ,      rm_element_types child_et
  ,      i$rm_sql_row_types srt
  ,      i$rm_sql_row_types srt_child
  ,      i$RM_SQL_CONS_COLUMNS col
  where  et.irid = :master_type_id
  and    srt.id  = et.primary_row_type
  and    srt_child.id  = child_et.primary_row_type
  and    tab2.irid  = srt_child.table_mapped
  and    con1.table_irid  = srt.table_mapped
  and    tab2.irid=con2.table_irid
  and    con2.r_constraint_name=con1.constraint_name
  and    con2.is_owning_fk!=&#039;N&#039;
  and    col.constraint_irid=con2.irid
  and    tab2.irid!= con1.table_irid


For example for master element type Entity (:master_type_id = 5002) this query returns:
i$SDD_ATT,ENTITY_REF,5010,ATT
i$SDD_ENTBUN,ENTITY_REF,5012,ENTBUN
i$SDD_RELEND,FROM_ENTITY_REF,5025,RELEND
i$SDD_UID,ENTITY_REF,4877,UID]]></description>
		<content:encoded><![CDATA[<p>The following query returns the list of Child Elements &#8211; and the tables in the Designer Schema that hold their data &#8211; for a given (master) element:</p>
<p>select distinct<br />
         &#8216;i$&#8217;||tab2.table_name child_tab_name<br />
  ,      col.column_name child_to_parent_ref_column<br />
  ,      child_et.ID child_type_id<br />
  ,      child_et.SHORT_NAME child_type_of<br />
  from   i$RM_SQL_TABLES tab1<br />
  ,      i$RM_SQL_TABLES tab2<br />
  ,      i$RM_SQL_CONSTRAINTS con1<br />
  ,      i$RM_SQL_CONSTRAINTS con2<br />
  ,      rm_element_types et<br />
  ,      rm_element_types child_et<br />
  ,      i$rm_sql_row_types srt<br />
  ,      i$rm_sql_row_types srt_child<br />
  ,      i$RM_SQL_CONS_COLUMNS col<br />
  where  et.irid = :master_type_id<br />
  and    srt.id  = et.primary_row_type<br />
  and    srt_child.id  = child_et.primary_row_type<br />
  and    tab2.irid  = srt_child.table_mapped<br />
  and    con1.table_irid  = srt.table_mapped<br />
  and    tab2.irid=con2.table_irid<br />
  and    con2.r_constraint_name=con1.constraint_name<br />
  and    con2.is_owning_fk!=&#8217;N&#8217;<br />
  and    col.constraint_irid=con2.irid<br />
  and    tab2.irid!= con1.table_irid</p>
<p>For example for master element type Entity (:master_type_id = 5002) this query returns:<br />
i$SDD_ATT,ENTITY_REF,5010,ATT<br />
i$SDD_ENTBUN,ENTITY_REF,5012,ENTBUN<br />
i$SDD_RELEND,FROM_ENTITY_REF,5025,RELEND<br />
i$SDD_UID,ENTITY_REF,4877,UID</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-309</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Fri, 09 Jul 2004 19:36:02 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-309</guid>
		<description><![CDATA[How to Design Capture the Designer 9i/10g (Meta) Model

These steps describe how to create an Application System in Oracle Designer that contains Table and View Definitions for the database objects that make up the Oracle Designer Repository. You will need some PL/SQL packages to get the most refined results; you can download these from the &lt;a href=&quot;http://www.amis.nl/files/technology/DesignCaptureDesigner9i10gMetaModel.zip&quot; rel=&quot;nofollow&quot;&gt;AMIS website&lt;/a&gt;

1. Install Designer 9i or 10g  Client and Server (Repository, Oracle 9i or 10g SCM)
2. Enable Version Support (in RAU, Menu Options)
3. Create Workarea &quot;Design Capture Designer 10g Meta Model&quot;
3. Get Workarea Irid: Select Workarea, click on Name property,press F5 and copy IRID value to clipboard
4. Create Root Folder Designer 10g Model
5. Get Folder Irid: Select Folder Designer 10g Model, click on Name property,press F5 and copy IRID value to clipboard, paste to some text file
6. Connect to Repository Owner database account using SQL*Plus or TOAD
7. Create the following packages (from the zip-file at &lt;a href=&quot;http://www.amis.nl/files/technology/DesignCaptureDesigner9i10gMetaModel.zip&quot; rel=&quot;nofollow&quot;&gt;www.amis.nl&lt;/a&gt;): rm_domains, rm_el, rm_col, rm_fk, rm_fk_upd, rm_move
8. Design capture all Domains used by the columns (element properties) in the meta-model:
(examples are: {true,false}, {client,both,server,none}, {char,number,varchar,date,timestamp,....})
- begin
    rm_domains.capture_domains
    ( p_wa_irid     =&gt;  -- context workarea Design Capture Designer 10g Meta Model
    , p_folder_irid =&gt;  -- target container Designer 10g Model
    , p_name_after  =&gt;  &#039;0&#039;
    , p_name_before =&gt;  &#039;G&#039;
    );
  end;
9. Use the Server Design Capture functionality in the Design Editor to Design capture all Element Types (Primary and Secondary) to Table Definitions:
  - first in SQL*Plus or TOAD, connected as Repository Owner, execute this statement:
    update SDD_RESERVED_NAMES
    set    rn_res_name = &#039;X&#039;&#124;&#124;rn_res_name

  this removes the filter on Design Capture that prevents it from Design Capturing Designer&#039;s own elements

 - Design Capture (from Design Editor) all i$sdd_... tables
 - Design Capture (from Design Editor) all sdd_... views
 - Design Capture (from Design Editor) all ci_... views
 - update SDD_RESERVED_NAMES
   set    rn_res_name = substr(rn_res_name,2)

   to re-establish the filer

10. Use RM_EL to embellish Element Types/CI-View definitions (note:processing UID fails because setting the alias to UID is not allowed since UID is a reserved word!)
11. Use RM_COLS to embellish column definitions (in view definitions)
12. Use RM_FK to create foreign keys for view definitions
13. Use rm_fk_upd to define ARCs for the foreign keys]]></description>
		<content:encoded><![CDATA[<p>How to Design Capture the Designer 9i/10g (Meta) Model</p>
<p>These steps describe how to create an Application System in Oracle Designer that contains Table and View Definitions for the database objects that make up the Oracle Designer Repository. You will need some PL/SQL packages to get the most refined results; you can download these from the <a href="http://www.amis.nl/files/technology/DesignCaptureDesigner9i10gMetaModel.zip" rel="nofollow">AMIS website</a></p>
<p>1. Install Designer 9i or 10g  Client and Server (Repository, Oracle 9i or 10g SCM)<br />
2. Enable Version Support (in RAU, Menu Options)<br />
3. Create Workarea &#8220;Design Capture Designer 10g Meta Model&#8221;<br />
3. Get Workarea Irid: Select Workarea, click on Name property,press F5 and copy IRID value to clipboard<br />
4. Create Root Folder Designer 10g Model<br />
5. Get Folder Irid: Select Folder Designer 10g Model, click on Name property,press F5 and copy IRID value to clipboard, paste to some text file<br />
6. Connect to Repository Owner database account using SQL*Plus or TOAD<br />
7. Create the following packages (from the zip-file at <a href="http://www.amis.nl/files/technology/DesignCaptureDesigner9i10gMetaModel.zip" rel="nofollow">http://www.amis.nl</a>): rm_domains, rm_el, rm_col, rm_fk, rm_fk_upd, rm_move<br />
8. Design capture all Domains used by the columns (element properties) in the meta-model:<br />
(examples are: {true,false}, {client,both,server,none}, {char,number,varchar,date,timestamp,&#8230;.})<br />
- begin<br />
    rm_domains.capture_domains<br />
    ( p_wa_irid     =>  &#8212; context workarea Design Capture Designer 10g Meta Model<br />
    , p_folder_irid =>  &#8212; target container Designer 10g Model<br />
    , p_name_after  =>  &#8217;0&#8242;<br />
    , p_name_before =>  &#8216;G&#8217;<br />
    );<br />
  end;<br />
9. Use the Server Design Capture functionality in the Design Editor to Design capture all Element Types (Primary and Secondary) to Table Definitions:<br />
  &#8211; first in SQL*Plus or TOAD, connected as Repository Owner, execute this statement:<br />
    update SDD_RESERVED_NAMES<br />
    set    rn_res_name = &#8216;X&#8217;||rn_res_name</p>
<p>  this removes the filter on Design Capture that prevents it from Design Capturing Designer&#8217;s own elements</p>
<p> &#8211; Design Capture (from Design Editor) all i$sdd_&#8230; tables<br />
 &#8211; Design Capture (from Design Editor) all sdd_&#8230; views<br />
 &#8211; Design Capture (from Design Editor) all ci_&#8230; views<br />
 &#8211; update SDD_RESERVED_NAMES<br />
   set    rn_res_name = substr(rn_res_name,2)</p>
<p>   to re-establish the filer</p>
<p>10. Use RM_EL to embellish Element Types/CI-View definitions (note:processing UID fails because setting the alias to UID is not allowed since UID is a reserved word!)<br />
11. Use RM_COLS to embellish column definitions (in view definitions)<br />
12. Use RM_FK to create foreign keys for view definitions<br />
13. Use rm_fk_upd to define ARCs for the foreign keys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/2004/07/09/oracle-designeroracle-scm-meta-model/#comment-308</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Fri, 09 Jul 2004 19:09:51 +0000</pubDate>
		<guid isPermaLink="false">/?p=60#comment-308</guid>
		<description><![CDATA[This query can be used to find the parent type of any (child) element type:
	  &lt;code&gt;
select lnk_to.defined_against parent_type_id
,       e.short_name
,      e.TYPES
,      e.SUPERTYPES
from   i$rm_properties prp
,      i$rm_link_properties lnk_from
,      i$rm_link_properties lnk_to
,      rm_element_types e
where  prp.descriptor_sequence = 1
and    prp.types = 16
and    prp.defined_against = :child_type_id
and    lnk_from.id = prp.id
and    lnk_from.link_type = lnk_to.link_type
and    lnk_to.id != lnk_from.id
and    e.id = lnk_to.defined_against
&lt;/code&gt;
For example for :child_type_id = 5010 (Attribute) this query returns:
&lt;code&gt;
PARENT_TYPE_ID  SHORT_NAME  TYPES  SUPERTYPES
5002            ENT         8      4968
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>This query can be used to find the parent type of any (child) element type:<br />
	  <code><br />
select lnk_to.defined_against parent_type_id<br />
,       e.short_name<br />
,      e.TYPES<br />
,      e.SUPERTYPES<br />
from   i$rm_properties prp<br />
,      i$rm_link_properties lnk_from<br />
,      i$rm_link_properties lnk_to<br />
,      rm_element_types e<br />
where  prp.descriptor_sequence = 1<br />
and    prp.types = 16<br />
and    prp.defined_against = :child_type_id<br />
and    lnk_from.id = prp.id<br />
and    lnk_from.link_type = lnk_to.link_type<br />
and    lnk_to.id != lnk_from.id<br />
and    e.id = lnk_to.defined_against<br />
</code><br />
For example for :child_type_id = 5010 (Attribute) this query returns:<br />
<code><br />
PARENT_TYPE_ID  SHORT_NAME  TYPES  SUPERTYPES<br />
5002            ENT         8      4968<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
