2016-02-07 27 views
1

我無法在Oracle Database 12c中初始化點雲。無法初始化點雲 - ORA-13249:創建dml觸發器時出錯

試圖執行以下命令:

CREATE TABLE point_clouds(
id NUMBER, 
capture_ts TIMESTAMP, 
point_cloud SDO_PC 
); 

CREATE TABLE pc_blocks AS select * from mdsys.sdo_pc_blk_table; 

INSERT INTO point_clouds (id, point_cloud) VALUES (
1001, 
sdo_pc_pkg.init(
    basetable => 'point_clouds', 
    basecol => 'point_cloud', 
    blktable => 'pc_blocks', 
    ptn_params => 'blk_capacity=10000', 
    pc_extent => mdsys.sdo_geometry(
    2003, 
    8307, 
    null, 
    mdsys.sdo_elem_info_array(1, 1003, 3), 
    mdsys.sdo_ordinate_array(289020.90, 4320942.61, 290106.02, 4323641.57) 
), 
    pc_tol => 0.05, 
    pc_tot_dimensions => 3 
) 
); 

然而,上了車INSERT此錯誤:

Error report: 
SQL Error: ORA-13249: Error creating dml trigger 
ORA-06512: at "MDSYS.SDO_PC_PKG", line 96 
ORA-06512: at line 1 
13249. 00000 - "%s" 
*Cause: An internal error was encountered in the extensible spatial index 
     component. The text of the message is obtained from some 
     other server component. 
*Action: Contact Oracle Support Services with the exact error text. 

什麼是錯的INSERT語句?

回答

0

我被困在這個很長時間了,最​​後通過使用MDSYS.sdo_pc而不是sdo_pc創建point_clouds表來解決它。

CREATE TABLE point_clouds(
    id NUMBER, 
    capture_ts TIMESTAMP, 
    point_cloud MDSYS.SDO_PC 
    );