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

大连网站公司设计襄阳网站建设价格低

大连网站公司设计,襄阳网站建设价格低,互联网的营销推广方式,培训网站大全文章目录 一、删除测试表二、重命名旧表:三、验证:四、检查alert日志和昨天到今天的统计信息任务收集是否正常 一、删除测试表 #xshell登录用户hthis用户连接登录处理: sqlplus ht/"123456" sqlplus ht/"123456"10.8.5.…

文章目录

  • 一、删除测试表
  • 二、重命名旧表:
  • 三、验证:
  • 四、检查alert日志和昨天到今天的统计信息任务收集是否正常


一、删除测试表

#xshell登录用户hthis用户连接登录处理:
sqlplus ht/"123456"
sqlplus ht/"123456"@10.8.5.23/htdb
drop table rcd_record_data_26 purge;
#创建新表的操作:脚本参考如下,注意检查where条件是否满足要求。
cd /u01/app/oracle/product/19,0.0,0/dbhome 1/OPatch/
sqlplus ht/"123456"
#c.sql是建表语句create as where
@c.sql
#创建完成后,注释可能乱码,PL/SQL工具核查一下字段默认值和注释:
#处理办法:打开command窗口执行如下:
comment on table RCD_RECORD_DATA_26 is 'xx数据';
comment on column RCD_RECORD_DATA_26.id is 'ID';
comment on column RCD_RECORD_DATA_26.data is 'xx数据';#创建时注意表空间占用:
alter tablespace  TBS52023  add datafile '+DATAC1' size 20480m autoextend on next 10m;
alter tablespace  TBS52022  add datafile '+DATAC1' size 20480m autoextend on next 10m;
alter tablespace  TBS52021  add datafile '+DATAC1' size 20480m autoextend on next 10m;
alter tablespace  TBS52020  add datafile '+DATAC1' size 20480m autoextend on next 10m;
alter tablespace  TBS52019  add datafile '+DATAC1' size 20480m autoextend on next 10m;

二、重命名旧表:

#重命名前检查:
select * from dba_dependencies where REFERENCED_NAME='RCD_RECORD_DATA';
#解锁防止占用:select d.spid, c.object_name,a.USERNAME,a.OSUSER,a.MACHINE, a.STATUS,'ALTER SYSTEM KILL SESSION '''||a.sid||','||a.SERIAL#||''';'
from gv$session a ,gv$locked_object b,dba_objects c,gv$process d
where a.SID = b.SESSION_ID
and b.OBJECT_ID = c.object_id
and a.paddr=d.addr and c.object_name='RCD_RECORD_DATA';#重命名:
alter table RCD_RECORD_DATA rename to RCD_RECORD_DATA_27;
#如果报错失败,需先处理锁表问题,再重命名。
#检查确认备份表数据正常:select count(*) from RCD_RECORD_DATA_27;
#处理完成后再把新表重命名为生产表:
alter table RCD_RECORD_DATA_26 rename to RCD_RECORD_DATA;
#检查确认生产表数据正常:select count(*) from RCD_RECORD_DATA;#检查表空间大小:
@/home/oracle/tbs#编译失效对象:
sqlplus / as sysdba
@?/rdbms/admin/utrlp.sql;#补充缺失数据:
insert into RCD_RECORD_DATA(ID,DATA,CREATE_TIEM) select ID,DATA,CREATE_TIEM from RCD_RECORD_DATA_27 where id > '39716984';insert into RCD_RECORD_DATA_26(ID,DATA,CREATE_TIEM) select ID,DATA,CREATE_TIEM from RCD_RECORD_DATA where id > '39716984';

三、验证:

#查询lob字段占用大小:
select * from dba_tables where owner ='HTHIS' and table_name='RCD_RECORD_DATA';select e.segment_name,e.segment_type,sum(e.BYTES)/1024/1024/1024 as Gb from dba_extents e where e.segment_name='SYS_LOB0000629267C00002$$' 
group by e.segment_name,e.segment_type;

四、检查alert日志和昨天到今天的统计信息任务收集是否正常

