Copy topologies from 10 g to the results of the 11 g by empty string error

Hi people,

I know it's a long shot, but anyone happen to know what is on line 189 of the MDSYS. SDO_TOPO_MAP? :-)

We are copying valid topologies 10.2.0.4 to 11.2.0.2 using exp/imp, following the standard procedure and also add toid_novalidate to the need:

IMP < user > / < pw > @ < database > FILE = < file > .dmp TOID_NOVALIDATE = MDSYS. SDO_GEOMETRY, MDSYS. SDO_ELEM_INFO_ARRAY, MDSYS. SDO_ORDINATE_ARRAY, MDSYS. Index SDO_TOPO_GEOMETRY = ignore tables N = Y = (< list table >)

However, when the topology 11.2.0.2 everything seems to be a success, until we run sdo_topo_map.validate_topology:

ORA-29532: Java call terminated by eception Java exception: java.lang.NumberFormatException: empty string
ORA-06512: at the 'MDSYS. SDO_TOPO_MAP', line 189
ORA-06512: at line 4 level

No idea what we are missing here? Thanks in advance for any advice,
Matt

It is a combination of a JDBC bug and a corruption of data due to the bug in 10.2.
The JDBC bug is fixed at 11.2, so data are not 'corrupt' according to the JDBC driver fixed.

So, the data on the disk must be altered to make it compatible with the 11.2 JDBC driver.
You must correct the sdo_geometry columns in the tables of topology using this procedure and it will work fine after that.

create or replace function id_geom (sdo_geometry g)
deterministic sdo_geometry back as
G1 sdo_geometry;
IDX number;
Sdo_ordinate_array ADR;
x number;
number of y;
number of z;
point_t SDO_POINT;
Start
If (g.sdo_point is not NULL) then
x: = NULL; y: = NULL; z: = NULL;
If (g.sdo_point.x is not NULL) then
x: = g.sdo_point.x * 10;
x: = x / 10.
end if;
If (g.sdo_point.y is not NULL) then
y: = g.sdo_point.y * 10;
y: = y / 10;
end if;
If (g.sdo_point.z is not NULL) then
z: = g.sdo_point.z * 10;
z: = z / 10;
end if;
point_t: = SDO_POINT_TYPE (x, y, z);
on the other
point_t: = NULL;
end if;

