日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
oracle怎么打開審計(jì),如何查看oracle數(shù)據(jù)庫(kù)審計(jì)是否開啟

oracle audit,如何審計(jì)ORACLE日志

據(jù)我所知,要審計(jì)alter、trace文件,沒有辦法,但是樓主可以開啟sql trace,然后使用tkprof查看跟蹤文件。

創(chuàng)新互聯(lián)公司主營(yíng)閻良網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,app軟件開發(fā)公司,閻良h5微信小程序開發(fā)搭建,閻良網(wǎng)站營(yíng)銷推廣歡迎閻良等地區(qū)企業(yè)咨詢

查看alert,trace等ORACLE日志,只要把這些個(gè)日志文件打開看就知道了,要是審計(jì)干什么。審計(jì)是記錄數(shù)據(jù)庫(kù)的操作,但是alert,trace等文件也是記錄數(shù)據(jù)庫(kù)的操作信息和運(yùn)行信息。

應(yīng)該沒有必要吧

在oracle中開啟審計(jì)功能

sqlplus "/ as sysdba"

show parameter audit

alter system set audit_sys_operations=TRUE scope=spfile;

alter system set audit_trail=DB scope=spfile;

shutdown immediate;

startup force;

Oracle 11g起audit是自動(dòng)開啟的。我很煩這個(gè)審計(jì)開啟,審計(jì)日志半個(gè)月10G,煩煩煩。我一把都關(guān)閉Oracle的審計(jì)功能,提高Oracle的空閑率。

如何開啟和關(guān)閉oracle數(shù)據(jù)庫(kù)中的審計(jì)功能

二、審計(jì)可以分為3類。

或者說,可以從3種角度去啟用審計(jì)。

1、語句審計(jì)(Statement Auditing)。

對(duì)預(yù)先指定的某些SQL語句進(jìn)行審計(jì)。這里從SQL語句的角度出發(fā),進(jìn)行指定。審計(jì)只關(guān)心執(zhí)行的語句。

例如,audit CREATE TABLE;命令,就表明對(duì)"create table"語句的執(zhí)行進(jìn)行記錄。 不管這語句是否是針對(duì)某個(gè)對(duì)象的操作

2、權(quán)限審計(jì)(Privilege Auditing)

對(duì)涉及某些權(quán)限的操作進(jìn)行審計(jì)。這里強(qiáng)調(diào)“涉及權(quán)限”

例如,audit CREATE TABLE;命令,又可以表明對(duì)涉及“CREATE TABLE”權(quán)限的操作進(jìn)行審計(jì)。

所以說,在這種命令的情況下,既產(chǎn)生一個(gè)語句審計(jì),又產(chǎn)生了一個(gè)權(quán)限審計(jì)。

有時(shí)候“語句審計(jì)”和“敞氦搬教植寄邦犀鮑簍權(quán)限審計(jì)”的相互重復(fù)的。這一點(diǎn)可以后面證明。

3、對(duì)象審計(jì)(Object Auditing)。 記錄作用在指定對(duì)象上的操作。

如何關(guān)閉Oracle11g數(shù)據(jù)庫(kù)的審計(jì)功能?

在oracle11g中,數(shù)據(jù)庫(kù)的審計(jì)功能是默認(rèn)開啟的(這和oracle10g的不一樣,10g默認(rèn)是關(guān)閉的),\x0d\x0aoracle11gR2的官方文檔上寫的是錯(cuò)的,當(dāng)上說default是none,而且是審計(jì)到DB級(jí)別的,這樣就會(huì)\x0d\x0a往aud$表里記錄統(tǒng)計(jì)信息。\x0d\x0a \x0d\x0a1.如果審計(jì)不是必須的,可以關(guān)掉審計(jì)功能;\x0d\x0a\x0d\x0aSQL show parameter audit_trail;\x0d\x0a\x0d\x0aNAME TYPE VALUE\x0d\x0a------------------------------------ ----------- ------------------------------\x0d\x0aaudit_trail string DB\x0d\x0a\x0d\x0aSQL alter system set audit_trail=none scope=spfile;\x0d\x0aSQL shut immediate;\x0d\x0aSQLstartup\x0d\x0a2.刪除已有的審計(jì)信息\x0d\x0a可以直接truncate表aud$,\x0d\x0atruncate table SYS.AUD$;\x0d\x0a\x0d\x0a3.或者將aud$表移到另外一個(gè)表空間下,以減少system表空間的壓力和被撐爆的風(fēng)險(xiǎn)。\x0d\x0a \x0d\x0a附:11g中有關(guān)audit_trail參數(shù)的設(shè)置說明:\x0d\x0aAUDIT_TRAIL\x0d\x0aProperty Description\x0d\x0aParameter type String\x0d\x0aSyntaxAUDIT_TRAIL = { none | os | db [, extended] | xml [, extended] }\x0d\x0aDefault valuenone\x0d\x0aModifiable No\x0d\x0aBasic No\x0d\x0aAUDIT_TRAIL enables or disables database auditing.\x0d\x0aValues:\x0d\x0anone\x0d\x0aDisables standard auditing. This value is the default if the AUDIT_TRAIL parameter was not set \x0d\x0ain the initialization parameter file or if you created the database using a method other than \x0d\x0aDatabase Configuration Assistant. If you created the database using Database Configuration \x0d\x0aAssistant, then the default is db.\x0d\x0aos\x0d\x0aDirects all audit records to an operating system file. Oracle recommends that you use the os \x0d\x0asetting, particularly if you are using an ultra-secure database configuration.\x0d\x0adb\x0d\x0aDirects audit records to the database audit trail (the SYS.AUD$ table), except for records \x0d\x0athat are always written to the operating system audit trail. Use this setting for a general \x0d\x0adatabase for manageability.\x0d\x0aIf the database was started in read-only mode with AUDIT_TRAIL set to db, then Oracle Database \x0d\x0ainternally sets AUDIT_TRAIL to os. Check the alert log for details.\x0d\x0adb, extended\x0d\x0aPerforms all actions of AUDIT_TRAIL=db, and also populates the SQL bind and SQL text CLOB-type \x0d\x0acolumns of the SYS.AUD$ table, when available. These two columns are populated only when this \x0d\x0aparameter is specified.\x0d\x0aIf the database was started in read-only mode with AUDIT_TRAIL set to db, extended, then Oracle \x0d\x0aDatabase internally sets AUDIT_TRAIL to os. Check the alert log for details.\x0d\x0axml\x0d\x0aWrites to the operating system audit record file in XML format. Records all elements of the \x0d\x0aAuditRecord node except Sql_Text and Sql_Bind to the operating system XML audit file.\x0d\x0axml, extended\x0d\x0aPerforms all actions of AUDIT_TRAIL=xml, and populates the SQL bind and SQL text CLOB-type columns\x0d\x0a of the SYS.AUD$ table, wherever possible. These columns are populated only when this parameter \x0d\x0ais specified.\x0d\x0aYou can use the SQL AUDIT statement to set auditing options regardless of the setting of this \x0d\x0aparameter.

