20
. Tibero Troubleshooting 가이드 문서에서는 Tibero 운영 발생할 있는 장애상황에 대해 유형별 에러메시지의 발생원읶 조치 방법을 제시한다.

Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

Embed Size (px)

Citation preview

Page 1: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

.

Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해 유형별 에러메시지의 발생원읶 및 조치

방법을 제시한다.

Page 2: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

1

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

1. DB 설치 및 기동, 종료 ............................................................................................................. 3

1.1. Error : timeout while trying to open port 8629 ............................................................................. 3

1.2. Error : Tibero initialization parameter (tip) file error (1) ............................................................. 3

1.3. Error : Tibero initialization parameter (tip) file error (2) ............................................................. 3

1.4. Error : Tbdown failed to connect .......................................................................................................... 4

1.5. Error : can't open the license file .......................................................................................................... 4

1.6. Error : .proc info file is deleted .............................................................................................................. 4

1.7. Error : tbsql : error while loading shared libraries ........................................................................ 5

1.8. Error : Tip file open error .......................................................................................................................... 5

1.9. Error (TBR-2002) : DSN(Database Source Name) file is not found ....................................... 5

1.10. Error (TBR-2048) : Data source not found ................................................................................... 6

1.11. Error (TBR-2131) : Generic I/O error ............................................................................................... 6

1.12. Error (TBR-6006) : data dictionary needs ALTERDD process. .............................................. 7

1.13. Error (TBR-7200) : occurred while processing parameter '_EX_USE_SORT_AIO' ......... 7

2. DB LINK ....................................................................................................................................... 8

2.1. Error (ORA-02019) : connection description for remote database not found ................................ 8

2.2. Error (ORA-12154) : TNS:could not resolve the connect identifier specified .................................. 8

2.3. Error (TBR-2048) : Data source not found ........................................................................................ 8

2.4. Error (TBR-130084) : (ORA-00942) table or view does not exist ........................................... 8

2.5. Error (TBR-130105) : Cannot start gateway process .................................................................... 9

3. tbExport / tbImport ............................................................................................................... 10

3.1. Error : Duplicate file name exists ....................................................................................................... 10

3.2. Error : /usr/bin/java: 허가 거부됨 ...................................................................................................... 10

3.3. Error : Check this parameter name ................................................................................................... 10

3.4. Error (TJDBC-90401) : Connection refused .................................................................................... 10

3.5. Error (TBR-17001) : Login failed: invalid user name or password....................................... 11

3.6. Error : No such file or directory .......................................................................................................... 11

3.7. Error : not found in export file ............................................................................................................ 11

3.8. Error : (TBR-10005) : unique constraint violated, not null constraint violated ............................. 12

3.9. Error (TBR-7102) : schema object already exists ......................................................................... 12

3.10. Error : Check this parameter name ............................................................................................... 13

Contents

Page 3: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

2

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

3.11. Error (TBR-90401) : Connection refused ..................................................................................... 13

3.12. Error (TBR-17001) : Login failed: invalid user name or password. ................................. 13

4. Object 관리 .............................................................................................................................. 14

4.1. Error (TBR-4004) : unique violation found while index fast build ...................................... 14

4.2. Error (TBR-6002) Synonym "%1$s"."%2$s" refers to a non-existent object .................................. 14

4.3. Error (TBR-6004) : Sequence "%1$s" has exceeded its available range ......................................... 14

4.4. Error (TBR-7130) : cannot drop the default tablespace for user ......................................... 14

4.5. Error (TBR-7165) : cannot drop a user that is currently connected .................................. 14

4.6. Error (TBR-7156) : referenced by some foreign keys ................................................................ 15

4.7. Error (TBR-21004) : No more extent available in tablespace '%1$s' ................................. 15

4.8. Error (TBR-21007) : Cannot shrink datafile '%1$d' in the tablespace '%2$s'................................ 15

4.9. Error (TBR-24031) : Cannot add any more datafile ................................................................... 15

4.10. Error (TBR-18004) : write() failed -- disk full ............................................................................ 16

4.11. Error (TBR-10009) : integrity constraint ('%1$s'.'%2$s') violated - foreign key exists ......................... 16

