OMCR高级培训教材chp5OMC管理.docx
- 文档编号:27914945
- 上传时间:2023-07-06
- 格式:DOCX
- 页数:14
- 大小:106.38KB
OMCR高级培训教材chp5OMC管理.docx
《OMCR高级培训教材chp5OMC管理.docx》由会员分享,可在线阅读,更多相关《OMCR高级培训教材chp5OMC管理.docx(14页珍藏版)》请在冰豆网上搜索。
OMCR高级培训教材chp5OMC管理
第五章OMCR数据库管理
1、informix目录结构
1.1
systemprocessor上的目录结构
1.2
MMIprocessor上的目录结构
2、数据库的应用软件
2.1omc_db_maint
omc_db_maint脚本位于OMC_SYS上/$OMC_TOP/current/sbin目录下,是用来对OMCPM数据库中的统计数据进行卸载和删除,并报告数据库的磁盘空间的使用情况。
Omc_db_maint的功能如下:
1.如果OMC软件正在运行中,omc_db_maint会将PMparser从PM数据库disconnect.
2.Omc_db_maint自动调用db_pm_maint将前一天的统计数据和当前PM的配置数据从PM数据库卸载备份。
3.压缩从PM数据库卸载下来的数据。
4.自动执行db_pm_maint删除PM上超过delete_flags(一般为5天)以上的统计数据。
5.如果OMC软件正在运行中,omc_db_maint会将EM,LM自动从PM数据库上disconnect。
6.执行omc_db_ckspace,报告数据库磁盘空间的使用情况。
7.生成一个日志文件,报告omc_db_maint执行的情况。
8.重新连接PMparser和EM,LM应用程序。
2.2onmonitor
onmonitor是一个用来对数据库管理的应用软件。
以下是以informix用户身份登入的onmonitor的用户界面:
INFORMIX-OnLine:
StatusParametersDbspacesModeForce-Ckpt...
StatusmenutoviewINFORMIX-OnLine.
-----------------------------On-Line-------PressCTRL-WforHelp.--------
onmonitor应用程序可以友好的菜单的形式来完成informix数据库大部分的管理工作。
2.3db_disconnect
db_disconnect用来使OMC应用软件和PM数据库建立连接或撤消连接。
相应的OMC应用软件主要有parser,EM_LM,pmproxy。
Parser:
如果disconnect,parser进程将不对从NEupload上来的rawstats进行数据分析。
EM_LM:
如果disconnect,Eventmanagementlistmanager将不允许显示和修改Eventsubscription的属性。
EM进程继续运行。
Pmproxy:
这个进程完成MIBDB和PMDB的数据通信。
db_disconnect的主要应用如下:
1.与parser进程的连接建立和撤消:
/usr/gsm/current/sbin/db_disconnetcdisconnectparser
/usr/gsm/current/sbin/db_disconnetcconnectparser
2.与EM_LM进程的连接建立和撤消:
/usr/gsm/current/sbin/db_disconnectdisconnectem
/usr/gsm/current/sbin/db_disconnectconnectem
3.与pmproxy进程的连接建立和撤消:
/usr/gsm/current/sbin/db_disconnectdisconnectpmproxy
/usr/gsm/current/sbin/db_disconnectconnectpmproxy
2.4db_pm_maint
db_pm_maint主要用来对PM上的统计数据的卸载和删除以保证新上来的统计数据有足够的磁盘空间。
db_pm_maint的功能如下:
●将过期的老的PM统计数据卸载到一个ASCII文件。
●将当前的PM配置文件卸载到一个ASCII文件。
●将过期的老的PM统计数据从数据库中删除。
db_pm_maint的常用命令:
db_pm_maint[-r
-r
保留regular统计数据db_pm_maint的的天数。
卸载的regular统计数据的范围。
[-c]:
卸载PM配置文件
[-d]:
删除PM统计数据
[-n]:
不对数据库做unload,只在有[-d]时有效。
1.卸载的regular统计数据中超过7天的数据
db_pm_maint–r7
2.卸载的regular统计数据中超过7天的数据及PM配置文件
db_pm_maint–r7–c
3.同2,并将统计数据中超过7天的数据删除
db_pm_maint–r7–c–d
4.同3,不卸载的regular统计数据
db_pm_maint–r7–c–d–n
5.只卸载昨天的统计数据
db_pm_maint–r11
6.卸载昨天和前天的统计数据
db_pm_maint–r12
2.5omc_db_ckspace
omc_db_ckspace通常作为omc_db_maint中的一部分自动执行,显示rootdbspace的磁盘空间和数据库table的使用情况,不单独使用。
omc_db_ckspace执行的结果将由omc_db_maint写到一个日志文件omc_db_maint.yy.mm.dd,输出结果如下:
2.6omc_db_view_log
omc_db_view_log脚本允许用户像在UNIX中的tail–f一样对INFORMIX-ONLINE中的消息日志进行查看,它还可以允许设置查看的时间间隔。
Omc_db_view_log的命令如下:
/usr/gsm/current/sbin/omc_db_view_log[sleep-time]
3、OMC数据库的关启
OMCR采用INFORMIXOnline7.13作为OMCDB和MIBDB的数据库引擎,因此OMC数据库的关启与Online7.1的关启是相同的。
Online7系统的运行状态有online(连机),quiescent(单用户),offline(离线)。
三种状态的切换如下:
offline
online
quiescent
onmode-m
4、onconfig应用
OMC上数据库的环境设置参数文件为onconfig,分别位于OMCDB和MIBDB的/$INFORMIXDIR/etc下面。
Onconfig文件中的环境设置参数可以通过onmonitor菜单中的PARAMETERS/INITIALISE来修改。
Onconfig文件中的各项参数定义及通常配置如下所示:
#**************************************************************************
#
#INFORMIXSOFTWARE,INC.
#
#Title:
onconfig.std
#Description:
INFORMIX-OnLineConfigurationParameters
#
#**************************************************************************
#RootDbspaceConfiguration
ROOTNAMErootdbs#Rootdbspacename
ROOTPATH/dev/mib_db#Pathfordevicecontainingrootdbspace
ROOTOFFSET4#Offsetofrootdbspaceintodevice(Kbytes)
ROOTSIZE400000#Sizeofrootdbspace(Kbytes)
#DiskMirroringConfigurationParameters
MIRROR1#Mirroringflag(Yes=1,No=0)
MIRRORPATH#Pathfordevicecontainingmirroredroot
MIRROROFFSET0#Offsetintomirroreddevice(Kbytes)
#PhysicalLogConfiguration
PHYSDBSrootdbs#Location(dbspace)ofphysicallog
PHYSFILE12600#Physicallogfilesize(Kbytes)
#LogicalLogConfiguration
LOGFILES8#Numberoflogicallogfiles
LOGSIZE4000#Logicallogsize(Kbytes)
#Diagnostics
MSGPATH/usr/informix/online.log#Systemmessagelogfilepath
CONSOLE/usr/informix/online.log#Systemconsolemessagepath
ALARMPROGRAM#Alarmprogrampath
#SystemArchiveTapeDevice
TAPEDEV/dev/rmt/0#Tapedevicepath
TAPEBLK96#Tapeblocksize(Kbytes)
TAPESIZE2000000#Maximumamountofdatatoputontape(Kbytes)
#LogArchiveTapeDevice
LTAPEDEV/dev/null#Logtapedevicepath
LTAPEBLK16#Logtapeblocksize(Kbytes)
LTAPESIZE10240#Maxamountofdatatoputonlogtape(Kbytes)
#Optical
STAGEBLOB#INFORMIX-OnLine/Opticalstagingarea
#SystemConfiguration
SERVERNUM0#UniqueidcorrespondingtoaOnLineinstance
DBSERVERNAMEomc_mib#Nameofdefaultdatabaseserver
DBSERVERALIASESomc_mib1#Listofalternatedbservernames
NETTYPEipcshm,1,20,CPU#Overridesqlhostsnettypeparameters
NETTYPEtlitcp,1,10,NET#Overridesqlhostsnettypeparameters
DEADLOCK_TIMEOUT60#Maxtimetowaitoflockindistributedenv.
RESIDENT0#Forcedresidencyflag(Yes=1,No=0)
MULTIPROCESSOR0#0forsingle-processor,1formulti-processor
NUMCPUVPS1#Numberofuser(cpu)vps
SINGLE_CPU_VP1#Ifnon-zero,limitnumberofcpuvpstoone
NOAGE1#Processaging
AFF_SPROC0#Affinitystartprocessor
AFF_NPROCS0#Affinitynumberofprocessors
#SharedMemoryParameters
LOCKS10000#Maximumnumberoflocks
BUFFERS2000#Maximumnumberofsharedbuffers
NUMAIOVPS1#NumberofIOvps
PHYSBUFF128#Physicallogbuffersize(Kbytes)
LOGBUFF512#Logicallogbuffersize(Kbytes)
LOGSMAX16#Maximumnumberoflogicallogfiles
CLEANERS2#Numberofbuffercleanerprocesses
SHMBASE0xa000000#Sharedmemorybaseaddress
SHMVIRTSIZE32000#initialvirtualsharedmemorysegmentsize
SHMADD8192#Sizeofnewsharedmemorysegments(Kbytes)
SHMTOTAL0#Totalsharedmemory(Kbytes).0=>unlimited
CKPTINTVL300#Checkpointinterval(insec)
LRUS8#NumberofLRUqueues
LRU_MAX_DIRTY10#LRUpercentdirtybegincleaninglimit
LRU_MIN_DIRTY5#LRUpercentdirtyendcleaninglimit
LTXHWM50#Longtransactionhighwatermarkpercentage
LTXEHWM60#Longtransactionhighwatermark(exclusive)
TXTIMEOUT0x12c#Transactiontimeout(insec)
STACKSIZE32#Stacksize(Kbytes)
#SystemPageSize
#BUFFSIZE-OnLinenolongersupportsthisconfigurationparameter.
#TodeterminethepagesizeusedbyOnLineonyourplatform
#seethelastlineofoutputfromthecommand,'onstat-b'.
#RecoveryVariables
#OFF_RECVRY_THREADS:
#Numberofparallelworkerthreadsduringfastrecoveryoranofflinerestore.
#ON_RECVRY_THREADS:
#Numberofparallelworkerthreadsduringanonlinerestore.
OFF_RECVRY_THREADS10#Defaultnumberofofflineworkerthreads
ON_RECVRY_THREADS1#Defaultnumberofonlineworkerthreads
#DataReplicationVariables
#DRAUTO:
0manual,1retaintype,2reversetype
DRAUTO0#DRautomaticswitchover
DRINTERVAL30#DRmaxtimebetweenDRbufferflushes(insec)
DRTIMEOUT30#DRnetworktimeout(insec)
DRLOSTFOUND/dev/null#DRlost+foundfilepath
#ReadAheadVariables
RA_PAGES50#Numberofpagestoattempttoreadahead
RA_THRESHOLD20#Numberofpagesleftbeforenextgroup
#DBSPACETEMP:
#OnLineequivalentofDBTEMPforSE.Thisisthelistofdbspaces
#thattheOnLineSQLEnginewillusetocreatetemptablesetc.
#Ifspecifieditmustbeacolonseparatedlistofdbspacesthatexist
#whentheOnLinesystemisbroughtonline.Ifnotspecified,orif
#alldbspacesspecifiedareinvalid,variousadhocquerieswillcreate
#temporaryfilesin/tmpinstead.
DBSPACETEMPtempdbs#Defaulttempdbspaces
#DUMP*:
#Thefollowingparameterscontrolthetypeofdiagnosticsinformationwhich
#ispreservedwhenanunanticipatederrorcondition(assertionfailure)occurs
#duringOnLineoperations.
#ForDUMPSHMEM,DUMPGCOREandDUMPCORE1meansYes,0meansNo.
DUMPDIR/tmp#Preservediagnosticsinthisdirectory
DUMPSHMEM0#Dumpacopyofsharedmemory
DUMPGCORE0#Dumpacoreimageusing'gcore'
DUMPCORE0#Dumpacoreimage(Warning:
thisabortsOnLine)
DUMPCNT1#Numberofsharedmemoryorgcoredumpsfor
#asingleuser'ssession
#ADT*
#Thefollowingparameterscontrolthetypeandlevelofsecureauditing
#presentintheOnLinesystem.Bydefault,ADTMODEis0andauditing
#isdisabled
FILLFACTOR90#Fillfactorforbuildingindexes
#methodforOnLinetousewhendeterminingcurrenttime
USEOSTIME1#0:
useinternaltime(fast),1:
gettimefromOS(slow)
#ParallelDatabaseQueries(pdq)
PDQPRIORITY0#Degreeofparallelism:
0...100,
#OFF=>0,LOW=>1,HIGH=>100
MAX_PDQPRIORITY100#Maximumallowedpdqpriority
DS_MAX_QUERIES2#Maximumnumberofdecisionsupportqueries
DS_TOTAL_MEMORY10000#Decisionsupportmemory(Kbytes)
DS_MAX_SCANS10#Maximumnumberofdecisionsupportscans
DATASKIPoff#Listofdbspacestoskip
#OPTCOMPIND
#0=>Nestedloopjoinswillbepreferred(where
#possible)oversortmergejoinsandhashjoins.
#1=>Ifthetransactionisolationmodeisnot
#"repeatableread",optimizerbehavesasin
(2)
#below.Otherwiseitbehavesasin(0)above.
#2=>Usecostsregardlessofthetransactionisolation
#mode.Nestedloopjoinsarenotnecessarily
#preferred.Optimizerbasesitsdecisionpurely
#oncosts.
OPTCOMPIND0#Tohinttheoptimizer
ONDBSPACEDOWN0#Dbspacedownoption:
0=CONTINUE,1=ABORT,2=WAIT
LBU_PRESERVE0#Preservelastlogforlogbackup
OPCACHEMAX0#Maximumopticalcachesize(Kbytes)
5、数据库的备份
数据库的备份是指将数据库的系统信息及用户数据存储到后备存储区。
Ontape–s–L
Archive共可以分0级、1级、2级三个等级。
0级:
全备份,对所有数据作一个copy。
1级:
增量备份,将系统自最近一次0级备份以来所有的变化备份出来。
2级:
增量备份,将系统自最近一次0级或1级备份以来所有的变化备份出来。
经验:
0级,一月一次。
1级,一周一次。
2级,一天一次。
备份的过程:
1.以informix用户的身份登录到omcdb或mibdb所在的主机上。
2.cd/usr/informix/bin
3.setenvTERMvt100
4.
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OMCR 高级 培训教材 chp5OMC 管理