http://iotn.co.kr 연락처: gilho.kr@gmail.com [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / 日本政府は日本軍の性的奴隷?牲者に謝罪すべき. ]

사용자

ID:
PW:

INDEX
01.게시판
게시판 [71]
02.File Book
File 자료실 [95]
Site Link [17]
개인폴더 [201]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [25]
MySQL [43]
DB2 [79]
ORACLE [3003]
PSQL [134]
기타정보 [155]
운영체제 [603]
04.Q/A Book
Q/A [53]
05.방명록
방명록 [54]
레벨업 [37]
구인/구직 [2]

기념일
Search
LINK
+ 가족 Hompy
+ DNSEver
IOTN :: Field Book :: ORACLE

 회원가입

ORA-13249: SRID 5186 does not exist in MDSYS.CS_SRS table
최길호 [LIST]   2022-06-13 20:16:24, 조회 : 401

-- ORA-13249: SRID 5186 does not exist in MDSYS.CS_SRS table에러 관련
http://iotn.co.kr/power/zboard.php?id=9_1_bbs&no=3078
-- create user MDSYS / INSERT INTO MDSYS.CS_SRS 지리정보체계(GIS)
http://iotn.co.kr/power/zboard.php?id=9_1_bbs&no=3145
--ORA-13203: failed to read USER_SDO_GEOM_METADATA view
http://iotn.co.kr/power/zboard.php?id=9_1_bbs&no=3079


CREATE INDEX "SWL_SPEW_PS_I" ON "SWL_SPEW_PS" ("G2_SPATIAL") INDEXTYPE IS MDSYS.SPATIAL_INDEX;

ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: SRID 5186 does not exist in MDSYS.CS_SRS table
ORA-29400: data cartridge error
Error - OCI_NODATA
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
or
IMP-00003: ORACLE error 29855 encountered
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: [mdidxrbd]
ORA-13249: Error in Spatial index: index build failed
ORA-13249: Error in spatial index: [mdrcrtxfergm]
ORA-13249: Error in spatial index: [mdpridxtxfergm]
ORA-13200: internal error [ROWID:AAANXiAAHAAABRkAAA] in spatial indexing.
ORA-13206: internal error [] while creating the spatial index
ORA-13365: layer SRID does not match geometry SRID
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I",