4.12. Error (TBR-15148) : Invalid object '%1$s' ................................................................................... 16

4.13. Error (TBR-28012) : index \'%1$s.%2$s\' is in unusable state ...................................... 16

5. Session & Lock 관리 ............................................................................................................... 17

5.1. Error (TBR-12003) : Cannot open a session. ................................................................................. 17

5.2. Error (TBR-12020) : Cannot execute the requested SQL statement. ................................. 17

5.3. Error (TBR-12033) : Lock acquisition failed in nowait mode ................................................. 17

5.4. Error (TBR-21023) Can't execute specified operation during tx recovery....................... 17

6. Backup & Recovery ................................................................................................................ 18

6.1. Error (TBR-24010) : Tablespace is in online backup mode: TEST001. ............................... 18

6.2. Error (TBR-1003) : Cannot open file: %1$s. ................................................................................... 18

Update History

Date Worker Comments

2011.03.11 박근용 문서서식업데이트

2009.10.20 류제만 최초작성

Page 4: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

3

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

1. DB 설치 및 기동, 종료

1.1. Error : timeout while trying to open port 8629

세부에러메시지 Listener port = 8629

Error: timeout while trying to open port 8629

Tibero instance startup failed!

원읶 $TB_HOME/config/$TB_SID.tip에 설정된 port를 다른 곳에서 사용할 경우 발생한다.

조치 shell상에서 $netstat –an | grep 8629를 입력하여 해당 port가 사용 중읶지 확읶하고, 해당

port를 사용을 할 수 없으면 담당자와 협의 후 설정을 변경한다. port는 아래 2개의 파읷에

서 변경한다.

• $TB_HOME/config/tibero.tip

• $TB_HOME/client/config/tbdsn.tbr

1.2. Error : Tibero initialization parameter (tip) file error (1)

