愿你出走半生,归来仍是少年

Kratos
专注于用户阅读体验的响应式博客主题
  1. 首页
  2. Oracle
  3. 正文

物理迁移oracle数据库的简易方法

2014年10月10日 12222点热度 0人点赞 0条评论

◆◆物理迁移oracle数据库的简易方法:
◆保证操作系统配置、数据库软件配置、数据库实例服务配置一致;
◆确认tnsnames.ora配置,监听配置一致、正确;
◆关闭数据库,拷贝所有的数据文件dba_data_filesdba_temp_files、控制文件v$controlfile、日志文件v$logfile、配置文件spfile,到目标环境的对应路径:
登录源主机,执行scp操作,拷贝如下文件:
spfile、tnsnames.ora、listener.ora、sqlnet.ora
select tablespace_name,file_name,round(bytes102410241024,0) GB,status from dba_data_files order by file_name;
select tablespace_name,file_name,round(bytes102410241024,0) GB,status from dba_temp_files order by GB;
select member from v$logfile order by 1;
select name from v$controlfile;
◆以下为一个完整示例:
scp $ORACLE_HOMEdbsspfileorcl.ora [email protected]$ORACLE_HOMEdbsspfileorcl.ora
scp $ORACLE_HOMEnetworkadmin.ora [email protected]$ORACLE_HOMEnetworkadmin

oracleoradataORCLdatafileo1_mf_sysaux_9q655kkt_.dbf
oracleoradataORCLdatafileo1_mf_system_9q65506r_.dbf
oracleoradataORCLdatafileo1_mf_undotbs1_9q655xp5_.dbf
oracleoradataORCLdatafileo1_mf_users_9q656fwf_.dbf
oracleoradataORCLdatafileo1_mf_temp_9q65626c_.tmp
scp oracleoradataORCLdatafile [email protected]

oracleoradataORCLonlinelogo1_mf_1_9q654pvt_.log
oracleoradataORCLonlinelogo1_mf_2_9q654r6b_.log
oracleoradataORCLonlinelogo1_mf_3_9q654t0w_.log
scp oracleoradataORCLonlinelog [email protected]

scp oracleoradataORCLcontrolfileo1_mf_9q654ovc_.ctl [email protected]_mf_9q654ovc_.ctl

scp oracle2oradataorcldemand.dbf [email protected]

oracleflash_recovery_areaORCLonlinelogo1_mf_1_9q654qgj_.log
oracleflash_recovery_areaORCLonlinelogo1_mf_2_9q654s4f_.log
oracleflash_recovery_areaORCLonlinelogo1_mf_3_9q654w1b_.log
scp oracleflash_recovery_areaORCLonlinelog [email protected]_recovery_areaORCLonlinelog

scp oracleflash_recovery_areaORCLcontrolfileo1_mf_9q654p54_.ctl [email protected]_recovery_areaORCLcontrolfileo1_mf_9q654p54_.ctl

标签: 物理迁移
最后更新:2014年10月10日

liking

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2026 年 6 月
  • 2026 年 3 月
  • 2026 年 2 月
  • 2025 年 12 月
  • 2025 年 11 月
  • 2025 年 4 月
  • 2025 年 2 月
  • 2025 年 1 月
  • 2024 年 12 月
  • 2024 年 10 月
  • 2024 年 7 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 5 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 2 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 8 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 3 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2015 年 10 月
  • 2014 年 10 月
  • 2014 年 8 月
  • 2014 年 3 月
  • 2013 年 12 月
  • 2013 年 8 月
  • 2013 年 7 月
  • 2013 年 6 月
  • 2013 年 4 月
  • 2012 年 11 月
  • 2012 年 7 月
  • 2012 年 6 月
  • 2012 年 5 月
  • 2012 年 2 月
  • 2011 年 10 月
  • 2011 年 8 月
  • 2011 年 3 月
  • 2010 年 11 月
  • 2010 年 10 月
  • 2010 年 9 月
  • 2010 年 8 月
  • 2010 年 7 月
  • 2010 年 5 月
  • 2010 年 4 月
  • 2010 年 1 月
  • 2009 年 11 月
  • 2009 年 8 月
  • 2009 年 5 月
  • 2009 年 3 月
  • 2009 年 2 月
  • 2008 年 11 月
  • 2008 年 10 月
  • 2008 年 8 月
  • 2008 年 4 月
  • 2007 年 4 月

分类

  • BigData
  • kubernetes
  • linux
  • MongoDB
  • MySQL
  • Oracle
  • PostgreSQL
  • 备份恢复
  • 安装配置
  • 性能优化
  • 技术杂谈
  • 未分类
  • 梦回红楼
  • 测试
  • 生活点滴
  • 网站建设
  • 自制工具
  • 轻松一刻
  • 运维知识
  • 问题处理

COPYRIGHT © 2026 愿你出走半生,归来仍是少年. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang