显示所有查询到Oracle数据库 [英] Show all queries coming to an Oracle database

查看:101
本文介绍了显示所有查询到Oracle数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要查看所有查询到数据库.怎么做?我无法从Google搜索中获得正确的结果.

I need to see all queries coming to database. How to do that? I could not get proper results from a Google search.

推荐答案

启用 SQL跟踪& ;所有进入数据库的查询都将被记录.

Enable SQL Trace & all the queries coming to the database will be logged.

ALTER SESSION SET sql_trace = true;
ALTER SESSION SET tracefile_identifier = mysqltrace;

跟踪文件将出现在udump目录中.

The trace file will be present in the udump directory.

如果您要审核数据库,请查看我以前的回答.

If you want to audit the database, look at my previous answer.

这篇关于显示所有查询到Oracle数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