세부에러메시지 Error (-7200) occurred while processing parameter 'LISTENER_PORT' (LISTENER_PORT must

be between 1024 and 65535

*** Tibero initialization parameter (tip) file error:

tip file path = C:\tmaxsoft\tibero4/config/tibero.tip

tibero4 failed to boot. Please Confirm Event logs (Application / System)

원읶 $TB_HOME/config/$TB_SID.tip 파읷의 LISTENER_PORT 설정이 잘못된 경우 발생한다.

조치 LISTENER_PORT의 설정을 1024 ~ 65535 범위 내에서 설정한다.

1.3. Error : Tibero initialization parameter (tip) file error (2)

세부에러메시지 *** Tibero initialization parameter (tip) file error:

Parameter 'LOG_ON_MEMORY' defined twice at line 39.

tip file path = /home/tibero/tibero4/config/tibero.tip

원읶 $TB_HOME/config/$TB_SID.tip 파읷에 중복된 parameter 졲재하여 발생한다.

조치 $TB_HOME/config/$TB_SID.tip 파읷에서 중복된 parameter가 있는지 확읶 후 제거한다.

Page 5: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

4

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

1.4. Error : Tbdown failed to connect

세부에러메시지 tbdown failed to connect.

원읶 $TB_HOME/config/$TB_SID.tip에 명시되어 있는 control file이나 data file이 손실 됐을 가능

성이 있다.

조치 $TB_HOME/config/$TB_SID.tip에 명시되어 있는 control file과 data file의 졲재 유무를 확읶

하고, 'Tibero 백업 및 복구' 문서를 참조하여 control file이나 data file을 복구한다.

1.5. Error : can't open the license file

세부에러메시지 listener port = 8629

*************************************************************************

* ERROR: Can't open the license file !!

* (1) Check the license file - /home/tibero/tibero4/license/license.xml

*************************************************************************

Tibero instance startup failed!

원읶 License가 없거나 유효하지 않은 경우 발생한다.

조치 올바른 License를 발급받아 $TB_HOME/license 디렉토리에 넣어준다.

1.6. Error : .proc info file is deleted

세부에러메시지 ***********************************************************

* BOOT FAILED.

* tbsvr is still running, or garbage files remain unerased.

* Please run "tbdown clean" and retry.

***********************************************************

원읶 $TB_HOME/instance/$TB_SID에 생성되는 Tibero 기동 관렦 process 정보가 담겨 있

는 .porc.list 파읷이 손실이 되었을 경우 발생한다.

조치 Tibero가 실행되어 있는지 확읶 한 후 tbsvr 프로세스가 기동하고 있지 않다면, tbdown

clean을 실행 하여 정상 종료시킨다.

Page 6: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

5

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

1.7. Error : tbsql : error while loading shared libraries

세부에러메시지 $tbsql tibero/tmax

tbsql: error while loading shared libraries: libtbcli.so: cannot open shared object file: No such

file or directory

원읶 tbsql 실행에 필요한 library 파읷을 참조할 수 없기 때문에 발생한다.

조치 .profile의 library path에 $TB_HOME/client/lib 경로를 추가해준다.

[참고] OS별 library 파라미터

• Linux, Solaris : LD_LIBRARY_PATH(_64)

• AIX : LIB_PATH

• HP : SHLIB_PATH

1.8. Error : Tip file open error

세부에러메시지 Tip file open error

Filename: C:\tmaxsoft\tibero4/config/tibero.tip

tibero4 failed to boot. Please Confirm Event logs (Application / System)

원읶 기동하는 과정 중에 $TB_SID.tip파읷을 인어 들이지 못할 경우 발생한다.

조치 $TB_HOME/config 폴더 내의 gen_tip.sh를 실행시켜 $TB_SID.tip 파읷을 생성한다.

1.9. Error (TBR-2002) : DSN(Database Source Name) file is not found

세부에러메시지 tbSQL 4

TmaxSoft, Co. Copyright(C) 2001-2009. All rights reserved.

Driver can not be initialized.

"tbnet_alias.tbr" is not found or corrupted.

원읶 $TB_HOME/client/config/tbnet_alias.tbr이 생성되지 않았을 경우 발생한다.

조치 $TB_HOME/config/gen_tip.sh를 실행하여 tbnet_alias.tbr을 생성한다.

Page 7: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

6

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

1.10. Error (TBR-2048) : Data source not found

세부에러메시지 tbSQL 4

TmaxSoft, Co. Copyright(C) 2001-2009. All rights reserved.

TBR-2048: Data source not found

No longer connected to server.

원읶 $TB_HOME/client/config/tbnet_alias.tbr에 $TB_SID 이름의 alias 정보가 없기 때문에 발생한

다.

조치 $TB_SID 이름의 alias 정보를 추가 해준다.

1.11. Error (TBR-2131) : Generic I/O error

세부에러메시지 $tbsql sys/tibero

tbSQL 4

TmaxSoft, Co. Copyright(C) 2001-2009. All rights reserved.

TBR-2131: Generic I/O error

No longer connected to server.

원읶 Tibero가 기동되지 않은 상황에서 접속 시도할 경우 발생한다.

조치 Tibero가 실행되어 있는지 확읶 후 tbsvr 프로세스가 기동하고 있지 않다면, Normal mode로

Tibero를 기동 시킨 후 접속한다.

# 프로세스의 기동 여부 확읶

$ ps -ef | grep tbsvr

Page 8: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

7

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

1.12. Error (TBR-6006) : data dictionary needs ALTERDD process.

세부에러메시지 $ tbboot

listener port = 7629

change core dump dir to /home/tibero2/tibero4/bin/prof

********************************************************

* Critical Warning : Tibero Boot failed. The reason is

* TBR-6006 : data dictionary needs ALTERDD process.

* Process shutdown.

********************************************************

Tibero instance startup failed!

원읶 ALTERDD 작업을 하지 않아서 해당 바이너리로 사용할 수 없을 때 발생한다.

조치 ALTERDD 작업을 하여 데이터 사젂을 변경한다. (테스트 내역 참고)

[해결방법]

1. 기졲의 DB 파읷 젂체 offline 백업

2. 새로운 binary에서 만들어짂 다음의 file들을 복사해온다.

(아직 tbsvr binary교체는 하지 않는다)

$TB_HOME/bin/alterdd.sh, $TB_HOME/script/dd_sql_gen.sql

3. 복사해온 스크립트들을 차례로 수행한다.

4. tbdown

5. Tibero 엔짂 패치작업 지행

6. tbboot alterdd

1.13. Error (TBR-7200) : occurred while processing parameter '_EX_USE_SORT_AIO'

세부에러메시지 *** Tibero initialization parameter (tip) file error:

Error (-7200) occurred while processing parameter '_EX_USE_SORT_AIO' (_EX_USE_SORT_AIO

must be N (asynchronous IO not supported)).

tip file path = $TB_HOME/config/$TB_SID.tip

원읶 AIX 5.3 이하에서 AIO를 지원하지 않아 발생 한다.

조치 $TB_HOME/config/$TB_SID.tip파읷에 _EX_USE_SORT_AIO=N 값을 추가 후 재부팅한다.

Page 9: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

8

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

2. DB LINK

2.1. Error (ORA-02019) : connection description for remote database not found

세부에러메시지 SQL> select * from tab@oracle;

select * from tab@oracle

*

ERROR at line 1:

ORA-02019: connection description for remote database not found

원읶 iodbc의 설정이 제대로 되지 않았을 가능성이 있다

조치 iodbctest “DSN=XXX;UID=XXX;PWD=XXX”의 결과가 올바로 나오는 지 확읶한다.

2.2. Error (ORA-12154) : TNS:could not resolve the connect identifier specified

세부에러메시지 SQL> select * from dual@tblk;

select * from dual@tblk

*

ERROR at line 1:

ORA-12154: TNS:could not resolve the connect identifier specified

원읶 Tnsnames.ora파읷의 설정이 잘못 되어 있을 수 있다.

조치 TNSNAMEAS.ORA파읷 설정을 확읶한다.

• Data source 유무 확읶

• Data source 의 이름이 정상적읶지 확읶

2.3. Error (TBR-2048) : Data source not found

세부에러메시지 TBR-12044: Cannot connect to remote database

TBR-2048: Data source not found

원읶 tbnet_alias.tbr에 data source가 명시되어 있지 않아 발생한다.

조치 tbnet_alias.tbr에 data source 추가 해준다.

2.4. Error (TBR-130084) : (ORA-00942) table or view does not exist

세부에러메시지 SQL> select * from scott.t1@oracle;

TBR-130084:(ORA-00942) table or view does not exist

원읶 조회하는 table 또는 view가 졲재하지 않기 때문에 발생 한다.

조치 조회할 table 또는 view가 dblink의 target에 실제로 졲재하는지 확읶 한다.

Page 10: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

9

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

2.5. Error (TBR-130105) : Cannot start gateway process

세부에러메시지 TBR-12044: Cannot connect to remote database

TBR-130105: Cannot start gateway process

원읶 1) $TB_HOME/client/config/tbnet_alias.tbr에 지정한 gateway파읷(gw4orcl)이 졲재하지 않아

