How to make communication with Oracle dbms_pipe with .net client?


 
Thread Tools Search this Thread
Top Forums Programming How to make communication with Oracle dbms_pipe with .net client?
# 1  
Old 05-07-2010
How to make communication with Oracle dbms_pipe with .net client?

So, I have a 'task' to create communication channel between Oracle db (11gR2 on AIX) and some client wich is choosed to be a .net client (.net framework 3.5).

we created a pipe on client (.net) side using:
System.IO.Pipes.NamedPipeClientStream pipeClient = new NamedPipeClientStream("127.0.0.1", "testpipe", PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.Impersonation);

on a Oracle side, I created a dbms_pipe wich sends data using:
dbms_pipe.create_pipe
and
dbms_pipe.send_message

so,
sqlplus client manages to listen (to receive) messages from database when it sends a message, but I don't know how to make it with some client
# 2  
Old 05-07-2010
In unix, pipes are files. So, unless your .net app actually creates a resident UNIX process it cannot even see the pipe (file) Oracle created. .net does not run on AIX natively.

You have to use tcp SOCK_STREAM sockets. Look into the UTL_TCP Oracle package.
# 3  
Old 05-07-2010
This won't work. The named pipe facility in .NET is NOT the same as a DBMS_PIPE. They are not compatible, so you would have to have Oracle execute .NET code to pull data from the named pipe. Since this can't happen (easily), it's easier just to use the DBMS_PIPE and have the client use that.

So, if you create a package that can read/write to the DBMS_PIPE and connect your .NET client to the database and call that package then you should be good to go. See here for more information.

Last edited by DreamWarrior; 05-07-2010 at 02:37 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Problem in communication nim client with nim master

Hello, I have an AIX6.1 machine which is a nim client to my nim master which is also AIX6.1 machine. I had some problem to perform an installation on my client using smit nim . i removed /etc/niminfo file in order to do the initialization again but when i run the command niminit -a name=client... (0 Replies)
Discussion started by: omonoiatis9
0 Replies

2. Homework & Coursework Questions

Using dbms_pipe with C++ to perform daabase operation

I am getting two result: string and int in c++ code. That I want to store into database. The request which generates result is very frequent. So each time performing db operation to store the result is costly for me. So how this can be achived using dbms_sql? I dont have any experience and how... (1 Reply)
Discussion started by: karimkhan
1 Replies

3. AIX

Upgrade to TL8 failed: bos.net.NFS.client 6.1.8.1 (usr: COMMITTED, root:

dears i am trying to upgrade the TL from TL7 to TL8 and i facing this issue AIX6.1 << End of Success Section >> +-----------------------------------------------------------------------------+ BUILDDATE Verification ...... (2 Replies)
Discussion started by: thecobra151
2 Replies

4. Programming

please help a problem in client-server ipc message 2 pipes communication simple example

I want to have a message send & receive through 2 half-duplex pipes Flow of data top half pipe stdin--->parent(client) fd1--->pipe1-->child(server) fd1 bottom half pipe child(server) fd2---->pipe2--->parent(client) fd2--->stdout I need to have boundary structed message... (1 Reply)
Discussion started by: ouou
1 Replies

5. Infrastructure Monitoring

Error make net-Snmp 5.5

Configuration of net-Snmp 5.5 :) --------------------------------------------------------- Net-SNMP configuration summary: --------------------------------------------------------- SNMP Versions Supported: 1 2c 3 Building for: solaris2 ... (1 Reply)
Discussion started by: samirsidi
1 Replies

6. Programming

Client server communication using FIFO.

Hiii..... I need a client server communication using a FIFO. Sever is contacted by multiple clients.Each client writes its request to a FIFO.The server replies back to the client through a client specific FIFO. give any link to sample FIFO programs.......... Thanking you KRISH:cool: (1 Reply)
Discussion started by: krishnampkkm
1 Replies

7. Programming

How can i make two client to chat with each other?

How can i make two client to chat with each other.. without any work of server, i mean peer to peer i am making chat messenger on which all host will connect to/via server and if any host want private chat then thay work independently... this is code(attached) which i have made for server... (1 Reply)
Discussion started by: bt87
1 Replies

8. AIX

From ASP.NET to Oracle on unix

Dear all , I have a serious question and i need an answer before i go throught a new project. I have an oracle DB is on remote UNIX box.How can I connect through ASP.net on a windows server machine to the oracle db and do all the jobs i need (insert ,update delete) ? is their is a way ?? please... (2 Replies)
Discussion started by: hoshakhs
2 Replies
Login or Register to Ask a Question