'Database/Oracle'에 해당되는 글 17건

이 경우는 대부분이 데이터 입력, 삭제 또는 복구 작업시에 일어나며, Archive Mode 운
영중일때 발생한다.

 [운영 로그 확인]

 c:\> type C:\oracle\product\10.2.0\SID\alert_SID

   ; 오류가 발생하면 위와 같은 로그 파일을 생성한다.

 Thu Apr 06 21:45:55 2006
Errors in file c:\oracle\product\10.2.0\admin\oradb\bdump\oradb_arc0_3556.trc:

ORA-19815: 경고: db_recovery_file_dest_size/2147483648바이트는 100.00%가 사용 중이므로, 나머지 0바이트를 사용할 수 있습니다.

   ; 위의 로그를 확인 한 결과 dest_size가 full이 되어서 발생한 행걸림 현상을 확인.

 [로그 확인]

 sql> archive log list;

 데이터베이스 로그 모드                        아카이브 모드
 자동 아카이브                                      사용
 아카이브 대상                                      USE_DB_RECOVERY_FILE_DEST
 가장 오래된 온라인 로그 순서                1
 아카이브할 다음 로그                            1
 현재 로그 순서                                      3

 sql> show parameter archive;

 NAME                                 TYPE                              VALUE
 -------------------------- ------------------------- -------------------------------
 archive_lag_target               integer                             0
 log_archive_config              string
 log_archive_dest                 string
 log_archive_dest_1              string

    ; 위의 내용을 보면 log_archive_dest에 보면 Value가 없다. 진행이 안된 상태이다.

  sql>show parameter dest;

   ; dest에 관련된 파라메터를 확인한다.


 [해결방안1]
  DB를 Shutdown immediate를 한다.
  initSID.ora 파일 내용중 dest_size line을 주석처리한다.
  DB를 Startup 한다

 [해결방안2]
  sql> alter system set db_recivery_file_dest_size=3000M;
  운영중인 DB에서 dest_size를 늘려준다.


alert.log파일에 이런 에러가 떴거든요...

ORA-19815: 경고: db_recovery_file_dest_size/2147483648바이트는 85.28%가 사용 중이므로,
나머지 316203008바이트를 사용할 수 있습니다.


Thu Jul 13 10:54:55 2006
************************************************************************
You have following choices to free up space from flash recovery area:
1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
   then consider changing RMAN ARCHIVELOG DELETION POLICY.
2. Back up files to tertiary device such as tape using RMAN
   BACKUP RECOVERY AREA command.
3. Add disk space and increase db_recovery_file_dest_size parameter to
   reflect the new space.
4. Delete unnecessary files using RMAN DELETE command. If an operating
   system command was used to delete files, then use RMAN CROSSCHECK and
   DELETE EXPIRED commands.
************************************************************************
 
 
 
가장 많이 발생하는 원인은 아카이브 로그 파일이 계속 쌓일 경우입니다.

OS 상에서 아카이브 로그 파일을 삭제하였을 경우에도 RMAN 상에서는 삭제한 걸 인식하지 못합니다.

해결 방법으로는

1) db_recovery_file_dest_size의 크기를 늘려 준다.

2) 필요 없는 아카이브 파일 OS에서 삭제후 RMAN에서 삭제

 - OS 상에서 아카이브 삭제

 - RMAN> crosscheck archivelog all;

    RMAN> delete expired archivelog all;

3) 백업 정책 확인
 

블로그 이미지

유효하지않음

,

alter system set "_optimizer_connect_by_cost_based" = false scope=both;

ORA-00600: 내부 오류 코드, 인수 : [qkacon:FJfsrwo], [5], [], [], [], [], [], []..

bug number : Bug 5254539

A SQL statement involving a hierarchical query (CONNECT BY)
using cursor statements in the select list may fail with
ORA-600 [qkacon:FJfsrwo]

===================================================================================================

alter system set "_optimizer_cost_based_transformation" = off scope=both;

===================================================================================================
The information in this article applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.3 - 10.2
This problem can occur on any platform.

Errors ORA 600 internal error code, arguments: [qctcte1],[0],[%s], [%s], [%s],

Symptoms
ORA-00600 [qctcte1] is encountered while performing a nested select which might include functions like distinct or have an order by clause.


Example:


Sql> CREATE OR REPLACE TYPE int_list IS VARRAY(200) OF INTEGER;

Sql> CREATE TABLE test (id INTEGER);

Sql> SELECT id FROM ( SELECT rp.id FROM (SELECT DISTINCT column_value ID FROM
TABLE(int_list(1,1,2))) rp, test p WHERE p.id = 1 ORDER BY p.id DESC)


ERROR at line 2:
ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], []

 

Cause
An inconsistent datatype is reported during typechecking when parsing a query. This is bug 3557906.
Fix
There are several Workarounds :

1> Remove the desc from the order by clause

Sql > SELECT id FROM ( SELECT rp.id FROM (SELECT DISTINCT column_value ID
FROM TABLE(int_list(1,1,2))) rp, test p WHERE p.id = 1 ORDER BY p.id )


2> Alter session set "_complex_view_merging"=false;


3> Remove the distinct clause

Sql > SELECT id FROM ( SELECT rp.id FROM (SELECT column_value ID FROM TABLE(int_list
(1,1,2))) rp, test p WHERE p.id = 1 ORDER BY p.id DESC)

4> Remove the order by clause

Sql > SELECT id FROM ( SELECT rp.id FROM
(SELECT column_value ID FROM TABLE(int_list(1,1,2))) rp, test p WHERE p.id = 1 )

5> _pred_move_around = false

This is fixed in 10.2 and will be fixed in the 9206 patchset.
References
<Bug:3557906> ORA-600: INTERNAL ERROR CODE, ARGUMENTS: [QCTCTE1], [0],



쿼리문에 흰트를 사용해도 되네요..
 /*+ NO_CONNECT_BY_COST_BASED */ 
  or
/*+ OPT_PARAM('_optimizer_connect_by_cost_based', 'false') */


블로그 이미지

유효하지않음

,