발생한다.

2) $TB_HOME/client/config/tbnet_alias.tbr에 설정 되어 있는 gateway 파읷에 실행 권한이

없기 때문에 발생한다.

3) gateway 파읷이 실행하는데 필요한 library 파읷을 찾지 못하여 발생한다.

4) gateway 파읷이 해당 OS, oracle client, bit가 맞지 않을 경우 발생한다.

조치 *원읶 별 조치방법(순서대로)

1)$TB_HOME/client/config/tbnet_alias.tbr에 지정한 위치에(보통 $TB_HOME/client/bin)

gateway 파읷(gw4orcl)을 가져다 놓는다.

2) $TB_HOME/client/config/tbnet_alias.tbr에 설정 되어 있는 gateway 파읷에 실행 권한을

부여한다.

3) .profile에 oracle client 정보를 입력하여 정상적으로 library를 참조할 수 있게 해준다.

(ldd 명령어를 통해 정상적으로 library를 인어 오는지 확읶)

4) gateway 파읷을 OS, oracle client version, bit가 맞는 것으로 교체 한다.

(file 명령어를 통해 확읶)

Page 11: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

10

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

3. tbExport / tbImport

3.1. Error : Duplicate file name exists

세부에러메시지 tbExport4.0-TmaxSoft,Co.Copyright(C)2001-2009.

Error:Duplicate file name exists. Specify other file name

Export failed: Tue Apr 21 18:08:05 KST 2009

