dbTalk Databases Forums  

Intercept sql statement

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Intercept sql statement in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Zabuti Maxim
 
Posts: n/a

Default Intercept sql statement - 07-28-2009 , 05:19 PM






Hi,
I need a way to intercept and modify SQL statement with parameters
sent by .NET application. It should be transparently, I mean I don't
want application to be recompiled. Is there any simple way to do this?
Thanks

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Intercept sql statement - 07-29-2009 , 09:27 AM






On Jul 28, 6:19*pm, Zabuti Maxim <zabutima... (AT) gmail (DOT) com> wrote:
Quote:
Hi,
I need a way to intercept and modify SQL statement with parameters
sent by .NET application. It should be transparently, I mean I don't
want application to be recompiled. Is there any simple way to do this?
Thanks
Off the top of my head I would say, "no, there is no way to do this."
However, if you provide a more complete explanation of what you want
to do with the SQL, why, and the front-end application design and tool
set someone may be able to offer useful suggestions.

HTH -- Mark D Powell --

Reply With Quote
  #3  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: Intercept sql statement - 07-29-2009 , 10:27 AM



Zabuti Maxim (zabutimaxim (AT) gmail (DOT) com) wrote:
: Hi,
: I need a way to intercept and modify SQL statement with parameters
: sent by .NET application. It should be transparently, I mean I don't
: want application to be recompiled. Is there any simple way to do this?
: Thanks

You could send it thru a proxy. There are probably examples on someplace
like sourceforge.

Writing one to monitor the data being passed back and forth is pretty easy
- editing the data as it goes thru would be trickier.

$0.10

Reply With Quote
  #4  
Old   
Zabuti Maxim
 
Posts: n/a

Default Re: Intercept sql statement - 07-30-2009 , 12:23 PM



On Jul 29, 6:27*pm, yf... (AT) vtn1 (DOT) victoria.tc.ca (Malcolm Dew-Jones)
wrote:
Quote:
Zabuti Maxim (zabutima... (AT) gmail (DOT) com) wrote:

: Hi,
: I need a way tointerceptand modifySQLstatementwith parameters
: sent by .NET application. It should be transparently, I mean I don't
: want application to be recompiled. Is there any simple way to do this?
: Thanks

You could send it thru a proxy. *There are probably examples on someplace
like sourceforge.

Writing one to monitor the data being passed back and forth is pretty easy
- editing the data as it goes thru would be trickier.

$0.10

Thanks Malcolm,

I thought about an option to develop a proxy that will receive the
packets, parse them, modify and send them to SQL server,
but this way is pretty complicated one, I thought maybe there is some
way to hook SQL + Parameters that pass between the application
and OLEDB driver or between application and ADO.NET.
Unfortunately, I can't talk about the reasons.

Thanks again.

Reply With Quote
  #5  
Old   
Gerard H. Pille
 
Posts: n/a

Default Re: Intercept sql statement - 07-30-2009 , 12:59 PM



Zabuti Maxim schreef:
Quote:
Hi,
I need a way to intercept and modify SQL statement with parameters
sent by .NET application. It should be transparently, I mean I don't
want application to be recompiled. Is there any simple way to do this?
Thanks
There is nothing more simple than that. Oracle calls it their VPD:

http://www.oracle.com/technology/obe...ty/vpd/vpd.htm

Reply With Quote
  #6  
Old   
joel garry
 
Posts: n/a

Default Re: Intercept sql statement - 07-30-2009 , 02:20 PM



On Jul 30, 10:59*am, "Gerard H. Pille" <g... (AT) skynet (DOT) be> wrote:
Quote:
Zabuti Maxim schreef:

Hi,
I need a way to intercept and modify SQL statement with parameters
sent by .NET application. It should be transparently, I mean I don't
want application to be recompiled. Is there any simple way to do this?
Thanks

There is nothing more simple than that. *Oracle calls it their VPD:

http://www.oracle.com/technology/obe...ty/vpd/vpd.htm
That only places a very limited modification to see a subset of the
data or audit actions. If the secret reasons the OP can't talk about
aren't that, it's not applicable. Also see Pete Finnegan's VPD
security pdf and various other row level security docs on the net, as
well as special code needed for things like weblogic and bugs with
some tools. http://download.oracle.com/docs/cd/B...i.htm#CHDECFBF
for how it applies to different access models. There's other things
like sys being exempt, you need to make others exempt to get a
complete export, parsing and optimizer issues can occur (sometimes
things may go faster if the data is limited properly - but additional
administration is necessary regardless), and a lot of other more
obscure issues may need to be addressed.

jg
--
@home.com is bogus.
http://www.xconomy.com/san-diego/200...he-web-part-2/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.