DB2重定向恢复失败“水到渠成”


  本文标签:DB2重定向恢复失败

  

以下的文章主要向大家讲述的是DB2重定向恢复失败(自动存储)的实际操作,其中包括对表空间信息,重定向脚本以及报错等相关内容的描述,以下就是对DB2重定向恢复失败(自动存储)的实际操作的具体描述  。

自动, 失败

表空间信息:

  1. Tablespaces for Current Database  
  2. Tablespace ID = 0 
  3. Name = SYSCATSPACE 
  4. Type = Database managed space  
  5. Contents = All permanent data. Regular table space.  
  6. State = 0x0000 
  7. Detailed explanation:  
  8. Normal  
  9. Total pages = 49152 
  10. Useable pages = 49148 
  11. Used pages = 41056 
  12. Free pages = 8092 
  13. High water mark (pages) = 41056  
  14. Page size (bytes) = 4096  
  15. Extent size (pages) = 4  
  16. Prefetch size (pages) = 16  
  17. Number of containers = 1 
  18. Tablespace ID = 1 
  19. Name = TEMPSPACE1 
  20. Type = System managed space  
  21. Contents = System Temporary data  
  22. State = 0x0000 
  23. Detailed explanation:  
  24. Normal  
  25. Total pages = 1 
  26. Useable pages = 1 
  27. Used pages = 1 
  28. Free pages = Not applicable  
  29. High water mark (pages) = Not applicable  
  30. Page size (bytes) = 4096  
  31. Extent size (pages) = 32  
  32. Prefetch size (pages) = 128  
  33. Number of containers = 1 
  34. Tablespace ID = 2 
  35. Name = USERSPACE1 
  36. Type = Database managed space  
  37. Contents = All permanent data. Large table space.  
  38. State = 0x0000 
  39. Detailed explanation:  
  40. Normal  
  41. Total pages = 3932160 
  42. Useable pages = 3932096 
  43. Used pages = 1563520 
  44. Free pages = 2368576 
  45. High water mark (pages) = 1637792  
  46. Page size (bytes) = 8192  
  47. Extent size (pages) = 32  
  48. Prefetch size (pages) = 256  
  49. Number of containers = 2 
  50. Minimum recovery time = 2010-03-01-07.31.44.000000  

  

  

  重定向脚本:

  1. RESTORE DATABASE IESDB  
  2. FROM /dbbackup  
  3. DBPATH ON /iesdb/ies/NODE0000/SQL00001  
  4. ON /iesdb/sprot  
  5. into sport  
  6. NEWLOGPATH /iesdb/sprot/DB2log/  
  7. REPLACE EXISTING  
  8. REDIRECT  
  9. without rolling forward  
  10. WITHOUT PROMPTING  
  11. ;  
  12. SET TABLESPACE CONTAINERS FOR 0   
  13. USING (  
  14. file /iesdb/sprot/tbs0 49152   
  15. );  
  16. SET TABLESPACE CONTAINERS FOR 2   
  17. USING (  
  18. file /iesdb/sprot/tbs2 3932160   
  19. );  

  

  报错:

  1. RESTORE DATABASE IESDB FROM /dbbackup DBPATH ON /iesdb/ies/NODE0000/SQL00001 
    ON /iesdb/sprot into sport NEWLOGPATH /iesdb/sprot/DB2log/ REPLACE EXISTING REDIRECT without rolling forward WITHOUT PROMPTING  
  2. SQL0104N An unexpected token "ON" was found following "<character-string>".   
  3. Expected tokens may include: "END-OF-STATEMENT". SQLSTATE=42601 
  4. SET TABLESPACE CONTAINERS FOR 0 USING ( file /iesdb/sprot/tbs0 49152 )  
  5. SQL1024N A database connection does not exist. SQLSTATE=08003 
  6. SET TABLESPACE CONTAINERS FOR 2 USING ( file /iesdb/sprot/tbs2 3932160 )  
  7. SQL1024N A database connection does not exist. SQLSTATE=08003  

  以上的相关内容就是对DB2重定向恢复失败(自动存储)的介绍,望你能有所收获  。