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

攻略类型网站如何做产品营销一个域名解析多个网站

攻略类型网站如何做产品营销,一个域名解析多个网站,dw框架网页的制作,做的好看的pc端网站1 前言 在生产环境中#xff0c;一般设置表空间告警阈值是90%#xff0c;在接到监控报警后#xff0c;并不是需要立刻对表空间进行扩容。 决定是否扩容主要看表空间最近的增量是多少#xff0c;假如剩余10%的空间还能支持1个月的增量#xff0c;那就不需要急着扩容。如果…1 前言 在生产环境中一般设置表空间告警阈值是90%在接到监控报警后并不是需要立刻对表空间进行扩容。 决定是否扩容主要看表空间最近的增量是多少假如剩余10%的空间还能支持1个月的增量那就不需要急着扩容。如果剩余的空间只能坚持几天那么最好是立即扩容以防止数据突增。 接到告警后一般工作过程如下 查看表空间利用率和剩余容量查看表空间增量扩容或者释放空间找出数据增量异常的对象。 根据下面的常用sql脚本排查。 2 处理流程 2.1 查看表空间利用率 col tablespace_name for a20 col pct_used for a10 select a.tablespace_name,a.total_mb,a.total_mb - b.free_mb used_mb,b.free_mb,case when a.total_mb 0 then round((a.total_mb - b.free_mb) / a.total_mb * 100,2)else null end || % pct_usedfrom (select ts.tablespace_name,round(sum(bytes) / 1024 / 1024,2) total_mbfrom dba_tablespaces ts,dba_data_files df where ts.tablespace_name df.tablespace_namegroup by ts.tablespace_name) a,(select fs.tablespace_name,round(sum(bytes) / 1024 /1024,2) free_mbfrom dba_free_space fsgroup by fs.tablespace_name) bwhere a.tablespace_name b.tablespace_nameand a.tablespace_name tsb_nameorder by 1;2.2 查看表空间增量 日增量 set line 200 col ts_name for a30 col pct_used for a10 SELECT a.snap_id,c.tablespace_name ts_name,to_char(to_date(a.rtime, mm/dd/yyyy hh24:mi:ss), yyyy-mm-dd hh24:mi) rtime,round(a.tablespace_size * c.block_size / 1024 / 1024, 2) ts_size_mb,round(a.tablespace_usedsize * c.block_size / 1024 / 1024, 2) ts_used_mb,round((a.tablespace_size - a.tablespace_usedsize) * c.block_size / 1024 / 1024,2) ts_free_mb,round(a.tablespace_usedsize * c.block_size / 1024 / 1024, 2) - lag(round(a.tablespace_usedsize * c.block_size / 1024 / 1024, 2),1) over(order by a.tablespace_id,to_date(a.rtime, mm/dd/yyyy hh24:mi:ss)) inc_mb,round(a.tablespace_usedsize / a.tablespace_size * 100, 2) || % pct_usedFROM dba_hist_tbspc_space_usage a, (SELECT tablespace_id,substr(rtime, 1, 10) rtime,max(snap_id) snap_idFROM dba_hist_tbspc_space_usage nbgroup by tablespace_id, substr(rtime, 1, 10)) b,dba_tablespaces c,v$tablespace dwhere a.snap_id b.snap_idand a.tablespace_id b.tablespace_idand a.tablespace_idd.TS#and d.NAMEc.tablespace_name and d.NAME tbs_nameand to_date(a.rtime, mm/dd/yyyy hh24:mi:ss) sysdate-30order by a.tablespace_id,to_date(a.rtime, mm/dd/yyyy hh24:mi:ss) desc;累计增量根据awr保留时间而定默认为8天 set line 200 col ts_name for a30 col pct_used for a10 with ts as(SELECT a.snap_id,c.tablespace_name ts_name,to_char(to_date(a.rtime, mm/dd/yyyy hh24:mi:ss), yyyy-mm-dd hh24:mi) rtime,round(a.tablespace_size * c.block_size / 1024 / 1024, 2) ts_mb,round(a.tablespace_usedsize * c.block_size / 1024 / 1024, 2) ts_used_mb,round((a.tablespace_size - a.tablespace_usedsize) * c.block_size / 1024 / 1024,2) ts_free_mb,round(a.tablespace_usedsize / a.tablespace_size * 100, 2) || % pct_usedFROM dba_hist_tbspc_space_usage a, (SELECT tablespace_id,substr(rtime, 1, 10) rtime,max(snap_id) snap_idFROM dba_hist_tbspc_space_usage nbgroup by tablespace_id, substr(rtime, 1, 10)) b,dba_tablespaces c,v$tablespace dwhere a.snap_id b.snap_idand a.tablespace_id b.tablespace_idand a.tablespace_idd.TS#and d.NAMEc.tablespace_nameand to_date(a.rtime, mm/dd/yyyy hh24:mi:ss) sysdate-30) select f.ts_name,f.ts_mb,f.ts_used_mb begin_used_mb,f.rtime begin_time,t.ts_used_mb end_used_mb,t.rtime end_time,t.ts_used_mb - f.ts_used_mb inc_mb,round(to_date(t.rtime,yyyy-mm-dd hh24:mi:ss) - to_date(f.rtime,yyyy-mm-dd hh24:mi:ss),2) inc_daysfrom (select a.*,row_number()over(partition by a.ts_name order by a.snap_id desc) rnfrom ts a) t, (select b.*,row_number()over(partition by b.ts_name order by b.snap_id) rnfrom ts b) fwhere t.rn 1 and f.rn 1 and t.ts_name f.ts_nameand t.ts_name ts_name;根据上述查出来的表空间日增量和累计增量结果可以大概估算出剩余的空间可以坚持多久根据实际情况决定是否扩容。 2.3 查看数据文件路径 此步骤主要是查看表空间数据文件路径为表空间扩容添加数据文件做好环境调研。 set lines 200 set pagesize 300 col file_name for a60 col size_mb for 999999.99 select * from (select file_name,file_id,tablespace_name,round(bytes / 1024 / 1024,2) size_mb,status,autoextensiblefrom dba_data_fileswhere tablespace_name ts_nameorder by 2 desc)where rownum 10;3 表空间扩容 表空间扩容可以选择添加数据文件或者拓展数据文件。 3.1 添加数据文件 添加数据文件的时候一定要注意 在RAC集群环境中切记不要将数据文件创建到本地这样就会造成集群节点间的不一致可能会导致其他节点起不来。也不要将数据文件创建到其他磁盘组中这样不够规范。 以表空间ts_test为例 --ASM: SQL alter tablespace ts_test add datafile DATA size 100M;--File System: SQL alter tablespace ts_test datafile /u01/app/oracle/oradata/datafile/ts_test02.dbf size 100M;3.2 拓展数据文件 假设原来ts_test.274.1171146701大小为100M我们可以将其拓展到200M以达到扩容的目的 alter database datafileDATA/orcl/datafile/ts_test.274.1171146701 resize 200M;3.3 扩容后检查 扩容后需要检查表空间使用率是否下降 col tablespace_name for a20 col pct_used for a10 select a.tablespace_name,a.total_mb,a.total_mb - b.free_mb used_mb,b.free_mb,case when a.total_mb 0 then round((a.total_mb - b.free_mb) / a.total_mb * 100,2)else null end || % pct_usedfrom (select ts.tablespace_name,round(sum(bytes) / 1024 / 1024,2) total_mbfrom dba_tablespaces ts,dba_data_files df where ts.tablespace_name df.tablespace_namegroup by ts.tablespace_name) a,(select fs.tablespace_name,round(sum(bytes) / 1024 /1024,2) free_mbfrom dba_free_space fsgroup by fs.tablespace_name) bwhere a.tablespace_name b.tablespace_nameand a.tablespace_name tsb_nameorder by 1;4 后续排查 如果表空间时短时间内激增则在扩容后还需要排查找出是哪个对象数据突增影响的。 4.1 查看snap_id set line 200 select distinct snap_id, to_char(begin_interval_time,‘yyyy-mm-dd hh24:mi:ss’) begin_interval_time, to_char(end_interval_time,‘yyyy-mm-dd hh24:mi:ss’) end_interval_time from dba_hist_snapshot where to_char(begin_interval_time,‘yyyy-mm-dd hh24:mi:ss’) to_char(sysdate - day_ago,‘yyyy-mm-dd hh24:mi:ss’) order by snap_id desc; 4.2 查看某个表空间下增量最多的对象 set lines 200 col object_name for a30 select * from (select obj.owner,obj.object_name,sum(hs.db_block_changes_delta) db_block_changes_delta, round(sum(hs.space_used_delta) / 1024 / 1024,2) space_delta_mb from dba_hist_seg_stat hs, v$tablespace ts, dba_objects obj, dba_hist_snapshot sn where hs.ts# ts.ts# and hs.snap_id sn.snap_id and hs.obj# obj.object_id and ts.name ‘tbs_name’ and sn.begin_interval_time sysdate - day_ago group by obj.owner,obj.object_name order by space_delta_mb desc) where rownum 10;
http://www.hkea.cn/news/14267052/

