Exporting non spatial data

Hi,
We are migrating our geodatabase from oracle 9i to 11g R2, in our current 9i DB we have same schema for spatial and non spatial data,we want to seperate the spatial and non spatial data during migration to 11gR2 DB.Is there any way through which we can extract only non spatial data and can import it to new schema without loosing any relationships/data.
Regards,

Hi
Do you wants to separate the spatial data and non spatial data into two different table spaces or two different schema ?. if you're trying to move non spatial data to a different schema then definitely you need to do some changes . at least create some synonyms with appropriate grants to work normal.
if you wants to move it to a different table space then it's easy .
*1. Create the tables definition for non spatial data related table using new tablespace*
*2. grant the realted user the quota on the new tablespace*
*3. start the import using ignore=Y*
Cheers
Kanchana.

Similar Messages

  • Retrieving spatial and non spatial data in one query

    Hello. I am having slight difficulties using JDBC to retrieve both spatial and non spatial data in the same query. The following is code from a sample program of mine that retrives spatial data from spatial tables.
    (In spatialquery geom is a geometry column and city is simply the name of the city):
    try
    Geometry geom = null;
    String database = "jdbc:oracle:thin:@" + m_host + ":" + m_port + ":" + m_sid;
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = (OracleConnection)DriverManager.getConnection(database, sUsername, sPassword);
    GeometryAdapter sdoAdapter =
    OraSpatialManager.getGeometryAdapter("SDO", "8.1.7", STRUCT.class, null, null, con);
    String spatialquery = "SELECT a1.geom, a1.city \n" +
    "FROM cities a1";
    Statement stmt = con.createStatement();
    OracleResultSet rs = (OracleResultSet) stmt.executeQuery(spatialquery);
    int i = 0;
    int noOfFeatures = 2;
    while (rs.next())
    for(i = 1; i <= noOfFeatures; i++)
    STRUCT dbObject = (STRUCT)rs.getObject(i);
    try
    geom = sdoAdapter.importGeometry(dbObject);
    catch(GeometryInputTypeNotSupportedException e)
    System.out.println("Input Type not supported");
    catch(InvalidGeometryException e)
    System.out.println("Invalid geometry");
    System.out.println(geom);
    }//end while loop
    This retrieves the sptial data fine, however when I attempt to retreive the non-spatial data I keep getting a "ClassCastException" error. I understand it is something to do with "STRUCT dbObject = (STRUCT)rs.getObject(i);" line. Can anyone tell me how to retrieve both spatial and non-spatial data in the one query using JDBC. I have tried nearly everything at this stage. Cheers joe

    Theresa A Radke
    Posts: 20
    OTN Member Since: Jul, 2001
    retrieving spatial and non spatial in same query. May 23, 2003 12:02 AM
    retrieving spatial and non spatial in same query.

  • Where is Non-Spatial data provider

    Hi!
    I study the MapViewer and go over examples in Oracle Maps Tutorial. All examples work fine except "Dynamic XML BI data and choropleth map", "Dynamic XML BI data and Pie Charts" and "Dynamic XML BI data and dynamic theme".
    I think at least second one (Dynamic XML BI data and Pie Charts) must show some sort of pie chars over the states polygons. I can only see the map with states.
    Is there something as "Non-Spatial data provider" that should be installed manually ?
    If not, where to start debugging?
    Regards,
    Sašo
    Edited by: user594252 on 10.2.2011 15:07

    I have ns_data_provider element uncommented in mapViewerConfig.xml :
    <ns_data_provider
    id="defaultNSDP"
    class="oracle.sdovis.NSDataProviderDefault"
    />
    On the other side, I can see pies&charts using
    -Dynamic theme, BI data and Pie chart style
    -Dynamic theme, pie chart and custom rendering rules
    -Dynamic theme and dynamic Bar chart style
    So there should be something wrong with handling "Dynamic XML BI data". This is essential for us, because we need integration between BI and Spatial.
    Any advice?
    Sašo

  • Dynamic style with non spatial data?

    Hi all,
    Here is the situation : I have two spatial tables with attributes.
    Each row in the first one will be affected to a row or several rows in the second using a third table that links the primary keys of both tables. (the third table is actually a temporary table loaded from an xml file)
    I would like to represent that on the map using a dynamic style. My column on which is based the affectation is varchar2 column. So I can't use numeric buckets.
    Is it possible to do that? And how?
    Thank you for your help.
    Max

    Hi Max,
    for varchar2 columns you can use Collection bucket styles where the values can numbers of strings. Post the general sturcture of each table (the attributes), and how you would like to link them. You may be able to define a view linking the tables, and then use one attribute of the view for the collection style.
    Joao

  • Oracle 11g R2, Problem Loading Spatial Data

    We have a geodatabase which has been implemented by oracle spatial. it has been working quite fine since 2 years ago. Recently the data center serving our geodatabase has been upgraded on both software and hardware specifications. The handler application now has difficulty retrieving spatial data. The problem is somehow strange; only some spatial objects are loaded and then application encounters exceptions.
    Previous working database engine was an Oracle 11g R1 and the new one is Oracle 11g R2. The application is a java application mostly written by swing. Here is the stack trace:
    java.sql.SQLRecoverableException: No more data to read from socket
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1200)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
         at oracle.jdbc.driver.T4CCallableStatement.fetch(T4CCallableStatement.java:1079)
         at oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:369)
         at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:273)
         at ir.mas.aamar.service.map.MapService.getModifiedMap(MapService.java:405)
         at ir.mas.aamar.map.MapPanel.redrawLayers(MapPanel.java:504)
         at ir.mas.aamar.map.LayersTree.onSnapshotDisplayCheckBoxItemChanged(LayersTree.java:420)
         at ir.mas.aamar.map.LayersTree.onMouseReleased(LayersTree.java:204)
         at ir.mas.aamar.map.LayersTree.access$0(LayersTree.java:188)
         at ir.mas.aamar.map.LayersTree$1.mouseReleased(LayersTree.java:170)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    java.sql.SQLRecoverableException: No more data to read from socket
         at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1200)
         at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1155)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:279)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
         at ir.mas.aamar.service.map.MapService.executeJDBCQuery(MapService.java:78)
         at ir.mas.aamar.service.map.MapService.getSnapshotsForThisTermPlusHoze(MapService.java:1013)
         at ir.mas.aamar.dialog.edit.EditTools.refreshLayersCombo(EditTools.java:327)
         at ir.mas.aamar.dialog.edit.EditTools.refresh(EditTools.java:301)
         at ir.mas.aamar.dialog.edit.EditTools.<init>(EditTools.java:103)
         at ir.mas.aamar.dialog.edit.EditTools.editTools(EditTools.java:62)
         at ir.mas.aamar.map.MapPanel.paintComponent(MapPanel.java:7591)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    java.sql.SQLRecoverableException: Closed Resultset: next
         at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:224)
         at ir.mas.aamar.service.map.MapService.getSnapshotsForThisTermPlusHoze(MapService.java:1014)
         at ir.mas.aamar.dialog.edit.EditTools.refreshLayersCombo(EditTools.java:327)
         at ir.mas.aamar.dialog.edit.EditTools.refresh(EditTools.java:301)
         at ir.mas.aamar.dialog.edit.EditTools.<init>(EditTools.java:103)
         at ir.mas.aamar.dialog.edit.EditTools.editTools(EditTools.java:62)
         at ir.mas.aamar.map.MapPanel.paintComponent(MapPanel.java:7591)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at ir.mas.aamar.dialog.edit.EditTools.setTypeOfEditModel(EditTools.java:452)
         at ir.mas.aamar.dialog.edit.EditTools.<init>(EditTools.java:104)
         at ir.mas.aamar.dialog.edit.EditTools.editTools(EditTools.java:62)
         at ir.mas.aamar.map.MapPanel.paintComponent(MapPanel.java:7591)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    I read in some forums that the problem could be caused by jdbc version incompatibility, so I just copied jdbc archives from the installed oracle 11g R2 jdbc folder but the problem persists. Last thing I should mention is that only spatial data is problemistic and non-spatial data is easily loaded.
    Please Help, Thanks.

    Hi storm,
    During the installation of oracle as you said if you have given the global password, basically this specific password will reflect to users such as
    -sys
    -system
    -dbsnmp
    -sysman
    As you are new to oracle the basics that you should know is that "SYS" user is the highly privileged user in Oracle and should be logged in as "sys as sysdba" with his respective password (i.e. the global password that you have entered during database installation) to obtain his privilege. Remember to manipulate your database with caution when you are logged in as the sys user. You can log into the database using the sys user in the following way:
    c\> sqlplus sys as sysdba
    password: ****** --It will ask you for the password and you will have to give the global password that was given during installation
    Hope this helps!!!
    Regards,

  • Spatial data replication

    Hi
    Is it right place to ask regarding oracle spacial data replication using goldengate? I posted message goldengate thread but now one is replying to that...

    Hi,
    A few tips for getting useful responses on these forums:
    - Give yourself a better name on OTN. User "931643" isn't great.
    - Give your post a meaningful title such as "Spatial data replication using GoldenGate". Your post (Re:goldengate error over on the Goldengate forum had a subject of "goldengate error". That doesn't say much about your particular question.
    - For this post on the Spatial forum - how about some more background information? What versions of the products? What exactly are you trying to do? What is not working? What error messages? Do you have a test case that somebody could easily reproduce? Have you got the replication working for non Spatial data types?
    I've never used Goldengate so won't be able to help much, and I suspect your best bet of a useful response is on the Goldengate forums.
    Have you checked the Goldengate documenation?
    The "Oracle GoldenGate Oracle Installation and Setup Guide" is available on http://docs.oracle.com/cd/E35209_01/doc.1121/e29797.pdf
    This says: Oracle GoldenGate supports SDO_GEOMETRY, SDO_TOPO_GEOMETRY, and SDO_GEORASTER (raster tables).So that looks promising, but check if that is the case for the Goldengate version your are on.
    Check the following My Oracle Support articles:
    "Does GoldenGate Extract Support Oracle Spatial?" [ID 971719.1]
    "Extract Abend With OGG-00746 Error (100, no Data Found) Selecting Data in CheckForSynonym For Table With Column Type SDO_GEOMETRY" [ID 1382906.1]
    John

  • Export to "insert" spatial data

    I'm using sqldeveloper-1.1.3.with an 11g R1 database. I'm trying to get the insert statements (including the SDO_GEOMETRY) from a table which I loaded from Shapefile.
    I am getting inert statements without any spatial data like below:
    Insert into TU (TRID,GEOM) values (100,'MDSYS.SDO_GEOMETRY');
    I am using this method: Right-click on the table in the "connections explorer tree", select Export Data, then insert...
    Is there any other way to export spatial data to insert sql.

    Thnx Irian
    I used the same with sql Developer 2.1. It worked fine

  • Exporting spatial data to SHP or TAB file format

    Hi,
    I have a couple of layers (maps) uploaded as spatial data into an Oracle database. What I'd like to do now is export those maps (data) as standard file format like ESRI Shape or MapInfo TAB file, i.e. write out the data as SHP or TAB file(s) to the disk.
    Is this possible?
    Any hints, reference or third party solution will do.
    Thanks in advance.
    P.S. Here is the original process I followed to upload map data to Oracle.
    1) I had the map data as MapInfo TAB files.
    2) Used the EasyLoader application shipping with MapInfo to upload the data into Oracle.
    All I need now is the reverse engineering.

    If you want to export to ESRI shape and MapInfo and do not have SDE or MapInfo then I would suggest looking into FME (www.safe.com). Look at the Oracle Suite product. You can download an evaluation product. It will export from Oracle Spatial to both formats.
    Thanks
    Dave
    David R. Miller
    Michael Baker Jr., Inc.
    3601 Eisenhower Avenue
    Alexandria, VA 22304
    [email protected]
    www.mbakercorp.com

  • OBIEE -Spatial Data in ST Geometry

    Hi,
    Below is my sample spatial data in oracle 10g database.I am trying to build a OBIEE map with Google maps as background map.Can i  use the ST geomotry as below  directly or should i convert it to SDO geometry .I converted ST geometry to SDO  but when i use it for the maps in obiee the lines are all over the map.Can anyone suggest me the steps i need to take when the spatial data is in ST geometry.SRID for google mpas is 3785.
    ST GEMOTRY
    SDE.ST_GEOMETRY(8,20,-8236196.0936,4971596.5728,-8236021.1316,4971750.2835,NULL,NULL,NULL,NULL,8520.953541,512.173693478845,3857,'oracle.sql.BLOB@14f2c59')
    SDO GEOMETRY
    MDSYS.SDO_GEOMETRY(2003,8307,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(-8236058.0112,4971596.5728,-8236049.1351,4971612.8814,-8236034.0083,4971640.7315,-8236025.6322,4971656.1619,-8236021.1316,4971664.1908,-8236034.878,4971671.5954,-8236036.5026,4971672.5993,-8236061.2461,4971686.0279,-8236089.489,4971701.3389,-8236179.0918,4971750.2835,-8236183.4673,4971742.2546,-8236196.0936,4971718.9202,-8236142.1072,4971688.8009,-8236116.7386,4971674.6197,-8236119.9892,4971667.8453,-8236082.6239,4971647.0125,-8236077.5001,4971644.2516,-8236084.1259,4971632.3338,-8236093.2518,4971616.0251,-8236058.0112,4971596.5728))

    Hi Syedurur,
    You may be in the wrong forum as OBIEE only utilizes MapViewer as far as I know.
    MapViewer
    So as Stefan notes, you are not going to be able to use SDE.ST_GEOMETRY with OBIEE as its not an Oracle product.  However, your ArcSDE registered MDSYS.SDO_GEOMETRY geometry should work fine.  Yet in your example you posted you seem to have Web Mercator (3857) ordinates but the SDO_SRID is WGS 84 (8307) so that is mangled and not going to draw anything correctly.  Try changing the SDO_SRID to 3857.
    Now Stefan is a bit incorrect about the ease of moving from SDE.ST_GEOMETRY to MDSYS.SDO_GEOMETRY.  The folks at ESRI make it simple to move in the other direction but - surprise! - not to move away from their proprietary spatial type. 
    ArcGIS Help (10.2, 10.2.1, and 10.2.2)
    Now you can still accomplish this by exporting your data from the geodatabase and then importing it back in as SDO but that is certainly not as simple as using the above one-step migration tool.
    In theory you could convert SDE.ST_GEOMETRY to MDSYS.SDO_GEOMETRY on the fly in the database with SQL.  Both ESRI and Oracle proudly spout their unwavering support for OGC standards.  Thus this should work
    SELECT MDSYS.SDO_GEOMETRY(SDE.ST_AsText(a.shape),8307) FROM my_ESRI_ST_GEO_table a;
    (Note change the 8307 to the matching Oracle SRID of your data)
    But my experience was that the very old Oracle Java WKT parser mixed with the somewhat non-standard ESRI External DLL WKT writer is not a very reliable combination.  But do give it a try and feel free to report back to us how it goes.  I really have not tried this in a couple of years so perhaps things are better now.
    Cheers and Happy New Years,
    Paul

  • How do I Export Address Book data?

    Is there anyway to insert Address Book data into other (non-Apple) applications, e.g. Word?
    I want to send out some letters and I would like each letter to have the recipiants address at the top of the letter. Even if I could export the data to Excel first would be OK but I only seem to be able to export vCards from Address Book and Excel (nor Word) can read them?
    Any help would be appreciated.
    Thanks,

    Yink,
    you can use some third-party applications to export Address Book data as plain text files (e.g., csv) which you should then be able to import without any problems in Excel and the like.
    Some options are:
    • Export Addresses from Mail Scripts
    http://homepage.mac.com/aamann/
    • Address Book Exporter
    http://www.gwenhiver.net/address-book-exporter.html
    • Export Address Book
    http://software.dibomedia.de/ExportAddressBook
    Andreas

  • SAP and Non-SAP data to Xcelsius

    Hi Experts,
    I m new to Xcelsius and i a m currently working on Xcelsius project, i need help on approach to bring both SAP and Non-SAP data to Xcelsius. Here the scenario goes on....
    Total 6 plants are there, out of 6, 4 plants are on SAP and other 2 plants are on Non-SAP (Excel)
    The requirement is to develop a dashboard to see all the plants details (both SAP and Non-SAP)
    The approach i suggested for SAP: ECC --> BW --> InfoProvider --> Query --> QaaWS --> Xcelsius
    For non-sap, data is available in excel, so we can bring that data directly to xcelsius, but problem is how to make it dynamaic because data in excel changes daily.
    So my doubt is, if i  develop a universe on excel files, then how to combine both SAP and Non-SAP universes. Is Data Federator is required for this or is there any approach to bring both SAP and Non-SAP data to Xcelsius.
    Can any one help me on this
    Thanks & Regards
    Ramakrishna Kamurthy

    hi
    Another approach which i have used in the past is to have data in XML format, placed on a web server.  When my data changes daily, i just export my data from excel or whatever source into the XML format..
    Use the XML data connector to bring into xcelsius.
    thanks.. hope this helps
    regards
    Jeff.

  • Retrieving spatial and non spatial in same query.

    I have hacked out queries that retrieve and display GEOM Vertices in a JSP using sdoapi.
    I have hacked out queries that retrieve standard format data types and display them in JSP using jdbc, java.sql and oracle.sql.
    I cannot figure out an easy way to blend the two. It seems as though there is no choice but to make two separate queries to the same table in the database in order to present all the columns of an entire row result if a row contains both spatial and standard data.
    Does anyone have any ideas of how this can be done without making two separate calls??

    I'm not sure why you need to print to a file or why you feel you need to do multiple queries to fetch spatial and non spatial attributes. Here are some snippets of SDOAPI based code that may help or may end up confusing matters even more. Hopefully they'll help. I assume you can modify the code to print coordinates to whichever output stream you require for displaying them. "..." indicates that some other code goes here.
    DriverManager.registerDriver(new OracleDriver());
    m_conn = DriverManager.getConnection(url, user, password);
    m_adapter = OraSpatialManager.getGeometryAdapter("SDO", "9.0.1", STRUCT.class, STRUCT.class, null, m_conn);
    Statement stmt = null;
    ResultSet rs = null;
    stmt = m_conn.createStatement();
    String query = "SELECT " + idName + ", " + columnName + " FROM " + tableName;
    rs = stmt.executeQuery(query);
    while (rs.next())
    Object id = rs.getObject(1);
    Object sdoGeom = rs.getObject(2);
    Geometry geometry = ((AdapterSDO)m_adapter).importGeometry(sdoGeom, nDim);
    // do something with the ID column
    // print the geometry's coordinates
    processGeometry(geometry);
    public void processGeometry(Geometry geometry)
    if (geometry instanceof Point)
    Point point = (Point) geometry;
    System.out.println("Point: SRID = " + point.getSpatialReference().getID()+ " (" + point.getX() + ", " + point.getY() + ")");
    else if (geometry instanceof LineString)
    LineString lineString = (LineString) geometry;
    System.out.println(lineString.getNumPoints() + "-point LineString: ");
    for (Enumeration pointEnum = lineString.getPoints(); pointEnum.hasMoreElements();)
    CoordPoint point = (CoordPoint) pointEnum.nextElement();
    System.out.println("\t\t(" + point.getX() + ", " + point.getY() + ")");
    else if (geometry instanceof Polygon)
    Polygon polygon = (Polygon) geometry;
    System.out.println((polygon.getNumRings()) + "-ring Polygon: ");
    LineString exteriorRing = (LineString) polygon.getExteriorRing();
    System.out.println("\t" + exteriorRing.getNumPoints() + "-point exterior ring:");
    for (Enumeration pointEnum = exteriorRing.getPoints(); pointEnum.hasMoreElements();)
    CoordPoint point = (CoordPoint) pointEnum.nextElement();
    System.out.println("\t\t(" + point.getX() + ", " + point.getY() + ")");
    for (Enumeration ringEnum = polygon.getInteriorRings(); ringEnum.hasMoreElements();)
    LineString interiorRing = (LineString) ringEnum.nextElement();
    System.out.println("\t" + interiorRing.getNumPoints() + "-point interior ring:");
    for (Enumeration pointEnum = interiorRing.getPoints(); pointEnum.hasMoreElements();)
    CoordPoint point = (CoordPoint) pointEnum.nextElement();
    System.out.println("\t\t(" + point.getX() + ", " + point.getY() + ")");
    ...

  • BUG: Export DDL and Data fails for mixed case table/column names

    Hi there,
    I have found a bug in SQL Developer. See details below.
    Description:
    When "Export DDL and Data) function is used on a table/columns not named in UPPERCASE, sql generated by SQL Developer is invalid.
    Steps to reproduce:
    - open SQL Developer, connect to DB
    - make a table named "lowerCase" (in double quotes, so it won't be automatically changed to capital letters)
    - you may also add some columns, for example "lowerCol1", "UpCol2", ALLUPCOL3
    - add some data rows to the table
    - choose Tools -> Export DDL and Data
    - check exporting of tables and data, on "filter" tabs choose your "lowerCase" table
    - press "Apply"
    Error:
    Generated SQL contains invalid INSERTs: mixed-case table and columns are referenced without obligatory double quotes, which yields an error when generated script is executed (see below, relevant line is underlined)
    -- DDL for Table lowerCase
    CREATE TABLE "DBO_HT"."lowerCase"
    (     "lowerCol1" VARCHAR2(100),
         "UpCol2" VARCHAR2(100),
         "ALLUPCOL3" VARCHAR2(100)
    -- DATA FOR TABLE lowerCase
    -- FILTER = none used
    -- INSERTING into lowerCase
    Insert into lowerCase (lowerCol1,UpCol2,ALLUPCOL3) values ('lc','uc','auc');
    -- END DATA FOR TABLE lowerCase
    Remarks
    SQL Developer: version 1.2.1, build MAIN-32.13
    Oracle DBs: 9.2 & Express
    OS: Windows 2000 Professional
    If you need any more details/testing, let me know. I'd really appreciate a quick patch for this issue...
    Alternatively, do you know of any other simple way of copying a single database (it's called a schema in Oracle, right?) from one computer to another? Possibly something so simple like detaching->copying->reattaching mdf (data) files in SQL Server... I thought that this "Export DDL&Data" function will do, but as you can see I couldn't use it.
    I just need a simple solution that works - one operation on source to stuff, get the resulting files to other computer and one operation to have it running there... I think that such scenario is very basic, yet I just can't achieve it and I am simply not allowed to spend more time on it (read: our test project fails, my company rejects my "lobbying" and stays with MSSQL :/ )
    Thanks a lot & bye

    Thanks for your reply.
    ad. 1)
    You're right. I just wanted to give some very short feedback on my experiences with SQL Developer, so I didn't think starting new threads would be necessary, but as I was writing it became much bigger than I initially planned - sorry about that. I will make proper threads as soon as possible. Having "Edit post" button on this forum would also be useful.
    ad. 2)
    Generally, you're right - in most cases it's true that "switching DBMS is a major commitment" and "you will produce terrible code" if you don't learn the new one.
    However, I think that you miss one part of market here - the market that I think Express is also targeted on. I'd call it a "fire&forget databases" market; MySQL comes to mind as possibly most common solution here. It's the rather small systems, possibly web-accessed, whose data-throughput requirements are rather modest; the point is to store data at all, and not necesarily in fastest way, because given the amount of data that is used, even on low-end hardware it will work well enough. What's important here is its general ease of use - how easy is to set up such system, connect and access data, develop a software using it, how much maintenance is needed, how easy this maintenance is, how easy are the most common development tasks as creating a DB, moving a DB from test to production server etc. There, "how easy" directly translates to "how much time we need to set it up", which translates to "how much will the development will cost".
    Considering the current technology, switching the DBMS in such systems is not necesarily a major commitment and believe me that you will not produce terrible code. In many cases it's as simple as changing a switch in your ORM toolkit: hibernate.dialect = Hibernate.Dialect.OracleDialect vs MySQLDialect vs MsSql2005Dialect
    Therefore, in some part of market it's easy to switch DBMS, even on project-by-project basis. The reason to switch will appear when other DBMS makes life easier => development faster. From that point of view, I can understand my colleagues giving me an embarassing look and saying "come on, I won't read all these docs just to have db copied to test server". And it doesn't mean "they are not willing to learn anything new", it's just that they feel such basic task should have self-explaining solution that doesn't require mastering any special knowledge. And if they get such simple solutions somewhere else, it costs them nothing to change the hibernate dialect.
    I think Oracle did the great job with introducing the Express to this "fire&forget" market. The installation is a snap, it just works out of the box, nothing serious to configure, opposite to what I remember from installing and working on Oracle 9 a few years ago. In some places it's still "you need to start SQL*Plus and enter this script", but it's definitely less than before. I also find the SQL Developer a great tool, it can do most of what we need to do with the DB, it's also much better and pleasant to use over Oracle 9 tools. Still, a few basic things still require too much hassle, and I'd say taking your schema to another machine is one of them. So I think that, if you do it well, the "schema copy wizard" you mentioned might be very helpful. If I was to give any general advice for Express line of DB/tools, I'd say "make things simple" - make it "a DB you can't see".
    That's, IMHO, the way to attract more Express users.

  • Column Header in 2 rows in report file but export to excel data only displays only bottom row of column header

    Post Author: blofrese
    CA Forum: Exporting
    I am using Crystal XI and need to output several columns worth of data. Do to so I attempted to have the data presented in 2 rows within the same section.
    Example:Page Header b contains:  7 columns  5 columns
    Details a contains:  7 columns  5 columns
    When exporting to excel data only I only see the bottom 5 column header info and all the detail data in the correct order. How do I get all the Headers to display on the export file?
    Thank you for your time.

    Post Author: jw1234
    CA Forum: Exporting
    I have the same problem. Have you find the solution yet??
    I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up. 
    Page Header a contains:Report TitleDate Range
    Page Header b contains:Dept Name4 columns
    Please help. Thanks!

  • Export only specific data in XML with Submit by Email button

    I have created a form with multiple subforms that includes user input and calculations. One of these subforms contains fields that are bound to a MS Access database to retrieve data for calculations. All of the fields on this subform are bound to the data connection. The data connection, calculations, and submit by email button all work perfectly. My only problem is that the XML data that is being exported includes the data I bound to the MS Access database. I only want the data that the user inputs. I have changed the binding to "none" on all of the calculated fields to restrict them from exporting.
    I have attached a copy of the XML file that is generated when the "Submit by Email" button is clicked. I only want the data from the "YTDIncStmt" subform to be included in this file. The "MasterData10K1", "MasterData10K2", and "MasterData10K3" are the actual data connections to the MS Access database.
    How do I limit the export to only the data the user input?

    I have the very same problem! I am importing data from MS Access and trying to export XML data that I can sync with Quickbooks. But the XML file contains some of my binded MS Access fields, which Quickbooks doesn't know what to do with, and rejects my xml files. I am also looking for a way to submit only selected XML data.  You ever find a solution/work around?

Maybe you are looking for

  • How do I join the Forum on HP Expert Day on January 11th, 2012?

    HP Photosmart C7280 All-in-One Windows XP Wireless connection to my printer does not work.  I am having problem even if I had tried to set it up manually.

  • How can I go back to Windows 8.1?

    Hi! I have Lenovo miix2 8" tablet, delivered with Wind​ows 8.1. I installed the Windows 10 Technical Prev​iew on it but I want to go back to the Windows 8.1. However, the installation does not start not the recovery part of hard disk nor USB driver t

  • Can I use a network hard drive to store my music

    This might be more of an Itunes question, but I would like to know if there is a problem using a network Hard drive to store all my music on? I'll be using 2 computers to access it, 1 computer handles my kids for there Ipods each having there own log

  • ITunes 10.4.1 will not download via Software update after I click to agree to terms, nothing happens

    I have OS Lion and went to Software Update to get the latest iTunes 10.4.1 (currently running 10.4 64 bit).  Software Update notifies me of the update, I click install, and then I agree to new terms....and that's all that happens.  Software Update re

  • Can't advance photos in slideshow

    I have a slideshow of 325 photos to illustrate a lecture; some are timed series and others manually advanced. In several slideshows I have experienced the problem of being unable to advance the slides manually after about two-thirds of the show. When