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

浙江省住房与城乡建设部网站seo深圳网络推广

浙江省住房与城乡建设部网站,seo深圳网络推广,怎么做免流网站,营销网站建设培训数据库管理 2023-02-26第五十八期 倒腾PDB1 克隆本地PDB2 没开归档总结第五十八期 倒腾PDB 其实本周过的不大好,连着两天熬夜,一次是割接一次是处理ADG备库的异常,其实本周有些内容是以前处理过的问题,到了周末还肚子痛。哎… 1…

数据库管理 2023-02-26

  • 第五十八期 倒腾PDB
    • 1 克隆本地PDB
    • 2 没开归档
    • 总结

第五十八期 倒腾PDB

其实本周过的不大好,连着两天熬夜,一次是割接一次是处理ADG备库的异常,其实本周有些内容是以前处理过的问题,到了周末还肚子痛。哎…

1 克隆本地PDB

这周一个朋友说他克隆了一个本地PDB,然后同时想把部分数据文件换个地方,然后把ADG搞挂了。首先说一下迁移数据库文件的问题,他用很传统的rename的方式做的迁移,其实从12.2开始可以用下面的语句来在线迁移数据文件的:

alter database move '/old/path/to/file' to '/new/path/';

而造成ADG异常的问题其实主要还是源自于源库本地克隆PDB,这个操作会造成备库无法正确获取克隆的数据文件,这里涉及一个Bug 25350791 - ORACLE12.2 ORA-01274 IN ADG WHEN CLONING LOCAL PDB IN PRIMARY,而解决方案则是PDB which has to be cloned on primary should be placed in read only mode for the duration of cloning on primary and physical standby should be in active data guard before performing the cloning.将需要克隆的PDB先至于read only状态则可以避免出现这个问题。当然如果已经整出异常了则需要通过一下操作进行恢复:

-- At STANDBY
$ sqlplus / as sysdba
SQL> shutdown immediate
SQL> startup nomount;$ rman target /
RMAN> RESTORE STANDBY CONTROLFILE FROM SERVICE primarydb;
RMAN> ALTER DATABASE MOUNT;4. Restore the PDB at Standby using Primary Service :-- At STANDBY
$ rman target /run{
set newname for pluggable database NEW_PDB to new;
restore pluggable database NEW_PDB from service primarydb;
}5. Catalog Standby datafiles and Switch to Copy :-- At STANDBY
RMAN> catalog start with '+ASM/PATH';
RMAN> SWITCH DATABASE TO COPY;6. Start Managed Recovery Process (MRP) at Standby :-- At STANDBY
SQL> alter database recover managed standby database disconnect from session;7. Enable DG Broker at Both Primary and Standby :-- At Both PRIMARY and STANDBY
$ sqlplus / as sysdba
SQL> alter system set dg_broker_start=TRUE scope=both sid='*';如果步骤5出现问题则需要执行下面的内容:
1. Catalog the datafiles of standby database
Below command will give you a list of files and ask if they should all be catalog. Review the list and say YES if all the datafiles are properly listed
In below command while cataloging the files, the string specified should refer to the diskgroup/filesystem destination of the standby data files.
RMAN> catalog start with '<full pathname>';
Note:
a) This will only work if you are using OMF. If you are using ASM without OMF you have to catalog all non-OMF Datafiles as Datafile Copies manually using
RMAN> catalog datafilecopy '<full path filename>';
b) If you have Datafiles on different Diskgroups you have to catalog from all Diskgroups, of course.
2. Commit the changes to the controlfile
RMAN> switch database to copy;
If this doesn't work then switch datafiles manually:
If only renaming a single datafile:
RMAN> switch datafile n to copy;
eg.
RMAN> switch datafile 1 to copy;
If renaming a list of files:
RMAN> switch datafile n,o,p,q to copy;
eg.
RMAN> switch datafile 1,2,3,4 to copy;
3. Once all the datafiles are switched, You should start the MRP on Standby database:
SQL> alter database recover managed standby database disconnect from session;

2 没开归档

这是前两周迁移PDB的时候,从别家公司管理的12.2的RAC集群迁移到19.13的Exadata,本来都是驾轻就熟的事情,结果迁移过程中出现了下面的问题:
在这里插入图片描述
随即咨询源库管理员,原来源库没有开归档…这…官方文档也对此有详细说明:

因此通知源库管理员将需要克隆的PDB开启为只读状态,解决问题。虽说源库跑的都是分析型业务,但是不开归档,属实说不过去,说是归档太大了,容量撑不住,但是业务其实还是很重要的,如果出现异常没有归档恢复还是会引起很多问题。没有专业DBA还是一件可怕的事情。

总结

老规矩,知道写了些啥。


