数据库中审计开关是哪个,如何开启sql server2005的审计功能
来源:整理 编辑:黑码技术 2024-01-31 17:52:03
本文目录一览
1,如何开启sql server2005的审计功能
审计是sql server 2008的新特性,sql server 2005中没有。
2,如何开启和关闭oracle数据库中的审计功能
在oracle11g中,数据库的审计功能是默认开启的(这和oracle10g的不一样,10g默认是关闭的),oracle11gr2的官方文档上写的是错的,当上说default是none,而且是审计到db级别的,这样就会往aud$表里记录统计信息。1.如果审计不是必须的,可以关掉审计功能;sql>showparameteraudit_trail;nametypevalue-----------------------------------------------------------------------------audit_trailstringdbsql>altersystemsetaudit_trail=nonescope=spfile;sql>shutimmediate;sql>startup2.删除已有的审计信息可以直接truncate表aud$,truncatetablesys.aud$;3.或者将aud$表移到另外一个表空间下,以减少system表空间的压力和被撑爆的风险。附:11g中有关audit_trail参数的设置说明:audit_trailpropertydescriptionparametertypestringsyntaxaudit_trail=none|os|db[,extended]|xml[,extended]}defaultvaluenonemodifiablenobasicnoaudit_trailenablesordisablesdatabaseauditing.values:nonedisablesstandardauditing.thisvalueisthedefaultiftheaudit_trailparameterwasnotsetintheinitializationparameterfileorifyoucreatedthedatabaseusingamethodotherthandatabaseconfigurationassistant.ifyoucreatedthedatabaseusingdatabaseconfigurationassistant,thenthedefaultisdb.osdirectsallauditrecordstoanoperatingsystemfile.oraclerecommendsthatyouusetheossetting,particularlyifyouareusinganultra-securedatabaseconfiguration.dbdirectsauditrecordstothedatabaseaudittrail(thesys.aud$table),exceptforrecordsthatarealwayswrittentotheoperatingsystemaudittrail.usethissettingforageneraldatabaseformanageability.ifthedatabasewasstartedinread-onlymodewithaudit_trailsettodb,thenoracledatabaseinternallysetsaudit_trailtoos.checkthealertlogfordetails.db,extendedperformsallactionsofaudit_trail=db,andalsopopulatesthesqlbindandsqltextclob-typecolumnsofthesys.aud$table,whenavailable.thesetwocolumnsarepopulatedonlywhenthisparameterisspecified.ifthedatabasewasstartedinread-onlymodewithaudit_trailsettodb,extended,thenoracledatabaseinternallysetsaudit_trailtoos.checkthealertlogfordetails.xmlwritestotheoperatingsystemauditrecordfileinxmlformat.recordsallelementsoftheauditrecordnodeexceptsql_textandsql_bindtotheoperatingsystemxmlauditfile.xml,extendedperformsallactionsofaudit_trail=xml,andpopulatesthesqlbindandsqltextclob-typecolumnsofthesys.aud$table,whereverpossible.thesecolumnsarepopulatedonlywhenthisparameterisspecified.youcanusethesqlauditstatementtosetauditingoptionsregardlessofthesettingofthisparameter.

3,怎么查看db2数据库是否开启审计功能
启动服务器和启动数据库是两个事情启动数据库就是db2start命令需要描述的清楚一点
4,sql server 中如何audit
审计设置以及审计内容一般都放在数据字典中.在默认情况下,系统为了节省资源,减少I/O操作,数据库的审计功能是关闭的.为了启动审计功能,必须把审计开关打开(即把系统参数audit_trail设为true),才可以在系统表(SYS_AUDITTRAIL)中查看审计信息.
文章TAG:
数据 数据库 审计 开关 数据库中审计开关是哪个 server2005的审计功能