The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Extract BLOB-Data with DatabaseExampleSource
Hello,
I want to extract data from an Oracle-Database. It's possible to connect to the database and read all tables. However, for one data-type (BLOB = binary large objects) the table contains only '?'. What I would like to have is to see the data of the field MODUL_DATA as hex-string which I then can convert later ...
<operator name="Root" class="Process" expanded="yes">
<operator name="DatabaseExampleSource (2)" class="DatabaseExampleSource">
<parameter key="database_system" value="Oracle"/>
<parameter key="database_url" value="jdbc:oracle:thin:@nu0xxxxxxxxxxxxxxxx"/>
<parameter key="username" value="XXXX"/>
<parameter key="password" value="XXXX"/>
<parameter key="query" value="SELECT "ID_MM", "MODUL_DATA" FROM "MES_AUMM""/>
</operator>
</operator>
What should I do?
Thanks for your help
Best Regards
VD
I want to extract data from an Oracle-Database. It's possible to connect to the database and read all tables. However, for one data-type (BLOB = binary large objects) the table contains only '?'. What I would like to have is to see the data of the field MODUL_DATA as hex-string which I then can convert later ...
<operator name="Root" class="Process" expanded="yes">
<operator name="DatabaseExampleSource (2)" class="DatabaseExampleSource">
<parameter key="database_system" value="Oracle"/>
<parameter key="database_url" value="jdbc:oracle:thin:@nu0xxxxxxxxxxxxxxxx"/>
<parameter key="username" value="XXXX"/>
<parameter key="password" value="XXXX"/>
<parameter key="query" value="SELECT "ID_MM", "MODUL_DATA" FROM "MES_AUMM""/>
</operator>
</operator>
What should I do?
Thanks for your help
Best Regards
VD
0
Answers
you might modify your select statement, so that it already delivers a hex representation using the TO_HEXDUMP function. If this don't work, I have no clue what to do, beside from writing some special code.
Greetings,
Sebastian
Thanks for your reply.
Do you mean something like
SELECT TO_HEXDUMP("MODUL_DATA") FROM "MES_AUMM"
??
this gives me the following error message: Error in: DatabaseExampleSource (2) (DatabaseExampleSource) Database error occurred: ORA-00904: "TO_HEXDUMP": invalid identifier.
I was using google to search for '+select +to_hexdump' but could not find any helpful information. How should I add this converter ini RM?
Best Regards
VD
if this will not work and you urgently need this feature, we might think of extending RapidMiner with that functionality as a last resort. The downside would be, that you would have to pay for this extension...
Greetings,
Sebastian