Oracle
 sql >> Cơ Sở Dữ Liệu >  >> RDS >> Oracle

ORA-01618

Đây là bài viết thứ 100 của tôi trên blog này !!!

Tôi đang cố gắng sao chép sự cố trong đó tôi có các luồng 4, 5 và 6 trong luồng chính và chế độ chờ của tôi có luồng 1 và 2. Khi tôi thực hiện chuyển đổi, mọi thứ đều ổn, nhưng tôi không thể chuyển lại vì luồng chính cũ, bây giờ là chế độ chờ, đang chờ thực hiện lại từ luồng 4 không tồn tại trong chế độ chờ chính mới của tôi, chế độ chờ cũ. Đối với thử nghiệm của tôi, tôi có RAC chính 2 nút và RAC 2 nút ở chế độ chờ. Có thể dự đoán, cả hai đều có chủ đề 1 và 2. Vì vậy, tôi đã cố gắng chuyển chủ đề chính thành chủ đề 3 và 4 bằng cách chỉ cần thay đổi thông số THREADS trong SPFILE. Nhưng khi khởi động, tôi nhận được:

PRCR-1079 : Failed to start resource ora.resp.db
CRS-5017: The resource action "ora.resp.db start" encountered the following error:
ORA-01618: redo thread 3 is not enabled - cannot mount
. For details refer to "(:CLSN00107:)" in "/u01/app/crs11.2.0.3/log/myhost01/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-2674: Start of 'ora.resp.db' on 'myhost01' failed
CRS-2632: There are no more servers to try to place resource 'ora.resp.db' on that would satisfy its placement policy
CRS-5017: The resource action "ora.resp.db start" encountered the following error:
ORA-01618: redo thread 4 is not enabled - cannot mount
. For details refer to "(:CLSN00107:)" in "/u01/app/crs11.2.0.3/log/myhost02/agent/crsd/oraagent_oracle/oraagent_oracle.log".
CRS-2674: Start of 'ora.resp.db' on 'myhost02' failed

Đây không phải là một thay đổi thông số đơn giản. Để giải quyết vấn đề này, trước tiên chúng ta phải tạo nhật ký làm lại trực tuyến để hỗ trợ các chuỗi mới:

SQL> alter database add logfile thread 3 group 30
  2  '/oracle_data/oradata/resp/redo30.log' size 52429312;
Database altered.
SQL> alter database add logfile thread 3 group 31
  2  '/oracle_data/oradata/resp/redo31.log' size 52429312;
Database altered.
SQL> alter database add logfile thread 4 group 40
  2  '/oracle_data/oradata/resp/redo40.log' size 52429312;
Database altered.
SQL> alter database add logfile thread 4 group 41
  2  '/oracle_data/oradata/resp/redo41.log' size 52429312;
Database altered.

Tiếp theo, chúng tôi kích hoạt các chuỗi.

SQL> alter database enable public thread 3;
Database altered.
SQL> alter database enable public thread 4;
Database altered.

Lastly, we change the initialization parameters and bounce the instance:
SQL> alter system set thread=3 sid='resp1' scope=spfile;

System altered.

SQL> alter system set thread=4 sid='resp2' scope=spfile;

System altered.
Sau đó, trả lại các phiên bản bằng srvctl. Khi mọi thứ đã được sao lưu, tôi đã tắt luồng 1 và 2.
SQL> alter database disable thread 1;
Database altered.
SQL> alter database disable thread 2;
Database altered.

  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. Đưa các trường CLOB vào tệp?

  2. cách sửa đổi kích thước của một cột

  3. Sao chép dữ liệu từ tệp vào CLOB trong Oracle

  4. Hàm JSON_VALUE () trong Oracle

  5. Chuyển đổi OracleParameter.Value thành Int32