Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Question

Re: Oracle Question

From: Billy <vslabs_at_onwe.co.za>
Date: 3 Oct 2005 03:31:17 -0700
Message-ID: <1128335477.725353.141110@g44g2000cwa.googlegroups.com>


Bhushan wrote:
> Actually my requirement is -
> I want a Unix Program which when sees the record, it will
> automatically load it
> to an Oracle table(i can write script for this but i want program to
> accpet this record ) this program should listen on specific port , and
> it will always run on Unix. this record will be sent by another
> program which i have.

I don't see the problem - nor any requirement for Oracle pipes or advance queues.

E.g., you write a Pro*C program. It listens on a TCP (or UDP) socket for data. When data arives it uses an SQL INSERT statement (or preferable a PL/SQL Stored Procedure) to insert that data into Oracle.

Same can be done with Perl using Perl-DBI for Oracle.. coded in a matter of minutes.

Remember that a file handle is a file handle is a file handle.. and that is exactly what a socket handle essentially is. A file handle. You read data from it using -standard- I/O calls. You write that data into Oracle using -standard- SQL. That simple.

--
Billy
Received on Mon Oct 03 2005 - 05:31:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US