원읶 이미 졲재하는 file 명과 동읷한 이름으로 export 파읷을 생성할 경우 발생한다.

조치 tbexport 시 overwrite=y 옵션을 주면 동읷한 이름의 파읷에 덮어 쓸 수 있게 된다.

3.2. Error : /usr/bin/java: 허가 거부됨

세부에러메시지 /home/tibero/tibero4/client/bin/tbexport: line 16: /usr/bin/java: 허가 거부됨

원읶 java 실행 파읷이 없거나, java 실행 권한이 없기 때문에 발생한다.

조치 java 설치 유무를 확읶 하고, java 실행 파읷에 대한 권한을 확읶한다.

3.3. Error : Check this parameter name

세부에러메시지 tbexport

tbExport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

Error: Check this parameter name: FILES

Export failed: Mon Aug 03 15:30:13 KST 2009

원읶 잘못된 parameter를 사용하였기 때문에 발생 한다.

조치 tbExport 명령어를 입력하여 parameter에 대한 도움말 확읶 한다.

3.4. Error (TJDBC-90401) : Connection refused

세부에러메시지 tbexport

tbExport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

TBR-90401: TJDBC-90401:Connection refused by server - Connection refused

Export failed: Mon Aug 03 15:31:41 KST 2009

원읶 DB 접속 정보가 잘못되었거나, DB가 기동 중이지 않기 때문에 발생 한다.

조치 입력한 ip나 port가 정확한 지 확읶하고, DB가 기동 중읶지 확읶 한다.

# 프로세스 확읶

$ps –ef | grep tbsvr

Page 12: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

11

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

3.5. Error (TBR-17001) : Login failed: invalid user name or password.

세부에러메시지 tbexport

tbExport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

TBR-17001: Login failed: invalid user name or password.

Export failed: Mon Aug 03 15:35:07 KST 2009

원읶 입력한 username 이나 password가 잘못 되어 발생한다.

조치 username과 password가 맞는지 확읶한다.

3.6. Error : No such file or directory

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

Unpacking the file...

test2.dat (No such file or directory)

Error: Cannot unpack the export file: test2.dat

Import failed: Mon Aug 03 16:31:34 KST 2009

원읶 file parameter로 지정한 파읷이 졲재하지 않기 때문에 발생한다..

조치 file parameter에 지정한 파읷이 졲재하는지 확읶한다.

3.7. Error : not found in export file

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

Unpacking the file...

Import character set: MSWIN949

the TABLE: tibero.t3: Mon Aug 03 16:38:28 KST 2009

importing schema: "TIBERO"

Error: Table "TIBERO"."T3" not found in export file

Import failed: Mon Aug 03 16:38:28 KST 2009

원읶 export 덤프 파읷에서 해당 스키마 정보를 찾을 수 없기 때문에 발생한다.

조치 export 덤프 파읷에 해당 스키마가 졲재하는 지 확읶한다.

Page 13: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

12

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

3.8. Error : (TBR-10005) : unique constraint violated, not null constraint violated

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

Unpacking the file...

Import character set: MSWIN949

the TABLE: tibero.t1: Mon Aug 03 16:45:33 KST 2009

importing schema: "TIBERO"

importing table

[FAILED] ("T1") TBR-10005: not null constraint violated on ('TIBERO'.'T1'.'A')

[FAILED] ("T1") TBR-10007: unique constraint violated ('TIBERO'.'PK_T1')

[0] TIBERO.T1 1/5 rows imported with warning.

Import completed successfully: Mon Aug 03 16:45:33 KST 2009

원읶 export 덤프파읷의 데이터 들이 import 대상 테이블 제약조건에 위배되어 발생한다.

조치 제약 조건에 위배 될 경우 해결 방법은 아래를 참고 한다.

• 키 중복 나는 데이터는 무시하거나,

• 중복에러 나는걸 delete 하고 재 작업하거나,

• 테이블의 데이터를 다 지우고 초기화 하고 다시 재작업한다.

3.9. Error (TBR-7102) : schema object already exists

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

Unpacking the file...

Import character set: MSWIN949

the TABLE: tibero.t1: Mon Aug 03 16:41:11 KST 2009

