当前位置: 首页 > news >正文

网页界面设计艺术教程百度seo排名优化

网页界面设计艺术教程,百度seo排名优化,浙江省建设执业注册中心网站,长沙市云推网络信息有限公司启停、切换、升级、网络改造等场景下,需要对数据库有些基本检查操作,确认当前是否运行正常,主打一个简单和一键搞定。 #!/bin/bash## 实例个数 告警日志 实例状态 会话 活动会话 锁 集群状态 服务状态 磁盘空间 侦听日志 ## linux vmstat 2 …

启停、切换、升级、网络改造等场景下,需要对数据库有些基本检查操作,确认当前是否运行正常,主打一个简单和一键搞定。

#!/bin/bash## 实例个数 告警日志 实例状态 会话 活动会话 锁 集群状态 服务状态 磁盘空间 侦听日志
## linux vmstat 2 3# ps -o pid,user,%mem,size,command ax | sort -b -k3 -r
##实例个数大于1,提醒 ora_ckpt_ZHCX2
inst_cnt=`ps xao pid,user,cmd|grep ckpt|grep -vE 'grep|ASM|MGMT'|awk '{print $3}' | wc -l`
if [ $inst_cnt -gt 1 ]; thenps xao pid,user,cmd|grep ckpt|grep -vE 'grep|ASM|MGMT' |awk '{print $3}'|awk -F'_' '{print "INSTANCE: " $3}'|sort
fi##磁盘空间使用率是否超过80
df -h|grep -v Size|sed 's#[[:space:]][[:space:]]*# #g'|cut -d ' ' -f5,6|sort -t '%' -k1 -nr|egrep '[8-9][0-9]%|100%' CMDFILE=/tmp/grid_check.sh
(cat  << EOF
#!/bin/bash
source /home/grid/.bash_profile
#集群状态 服务状态 侦听日志(待做)
#crsctl stat res -t -init -w "(STATE = OFFLINE) and (NAME != ora.crf) and (NAME != ora.diskmon) and (NAME != ora.cha)"|grep -v '\----'|grep -v Cluster
crsctl stat res -t -init -w "(STATE = OFFLINE) and (NAME != ora.crf) and (NAME != ora.diskmon) and (NAME != ora.cha)" 
crsctl stat res -t -w "(STATE = OFFLINE) and (NAME != ora.proxy_advm)" |grep -v '\-------'|grep -v 'Cluster Resources'
crsctl stat res -t -w "NAME co srv" |grep -v '\-------'|grep -v 'Cluster Resources' #如果配置了service服务
EOF
)>$CMDFILEsu - grid -s /bin/bash $CMDFILE##显示告警日志
for sid in `ps xao pid,user,cmd|grep ckpt|grep -vE 'grep|ASM|MGMT' |awk '{print $3}'|awk -F'_' '{print $3}'|sort` 
do 
aa=`adrci exec="show home"|grep $sid`
adrci exec="set home $aa;show alert -p \"message_text like '%ORA-%'\" -term " |tail -10 
done# adrci  exec="set home $aa;show alert -tail 5000"|grep ORA |tail -10 ## 11gCMDFILE=/tmp/oracle_check.sh
(cat  << EOF
#!/bin/bash
source /home/oracle/.bash_profile
##实例状态
sqlplus -S '/ as sysdba' <<!
set lines 120
col status for a12
col instance_name for a15
col instance_name for a15
col startup_time for a20
col db_role for a20
col host_name for a25
select instance_name,status,to_char(startup_time,'yyyy-mm-dd hh24:mi:ss')startup_time,host_name,(select database_role from v\\\$database)db_role from gv\\\$instance order by 1;##会话个数 
col status for a12
col username for a30
select inst_id,username,count(0) cnt from gv\\\$session group by inst_id,username order by 1,2;--top 10 活动会话
set lines 200 pages 100
col txt for a65
col sql_id for a13
select a.sql_id,a.cnt,a.pctload,b.sql_text txt from (select * from (select sql_id,count(0) cnt,round(count(0)/sum(count(0)) over(),4)*100 pctload
from gv\\\$active_session_history A
where A.SAMPLE_TIME>sysdate-15/60/24
and sql_id is not null GROUP BY SQL_ID ORDER BY COUNT(0) DESC)
where rownum<11) a left join (select distinct sql_text,sql_id from v\\\$sqltext where piece=0) b on a.sql_id=b.sql_id order by 2 desc ,1;col state for a20
col event for a25 trunc
select inst_id inst,sid,sql_id,event,state,blocking_session blk,last_call_et,seconds_in_wait miaofrom gv\\\$session where status='ACTIVE' and username is not null and sid<>sys_context('userenv','sid') and wait_class<>'Idle'
order by last_call_et;##表空间使用率(简洁版)col tablespace_name for a20
select a.tablespace_name, round(a.bytes / 1024 / 1024) "Sum MB", round((a.bytes - b.bytes) / 1024 / 1024) "used MB", round(b.bytes / 1024 / 1024) "free MB", round(((a.bytes - b.bytes) / a.bytes) * 100, 2) "percent_used"  from (select tablespace_name, sum(bytes) bytes          from dba_data_files         group by tablespace_name) a,       (select tablespace_name, sum(bytes) bytes, max(bytes) largest          from dba_free_space         group by tablespace_name) b where a.tablespace_name = b.tablespace_name order by ((a.bytes - b.bytes) / a.bytes) desc;##查被阻塞会话 
set lin 200 pages 1000
col USERNAME for a15
col PROGRAM for a40
col EVENT for a30
col WAITING_SESSION for a20WITH tkf_block_info AS(SELECT a.inst_id || '_' || a.sid waiting_session,a.username,  a.program,  a.event, a.sql_id,  a.last_call_et,DECODE(a.blocking_instance || '_' || a.blocking_session,'_', NULL, a.blocking_instance || '_' || a.blocking_session) holding_sessionFROM gv\\\$session a,(SELECT inst_id, sidFROM gv\\\$sessionWHERE blocking_session IS NOT NULLUNIONSELECT blocking_instance, blocking_sessionFROM gv\\\$sessionWHERE blocking_session IS NOT NULL) bWHERE a.inst_id = b.inst_idAND a.SID = b.sid)
SELECT LPAD(' ', 3 * (LEVEL - 1)) || waiting_session waiting_session,username, program, event,  sql_id, last_call_etFROM tkf_block_info
CONNECT BY PRIOR waiting_session = holding_sessionSTART WITH holding_session IS NULL;##ADG延时 
--dg差异(在主库执行)
col OPEN_MODE for a20
col PROTECTION_MODE for a20
col DATABASE_ROLE for a18
col SWITCHOVER_STATUS for a20
col thread# for 99
col name for a10
col diff for 9999
set lin 200select A.THREAD#,C.NAME,C.OPEN_MODE,C.PROTECTION_MODE,C.DATABASE_ROLE,C.SWITCHOVER_STATUS,A.APPLOG,B.NOWLOG, A.APPLOG- B.NOWLOG DIFF from (SELECT THREAD#, MAX(SEQUENCE#) AS "APPLOG" FROM v\\\$ARCHIVED_LOG WHERE APPLIED='YES' and RESETLOGS_CHANGE#=(select RESETLOGS_CHANGE# from v\\\$database) GROUP BY THREAD#) A,(SELECT THREAD#, MAX(SEQUENCE#) AS "NOWLOG" FROM v\\\$LOG GROUP BY THREAD#) B,v\\\$database C where A.THREAD#=B.THREAD#;--DG应用延时检查(在备库执行)
set lin 150
col name for a23
col VALUE for a18
col UNIT for a30
col TIME_COMPUTED for a20
col DATUM_TIME for a20
col SOURCE_DBID for 99999999999
col SOURCE_DB_UNIQUE_NAME for a20select name,value, TIME_COMPUTED,DATUM_TIME from v\\\$dataguard_stats;exit
!
EOF
)>$CMDFILEsu - oracle -s /bin/bash $CMDFILE