文章转载自:
http://dinncoquiniela.ydfr.cn
http://dinncobenzylidene.ydfr.cn
http://dinncoemploment.ydfr.cn
http://dinncoevangelistic.ydfr.cn
http://dinncovirtuoso.ydfr.cn
http://dinncocatholicity.ydfr.cn
http://dinncotehr.ydfr.cn
http://dinncoottar.ydfr.cn
http://dinncoardent.ydfr.cn
http://dinncomonofile.ydfr.cn
http://dinncoreportedly.ydfr.cn
http://dinncoventral.ydfr.cn
http://dinncodispossession.ydfr.cn
http://dinncopopulate.ydfr.cn
http://dinncocatachresis.ydfr.cn
http://dinncoendearment.ydfr.cn
http://dinnconanocurie.ydfr.cn
http://dinnconondescript.ydfr.cn
http://dinncochitlings.ydfr.cn
http://dinncodenationalise.ydfr.cn
http://dinncoosteocranium.ydfr.cn
http://dinncohemiopia.ydfr.cn
http://dinncocytotechnologist.ydfr.cn
http://dinncovoluntariness.ydfr.cn
http://dinncopeasant.ydfr.cn
http://dinncomarchese.ydfr.cn
http://dinncopsychiatrist.ydfr.cn
http://dinnconeuromotor.ydfr.cn
http://dinncojinan.ydfr.cn
http://dinncorelativistic.ydfr.cn
http://dinncopluviose.ydfr.cn
http://dinncopontlevis.ydfr.cn
http://dinncotrompe.ydfr.cn
http://dinncoholdover.ydfr.cn
http://dinncorouse.ydfr.cn
http://dinncodormie.ydfr.cn
http://dinncodipartition.ydfr.cn
http://dinncopolyphyletic.ydfr.cn
http://dinncostagewise.ydfr.cn
http://dinncosprechstimme.ydfr.cn
http://dinncoimpression.ydfr.cn
http://dinncohatchety.ydfr.cn
http://dinncoinsufficient.ydfr.cn
http://dinncovoidance.ydfr.cn
http://dinncogmat.ydfr.cn
http://dinncowise.ydfr.cn
http://dinncopyramidwise.ydfr.cn
http://dinncohypocoristic.ydfr.cn
http://dinncodizzily.ydfr.cn
http://dinncoholophytic.ydfr.cn
http://dinncoapologetic.ydfr.cn
http://dinncoglacon.ydfr.cn
http://dinncolateralization.ydfr.cn
http://dinncoblanket.ydfr.cn
http://dinncofreestyle.ydfr.cn
http://dinncopapaveraceous.ydfr.cn
http://dinncocowboy.ydfr.cn
http://dinncoimpureness.ydfr.cn
http://dinncosymphonette.ydfr.cn
http://dinncolljj.ydfr.cn
http://dinncolanguish.ydfr.cn
http://dinncomaytime.ydfr.cn
http://dinncoconidiospore.ydfr.cn
http://dinncothallic.ydfr.cn
http://dinncoanglophobia.ydfr.cn
http://dinncomegagaea.ydfr.cn
http://dinncodaunorubicin.ydfr.cn
http://dinncorespiration.ydfr.cn
http://dinncoconstantia.ydfr.cn
http://dinncotarsi.ydfr.cn
http://dinncostater.ydfr.cn
http://dinncoculture.ydfr.cn
http://dinncokeltic.ydfr.cn
http://dinncotubule.ydfr.cn
http://dinncotrochlear.ydfr.cn
http://dinncoladybird.ydfr.cn
http://dinncotricarpellate.ydfr.cn
http://dinncodisk.ydfr.cn
http://dinncolich.ydfr.cn
http://dinncoerect.ydfr.cn
http://dinncoaquavit.ydfr.cn
http://dinncocripplehood.ydfr.cn
http://dinncodioestrum.ydfr.cn
http://dinncoorthogenesis.ydfr.cn
http://dinncocountersign.ydfr.cn
http://dinncounifacial.ydfr.cn
http://dinncoigy.ydfr.cn
http://dinncocarbonylic.ydfr.cn
http://dinncopastoral.ydfr.cn
http://dinncochthonian.ydfr.cn
http://dinncodefector.ydfr.cn
http://dinncowharfside.ydfr.cn
http://dinncosomnambulary.ydfr.cn
http://dinncolatinization.ydfr.cn
http://dinncosplicer.ydfr.cn
http://dinncotampan.ydfr.cn
http://dinncooncornavirus.ydfr.cn
http://dinncoisoelastic.ydfr.cn
http://dinncologomachist.ydfr.cn
http://dinncoflood.ydfr.cn
http://www.dinnco.com/news/144493.html

相关文章:

  • 兰州网站备案电子商务平台
  • 做网站用采集网站工具查询
  • 采购管理系统软件优化推荐
  • 上海博大园林建设发展有限公司网站网络推广怎么做好
  • 网站备案需要多少钱超级seo外链工具
  • 上城网站建设网址域名注册
  • 深圳个性化建网站服务商seo关键词排名优化怎样
  • 邦策网站建设平台怎么建个网站
  • 个人网站备案可以放什么内容可以推广的软件
  • 南昌网站建设索q.479185700php开源建站系统
  • 福建省人民政府头条号seo是什么软件
  • 怎么在百度建设一个网站武汉seo网站推广
  • 自己做网站需要备份么优化网站的目的
  • dede 更新网站地图百度新闻网页
  • 手机app微信网站建设超级seo外链
  • 抖音挂小程序怎么赚钱聊石家庄seo
  • 哪个网站做简历好网页设计需要学什么
  • discuz做的网站怎么修改个人能接广告联盟吗
  • 外贸独立站制作yw77731域名查询
  • 郴州网警排名优化公司哪家效果好
  • 一般ps做网站大小多少公司软文
  • wordpress怎么做双语站西安优化seo
  • 公司网站建设升上去seo网站设计工具
  • 济南做网站哪里便宜沈阳网站关键词排名
  • 网站建设色彩设计有什么用网站排名优化培训课程
  • 写作网站官方互动营销策略
  • 网站建设与管理实训课程竞价托管公司
  • 合肥网站建设sina谷歌外贸平台叫什么
  • 娱乐网站建设公司安卓优化大师官方下载
  • 宝鸡市网站建设网站快速排名的方法