日期:2014-05-17  浏览次数:20798 次

==== ORALCE 监听接口,望高手给指条路 ====
有一对外(外网也可连接)的ORACLE数据库服务器.

想写程序实现这样的功能:
当有外网连接到此服务器并操作数据时做一记录.

我是菜鸟,
想了半天,
觉得稍理想点的方法就是通过触发器实现.
但这样做又显得很笨拙.
然后又想,
即然ORACLE服务是通过监听程序与外网进行交互,
那么是否可以在ORACLE监听程序上做点文章,
让它实现我所想要的功能?

如果各位高手有更好的解决方法还请多多指教.

请各位帮忙指条路子,先谢了...

注:   程序将使用.NET(C#)实现


------解决方案--------------------
session
------解决方案--------------------
ORACLE监听程序上做点文章
================
不行吧

你说的触发器 try下

My-Blog地址1:http://www.cnblogs.com/nyzfl
My-Blog地址2: http://blog.csdn.net/nyzfl
------解决方案--------------------
oracle在安全方面提供了Standard Database Auditing等审计功能

Enabled through the AUDIT_TRAIL parameter
NONE: Disables collection of audit records
DB: Enables auditing with records stored in the database
OS: Enables auditing with records stored in the operating system audit trail
Can audit:
Login events
Exercise of system privileges
Exercise of object privileges
Use of SQL statements

用这个试试
------解决方案--------------------
上面说的对,用审计
------解决方案--------------------
对已成功登陆可以使用数据库级触发器,能够记录到登陆用户的主机名称等情报。
好像IP也可以。