#检查节点1,2的alert日志看是否还有异常报错?
#检查统计信息是否正常了?
select * from (select ACTUAL_START_DATE,RUN_DURATION,STATUS FROM dba_scheduler_job_run_details
where job_name like 'ORA$AT_OS_OPT%'
order by actual_start_date desc) where rownum < 30;陈哈哈:
select d.spid, c.object_name,a.USERNAME,a.OSUSER,a.MACHINE, a.STATUS,'ALTER SYSTEM KILL SESSION '''||a.sid||','||a.SERIAL#||''';'
from v$session a ,v$locked_object b,dba_objects c,v$process d
where a.SID = b.SESSION_ID
and b.OBJECT_ID = c.object_id
and a.paddr=d.addr and c.object_name=upper('rcd_record_data');陈哈哈:
-- tablespace usage
select  a.tablespace_name,round(a.bytes_alloc / 1024 / 1024) megs_alloc,round(nvl(b.bytes_free, 0) / 1024 / 1024) megs_free,round((a.bytes_alloc - nvl(b.bytes_free, 0)) / 1024 / 1024) megs_used,round((nvl(b.bytes_free, 0) / a.bytes_alloc) * 100) Pct_Free,100 - round((nvl(b.bytes_free, 0) / a.bytes_alloc) * 100) Pct_used,round(maxbytes/1048576) Max
from  ( select  f.tablespace_name,sum(f.bytes) bytes_alloc,sum(decode(f.autoextensible, 'YES',f.maxbytes,'NO', f.bytes)) maxbytesfrom dba_data_files fgroup by tablespace_name) a,( select  f.tablespace_name,sum(f.bytes)  bytes_freefrom dba_free_space fgroup by tablespace_name) b
where a.tablespace_name = b.tablespace_name (+)
union all
select h.tablespace_name,round(sum(h.bytes_free + h.bytes_used) / 1048576) megs_alloc,round(sum((h.bytes_free + h.bytes_used) - nvl(p.bytes_used, 0)) / 1048576) megs_free,round(sum(nvl(p.bytes_used, 0))/ 1048576) megs_used,round((sum((h.bytes_free + h.bytes_used) - nvl(p.bytes_used, 0)) / sum(h.bytes_used + h.bytes_free)) * 100) Pct_Free,100 - round((sum((h.bytes_free + h.bytes_used) - nvl(p.bytes_used, 0)) / sum(h.bytes_used + h.bytes_free)) * 100) pct_used,round(sum(f.maxbytes) / 1048576) max
from   sys.v_$TEMP_SPACE_HEADER h, sys.v_$Temp_extent_pool p, dba_temp_files f
where  p.file_id(+) = h.file_id
and    p.tablespace_name(+) = h.tablespace_name
and    f.file_id = h.file_id
and    f.tablespace_name = h.tablespace_name
group by h.tablespace_name
ORDER BY pct_used desc ;
http://www.yayakq.cn/news/378532/

相关文章:

  • 手游门户网站建设网络推广公司推荐
  • 网站空间网站虚拟空间k大原画培训班官网
  • vs2010 iis 网站开发wordpress固定链接发布失败
  • 平邑网站建设wordpress属于区域连技术吗
  • 推荐大良营销网站建设咸宁商城网站建设
  • 做网站用什么虚拟主机河北住房和建设厅官方网站
  • 有哪些专做旅游定制的网站线上推广计划
  • 百度网站小程序怎么做响应式网站报价
  • 教育 网站模板scatter网站开发
  • 怎么做直播视频教学视频网站怎么在百度上建立自己的网页
  • 百度网站怎么做的赚钱广州网页制作公司
  • 免费做网站站标火车头 wordpress接口
  • 怎么评判一个网站做的好与坏网站伪静态规则
  • 怎么用dw做响应式网站网店推广目的
  • 做网站的难题化妆品网站建设可行性报告
  • 网站开发系统设计成都网站建设平台
  • 牛网站企业网站建站的专业性原则是指网站信息内容应该体现建站目的和目标群体
  • 那个网站教你做毕设的网页设计动态效果怎么制作
  • 什么网站做弹窗广告好wordpress站点搬家
  • 小型的做网站公司从哪里接的项目免费查看采购信息的平台
  • 美发培训网站管理咨询公司企业简介
  • 做网站的时候表格怎么去掉河北省网站建设
  • 萝岗做网站中国十大购物商场排名
  • 兰州网站设计制作如何把做的网站发布到网上
  • 东莞微信网站建设品牌无锡网站广优化公司
  • 网站还没上线怎么做品牌推广营销型网站建设明细报
  • 山东省工程建设招标信息网站360建网站好不好?
  • 鑫三科技网站设计河南省机场集团
  • 国内好的企业网站c2c交易是什么意思
  • 网站建设 有聊天工具的吗官方网站哪家做的最好