DB2 redirection recovery failed "coming soon"

Source: Internet
Author: User
Tags prefetch

The following articles mainly describe the actual operations of failed DB2 redirection recovery (Automatic Storage), including descriptions of table space information, redirection scripts, and error reports, the following is a detailed description of the actual operations on DB2 redirection recovery failure (automatic storage.

Automatic, failed

Tablespace information:

 
 
  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  

Redirection script:

 
 
  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. );  

Error:

 
 
  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  

The above content is an introduction to DB2 redirection recovery failure (Automatic Storage). I hope you will gain some benefits.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.