相关文章:

  • 巩义网站建设方案书建立个人博客wordpress
  • 厦门做企业网站找谁一步一步教你做网站
  • 百度网站建设的目的化妆品网站开发的背景
  • 南京网站设公司百度是门户网站吗
  • 网站导航如何用响应式做wordpress财务会计系统
  • 外国做网站的平台废旧回收做哪个网站好
  • 湖北省建设安全管理协会网站网站做抢红包活动广告语
  • 建设银行甘肃兰州分行网站电子商务网站 技术方案
  • 网站建设入门基础个人网站名称大全
  • 长春网站建设4435怎样做网站卖手机号
  • 建设外贸网站公司简介烟台环保网站建设
  • 上海崇明林业建设有限公司网站网站开发的风险与风险管理
  • 做系统的图标下载网站环保工程网站建设价格
  • 网站开发主要使用的技术门户网站建设情况调研报告
  • 湖州 网站建设校园网站建设计划书
  • 中文网站站内优化怎么做网站和网络建设自查报告
  • 商务网站建设报告书网站空间去哪里买的
  • 建设银行网站用户长沙seo公司网站优化
  • 在重庆 那里可以做诚信网站认证网站建设案例怎么样
  • 有限责任公司章程济南网站推广优化外包
  • 顺德建网站企业网站推广效果从哪些方面进行分析
  • 上海市住房和城乡建设厅网站查询广告东莞网站建设技术支持
  • 石家庄建设企业网站工程建设企业网站
  • 工艺品网站建设开发做的网站必须放在idc机房吗
  • 建设高端网站公司网上注册
  • 重庆网站平台如何推广做网站啦代理的方法
  • 江西省建设监督网站php做的网站怎么运行
  • 受欢迎的模板网站建设下载并安装app
  • 新公司网站建设方案哪里可以做网站推广
  • 专业网站建设的公司东莞怎样做网站建设