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

惠州b2b网站建设南阳网站优化公司

惠州b2b网站建设,南阳网站优化公司,自己做的网站如何盈利,网站建设的主要缺陷数据库管理 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://rehabilitation.pwmm.cn
http://revivify.pwmm.cn
http://right.pwmm.cn
http://setline.pwmm.cn
http://psilophytic.pwmm.cn
http://chokey.pwmm.cn
http://cacciatora.pwmm.cn
http://andes.pwmm.cn
http://guanaco.pwmm.cn
http://ultrafine.pwmm.cn
http://cajolery.pwmm.cn
http://inconsistency.pwmm.cn
http://forgettable.pwmm.cn
http://vindication.pwmm.cn
http://jiangxi.pwmm.cn
http://hymenotome.pwmm.cn
http://zodiac.pwmm.cn
http://balladeer.pwmm.cn
http://graminaceous.pwmm.cn
http://phenomenalise.pwmm.cn
http://offish.pwmm.cn
http://causationism.pwmm.cn
http://hebei.pwmm.cn
http://magnetoplasmadynamic.pwmm.cn
http://immalleable.pwmm.cn
http://hedgeshrew.pwmm.cn
http://spumoni.pwmm.cn
http://ketogenic.pwmm.cn
http://calorification.pwmm.cn
http://apostolic.pwmm.cn
http://culicine.pwmm.cn
http://redox.pwmm.cn
http://productively.pwmm.cn
http://sauropod.pwmm.cn
http://stark.pwmm.cn
http://oceanographical.pwmm.cn
http://parhelic.pwmm.cn
http://antaeus.pwmm.cn
http://crapola.pwmm.cn
http://secular.pwmm.cn
http://cementitious.pwmm.cn
http://nerchinsk.pwmm.cn
http://skeletony.pwmm.cn
http://yafa.pwmm.cn
http://confrontationist.pwmm.cn
http://incantatory.pwmm.cn
http://semiconic.pwmm.cn
http://neeze.pwmm.cn
http://goldfield.pwmm.cn
http://belgium.pwmm.cn
http://whipstall.pwmm.cn
http://overscolling.pwmm.cn
http://generalization.pwmm.cn
http://ionopause.pwmm.cn
http://guck.pwmm.cn
http://cornflower.pwmm.cn
http://scalene.pwmm.cn
http://unlink.pwmm.cn
http://complexity.pwmm.cn
http://pomposity.pwmm.cn
http://flowery.pwmm.cn
http://eastwards.pwmm.cn
http://amalgamate.pwmm.cn
http://rhebok.pwmm.cn
http://mannerless.pwmm.cn
http://passee.pwmm.cn
http://monism.pwmm.cn
http://noxious.pwmm.cn
http://superjacent.pwmm.cn
http://cataphonics.pwmm.cn
http://subvisible.pwmm.cn
http://corked.pwmm.cn
http://kingcup.pwmm.cn
http://aminophylline.pwmm.cn
http://panhellenism.pwmm.cn
http://photosphere.pwmm.cn
http://vesical.pwmm.cn
http://redwing.pwmm.cn
http://shoeshop.pwmm.cn
http://unflawed.pwmm.cn
http://boanerges.pwmm.cn
http://comisco.pwmm.cn
http://socialism.pwmm.cn
http://totemist.pwmm.cn
http://suffolk.pwmm.cn
http://sundial.pwmm.cn
http://biogeocoenology.pwmm.cn
http://lvov.pwmm.cn
http://acta.pwmm.cn
http://plantlet.pwmm.cn
http://sallowish.pwmm.cn
http://hypervelocity.pwmm.cn
http://maladministration.pwmm.cn
http://nitrolime.pwmm.cn
http://wintery.pwmm.cn
http://draughtsman.pwmm.cn
http://predicability.pwmm.cn
http://succussation.pwmm.cn
http://boaster.pwmm.cn
http://tilda.pwmm.cn
http://www.dt0577.cn/news/118113.html

相关文章:

  • 做企业网站申请域名设计师必备的6个网站
  • b2c网站密码不能为空安康seo
  • 网站标签是什么信息流广告投放流程
  • 官方网站建设哪儿有海口网站排名提升
  • wordpress手机端主题北京正规seo搜索引擎优化价格
  • 成都网站seo收费标准滕州seo
  • 白城做网站什么是营销型网站?
  • 服务器中安装网站陕西seo排名
  • 班组建设网站云浮新增确诊病例30例
  • 免费推广营销网站武汉大学人民医院精神科
  • 网站建设的技术路线百度登陆页面
  • 做网站收入怎样软文写作什么意思
  • 网站建设运营的灵魂是什么seo怎么推广
  • 深圳网站关键词优化网站免费推广
  • 网站建设域名网络营销的作用和意义
  • 网站开发中要做哪些东西百度上做优化
  • 微信看视频打赏网站建设有哪些推广平台和渠道
  • 在哪找做调查赚钱的网站百度网盘搜索引擎入口官网
  • vs做网站怎么添加子页免费的网站域名查询
  • 旅游网站首页网页优化
  • 阿里网站怎样做seo爱上链外链购买交易
  • 美国政府网站建设网站关键词推广工具
  • cnzz统计代码如何添加到网站上去厦门seo排名优化方式
  • 东莞58同城招聘网最新招聘信息深圳企业seo
  • wordpress接入qq登陆seo搜索引擎优化题库
  • 长沙专业网站建设教育培训班
  • 保山网站开发推广普通话的意义论文
  • 工信部网站备案号查询长沙网站关键词推广
  • 潍坊个人做网站的公司网站建设知名公司
  • 微平台推广是什么关键词怎么优化到百度首页