- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Extract Header from a Table in Oracle Database and Execute a 'Create Table' In PostgreSQL Using NiFi
- Labels:
-
Apache NiFi
Created on
‎11-07-2021
04:18 AM
- last edited on
‎11-07-2021
02:48 PM
by
ask_bill_brooks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Community, This Is my first post with you
my problem is i want extract the header of a table from oracle database and based on the header i want to execute a create statement to store the header into postgresql and all that using NIFI
is there any solution for this?
Thank you
Created ‎11-09-2021 10:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome to the Cloudera Community, @SAYB !
I have been using both Oracle and PostgreSQL DBMS's heavily for quite some time, and it's not clear, to me at least, what you mean when you write you want to "extract the header of a table from oracle database". For the same reason, it's not clear what "execute a create statement to store the header into postgresql" means.
Let's assume that by "the header of a table", you mean the output of Oracle's Describe command, which provides the user with a display indicating the structure of the specified table, including the column names and the data type for each column. If that assumption is correct, perhaps you mean that you'd like to use NiFi to obtain the structure of a table in Oracle, and have it CREATE a similar table in postgresql, by translating in some automated fashion between the datatypes available on that specific source Oracle database and the data types available in the target PostgreSQL database.
That is typically something that you'd do only once per schema pair. Does your task involve many database tables, and are you going to have to do this task over and over again?
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created ‎11-09-2021 02:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @ask_bill_brooks for your fast reply.
Yes that exactly what i want to do and it is like a repetitive task which mean that my task involves many database tables and it will be repetitive.
Is there any solution in mind @ask_bill_brooks?
Thank you for your time.
