最近做一个实验,要监控oracle的alert日志,脚本写好后发现执行报如下错误,但结果可以正常输出
[root@localhost~]#shtt.sh
/root/alert:line1:Dump:commandnotfound
/root/alert:line2:Fri:commandnotfound
/root/alert:line3:ORACLE:commandnotfound
/root/alert:line5:Wind..
Linux为例方便ssh登录,避免交互输入密码,可以简单配置ssh互信来完成
192.168.2.9本地主机192.168.2.109远程主机
在2.9上执行的命令:一路回车敲下去
[root@2.9~]#ssh-keygen-trsa
Generatingpublic/privatersakeypair.
Enterfileinwhichtosavethekey(/root/.ssh/id_rsa):
En..
求和print(Array(1,7,2,9).sum)结果19要使用sum方法,元素类型必须是数值类型:要么是整形,要么是浮点数或者BigInteger/BigDecimal。print(ArrayBuffer("Mary","had","a","little","lamb").max)结果little排序valb=ArrayBuffer(1,7,2,9)
valbSorted=b.sorted
print(bSorted)..
写了一个powershell脚本测试脚本,结果执行的时候报错
$a=Get-ContentC:\script.txt|select-string-pattern"ora"
if($a-eq$null)
{
write-host"error"
}
else
{
write-host"OK"
}
PSD:\>.\pshell.ps1
无法加载文件D:\pshell.ps1,因为在此系统中禁止执行脚本。有关详..
GlobalIP‘sprovideIPflexibilitybyallowinguserstoshiftworkloadsbetweenservers(evenindifferentdatacenters).GlobalIP‘salsoprovideIPpersistencebyallowingfortransitionsbetweenserversandCCI‘s;forexampleupgradingfromaCCItoadedicatedsystemwithouthavingyourIPtiedtoap..
#过滤oracle警告日志文件ORA-错误
$c=Get-ContentC:\script.txt|select-string-pattern"ora-"
#判断ORA-错误存在条件
#若$c返回值为null,则输出1返回值结束循环
if($c-eq$null)
{
write-host"STATE_OK"
$STATE_OK={return1;}
$b=&$STATE_OK
$b
}
#若$c返回值不为空,..
从vmware官方注册得来的vmwareserver注册码forwindows91000-Y0XA5-1A362-437LT91521-Y8T01-10347-412UT91581-YAWAM-1A762-4012991M8N-Y8X2H-183EN-49Q1T91J0N-Y8RA1-10LDL-4UMCH9C00J-YA9AJ-10P42-4LKH099H2H-Y2W2M-18Q4K-434UE93NA5-YAT2J-122GN-402A591M80-YA9A0-1A642-4228M..
RMAN>backupdatabaseformat=‘/oracle_rman/%d_%s.dbf‘plusarchivelog;
Startingbackupat31-7月-11
currentlogarchived
usingtargetdatabasecontrolfileinsteadofrecoverycatalog
allocatedchannel:ORA_DISK_1
channelORA_DISK_1:sid=137devtype=DISK
RMAN-00571:==========..
裸设备建库
1.首先查看要创建逻辑卷上的卷组datavg
datavgppsize为32M
[aix/]#lsvgdatavg
VOLUMEGROUP:datavgVGIDENTIFIER:00cd04ce00004c00000001215271137f
VGSTATE:activePPSIZE:32megabyte(s)
VGPERMISSION:read/writeTOTALPPs:2187(69984megabytes)
MAXLVs:256FREEPPs:..
IMP-00041:Warning:objectcreatedwithcompilationwarnings
昨天导入数据的时候,最后报错
IMP-00041:Warning:objectcreatedwithcompilationwarnings
"CREATETRIGGER"KFPT2".SYN_khgl_qyjbxx_Dafterdeleteonkhgl_qyjbxxfore"
"achrowdeclarenumint;p_idsyn_control_send_sql...