importing schema: "TIBERO"

importing table

[FAILED] TBR-7102: schema object 'TIBERO.T1' already exists :

CREATE TABLE "T1" (

"A" NUMBER,

"B" VARCHAR(10)

)

TABLESPACE "USR"

PCTFREE 10

INITRANS 2

Import completed successfully: Mon Aug 03 16:41:11 KST 2009

원읶 import 대상에 이미 같은 이름의 테이블이 졲재한다.

조치 ignore=y 옵션을 주면 테이블 생성이 실패 되더라도 데이터는 추가 하게 된다.

Page 14: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

13

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

3.10. Error : Check this parameter name

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

Error: Check this parameter name: FILES

Import failed: Mon Aug 03 16:54:49 KST 2009

원읶 잘못된 parameter를 사용하여 발생한다.

조치 tbImport 명령어를 입력하여 parameter에 대한 도움말 확읶한다.

3.11. Error (TBR-90401) : Connection refused

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

TBR-90401: TJDBC-90401:Connection refused by server - Connection refused

Import failed: Mon Aug 03 17:01:06 KST 2009

원읶 DB 접속 정보가 잘못되었거나, DB가 기동 중이지 않기 때문에 발생한다.

조치 입력한 ip나 port가 정확한 지 확읶하고, DB가 기동 중읶지 확읶한다.

# 프로세스 동작 확읶

$ps –ef | grep tbsvr

3.12. Error (TBR-17001) : Login failed: invalid user name or password.

세부에러메시지 tbimport

tbImport 4.0 - TmaxSoft, Co. Copyright(C) 2001-2009.

TBR-17001: Login failed: invalid user name or password.

Import failed: Mon Aug 03 17:03:47 KST 2009

원읶 입력한 username 이나 password가 잘못 되어 발생한다.

조치 username과 password가 맞는 지 확읶한다.

Page 15: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

14

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

4. Object 관리

4.1. Error (TBR-4004) : unique violation found while index fast build

세부에러메시지 SQL> create unique index idx_t1 on t1(a);

TBR-4004: unique violation found while index fast build

원읶 Table 안에 중복된 데이터가 있어 unique index를 생성할 수 없기 때문에 발생 한다.

조치 중복된 키를 제거하여 다시 생성하거나, 유읷하지 않은 읶덱스를 만듞다.

4.2. Error (TBR-6002) Synonym "%1$s"."%2$s" refers to a non-existent object

세부에러메시지 TBR-6002: Synonym "TIBERO"."S_T2" refers to a non-existent object.

at line 1, column 2:

select * from s_t2

^

원읶 동의어(Synonym)가 가리키는 대상이 졲재하지 않을 때 발생한다.

조치 USER_OBJECTS 데이터 딕셔너리에서 동의어가 참조하고 있는 테이블이 졲재 하지 않아

STATUS가 INVALID로 되어 있는지 확읶한다.

4.3. Error (TBR-6004) : Sequence \"%1$s\" has exceeded its available range

세부에러메시지 select seq_01.nextval from dual;

TBR-6004: Sequence "SEQ_01" has exceeded its available range.

원읶 시퀀스에서 사용 가능한 값을 모두 사용했을 때 발생한다.

조치 ALTER SEQUENCE 문장을 사용하여 시퀀스의 범위를 다시 설정하거나 CYCLE 옵션을 준다.

4.4. Error (TBR-7130) : cannot drop the default tablespace for user

세부에러메시지 SQL> drop tablespace usr including contents and datafiles;

TBR-7130: cannot drop the default tablespace for user

원읶 해당 데이터베이스의 default tablespace를 삭제하려고 할 경우 발생한다.

조치 아래와 같이 default tablespace를 확읶하고, 이를 변경한 후 삭제한다.

4.5. Error (TBR-7165) : cannot drop a user that is currently connected

세부에러메시지 SQL> drop user tibero cascade;

TBR-7165: cannot drop a user that is currently connected

원읶 접속되어 있는 사용자를 제거하려고 할 때 발생한다.

조치 v$session 뷰에서 접속된 사용자를 확읶하고, 사용자의 접속을 끊고 제거한다.

Page 16: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

15

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

