Monitoring WebSite State
Const EVENT_SUCCESS=0Const EVENT_ERROR=1Const EVENT_WARNING=2Const EVENT_INFORMATION=4Const EVENT_AUDIT_SUCCESS=8Const EVENT_AUDIT_FAILURE=16Const ForReading = 1 Set objDictionary = CreateObject("Scripting.Dictionary") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile _ ("web.txt", ForReading) i = 0 Do Until objTextFile.AtEndOfStream strNextLine = objTextFile.Readline objDictionary.Add i, strNextLine i = i + 1 loop For
Monitoring Core Process...
strComputer = "." Const EVENT_SUCCESS=0Const EVENT_ERROR=1Const EVENT_WARNING=2Const EVENT_INFORMATION=4Const EVENT_AUDIT_SUCCESS=8Const EVENT_AUDIT_FAILURE=16'On Error Resume NextSet objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2") Set objShell = CreateObject("Wscript.Shell") Const ForReading = 1 Set objDictionary = CreateObject("Scripting.Dictionary") Set objFSO = CreateObject("Scripting.FileSystemObject") Se
sqlnet.ora tnsname.ora listener.ora 的作用
sqlnet.ora 用在oracle client端,用于配置连接服务端oracle的相关参数.tnsnames.ora 用在oracle client端,用户配置连接数据库的别名参数listener.ora 用在oracle server端,配置oracle服务端程序的监听参数一、客户端设置1.sqlnet.ora通过这个文件来决定怎样找一个连接中出现的连接字符串示例文件:# sqlnet.ora Network Configuration File: 安装盘符:oracleproduct10.2.0client_1networkadminsqlnet.ora# Generated by Oracle configuration tools.# This file is actually generated by netca. But if customers choose to # install
Diffrence Between delete and truncate
SQL> select * from T2; I2---------- 1 2SQL> we discuss the diffrence betwween delete and truncate;SQL> delete from t2;2 rows deleted.SQL> select * from T2;no rows selectedSQL> rollback 2 ;Rollback complete.SQL> select * from T2; I2---------- 1 2SQL> we delete the data from table,we can rollback,and the data deleted will back;SQL> SQL> select * from T2; I2---------- 1 2SQL> truncate table t2;Table
Enable ISM Server User operation Auditing
问题提出: ISMServer由于管理原因授权其他用户有activate及处理profile、element的权限。有天发现ISMServer上面的监控的Profile莫名其妙的被人删了,实在发现这是个安全隐患。解决: 到$NCHOME/ism/profiles/deleted里面把查询一下,把被删除的profile拷贝到active下面cd $NCHOME/ism/profile/deletedcp xxxxxxx.xml ../active修改passfile的登录密码,进行相应的权限限制开启日志审计vi $NCHOME/ism/ismserver/ismserver.props编辑auditlog=trueauditlogfile=ismserver_useraudit.logauditlogfilesize=10000重启ismserver./ismserver_s
开通ITPub的博客啦!
在这里,只谈技术,争取09年通过OCP的认证搞的东西其实挺杂,DB、OS、Servers etc[@more@]