Hi,
i'm new bee to vertica database. In Oracle using listener we can push the data from database.
In vertica is there possibility to push the data from database.
How to push the data for Vertica Database ?
Moderator: NorbertKrupa
Re: How to push the data for Vertica Database ?
Oracle Net Listener is a separate process that runs on the database server computer. It receives incoming client connection requests and manages the traffic of these requests to the database server.
https://docs.oracle.com/cd/E11882_01/ne ... nercfg.htm
I'm not sure what you mean by "push the data from database via listener".
If you mean spool data from Oracle database via sqlplus. For Vertica you can use \o via vsql.
If I miss understand, Can you explain more or show me an example.
https://docs.oracle.com/cd/E11882_01/ne ... nercfg.htm
I'm not sure what you mean by "push the data from database via listener".
If you mean spool data from Oracle database via sqlplus. For Vertica you can use \o via vsql.
If I miss understand, Can you explain more or show me an example.
Itipong Chewinpipat (Bay)
DBA Specialist (Vertica/Oracle)
DBA Specialist (Vertica/Oracle)
Re: How to push the data for Vertica Database ?
Thanks for replying.
I am looking at a design where I run a Java program which listens to vertica database table changes (namely DML statements) and get notifications in my Java program. I have done a similar design for oracle database using "Database Change Listener" and hoping to implement a similar design for vertica database.
Hope this is clear.
I am looking at a design where I run a Java program which listens to vertica database table changes (namely DML statements) and get notifications in my Java program. I have done a similar design for oracle database using "Database Change Listener" and hoping to implement a similar design for vertica database.
Hope this is clear.
-
- GURU
- Posts: 527
- Joined: Tue Oct 22, 2013 9:36 pm
- Location: Chicago, IL
- Contact:
Re: How to push the data for Vertica Database ?
When you say table changes, do you mean the actual data or the table structure? If the former, then you should use some sort of sequence.
Checkout vertica.tips for more Vertica resources.
- JimKnicely
- Site Admin
- Posts: 1825
- Joined: Sat Jan 21, 2012 4:58 am
- Contact:
Re: How to push the data for Vertica Database ?
Maybe monitor the v_monitor.query_requests table looking for DML?
Something like this, but maybe a little more robust depending in the requirements...
Something like this, but maybe a little more robust depending in the requirements...
Code: Select all
select request from v_monitor.query_requests where request ilike 'insert%' or request ilike '%update' or request ilike '%delete' and start_timestamp > [[time last checked]];
Jim Knicely
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Re: How to push the data for Vertica Database ?
This approach will require polling the mentioned table at regular intervals to find out the data changes. What I am looking for is some sort of notification (as close as realtime) in the Java layer, as soon as a record is inserted/updated/deleted. I am trying to figure out, if there is any approach in Vertica database similar to "Database Change Listener" for Oracle.
- JimKnicely
- Site Admin
- Posts: 1825
- Joined: Sat Jan 21, 2012 4:58 am
- Contact:
Re: How to push the data for Vertica Database ?
I am unaware of anything in Vertica that will "automatically" push data to a destination. I'm not sure why you'd ever want that.
Don't forget that Vertica is a analytics database, not an OLTP. How are you updating Vertica? What ever process that is (i.e. an ETL tool) why not have that process also send the inserts, updates and/or deletes to whatever other destination you need?
Don't forget that Vertica is a analytics database, not an OLTP. How are you updating Vertica? What ever process that is (i.e. an ETL tool) why not have that process also send the inserts, updates and/or deletes to whatever other destination you need?
Jim Knicely
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.
Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.