Step 1: Change Working Directory 

During the Metadata Installation we will be working with the metadata directory. Within this directory are the files we will be editing to define the database properties, create the metadata tables and load the sample data provided with the i2b2 on OMOP data package.

<span style="font-size:15px;font-weight:bold">Working directory for metadata:</span>
<i>YOUR_I2B2_OMOP_DATA_DIR</i>\i2b2_omop_data\<i>{oracle|sqlserver}</i>\metadata

How to Change Directories

If you are not familiar with how to change your directory in either a windows command prompt or a terminal window, you can enter the following:

cd YOUR_I2B2_OMOP_DATA_DIR\i2b2_omop_data\{oracle|sqlserver}\metadata

 

Make sure you replace the following when entering the above command:

<div class="i2b2-panel">
    <table class="i2b2-important">
        <colgroup>
            <col width="24">
            <col>
        </colgroup>
        <tbody>
            <tr>
                <td>
                    <img src="https://community.i2b2.org/wiki/download/attachments/14091764/icon_important.png" width="16" height="16" align="absmiddle" alt="info" border="0">
                </td>
                <td>
                    <b>Important</b>
                    <br><br>The change directory command shown above is written for Windows. The command itself is the same for both Linux and Windows with the only exceptions being the slashes in the path name and Linux does not include the "drive".
					<br>
					<ul>
						<li><i>Linux Path:</i> use a forward slash.</li>
						<li><i>Windows Path:</i> use a backward slash.</li>
					</ul>
                </td>
            </tr>
        </tbody>
    </table>
</div>

EXAMPLES:

Linux Command: CD /opt/data/i2b2_omop_data/oracle/metadata

Windows Command: CD C:\opt\data\i2b2_omop_data\oracle\metadata

 

 

 

To change your working directory to the metadata directory enter the following command:

CD YOUR_I2B2_DATA_DIR\i2b2_omop_data\{oracle|sqlserver}\metadata

<div class="i2b2-panel">
    <table class="i2b2-important">
        <colgroup>
            <col width="24">
            <col>
        </colgroup>
        <tbody>
            <tr>
                <td>
                    <img src="https://community.i2b2.org/wiki/download/attachments/14091764/icon_important.png" width="16" height="16" align="absmiddle" alt="info" border="0">
                </td>
                <td>
                    <b>Important</b>
                    <br>The change directory command shown above is written for Windows. The command itself is the same for both Linux and Windows with the only exceptions being the slashes in the path name and Linux does not include the "drive".
					<br>
					<ul>
						<li><i>Linux Path:</i> use a forward slash.</li>
						<li><i>Windows Path:</i> use a backward slash.</li>
					</ul>
                </td>
            </tr>
        </tbody>
    </table>
</div>


EXAMPLES:

Linux Command: CD /opt/data/i2b2_omop_data/oracle/metadata

Windows Command: CD C:\opt\data\i2b2_omop_data\oracle\metadata