Changes
Created page with "Before being able to connect to an oracle database it is necessary to configure the connection to the server on your local environment. UBIK uses OLEDB to connecti to Oracle v..."
Before being able to connect to an oracle database it is necessary to configure the connection to the server on your local environment. UBIK uses OLEDB to connecti to Oracle via TNS (Transparent Network Substrate).
1. After installing the oracle client you have to configure the oracle server in the TNS Names:
In [ORACLESOFTWARE]\network\admin\ you can find "tnsnames.ora".
Configure the connection and call it (like in this example TESTDB):
<code>
MY_CONNECTION_NAME=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host =AUGTESTORACLE.cloudapp.net)(Port = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = UBIKTEST)
)
)
</code>
2. Use a "CreateOLEOracleScope" Activity to configure the connection.
You have to configure the connection to the Oracle database DataSource, the InitialCatalog and you need to fill out UserName and Password.
<br/><br/>
3. Use a "CreateOLETableScope" to define the table you want to fetch data from.
Configure the tablename in DisplayName.
<br/><br/>
4. Use a ForEach<DataRow> Activity to iterate over the records in the table.
<br/><br/>
5. Access the columns of the record by using the index of the column.
<br/><br/>
[[Category:How-To]]
[[Category:Workflow]]
[[Category:UBIK Studio]]
1. After installing the oracle client you have to configure the oracle server in the TNS Names:
In [ORACLESOFTWARE]\network\admin\ you can find "tnsnames.ora".
Configure the connection and call it (like in this example TESTDB):
<code>
MY_CONNECTION_NAME=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host =AUGTESTORACLE.cloudapp.net)(Port = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = UBIKTEST)
)
)
</code>
2. Use a "CreateOLEOracleScope" Activity to configure the connection.
You have to configure the connection to the Oracle database DataSource, the InitialCatalog and you need to fill out UserName and Password.
<br/><br/>
3. Use a "CreateOLETableScope" to define the table you want to fetch data from.
Configure the tablename in DisplayName.
<br/><br/>
4. Use a ForEach<DataRow> Activity to iterate over the records in the table.
<br/><br/>
5. Access the columns of the record by using the index of the column.
<br/><br/>
[[Category:How-To]]
[[Category:Workflow]]
[[Category:UBIK Studio]]