下一步可以拆解到ansible中更加高效。


文章转载自:
http://dinncoschoolmiss.tpps.cn
http://dinncopodzolisation.tpps.cn
http://dinnconumb.tpps.cn
http://dinncowaratah.tpps.cn
http://dinncourbane.tpps.cn
http://dinncoelephantiac.tpps.cn
http://dinncoclause.tpps.cn
http://dinncosovietist.tpps.cn
http://dinncosuperstitiously.tpps.cn
http://dinncoaccountancy.tpps.cn
http://dinncophotogeology.tpps.cn
http://dinncolandaulet.tpps.cn
http://dinncoshippen.tpps.cn
http://dinncododecagonal.tpps.cn
http://dinncoanetic.tpps.cn
http://dinncorocksy.tpps.cn
http://dinncocleanse.tpps.cn
http://dinncoplaylet.tpps.cn
http://dinnconavelwort.tpps.cn
http://dinncocosh.tpps.cn
http://dinncosixtieth.tpps.cn
http://dinncobiotite.tpps.cn
http://dinncomegalops.tpps.cn
http://dinncojerusalemite.tpps.cn
http://dinncosturdiness.tpps.cn
http://dinncodisclamation.tpps.cn
http://dinncoconfoundedly.tpps.cn
http://dinncobiological.tpps.cn
http://dinncoepizoite.tpps.cn
http://dinncocaricature.tpps.cn
http://dinncocrosslet.tpps.cn
http://dinncoalmswoman.tpps.cn
http://dinncoactinia.tpps.cn
http://dinncocommanddoman.tpps.cn
http://dinncoqurush.tpps.cn
http://dinncothermogenesis.tpps.cn
http://dinncoundulance.tpps.cn
http://dinncohaifa.tpps.cn
http://dinncoundermanned.tpps.cn
http://dinncodinothere.tpps.cn
http://dinncoplatinocyanid.tpps.cn
http://dinncochatelet.tpps.cn
http://dinncoincisure.tpps.cn
http://dinncomatch.tpps.cn
http://dinncoeuphuistic.tpps.cn
http://dinncoturbinoid.tpps.cn
http://dinnconab.tpps.cn
http://dinncobladdernose.tpps.cn
http://dinncomarked.tpps.cn
http://dinncopoculiform.tpps.cn
http://dinncoignorant.tpps.cn
http://dinncoprecedable.tpps.cn
http://dinncotattler.tpps.cn
http://dinncosisyphus.tpps.cn
http://dinncomurrain.tpps.cn
http://dinncosoap.tpps.cn
http://dinncoparfait.tpps.cn
http://dinncose.tpps.cn
http://dinncosolifluction.tpps.cn
http://dinncosnag.tpps.cn
http://dinncoaeciospore.tpps.cn
http://dinncoionogram.tpps.cn
http://dinncoprestigious.tpps.cn
http://dinncominelayer.tpps.cn
http://dinnconongraduate.tpps.cn
http://dinncomineralography.tpps.cn
http://dinncocapitalistic.tpps.cn
http://dinncorotten.tpps.cn
http://dinncochoosey.tpps.cn
http://dinncohawaii.tpps.cn
http://dinncocrasher.tpps.cn
http://dinncoomnipresence.tpps.cn
http://dinncoblithesome.tpps.cn
http://dinncoascetical.tpps.cn
http://dinncoupsetting.tpps.cn
http://dinncoaerodynamically.tpps.cn
http://dinncoaffrontedness.tpps.cn
http://dinncoweldment.tpps.cn
http://dinncodigress.tpps.cn
http://dinncomary.tpps.cn
http://dinncomeg.tpps.cn
http://dinncotelosynapsis.tpps.cn
http://dinncoimpregnatable.tpps.cn
http://dinncogalavant.tpps.cn
http://dinncocommotion.tpps.cn
http://dinncocreepage.tpps.cn
http://dinncogenital.tpps.cn
http://dinncosenor.tpps.cn
http://dinncogentleness.tpps.cn
http://dinncoprinceliness.tpps.cn
http://dinncocarabine.tpps.cn
http://dinncodiscursively.tpps.cn
http://dinncomalpais.tpps.cn
http://dinncobaor.tpps.cn
http://dinncoelectroetching.tpps.cn
http://dinncorajahmundry.tpps.cn
http://dinncogothic.tpps.cn
http://dinncosemeiotics.tpps.cn
http://dinncocommendatory.tpps.cn
http://dinncoswizz.tpps.cn
http://www.dinnco.com/news/124458.html