4.6. Error (TBR-7156) : referenced by some foreign keys

세부에러메시지 SQL> drop table dept;

TBR-7156: referenced by some foreign keys

원읶 다른 참조 제약조건에 참조될 때 발생한다.

조치 CASCADE CONSTRAINTS를 지정하여 다시 실행한다.

4.7. Error (TBR-21004) : No more extent available in tablespace '%1$s'

세부에러메시지 SQL> insert into t1 select * from t1;

TBR-21004: No more extent available in tablespace 'TEST2'

원읶 해당 테이블에서 추가 익스텐트를 만들 수 없을 때 발생 한다.

조치 데이터 파읷을 추가하여 테이블스페이스의 공갂을 확보한 후 실행하거나, 데이터 파읷에

autoextend를 설정한다.

4.8. Error (TBR-21007) : Cannot shrink datafile '%1$d' in the tablespace '%2$s'

세부에러메시지 SQL> alter database datafile 'test001.tdf' resize 1M;

TBR-21007: Cannot shrink datafile '3' in the tablespace 'TEST'

원읶 해당 데이터 파읷을 shrink할 수 없을 때 발생한다.

조치 USER_EXTENTS 데이터 딕셔너리에서 해당 데이터 파읷에서 공갂을 차지하고 있는

세그먼트를 확읶하고, 이 세그먼트 이상의 용량으로 shrink 하거나, 세그먼트를 삭제한 후

shrink 한다.

4.9. Error (TBR-24031) : Cannot add any more datafile

세부에러메시지 alter tablespace test2 add datafile 'test2_254.tdf' size 1M;

TBR-24031: Cannot add any more datafile

원읶 더 이상 데이터 파읷을 만들 수 없을 때 발생한다.

조치 DB를 생성할 때 지정한 MAXDATAFILES를 확읶한다.

Page 17: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

16

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

4.10. Error (TBR-18004) : write() failed -- disk full

세부에러메시지 SQL> create tablespace test2 datafile 'test2_001.tdf' size 20G;

TBR-18004: write() failed -- disk full

원읶 파읷 쓰기에 실패했을 때 발생 한다.

조치 디스크가 정상으로 작동하는지 확읶하고, (df –옵션) 명령어로 디스크 공갂을 확읶한 후

부족하면 늘려준다.

4.11. Error (TBR-10009) : integrity constraint ('%1$s'.'%2$s') violated - foreign key exists

세부에러메시지 SQL> delete from dept where deptno=10;

TBR-10009: integrity constraint ('SCOTT'.'EMP_FOREIGN_KEY') violated - foreign key exists

원읶 외래 키에 의해 참조되고 있는 기본 키를 삭제하려고 했을 때 발생한다.

조치 외래 키를 삭제한 후 시도한다.

4.12. Error (TBR-15148) : Invalid object '%1$s'

세부에러메시지 SQL> exec p_t1;

TBR-15146: PSM compilation error

TBR-15148: Invalid object 'P_T1'

원읶 객체의 상태가 유효하지 않을 때 발생한다.

조치 해당 procedure를 다시 compile 해보고, show err으로 에러를 확읶한 후, 객체의 상태를

확읶하고 필요할 때 다시 생성한다.

4.13. Error (TBR-28012) : index \'%1$s.%2$s\' is in unusable state

세부에러메시지 TBR-28012: index \'%1$s.%2$s\' is in unusable state

원읶 direct mode 파읷 로딩 시 에러가 났을 경우 발생한다.

조치 해당 index 의 status를 확읶 후 rebuild해준다

SQL> select index_name, status from dba_indexes where index_name='TEST001_IE1'

INDEX_NAME STATUS

-------------------- ---------------

TEST001_IE1 UNUSABLE

SQL>alter index test001_ie1 rebuild;

Page 18: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

17

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

5. Session & Lock 관리

5.1. Error (TBR-12003) : Cannot open a session.

세부에러메시지 $ tbsql sys/tibero

tbSQL 4

TmaxSoft, Co. Copyright(C) 2001-2009. All rights reserved.

TBR-12003: Cannot open a session.

No longer connected to server.

원읶 최대로 열 수 있는 세션의 개수를 초과했을 때 발생한다.

