SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
Oracle for AIX 大数据迁移

目录

ORACLE FOR AIX 大数据迁移............................................ 1
               大数据迁移.

一、环境............................................................. 1
一、环境
  环境.

 1. AIX 5.3 系统,安装 ORACLE 10.2.0.1 FOR AIX(生产环境)...........................................................................................1

 2. WINDOWS 2003 系统,安装 ORACLE 10.2.0.1 FOR WINDOWS(备用环境)......................................................................... 1


二、背景............................................................. 1
二、背景.

 由于生产环境服务器 IBM 服务器升级 CPU 时造成底座 V 上脚针折断,为保障生产不停,便将 A 服务器上的 ORACLE 做 EXP
 导出,从而导入到备用 B 服务器上让应用能正常运行,等 IBM 将硬件弄好后再导回生产环境上跑。..................1


三、问题............................................................. 1
三、问题.

 在 IBM 将问题解决后,我们将备机数据库 EXP 出来,并以二进制方式 FTP 到生产环境上时.....................................1

 分析:当导入到数据量很大的表时就会报这样的错,.................................................................................................. 2

 判断:在初步判断后感觉是临时表空间和 UNDO 表空间过小所导致的........................................................................ 2

 操作:修改临时表空间和 UNDO 表空间后再导入............................................................................................................ 2


四、问题解决......................................................... 3
四、问题解决.




    技术文档                                           中国·九州通集团·信息技术总部                                                    第 1 页 共 7 页
一、环境

   1. AIX 5.3 系统,安装 Oracle 10.2.0.1 for AIX
                                        AIX(生产环境)

         以下以 A 机称


     2. Windows 2003 系统,安装 Oracle 10.2.0.1 for windows
                       ,                       windows(备用环境)

         以下以 B 机称



  二、背景

由于生产环境服务器 IBM 服务器升级 CPU 时造成底座上脚针折断,为保障生产不停,便将 A

服务器上的 Oracle 做 exp 导出,从而导入到备用 B 服务器上让应用能正常运行,等 IBM 将

硬件弄好后再导回生产环境上跑。



  三、问题

    在 IBM 将问题解决后,我们将备机数据库 exp 出来,并以二进制方式 ftp 到生产环境

    上时

      imp user/password fromuser=user touser=user file=XXXX.dmp ignore=y feedback=10000

      导入工作进行一会就报错,报错信息如下:




  技术文档                        中国·九州通集团·信息技术总部                              第 2 页 共 7 页
分析:当导入到数据量很大的表时就会报这样的错,


       判断:在初步判断后感觉是临时表空间和 undo 表空间过小所导致的


   操作:修改临时表空间和 undo 表空间后再导入


   再来一次

   导入工作进行一会就报错,报错信息如下:




   结果:还是报以上错误

   分析:刚才的大表已经导入进去,但在这个更大的表又出现报错,

   检查 alter 日志,发现在导入时产生 ORA-27061 报警




技术文档                中国·九州通集团·信息技术总部    第 3 页 共 7 页
ORA-27061: skgfospo: waiting for async I/Os failed
        IBM AIX RISC System/6000 Error: 22: Invalid argument


   判断:根据日志显示及百度查证,是异步 IO 出现问题

   这个由于异步 IO 引起的问题,在 AIX 5.3 TL6 下,使用文件系统,打开 Oracle 的异步 IO 选项的时候,经常
   会出现。当异步 IO 的请求(队列)超出 MAXREQS 的时候,由于 AIX 上 AIOWAIT 的问题,会导致返回值是
   错误的,Oracle 发现该错误后,就会出现问题。如果正好是某些重要的后台进程碰到这样的错误,会导致数据
   库宕掉。




   步骤:

        1. AIX 系统升级

        2. 安装 IBM 的 IZ03260 补丁包



四、问题解决
   下载补丁

   发现 AIX 操作系统版本太低,去 IBM 官方网站寻找补丁。

   1.     ftp://download2.boulder.ibm.com/ecc/hsb/H03205176/

   2.     ftp://ftp.software.ibm.com/aix/efixes/iz03260/

   3.     http://www-933.ibm.com/eserver/support/fixes/fixcentral/pseriesfixpackinformation/5300-
             06-01-0722




技术文档                            中国·九州通集团·信息技术总部                              第 4 页 共 7 页
下载 AIX-5300-06 Service Pack 9 补丁

          FTP server        download2.boulder.ibm.com



          Userid            anonymous



          Password          send your complete e-mail address as password



          Directory         /ecc/hsb/H03411322




           Example


           ftp>binary

           ftp>prompt

           ftp>mget *.bff




   将标题 1 的 ftp 目录下的所有文件下载下来(有点大,大约 2G 左右),以二进制的方式上传入 AIX,
   将操作系统先升级.


   备份系统到磁带机

   将一盘新磁带或无用磁带插入磁带机

   #tctl -f /dev/rmt0 rewind               --- 倒带

技术文档                              中国·九州通集团·信息技术总部                           第 5 页 共 7 页
#smit mksysb




   在"备份设备或文件"中添入"/dev/rmt0"后回车.

   系统会运行很长时间, 等到屏幕显示 OK 后拿出磁带. 这时候, 系统备份完成.

   注意:mksysb 仅备份 rootvg 中已安装的文件系统.




   开始 AIX 补丁升级

   # smit install_update


   进入后选 update software by fix,后根据提示可以完成




技术文档                       中国·九州通集团·信息技术总部    第 6 页 共 7 页
完成升级后查看版本




  安装 IBM 的 IZ03260 补丁包




   #emgr -e IZ03260.epkg.Z




  导入数据




 OK 数据完整导入到生产环境


                                           JoinTown-Yulm    2008-10-03