If (g.sdo_ordinates is not NULL) then
ADR: = sdo_ordinate_array();
ords.extend (g.sdo_ordinates. (Count);
for idx in 1... loop ords. Count
x: = g.sdo_ordinates (idx);
x: = (x * 10.0);
x: = x / 10.0;
ords (idx): = x;

end loop;
G1: = sdo_geometry (g.sdo_gtype, g.sdo_srid, point_t, g.sdo_elem_info, ords);
on the other
G1: = sdo_geometry (g.sdo_gtype, g.sdo_srid, point_t, g.sdo_elem_info, NULL);
end if;

return g1;
end;
/

so that you can SQL like this to fix the sdo_geometry columns in all the tables in the topology:
Update test_topology_edge$ a set a.geometry = id_goem (geometry);

Make sure that the Spatial index is deleted before doing this operation.

Siva

Tags: Database

Similar Questions

  • Composite planning form, copy data from one tab to the other?

    This is something I've heard of someone who did but have not actually seen. The requirement is to copy data from an existing entity to a new entity as a means of values seedlings early in the budget cycle. I was thinking about a form of 'source' and a form of 'target' within a composite shape. A calc would make a copy. After copying the Scheduler can manually adjust values, or type values in the accounts that the source had no data.

    If someone did please let me know how you did and what looked like the calc.

    Thank you!

    FA

    Hello

    Yes, this can be done in several ways. The calc script would be similar to what is mentioned above. But in regards to the copy, you can also create a menu on the source form set a rule of company on the menu and start the copy that also offer users the ability to choose several invited outside of the entity if necessary.

    Thank you

  • Copy data from one table to the new table

    Hello

    I copy data from columns of a table to another table and my query is
    INSERT INTO TestTable (empno, empName, deptno)
    SELECT empno, empname, deptno
    WCP

    and it works fine but I want to insert a data column in testTable based on emp.deptno
    as if emp.deptno = 10 it will add 1 to the testtable.class column,
    If emp.deptno = 20 it will add 2-column testtable.class,
    If deptno = 30 it will add 3 to the testtable.class column,


    TestTable structure is
    EMPNO NUMBER (20)
    ENAME VARCHAR2 (50)
    DEPTNO NUMBER (20)
    CLASS NUMBER (20)

    Can someone please help me write this procedure.
    Thank you

    You can use a case statement as

    INSERT INTO TestTable (empno, empName,deptno,class_column )
    SELECT empno, empname,deptno, case when emp.deptno=10  then 1
                                       when emp.deptno=20  then 2
                                       when emp.deptno=30  then 3
                                  end
    FROM emp
    

    See you soon
    Katia

  • Copy columns from one Table to the other with PL/SQL in Apex

    So my goal long-term is to throw this PL/SQL statement in a trial DMBS_SCHEDULER Apex 4.1 to create historical snapshots of the data a week but I'm hooked on this code:

    declare
    V_DEKIT_ID varchar (255);
    V_NT varchar (255);
    Number to resume;
    Date of V_DDATE;

    Start
    for DEKIT_ID in (select * from DKT_HIST)

    loop

    Select DEKIT. DEKIT_ID in V_DEKIT_ID of DEKIT;
    Select DEKIT. NT in DEKIT V_NT;
    Select DEKIT. QUANTITY back of DEKIT;
    Select CURRENT_DATE in double V_DDATE;

    insert into DKT_HIST (DEKIT_ID, NT, QUANTITY, DDATE)
    values (V_DEKIT_ID, V_NT, V_QUANTITY, V_DDATE);
    end loop;

    end;

    I enter this code in the SQL prompt in the SQL workshop and it is said that she is treated, but when I look at the destination table (DKT_HIST), there is no data. Any help would be appreciated.  In this code I want to copy the three columns of the DEKIT table as well as the current date and copy them to DKT_HIST for each row in the table DEKIT.

    Thank you

    -Steve

    The reason why your code did nothing is probably because your loop, using the history table. And since there no data in the historical table first, there is nothing to loop.

    BUT!

    Good code is the task with the least possible effort. Which in your case should result in a code similar to this:

    begin
       insert into DKT_HIST (DEKIT_ID,NT,QUANTITY,DDATE)
       select DEKIT_ID,NT,QUANTITY, trunc(sysdate)
       from DEKIT;
    end;
    
  • How can I copy files from one disk to the other?

    I want to copy all my mp3 files from my ITunes music folder on an external hard drive.  I'm not interested in records, only the mp3 of themselves.  I got here in 'terminal' that I can execute a command?  Please notify.  Thank you.

    Just use the search function in the Finder.

    Select the folder enclosing and type MP3 in the search.

    If you have not changed the search preferences, you will need to click on the name of the folder next to "this Mac.

    It should list all the MP3 files.  Select all and drag to the external hard drive.

  • Windows Explorer crashes when you try to copy files (from dvd - rom on the hard drive)

    This is the error I get, copied from the technical details of UAC.

    I tried to create the new account and sfc/scannow
    sfc/scannow pointed out problems and errors, but is unable to repair.
    The Explorer.EXE version 6.1.7600.16450 program ceased to interact with Windows and was closed. To see if there is more information about the problem, check the history of the problem in the control panel of the center of the Action.
    Process ID: 98c
    Start time: 01ced605f3f95e5c
    Time of termination: 60000
    Application path: C:\Windows\Explorer.EXE
    Report ID:
    Is that the next step of repair window?
    Thanks in advance

    One of the recurring errors in Event Viewer was the 'Source' following 'KScsiPrt ':

    The description for event ID 9 source KScsiPrt is not found. Either the component that triggers this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.


    If the event is on another computer, the display information had to be saved with the event.


    The following information has been included in the event:


    \Device\Scsi\KScsiPrt1

    Which may indicate a problem with the SCSI KernSafe controller.

    Can you try disabling the controller SCSI KernSafe in Manager devices as suggested hereand see if that makes a difference.

    You may need to restart the computer after you disable the driver.

  • Lumetri color - copy settings from Local music to the Master Clip

    After that I put in place a glance in the 'local' clip in lumetri, how to copy this look at the master so that it applies to all the other clips in the same shooting? I tried to create a "Preset" and he asked the master, but for some reason any it will apply the preset to the local item?

    I thought about it!  You will also need to open the Panel "effects" in addition to the Panel "Lumetri color".  Then select "Lumetri color" in the Panel "Effects Options", copy (CMD + C).  Select new clip in the timeline, paste.

  • How can I copy information from one image to the other GPS?

    I bought a Canon S100 specifically for its GPs and film.  These last vacation, I used the S100 and a Nikon D300.  In cases where the images were taken with both cameras roughly the same place, I would like to copy GPS information to CR2 S100 files to the D300 NEF files.  Does anyone know how to do this or if there is no plugins that will do it?

    And the answer is!   LIGHTROOM Beta 4!  It does everything I need.  Just announced today!

  • How can I copy light from one window to the other in a photo?

    I'm looking at printing an image I shot the winter as our map of Christmas this year. There are three windows in a medieval building, each consisting of several components in the lead and the one on the far left is turned on. My partner would in the middle one turn on as well. Is this doable without committing a lot of time to the project or do I need to book the snow again and organise a reshoot?tempest anderson lo res_edited-1.jpg

    Here I used the Polygonal Lasso to select half top of the Panel to the right of the lighted window and copy and paste this into a new layer.

    Then reproduces this layer, aligned vertically on two layers, linked to them and moved them on top of the dark window.

    You can then merge together and duplicate the fusion 3 times the value to fill the other 3 panels.

    Note: to select the start window you can also use the selection brush: use a hard square brush, the size of the window, click on the upper part of the window and holding shift button, drag the mouse down to select the rest (shift requires the mouse to move it to the bottom).

  • Copy text from Vmware (WinXP) for Mac?

    I am running WinXP in VMWare Fusion on a MacBook Pro.  I'm the unab to copy text from Windows applications in the Mail from Mac program.

    Can someone tell how can I activate it?

    Thank you

    Geoff

    If you have installed VMware Tools and they are running properly (icon of blue squares in the system tray), and then try to connect and logging in XP (not OS X), if it does not, choose Virtual Machine > install VMware Tools and after the home screen, select the option fix.

  • I'll copy Mozilla firefox from one computer to the other. I don't want to download from the internet, I caught the virus of "Babylon" in this way.

    (1) you really have to make it easier to contact support. Get rid of password requirements!
    (2) I would copy safely Firefox from one computer to the other. I don't want to download from the internet. Really, we love and use firefox. I had to remove firefox because it came with the virus of Babylon.

    If you have been Babylon when you installed Firefox you may have installed it from an authoritative source (the only official place and secure to download Firefox from www.getfirefox.comEast). Please, never download Firefox from anywhere else.

    So, for your computers, be sure to download Firefox from www.getfirefox.comand you download the version official, convenient and safe.

    If you get Babylon on your computer, you can remove it easily without having to remove Firefox by reading How to remove the toolbar of Babylon, home page and search engine (Please note that Babylon is not affiliated with Firefox and we actively seek to solve these problems).

  • How can I copy bookmarks from another PC without using the restoration is not to lose the curtrent PC each

    I want to copy favorites from another PC, do not use the restore function inorder does not remove bookmarks on current PC

    Export to a HTML file, and then import the HTML file to the other computer, which will add bookmarks to existing ones.

  • What is the best format to select then copy music from a cd to itunes

    I copy my cd collection into iTunes. What is the best format that should be selected for the best quality of music? Thank you.

    "Better format" and "Better music" (sound quality) are not the same question, for audio encoding.  The best sound comes from a "Lossless" format  The encoding using the Apple Lossless Encoder encoder in iTunes provides without loss of sound quality, compared to the songs on CD (which are in AIFF format).  You can also use the AIFF encoder, but the files of the song will be a little bit bigger compared to Apple Lossless.  However, TWO Apple Lossless AIFF formats and create larger files of the song, so they take more space on your computer drive (several times over).

    iTunes Store sells songs in format AAC , compression ratio 256 kbps.  This format may provide the best combination of efficiency (small size) and the sound quality.  There is a minor loss in sound quality due to compression, but I can't tell the difference between lossless and AAC at 256 Kbps, format with my headphones and speakers (and ears).  To use this format when you import your CD, select the AAC Encoder value encoder iTunes more.

    NOTE: Import encoding settings run the button import the settings of iTunes preferences General pane.

  • How to copy pictures from the laptop to an ipad

    How to copy pictures from the laptop to an ipad

    Hello

    Try the methods suggested in the article below and check after each method:

    iOS and iPod: syncing photos via iTunes: http://support.apple.com/kb/HT4236

    If the problem persists, I suggest you to contact the Support of Apple IPad team.

    http://www.Apple.com/support/iPad/contact/ 

     

    Kind regards.

  • copy files from my C drive to my external drive error E 0x800718ac3: the volume is dirty?

    Original title: can anyone help with this problem error 0x800718ac3: the volume is dirty?

    I am trying to copy files from my C drive to my external drive E using the operation drag and drop method. That's what happens "error 0x800718ac3: the volume is dirty" can you help me?

    Hello

    1. What is the full error message?

    2. what operating system is installed on the computer?

    3 did you changes to the computer before the show?

    4. What are the names of files and the exact location of the files you are trying to copy?

    Method 1:   Format the external drive of E and see if that helps.

    Reference:

    Formatting disks and drives: frequently asked questions:

    http://Windows.Microsoft.com/en-us/Windows7/formatting-disks-and-drives-frequently-asked-questions

    Note: Format deletes the data on the disk. Be sure to back up data before the format.

      

    Method 2: You can check the external E drive to find errors.

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost

    Reference:

    Check a drive for errors:

     http://Windows.Microsoft.com/en-us/Windows7/check-a-drive-for-errors

Maybe you are looking for