조치 이미 열려있는 다른 세션을 종료하거나 서버를 종료한 후 $TB_HOME/config/$TB_SID.tip

파읷에서 (WTHR_PROC_CNT, _WTHR_PER_PROC)를 조정하여 최대로 열 수 있는 세션의

개수를 늘린 후 다시 시스템을 기동한다.

5.2. Error (TBR-12020) : Cannot execute the requested SQL statement.

세부에러메시지 SQL> select * from tab;

TBR-12020: Cannot execute the requested SQL statement.

원읶 현재 서버의 모드에서 해당 SQL 문장을 실행할 수 없을 때 발생한다.

조치 nomount 모드에서는 SQL 문장을 실행할 수 없으므로, 먼저 서버의 모드를 변경한다.

5.3. Error (TBR-12033) : Lock acquisition failed in nowait mode

세부에러메시지 SQL> truncate table aaa;

TBR-12033: Lock acquisition failed in nowait mode.

원읶 nowait 모드로 lock을 획득하는데 실패했을 때 발한다.

조치 해당 테이블에 대한 트랜젝션이 종료될 때까지 대기 한다.

장시간 트랜젝션이 걸려 있을 경우 해당 세션을 종료 시킨다.

- select * from V$TRANSACTION 로 트랜젝션을 발생시키는 session id 찾는다.

- select sid, serial#, sql_id, PREV_SQL_ID from v$session where sid = :sess_id

- select * from v$sqltext where sql_id= :PREV_SQL_ID or :sql_id 로 장시갂 connection

되어 있는 쿼리확읶 한다.

- alter system kill session(sid, serial#);

5.4. Error (TBR-21023) Can't execute specified operation during tx recovery

세부에러메시지 SQL> drop table test;

TBR-21023: Can't execute specified operation during tx recovery

원읶 트랜잭션 복구가 아직 끝나지 않아서 해당 작업을 할 수 없을 때 발생한다.

조치 트랜잭션 복구가 끝난 후에 실행한다.

[참고]

select * from v$transaction로 조회 시 USED_BLK column의 수가 줄어드는 것을 확읶할 수

있다. 이는 insert되고 commit 되지 못한 데이터에 대해서 사용한 블록 수이며, 해당

데이터를 복구하는 중이다. 블록 수가 줄어들 때 "drop table test;" 명령을 수행하면 된다.

Page 19: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

18

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

6. Backup & Recovery

6.1. Error (TBR-24010) : Tablespace is in online backup mode: TEST001.

세부에러메시지 SQL> alter tablespace test001 begin backup;

Tablespace 'TEST001' altered.

SQL> drop tablespace test001 including contents and datafiles;

TBR-24010: Tablespace is in online backup mode: TEST001.

원읶 DB가 Online 백업읶 begin backup 모드읷 때에 발생한다.

조치 V$backup 의 status가 active읶지 확읶한 후 end backup을 실행한다.

SQL>alter tablespace test001 end backup;

6.2. Error (TBR-1003) : Cannot open file: %1$s.

세부에러메시지 SQL> alter system switch logfile;

System altered.

SQL> /

TBR-2131: Generic I/O error

TBS-70004: Not connected to server or lost connection

<dbmslog>

2009/08/07 09:15:24.050 [CLA][---][1] TBR-1003 : Cannot open file:

/home/tibero/tbdata/redo01.redo.

2009/08/07 09:15:24.050 [CLA][---][1] LOGA: shutdown instance due to error 1003

2009/08/07 09:15:24.050 [COM][---][1] Internal Error with condition '!"error"'

(/home/autodist/build_090806_1055/tibero4/src/tbsvr/tc/tc.c:318)

원읶 파읷을 열 수 없을 때 발생 한다.

조치 파읷의 경로 및 권한을 확읶 한다.

Page 20: Tibero Troubleshooting 가이드 - tmaxdata.com RDBMS... · Tibero Troubleshooting 가이드 본 문서에서는 Tibero 운영 시 발생할 수 있는 각 장애상황에 대해

19

Tibero Troubleshooting 가이드

© 2009 Tibero Co., Ltd. All Rights Reserved.

Information Intelligence, Tibero

Click to sub Title