Problems with Oracle DG archive setup Verification

Source: Internet
Author: User

Problems with Oracle DG archive setup Verification

  1. -- Master database
  2. SQL> col statusForA10
  3. SQL> col destinationForA20
  4. SQL> col errorForA20
  5. SQL>SELECTSTATUS, DESTINATION, ERRORFROMV $ ARCHIVE_DEST;
  6. STATUS DESTINATION ERROR
  7. --------------------------------------------------
  8. VALID/home/oracle/flash_r
  9. Ecovery_area/ORCL/ar
  10. Chivelog
  11. ERROR orcl_st ORA-12514:
  12. TNS: listener does
  13. NotCurrently know
  14. OfService
  15. RequestedIn
  16. ConnectDescriptor
  17. STATUS DESTINATION ERROR
  18. --------------------------------------------------
  19. INACTIVE
  20. INACTIVE
  21. INACTIVE
  22. INACTIVE
  23. INACTIVE
  24. INACTIVE
  25. INACTIVE
  26. INACTIVE
  27. 10RowsSelected.
  28. -- Slave Database
  29. SQL> col statusForA10
  30. SQL> col destinationForA20
  31. SQL> col errorForA20
  32. SQL>SELECTSTATUS, DESTINATION, ERRORFROMV $ ARCHIVE_DEST;
  33. STATUS DESTINATION ERROR
  34. --------------------------------------------------
  35. VALID/home/oracle/flash_r
  36. Ecovery_area/ORCL/ar
  37. Chivelog
  38. ERROR orcl_pd ORA-12514:
  39. TNS: listener does
  40. NotCurrently know
  41. OfService
  42. RequestedIn
  43. ConnectDescriptor
  44. STATUS DESTINATION ERROR
  45. --------------------------------------------------
  46. INACTIVE
  47. INACTIVE
  48. INACTIVE
  49. INACTIVE
  50. INACTIVE
  51. INACTIVE
  52. INACTIVE
  53. INACTIVE
  54. VALID/home/oracle/flash_r
  55. Ecovery_area/ORCL/ar
  56. Chivelog
  57. STATUS DESTINATION ERROR
  58. --------------------------------------------------
  59. 11RowsSelected.
Modify the listening files of the master and slave databases, and add SID_DESCEntry:
  1. SID_LIST_LISTENER =
  2. (SID_LIST =
  3. (SID_DESC =
  4. (SID_NAME = PLSExtProc)
  5. (ORACLE_HOME =/home/oracle/product/10.2.0/db_1)
  6. (PROGRAM = extproc)
  7. )
  8. <Span style = "background-color: rgb (0,153, 0);"> (SID_DESC =
  9. (GLOBAL_DBNAME = orcl)
  10. (ORACLE_HOME =/home/oracle/product/10.2.0/db_1)
  11. (SID_NAME = orcl)
  12. )
  13. </Span>
  14. )
  15. LISTENER =
  16. (DESCRIPTION_LIST =
  17. (DESCRIPTION =
  18. (ADDRESS = (PROTOCOL = TCP) (HOST = target) (PORT = 1521 ))
  19. )
  20. )

Also query V $ ARCHIVE_DEST or v $ archive_dest_status:
SQL> select status, destination, error from v $ archive_dest;
SQL> select error from v $ archive_dest_status;
The following error occurs:
ORA-16009: remote archive log destination must be a STANDBY database
Modify the log_archive_dest_2 parameter of the master and slave databases and add the valid_for = (online_logfiles, primary_role) option.
  1. SQL>AlterSystemSetLog_archive_dest_2 ='Service = orcl_pd valid_for = (online_logfiles, primary_role) DB_UNIQUE_NAME = orcl_pd'
  2. Scope = both;
  3. SQL>AlterSystemSetLog_archive_dest_2 ='Service = orcl_st valid_for = (online_logfiles, primary_role) DB_UNIQUE_NAME = orcl_st'
  4. Scope = both;

For more information about Oracle, see Oracle topics page http://www.bkjia.com/topicnews.aspx? Tid = 12

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.