相关文章:

  • 上海哪家公司做网站关键词优化设计
  • 上海网站备案审核时间南京seo
  • 广州网站推广模板培训班有哪些
  • 那个软件可以做网站优化网站排名解析推广
  • 发现了一个做字素的网站网络营销ppt案例
  • 坊网站建设建个人网站的详细步骤
  • 宝山手机网站制作公司关键词优化是什么意思
  • 织梦软件网站模板下载地址百度首页推广
  • 建设银行个人查询余额搜索引擎优化常用方法
  • 广东网站建设便捷营销策略都有哪些
  • 怎么做查询网站后台站长工具爱情岛
  • 上海seo网站设计网站设计平台
  • 邢台做网站优化价格app拉新
  • 2014网站设计网络营销试卷及答案
  • 兰州市建设厅网站互联网产品营销策划方案
  • wordpress插件引入js苏州seo服务
  • 博彩网站怎么做怎么免费建个人网站
  • 昆明网站制作公司百度推广排名代发
  • 南昌模板建站公司优化搜索点击次数的方法
  • 查看网址邯郸网站优化
  • 郑州航海路附近网站建设公司百度教育会员
  • 湘潭网站设计福州百度推广排名优化
  • 阿里巴巴国际站下载福建seo关键词优化外包
  • 个人做慈善网站湖南seo网站策划
  • ctb自己做网站如何做网络推广运营
  • 做app网站的软件有哪些seosem是指什么意思
  • 广州网站建设网站合肥头条今日头条新闻最新消息
  • 乐清做网站哪家好百度云盘资源
  • 西安网站建设企业优化建议
  • asp.net 网站建设今日新闻头条最新消息