技术文档                         中国·九州通集团·信息技术总部               第 7 页 共 7 页

Mais conteúdo relacionado

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Oracle For Aix数据迁移(2008 10 4)

  • 1. Oracle for AIX 大数据迁移 目录 ORACLE FOR AIX 大数据迁移............................................ 1 大数据迁移. 一、环境............................................................. 1 一、环境 环境. 1. AIX 5.3 系统,安装 ORACLE 10.2.0.1 FOR AIX(生产环境)...........................................................................................1 2. WINDOWS 2003 系统,安装 ORACLE 10.2.0.1 FOR WINDOWS(备用环境)......................................................................... 1 二、背景............................................................. 1 二、背景. 由于生产环境服务器 IBM 服务器升级 CPU 时造成底座 V 上脚针折断,为保障生产不停,便将 A 服务器上的 ORACLE 做 EXP 导出,从而导入到备用 B 服务器上让应用能正常运行,等 IBM 将硬件弄好后再导回生产环境上跑。..................1 三、问题............................................................. 1 三、问题. 在 IBM 将问题解决后,我们将备机数据库 EXP 出来,并以二进制方式 FTP 到生产环境上时.....................................1 分析:当导入到数据量很大的表时就会报这样的错,.................................................................................................. 2 判断:在初步判断后感觉是临时表空间和 UNDO 表空间过小所导致的........................................................................ 2 操作:修改临时表空间和 UNDO 表空间后再导入............................................................................................................ 2 四、问题解决......................................................... 3 四、问题解决. 技术文档 中国·九州通集团·信息技术总部 第 1 页 共 7 页
  • 2. 一、环境 1. AIX 5.3 系统,安装 Oracle 10.2.0.1 for AIX AIX(生产环境) 以下以 A 机称 2. Windows 2003 系统,安装 Oracle 10.2.0.1 for windows , windows(备用环境) 以下以 B 机称 二、背景 由于生产环境服务器 IBM 服务器升级 CPU 时造成底座上脚针折断,为保障生产不停,便将 A 服务器上的 Oracle 做 exp 导出,从而导入到备用 B 服务器上让应用能正常运行,等 IBM 将 硬件弄好后再导回生产环境上跑。 三、问题 在 IBM 将问题解决后,我们将备机数据库 exp 出来,并以二进制方式 ftp 到生产环境 上时 imp user/password fromuser=user touser=user file=XXXX.dmp ignore=y feedback=10000 导入工作进行一会就报错,报错信息如下: 技术文档 中国·九州通集团·信息技术总部 第 2 页 共 7 页
  • 3. 分析:当导入到数据量很大的表时就会报这样的错, 判断:在初步判断后感觉是临时表空间和 undo 表空间过小所导致的 操作:修改临时表空间和 undo 表空间后再导入 再来一次 导入工作进行一会就报错,报错信息如下: 结果:还是报以上错误 分析:刚才的大表已经导入进去,但在这个更大的表又出现报错, 检查 alter 日志,发现在导入时产生 ORA-27061 报警 技术文档 中国·九州通集团·信息技术总部 第 3 页 共 7 页
  • 4. ORA-27061: skgfospo: waiting for async I/Os failed IBM AIX RISC System/6000 Error: 22: Invalid argument 判断:根据日志显示及百度查证,是异步 IO 出现问题 这个由于异步 IO 引起的问题,在 AIX 5.3 TL6 下,使用文件系统,打开 Oracle 的异步 IO 选项的时候,经常 会出现。当异步 IO 的请求(队列)超出 MAXREQS 的时候,由于 AIX 上 AIOWAIT 的问题,会导致返回值是 错误的,Oracle 发现该错误后,就会出现问题。如果正好是某些重要的后台进程碰到这样的错误,会导致数据 库宕掉。 步骤: 1. AIX 系统升级 2. 安装 IBM 的 IZ03260 补丁包 四、问题解决 下载补丁 发现 AIX 操作系统版本太低,去 IBM 官方网站寻找补丁。 1. ftp://download2.boulder.ibm.com/ecc/hsb/H03205176/ 2. ftp://ftp.software.ibm.com/aix/efixes/iz03260/ 3. http://www-933.ibm.com/eserver/support/fixes/fixcentral/pseriesfixpackinformation/5300- 06-01-0722 技术文档 中国·九州通集团·信息技术总部 第 4 页 共 7 页
  • 5. 下载 AIX-5300-06 Service Pack 9 补丁 FTP server download2.boulder.ibm.com Userid anonymous Password send your complete e-mail address as password Directory /ecc/hsb/H03411322 Example ftp>binary ftp>prompt ftp>mget *.bff 将标题 1 的 ftp 目录下的所有文件下载下来(有点大,大约 2G 左右),以二进制的方式上传入 AIX, 将操作系统先升级. 备份系统到磁带机 将一盘新磁带或无用磁带插入磁带机 #tctl -f /dev/rmt0 rewind --- 倒带 技术文档 中国·九州通集团·信息技术总部 第 5 页 共 7 页
  • 6. #smit mksysb 在"备份设备或文件"中添入"/dev/rmt0"后回车. 系统会运行很长时间, 等到屏幕显示 OK 后拿出磁带. 这时候, 系统备份完成. 注意:mksysb 仅备份 rootvg 中已安装的文件系统. 开始 AIX 补丁升级 # smit install_update 进入后选 update software by fix,后根据提示可以完成 技术文档 中国·九州通集团·信息技术总部 第 6 页 共 7 页
  • 7. 完成升级后查看版本 安装 IBM 的 IZ03260 补丁包 #emgr -e IZ03260.epkg.Z 导入数据 OK 数据完整导入到生产环境 JoinTown-Yulm 2008-10-03 技术文档 中国·九州通集团·信息技术总部 第 7 页 共 7 页