<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/adapt/index.php?action=history&amp;feed=atom&amp;title=SRB%3ASchema_Extending</id>
	<title>SRB:Schema Extending - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/adapt/index.php?action=history&amp;feed=atom&amp;title=SRB%3ASchema_Extending"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=SRB:Schema_Extending&amp;action=history"/>
	<updated>2026-04-07T13:53:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/adapt/index.php?title=SRB:Schema_Extending&amp;diff=2188&amp;oldid=prev</id>
		<title>Toaster at 17:38, 16 September 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/adapt/index.php?title=SRB:Schema_Extending&amp;diff=2188&amp;oldid=prev"/>
		<updated>2008-09-16T17:38:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
From conversation w/ SDSC, this may only be relevant to versions prior to 3.x&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        I have looked at the table  definition. Which database were they&lt;br /&gt;
written for?  I tried creating one of the tables in Oracle and failed.&lt;br /&gt;
To extend MCAT with attributes you need to follow four steps:&lt;br /&gt;
&lt;br /&gt;
1. create the tables in the MCAT database&lt;br /&gt;
2. modify the include files (mdasC_db2_externs.h ,mdasGlobals.h)&lt;br /&gt;
   the mdasC_db2_externs.h has the index for the attribute&lt;br /&gt;
        that is visible through the MCAT API&lt;br /&gt;
    the mdasGlobals.h maps the index to table name and attribute name&lt;br /&gt;
3. modify the metadata.fkrel file in the data directory&lt;br /&gt;
    here you give the join attributes among the tables. make sure that you&lt;br /&gt;
        are not introducing cycles.&lt;br /&gt;
4. recompile client and server and restart the SRB.&lt;br /&gt;
&lt;br /&gt;
this will allow you to query the attribute through the MCAT but does not&lt;br /&gt;
    provide a means of inserting or updating through the MCAT. You can do&lt;br /&gt;
    ingestion either through Oracle directly or usingt the SRB DAI&lt;br /&gt;
    interface. If you are doing thr DAI interface, I would suggest&lt;br /&gt;
    having a separete Oracle account for it and give it only insert&lt;br /&gt;
    permissions to these tables and not any other MCAT tables.&lt;br /&gt;
&lt;br /&gt;
if you want to modify through the MCAT it is possible but a little bit&lt;br /&gt;
more involved.  The insertion of rows through MCAT is more involved and I&lt;br /&gt;
would   suggest not to try it if possible. we can use that as a last&lt;br /&gt;
resort if the DAI or Oracle option is not workable.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-- Main.MikeSmorul - 02 May 2005&lt;/div&gt;</summary>
		<author><name>Toaster</name></author>
	</entry>
</feed>