select G2_SPATIAL from SWL_SPEW_PS where rownum < 2;
G2_SPATIAL(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
-----------------------------------------------------------------------------------
SDO_GEOMETRY(2001, 5186, SDO_POINT_TYPE(184452.183, 297062.689, NULL), NULL, NULL)
                   ----

조치 : https://nicebury.tistory.com/134
5186 찾아서 insert

--중부원점_2010(GRS80) EPSG:5186 (False_Easting: 200000.0 , False_Northing: 600000.0)
INSERT INTO MDSYS.CS_SRS(CS_NAME, SRID, AUTH_SRID, AUTH_NAME, WKTEXT)
VALUES ('Korea_2000_Korea_Central_Belt_2010',5186,5186,null,'PROJCS["Korea 2000 Korea Central Belt 2010",GEOGCS["GCS_Korea_2000",DATUM["D_Korea_2000",SPHEROID["GRS 1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Decimal Degree",0.0174532925199433]],PROJECTION["Transverse Mercator"],PARAMETER["False_Easting",200000.0],PARAMETER["False_Northing",600000.0],PARAMETER["Central_Meridian",127.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",38.0],UNIT["Meter",1.0]]');

SQL> alter index "SWL_SPEW_PS_I" rebuild;

Index altered.

SQL>

MDSYS.CS_SRS 데이터 먼저 넣주면 에러 없겠다.


create table system.CS_SRS2 as
select CS_NAME, SRID, AUTH_SRID, AUTH_NAME, WKTEXT from MDSYS.CS_SRS

exp / imp

merge into mdsys.SDO_CS_SRS I
using (select CS_NAME, SRID, AUTH_SRID, AUTH_NAME, WKTEXT from system.CS_SRS2 ) S
   on ( I.SRID = S.SRID )
  when not matched then
  insert (I.CS_NAME, I.SRID, I.AUTH_SRID, I.AUTH_NAME, I.WKTEXT)
  values (S.CS_NAME, S.SRID, S.AUTH_SRID, S.AUTH_NAME, S.WKTEXT);
-- OR
insert into mdsys.SDO_CS_SRS (CS_NAME, SRID, AUTH_SRID, AUTH_NAME, WKTEXT)
(select CS_NAME, SRID, AUTH_SRID, AUTH_NAME, WKTEXT from system.CS_SRS2
where srid in (
select srid from system.CS_SRS2
minus
select srid from MDSYS.SDO_CS_SRS )
);


set pages 200
ORA-29400: data cartridge error
ORA-1031: insufficient privileges [ 에러 발생조치 ] Importing a Spatial Index Fails with ORA-29855, ORA-13249, ORA-01031 (Doc ID 340521.1)
select 'grant CREATE TABLE, CREATE SEQUENCE to '||username||';' from dba_users order by created;

select 'alter index '||owner||'.'||index_name||' rebuild;' from dba_indexes where DOMIDX_OPSTATUS='FAILED';

set lines 200
set pages 200
col the_ddl for a200
set long 1000000
SELECT dbms_metadata.get_ddl( 'INDEX', 'SPA_IDX','SCOTT' ) FROM dual ;


참고용

delete MDSYS.CS_SRS where srid=5186; -- 지웠다는 메세지 보이지만 안지워진다.
delete MDSYS.SDO_CS_SRS where srid=5186;
select rowid,srid from system.CS_SRS2 where srid=5186;
delete system.CS_SRS2 where rowid='AAAYVyAACAADBdoAAA';

3.235.60.197


  LIST

제목 작성자 작성일 조회
Admin  [ 공지 ] 😃 서비스 시간 08:00 ~ 23:00 / 안되면 나중에 다시 방문 해주세요~.😅    최길호 2008/11/26 113
Admin  [ 필요 하신게 있으시면 쪽지 또는 gilho.kr@gmail.com 메일 주세요~ ]    최길호 2006/07/14 135
Admin  dgmgrl 운영, db11st h/w 교체 시나리오    최길호 2023/12/01 5
Admin  DGMGRL> show configuration; Error: ORA-16810: multiple errors or warnings detected for the database    최길호 2023/12/01 2
Admin  11gR2 ( 11.2.0.2 11.2.0.3 11.2.0.4 ) install download url    최길호 2023/11/30 6
Admin  /arch filesystem 100% full    최길호 2023/11/23 8
Admin  joez_shm_open_object failed    최길호 2023/11/17 4
Admin  Instance Critical Process (pid: 5, ospid: 131883, IPC0) died unexpectedly    최길호 2023/11/11 7
Admin  연속된 seq 값중 끊어진 값 확인 / with , connect by , minus    최길호 2023/11/10 8
Admin  WHENEVER SQLERROR EXIT FAILURE; / 에러 발생시 다시 시도 / sql retry    최길호 2023/11/09 13
Admin  DBV-00201: Block, DBA 20972580, marked corrupt for invalid redo application / ORA-01578 ORA-26040    최길호 2023/11/08 7
Admin  ORA-01124: cannot recover data file 1 - file is in use or recovery    최길호 2023/11/08 4
Troubleshoot  ORA-16047: DGID mismatch between destination setting and target database    최길호 2023/11/06 15

    목록보기   다음페이지 1 [2][3][4][5][6][7][8][9][10]..[151]   [다음 10개]
       

Copyright 1999-2023 Zeroboard / skin by 최길호(gilho.kr@gmail.com)
최근 댓글
2021/06/30
윈도우 서버에서 sqlplus .... ORA-...
by 최길호
2021/06/30
ORA-28500: connection from O...
by 최길호
2019/05/02
pkg 확인 SELECT * FROM AL...
by 최길호
최근 게시물
12/01
[ORACLE]
dgmgrl 운영, db11st h/w 교체 시나리....
by 최길호
12/01
[ORACLE]
DGMGRL> show configuration;....
by 최길호
11/23
[운영체제]
arch filesystem 100% full 예방 /....
by 최길호