如何開啟數(shù)據(jù)庫(kù)里某USER所有表的審計(jì)

您好,不知道你的數(shù)據(jù)庫(kù)是什么?

Oracle的審計(jì)是放到AUD$表里面,需要sys權(quán)限。

查詢審計(jì):

select * from sys.aud$;

select returncode, action#, userid, userhost, terminal,timestamp from aud$。

SYS.AUD$ 是唯一保留審計(jì)結(jié)果的表。其它的都是視圖。

STMT_AUDIT_OPTION_MAP 包含有關(guān)審計(jì)選項(xiàng)類型代碼的信息由SQL.BSQ 腳本在CREATEDATABASE 的時(shí)候創(chuàng)建

AUDIT_ACTIONS 包含對(duì)審計(jì)跟蹤動(dòng)作類型代碼的說明

ALL_DEF_AUDIT_OPTS 包含默認(rèn)對(duì)象審計(jì)選項(xiàng)。當(dāng)創(chuàng)建對(duì)象時(shí)將應(yīng)用這些選項(xiàng)

DBA_STMT_AUDIT_OPTS 描述由用戶設(shè)置的跨系統(tǒng)的當(dāng)前系統(tǒng)審計(jì)選項(xiàng)

DBA_PRIV_AUDIT_OPTS 描述由用戶正在審計(jì)的跨系統(tǒng)的當(dāng)前系統(tǒng)權(quán)限

DBA_OBJ_AUDIT_OPTS 描述在所有對(duì)象上的審計(jì)選項(xiàng)

USER_OBJ_AUDIT_OPTS USER 視圖描述當(dāng)前用戶擁有的所有對(duì)象上的審計(jì)選項(xiàng)

以下是審計(jì)記錄

DBA_AUDIT_TRAIL 列出所有審計(jì)跟蹤條目

USER_AUDIT_TRAIL USER視圖顯示與當(dāng)前用戶有關(guān)的審計(jì)跟蹤條目

DBA_AUDIT_OBJECT 包含系統(tǒng)中所有對(duì)象的審計(jì)跟蹤記錄

USER_AUDIT_ OBJECT USER 視圖列出一些審計(jì)跟蹤記錄而這些記錄涉及當(dāng)前用戶可以訪問的對(duì)象的語句

DBA_AUDIT_SESSION 列出涉及CONNECT 和DISCONNECT 的所有審計(jì)跟蹤記錄

USER_AUDIT_ SESSION USER視圖列出涉及當(dāng)前用戶的CONNECT 和DISCONNECT 的所有審計(jì)跟蹤記錄

DBA_AUDIT_STATEMENT 列出涉及數(shù)據(jù)庫(kù)全部的GRANT REVOKE AUDIT NOAUDIT 和ALTER SYSTEM 語句的審計(jì)跟蹤記錄

USER_ AUDIT_ STATEMENT 對(duì)于USER 視圖來說這些語句應(yīng)是用戶發(fā)布的

DBA_AUDIT_EXISTS 列出BY AUDIT NOT EXISTS 產(chǎn)生的審計(jì)跟蹤條目

下面的視圖用于細(xì)粒度審計(jì)

DBA_AUDIT_POLICIES 顯示系統(tǒng)上的所有審計(jì)策略

DBA_FGA_AUDIT_TRAIL 列出基于值的審計(jì)的審計(jì)跟蹤記錄。


當(dāng)前標(biāo)題:oracle怎么打開審計(jì),如何查看oracle數(shù)據(jù)庫(kù)審計(jì)是否開啟
網(wǎng)址分享:http://www.dlmjj.cn/article/hsjsep.html