Creation of spatial data connectivity data

Hello

I have a few spatial data, which I'll try to describe the relevant aspects:

-A LineSegment table, which contains information about cables, including the ID of the area (approximately 4 million lines)
-An array of location, that contains a LineSegmentID (one by one), and a column (space) geometry (approximately 4 million lines).

What I need to do, is to create a new table containing conceptual "nodes", containing the following columns:

-NodeID (number)
-(Number) LineSegmentID
-LineSegmentEnd (1 or 2)

So I need to prepare, for each cable, which other cable it connects, by comparing its ends with the endpoints of other cables in the same sector. A box contains cables up to 464. There are a total of 160 thousand areas.

I'm working on the most effective way to achieve this, ideally by making a batch which will take less than half an hour. Oracle is relatively new to me, but I'm guessing that the right approach would be to use a series of intermediate (intermediate) tables, as I believe nested cursors would be much too slow (I ran a simple test to confirm this).

I guess I'll have to get in a temporary table, the starting point and the end point of each cable using SDO_LRS. GEOM_SEGMENT_START_PT and SDO_LRS. GEOM_SEGMENT_END_PT, as well as the area ID. Join the table to itself, and then use SDO_GEOM. SDO_DISTANCE to work on what points are close together (for example less than one meter). However, I'm fighting to describe a step by step process.

Anyone has any ideas that can help?

(Oracle 11g)

Examples of data to illustrate the problem:

create table line_location (lineid number,
geometry sdo_geometry);
create table (ID, areaid) line;

-a cable in the box 1, 2 in area 4, etc.
insert into a values (1, 1) line;
insert into values of line (2, 4);
insert into values of line (3, 4);
insert into a values (4, 3) line;
insert into values of line (5, 3);
insert into a values (6, 3) line;
insert into values of line (7, 2);
insert into values of line (8: 2);
insert into a values (9, 2) line;
insert into values of line (10, 2);

-in reality, the lines are not necessarily straight and simple as these...
insert into line_location values (1, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (10,1,10,4))); -zone 1
insert into line_location values (2, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (3,9,5,9))); -zone 4
insert into line_location values (3, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (5,9,5,10))); -zone 4
insert into line_location values (4, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (1,1,2,1))); -zone 3
insert into line_location values (5, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2,3,2,1))); -zone 3
insert into line_location values (6, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (2,3,3,3))); -zone 3
insert into line_location values (7, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (5,3,5,4))); -zone 2
insert into line_location values (8, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (4,4,5,4))); -zone 2
insert into line_location values (9, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (5,9,6,4))); -zone 2
insert into line_location values (10, MDSYS. SDO_GEOMETRY (2002,3785, NULL, MDSYS. SDO_ELEM_INFO_ARRAY (1,2,1), MDSYS. SDO_ORDINATE_ARRAY (5,7,5,9))); -zone 2

create table node_line (node_id number,
line_id number,
endpoint_id number,--1 for starting point, 2 for the end point.
area_id number
);

-expected here. If two lines are less than 0.5, whereas they should share a node.
insert into node_line values (1, 1, 1, 1); -insulated cable in zone 1, starting point node
insert into node_line values (2, 1, 2, 1); -insulated cable in zone 1, point endpoint node
insert into node_line values (3, 2, 1, 4); -zone 4: 2, node starting point of cable
insert into node_line values (4, 2, 2, 4); -zone 4, cable 2, point endpoint node
insert into node_line values (4, 3, 1, 4); -point 2 = cable endpoint node cable 3 start knot, etc.
insert into node_line values (5, 3, 2, 4);
insert into node_line values (6, 4, 1, 3); -node at (1,1)
insert into node_line values (7, 4, 2, 3); -node to (2.1)
insert into node_line (8, 5, 1, 3) values; -node to (2,3)
insert into node_line values (7, 5, 2, 3); -node to (2.1)
insert into node_line (8, 6, 1, 3) values; -node to (2,3)
insert into node_line values (9, 6, 2, 3); -(3.3) node
insert into node_line values (10, 7, 1, 2); -node to (5.3)
insert into node_line values (11, 7, 2, 2); -node to (5.4)
insert into node_line (12, 7, 1, 2) values; -node to (4.4)
insert into node_line values (11, 7, 2, 2); -node to (5.4)
insert into node_line (13, 7, 1, 2) values; -node to (5.9)
insert into node_line (14, 7, 2, 2) values; -node (6.4)
insert into node_line values (15, 7, 1, 2); -node to (5,7)
insert into node_line (13, 7, 2, 2) values; -node to (5.9)

Thank you

Hi Ronnie

Have you had a look at the script on the old NET?
This done in a slightly different result structure, what you're after.
I took the time this morning to see a bit optimized.

Below you will find the result.

With clues about a couple and the use of the SDO_JOIN rather the sdo_relate this speeds up considerably.
I had tested on a 600 k line objects (which is not 4 million I know) and is reasonable ok on my test (non optimized) environment.

On the "1 metre" close to each other, I would have supported itself by setting the tolerance appropriately, so
There should be no reason to perform within the distance checking. Obviously that permitting the resolution of your data.

Have a look at.

Note that the final table is different in their structure, but this needs to be easily adjusted in the script if your node_line table must be exactly like you defined.

Luke

-drop the existing SEQ_TOPO

sequence of fall SEQ_TOPO;

-create sequences with caching

CREATE SEQ_TOPO CACHE 2000 SEQUENCES;

commit;

-drop temporary table

drop table temp_nodes cascade constraints;

-create temporary table and fill it with startponts and a field saying this are implemented, as X, Y, as we use it later to remove duplicates in a nonspatial way

create the table temp_nodes

as

Select a.lineid, a.areaid, sdo_geometry (2001, a.node.sdo_srid, SDO_POINT (t.X, t.Y, null), null, null) as a node, SEQ_TOPO.nextval node_id, the from ' AS STEND, t.x, t.y

Of

(select lineid, areaid, node sdo_lrs.geom_segment_start_pt (geometry) of line_location, where the LINE line_location.lineid = line.line_id), TABLE (SDO_UTIL. GETVERTICES (a.Node)) t;

commit;

-Insert the end points in the temporary table

insert into temp_nodes

Select a.lineid, a.areaid, sdo_geometry (2001, a.node.sdo_srid, SDO_POINT (t.X, t.Y, null), null, null) as a node, SEQ_TOPO.nextval node_id, 'E' AS STEND, t.x, t.y

Of

(select lineid, areaid, node sdo_lrs.geom_segment_end_pt (geometry) of line_location, where the LINE line_location.lineid = line.line_id), TABLE (SDO_UTIL. GETVERTICES (a.Node)) t;

commit;

-insert user_sdo_geom_metadata and have created for temp_nodes index

-adjust with appropriate metadata to srid, high and lowebounds values and the tolerance of your dataset

-Here the tolerance is set at 1 meter, this way there is no need to use a distance, let tolerance help us here

-Obviously this can work if tolerance is smaller, then the distance between the start and end of the link itself.

delete from user_sdo_geom_metadata where table_name = 'TEMP_NODES ';

INSERT INTO user_sdo_geom_metadata VALUES ("TEMP_NODES", "NODE", SDO_DIM_ARRAY (SDO_DIM_ELEMENT ('X', 0, 1000000, 1), SDO_DIM_ELEMENT ('Y', 0, 100000, 1)), 3785);

-create spatial indexes with gtype = POINT to use internal optimization

Drop index node_sx;

CREATE INDEX node_sx ON temp_nodes (node) INDEXTYPE IS MDSYS. SPATIAL_INDEX PARAMETERS ('sdo_indx_dims = 2, layer_gtype = POINT');

-create indexes on X, Y combination to accelerate "eliminating duplicates" (in the group by) is actually a "select unique" rather that remove duplicates

CREATE INDEX INDEX1 ON TEMP_NODES (X, Y);

CREATE the INDEX INDEX2 ON TEMP_NODES (node_id);

-create the final node table with unique nodes of the temporary table, x, to y could be omitted

create the table node_topo

as

Select a.nodeid, t.node, t.x, t.y

Of

(

Select min (node_id) as nodeid

Of

temp_nodes

Group x, Y

) an inner join

temp_nodes t

on (a.nodeid = t.node_id)

;

commit;

-insertion of metadata information

delete from user_sdo_geom_metadata where table_name = 'NODE_TOPO ';

INSERT INTO user_sdo_geom_metadata VALUES ("NODE_TOPO", "NODE", SDO_DIM_ARRAY (SDO_DIM_ELEMENT ('X', 0, 1000000, 1), SDO_DIM_ELEMENT ('Y', 0, 100000, 1)), 3785);

-create spatial indexes on the table to end node with gtype = POINT (internal optimization)

Drop index node_topo_sx;

CREATE INDEX node_topo_sx ON NODE_TOPO (node) INDEXTYPE IS MDSYS. SPATIAL_INDEX PARAMETERS ('sdo_indx_dims = 2, layer_gtype = POINT');

-create table node_link using SDO_JOIN between end node final tables and temp

-the NAYINTERACT should take care of the "alignment" as the tolerance will be applied

create the table node_line

as

Select lineid, max (st_ID) START_NODE_ID, max (en_ID) END_NODE_ID, max (areaid) AREAID

Of

(

SELECT b.lineid, case when b.stend = s ' THEN a.nodeid 0 otherwise end st_ID,.

cases where b.stend = 'E' THEN a.nodeid 0 otherwise end en_ID, areaid

TABLE (SDO_JOIN ('NODE_TOPO', 'NODE',

"TEMP_NODES", "NODE",

"(masque = ANYINTERACT')) c,"

node_topo has,

temp_nodes b

WHERE c.rowid1 = a.rowid AND c.rowid2 = b.rowid

)

Lineid group;

commit;

-items temp

drop table temp_nodes cascade constraints;

delete from user_sdo_geom_metadata where table_name = 'TEMP_NODES ';

commit;

seq_topo sequence of fall;

commit;

Tags: Database

Similar Questions

  • Export to 'insert' spatial data

    I use a database of the R1 11 g sqldeveloper - 1.1.3.with. I try to get the instructions for inserting a table that I loaded the Shapefile (including the SDO_GEOMETRY).

    I get inert statements without any space as given below:
    Insert in YOU (TRID, GEOM) values (100,'MDSYS.) SDO_GEOMETRY');

    I use this method: make a right click on the table of the "tree of the Explorer of connections", select export data, and insert...

    Y at - it another way to export the spatial data to insert sql.

    Wells 1.1.3 is quite old, try upgrading to the latest version.

  • MapPoint 2010 Spatial data import

    Team,

    Can you please help currently using trial of 2013 has the same problem of spatial data import will import created since 2 weeks ESRI Shapefiles, but all newly created files or MapPoint 2010 today at present or if someone else creates will not matter.

    I get an error message:

    Error in Applysahpe properties

    Error number-2147217865

    Error Description The Mocrosoft Jet database engine object could not be found. "" "" NH1121 the file, try to open.

    Make sure that the objects exist.

    I tried to uninstall and reinstall both versions of Mappoint 2010 and Mappoint 2013 trial still open data 2 weeks ago but won't file since the last day little matter that someone creates or I create today. even remove the folder in Program files and cleaning of the folder %Temp%.

    Hello

    Check with the help of MapPoint and in the MapPoint Forums.

    Highway, Streets & Trips, MapPoint - Forum
    http://social.Microsoft.com/forums/is/streetsandtrips/threads

    MapPoint - Support
    http://www.Microsoft.com/MapPoint/en-us/support.aspx

    Support for MapPoint, streets & trips and Highway
    http://support.Microsoft.com/ph/851

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • the insertion of the spatial data error

    Hi all

    I have a problem when the spatial data is inserted. could someone help me please to solve this.

    I created a table with spatial index.
    INSERT INTO USER_SDO_GEOM_METADATA
                VALUES('SDO_CA_test', 'CA', SDO_DIM_ARRAY(
                     MDSYS.SDO_DIM_ELEMENT ('LON', 71.19545, 120.35101, 0.000005),
                     MDSYS.SDO_DIM_ELEMENT ('LAT', 12.1145, 26.58041, 0.000005)), 8687);
           
         
         CREATE INDEX IO_CA_test ON SDO_CAR_test(CA)
        INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('SDO_COMMIT_INTERVAL=10000 SDO_RTR_PCTFREE = 0');
    When I insert data from another spatail table that does not have a clue, I get an error.
    insert into sdo_ca_test as select * from base_sdo;
    
    ORA-29875 Failed in the ececution of the ODCINDEXINSERT routine
    
    ORA-13354 incorrect offset in ELEM_INFO_ARRAY
    ORA_06512 at MDSYS.SDO_INDEX_METHOD_101 line. 709
    I think that there are some incorrect data that are not with my index defination.

    How can I check these invalid data in base_sdo table. The base_sdo table has no index.

    Rgds
    SAZ

    Published by: Saaz Ena on December 21, 2009 18:16

    You can try SDO_GEOM. VALIDATE_GEOMETRY_WITH_CONTEXT
    or SDO_GEOM. VALIDATE_LAYER_WITH_CONTEXT? for example

    Select * from base_sdo where
    SDO_GEOM. VALIDATE_GEOMETRY_WITH_CONTEXT (a.CA, 0,000005). = "TRUE";

  • Spatial data acquisition Oracle through WFS

    Hello

    I did research for a while and am a bit confused.

    I have Oracle Spatial 11 g with geometry data and would like to be able to retrieve these data through a WFS for a viewing application.

    Here's where I'm confused:
    (1) space offers a WFS service must be configured. If I set this up, I would be able to access the data through getFeature URL commands? The documentation I see for them has applications for getFeature in the form of XML files, so I don't know if I can do it. Also, it seems that the service returns the .log files, but I think not I want GML...

    If this is the option that I must take the tutorial to configure OC4J and Web Services are for a Linux (http://www.oracle.com/technology/obe/11gr1_db/datamgmt/spatialws/spatialws.htm)--are there one for 64-bit Windows?

    (2) do I need an another "application layer" to enable support for this URL? I know that MapServer can use URL requests... can I run against the data in my PB and forget the WFS Oracle?

    (3) MapViewer seems to work with themes WFS and process applications through Java and SQL... It's another option?

    I'm basically confused as to where everything is and what I should focus on to get my spatial data of the DB through a WFS. Any help on this would be greatly appreciated!

    Thank you!

    Yes, with a server Oracle Spatial and logic of the Web, you can get support for WFS.
    Note that you must space Oracle 11 GR 2 to work with the logical Web server.

    MapVeiwer can only consume the WFS themes, so it does not help with what you want to do here.

    Siva

  • Date of creation and the Date of importation

    When you import photos or video in the Photos to a folder, the application uses the date of importation of integration rather than the original creation date.  The result is that imports are all presented together under "Today."  Many photos and video taken on different dates, so I would only they listed according to date of creation rather than be grouped under the date of importation.  I went 'View' and checked "date of creation".  Photos don't work with "SORT" because it is always grey.  Any help would be greatly appreciated!

    If you look in the window of Photos photos and videos are sorted by date with the oldest items at the top.  This sort order cannot be change.

    In the pictures window, the elements are sorted by the date imported into the library with the oldest at the top.  The sort order cannot be changed here either.

    So, you can use a smart album to include all your photos in the library and then sort them one of these ways:

    The smart album could be created to this criterion:

    that would include all the photos in the library.  Now you can sort them as you like.  Just make sure that the date is early enough to catch all the photos in the library.

    Moments in Photos are new events, i.e. groups of photos sorted by date of catch.

    When the iPhoto library has been migrated first to the pictures there is a folder created in the box titled iPhoto events and all migrated iPhoto events (which are now Moments) are represented by an album in this folder. Use the Command + Option + S key combination to open the sidebar if it is not already open.

    NOTE: it has been reported by several users that if the albums of the event are moved in the iPhoto Library folder in the sidebar, they disappear.  It is not widespread, but several users have reported this problem.  Therefore, if you want to if ensure that you keep these event albums do not transfer out of the iPhoto events folder.

    Is there a way to simulate events in pictures.

    When new photos are imported in the library of Photos, go to the smart album last import , select all the photos and use the file menu option ➙ New Album or use the key combination command + N.  Call it what you want.  It appears just above the folder to iPhoto events where you can drag it into the events in iPhoto folder

    When you click on the folder to iPhoto events, you will get a window simulated of iPhoto events.

    Albums and smart albums can be sorted by title, by Date, with the oldest first and by Date with the most recent first.

    Tell Apple what missing features you want restored or new features added in Photos Photo-Applefeedback.

  • How to create spatial data from scratching

    Dear gurus,

    I am beginner in SI OBIEE, I tried to save the table space map (figure OBIEE_NAVTEQ).
    But I have no idea how do.

    I see the example:

    INSERT INTO (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID) user_sdo_geom_metadata
    VALUES ("cola_markets", "geometry",
    SDO_DIM_ARRAY (-20 X 20 grid)
    SDO_DIM_ELEMENT ('X', 0, 20, 0.005),
    SDO_DIM_ELEMENT ('Y', 0, 20, 0.005)
    ),
    NULL VALUE
    );

    INSERT INTO cola_markets
    VALUES (2, 'cola_b', 200,)
    SDO_GEOMETRY (2003,-two-dimensional polygon)
    NULL,
    NULL,
    SDO_ELEM_INFO_ARRAY (1,1003,1),-a polygon (ring outside polygon)
    SDO_ORDINATE_ARRAY (5.1 8.1 8.6, 5.7, 5.1)
    )
    );

    ***

    -What is a SDO_DIM_ELEMENT?
    How to know the value of SDO_DIM_ELEMENT ('X', 0, 20, 0.005) of the card? y at - it a tool that could enable?
    -What different SDO_DIM_ELEMENT, SDO_ELEM_INFO_ARRAY and SDO_ORDINATE_ARRAY?
    How to set the SDO_ELEM_INFO_ARRAY and SDO_ORDINATE_ARRAY of the card?

    Any help really really appreciated

    Concerning

    JOE

    Joe,

    Try to use the GeoRaptor for SQL Developer extension. Download SQL Developer of RTO and then get GeoRaptor from Sourceforge.

    What is a SDO_DIM_ELEMENT?

    You logically implies that your example shows how do it manually using SQL.

    No hard and fast rule. Usually most of the people would determine the rectangular extent (or MBR) their data and enter the RADIUS X and Y, as determined by the coordinates lower left and upper right.

    For geodetic data (IE long/lat) more simply placed in the scope of the world full of-180, 180 and - 90.90. But others within the scope of their data. Read the documentation on that.

    How to know the value of SDO_DIM_ELEMENT ('X', 0, 20, 0.005) of the card? y at - it a tool that could enable?

    See above. Try any package of GIS, or GeoRaptor or

    select SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,1) as minx,
           SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,3) as maxx,
           SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,2) as miny,
           SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,4) as maxx
      from (select sdo_aggr_mbr(geom) as mbr
              from PLANNING_NEIGHBORHOODS);
    -- Result
    --
          MINX       MAXX       MINY       MAXX
    ---------- ---------- ---------- ----------
    5979385.646    6024741 2085840.482    2131294 
    

    Or...

    select 'SDO_DIM_ARRAY(' ||
           'SDO_DIM_ELEMENT(''X'','||
              SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,1) || ',' ||
              SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,3) || ',0.05' ||
        '),SDO_DIM_ELEMENT(''Y'',' ||
           SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,2) || ',' ||
           SDO_GEOM.SDO_MIN_MBR_ORDINATE(mbr,4) || ',0.05))' as dimarray
      from (select sdo_aggr_mbr(geom) as mbr
              from PLANNING_NEIGHBORHOODS);
    -- Result
    --
    DIMARRAY
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X',5979385.6456569,6024740.99982789,0.05),SDO_DIM_ELEMENT('Y',2085840.48152296,2131294.0001958,0.05))
    

    The sdo_tolerance in the SDO_DIM_ELEMENT's your guess as to degree of accuracy of the data are. Reflect on how close two points are allowed to be before they are considered equal. 0.05 is 5cm (standard for long/lat data) and means two summits cannot be narrower than that otherwise you will get an error the summits in double (13356) during the validation of your data using sdo_geom.validate_geometry ().

    what different SDO_DIM_ELEMENT

    The metadata that describe the extent of your data. Written correct spatiali to user_sdo_geom_metadata is it necessary for indexing.

    SDO_ELEM_INFO_ARRAY and SDO_ORDINATE_ARRAY?

    objects that are used to describe a space object.

    How to set the SDO_ELEM_INFO_ARRAY and SDO_ORDINATE_ARRAY of the card?

    I don't think that it is the starting point to reinvent the wheel by trying to explain what is well explained in the Oracle documentation.

    Therefore, I suggest that you read Chapter 1 spatial Concepts (http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/sdo_intro.htm#i884907) and then come back and ask us questions.

    concerning
    Simon

    Published by: Simon Greener on March 13, 2013 17:23

  • keep the Oracle Spatial data in memory

    Can I keep data in memory using TimesTen Oracle Spatial (including metadata and procedures and related functions)?

    It is possible.

  • Cache spatial data or query

    I have an application where, as expected, the first spatial query takes longer then the users when they submit the same or similar query on the session layer. Is there a way to cache this first request until our users even start the application so that they will not have to wait for the first analysis lasts? Or trying to keep the table itself in the cache would be a way to go?

    Thank you
    -mcslain

    OK, there are two types of "cache" at play here. The first is the shared SQL. The first time that a query is run, only it will be difficult to analyze. The plan of the explanation will be stored in the shared pool subsequently up to what is old output (should not happen often normally). The following queries by using the same SQL code (assuming you are using bind variable) will reuse the shared SQL. You could force SQL in the shared pool in order to avoid users having to live a hard analysis (installation of a procedure and dbms_schedule it), but you shouldn't need to do. If you get a lot of hard analysis, then you do not bind variables, or something gets older the SQL code of the shared pool - which might be too DB start/stop, pool is too small, etc..
    I had first to address this problem.

    The other "cache" is the buffer cache. If the data to be read by the application do not yet exist in the buffer cache, then it will have to go on the drive to get it. Who will take more time than reading from the buffer cache. If the first query will take probably longer than the following. You could look at pinning a table in the pool to KEEP it, but I do it only for the small tables that are accessed very often.

  • Creation of complex data signals

    Hello

    I have 2-channel audio that contains the parts real and complex of an I / Q wave. I'm trying this demodulation using block MSK modulation toolkit, but I have trouble accessing the i / Q stream in the right type. The MSK block requires a complex waveform input, but after the construction of this waveform complex, I discovered that he really had to a 'Waveform.ctl of complex data.

    How can I get my data in the right format? I can't find a block which generates this 'Waveform.ctl complex data.

    I have attached a picture of the situation.

    Best regards

    Jan

    Try this

    Right-click on the entry of complex waveform of this Subvi node MT demodulate MSK. Click on 'Create' > 'Constant '. Now remove the wire between the newly created constant and the Subvi. Adds a set of cluster name. Wire the constant in the top of the boot of cluster name. Left click and pull on the bottom of the boot of cluster name until 3 entries appear. Click with the right button on each entry and use the item select to get the entries you need.

  • Spatial data of the UNITED Arab Emirates to develop Map Viewer in OBIEE 11 G.

    Hi Gianni Ceresa,

    I need to develop a MAP VIEWER for the UNITED Arab Emirates. In mvdemo, I can see the data only for the USA. Where can I get the SQL for the UNITED Arab Emirates data file?

    Thanks in advance

    Hi 2827571,

    In the demos, that oracle provides a generic set of maps for Map Viewer, generally you World, United States, and San Francisco to the street level.

    If you want more cards that you need to buy or use Google Maps or another service.

    Oracle provides the tool, not the cards.

  • Creation of test data

    Hi all

    11.2.0.3

    AIX 6

    We have confidential data, such as tables with credit card, social security number, no. bankacct, etc. etc.

    Our dev team needs an example of realistic data for their test UAT.

    I want to create a function such that the confidential number will be converted into a format "reverse." And this is the data that I will give to developers.

    How to create a function will convert numbers or characters to format reverse?

    for example:

    012345 = > 543210

    abcDEF = > FEDcba

    Thank you all,

    #! / bin/bash

    echo "enter the password:

    read inputpassword

  • Question about the creation of cluster data store

    I'm running vSphere 5.1 and want to enable storage Drs before as I have create the cluster data store, I was reading through VMware vSphere 5.1, but don't see any confirmation when I add data to the cluster storage, the virtual machines using these storage of data is not affected.

    Can anyone confirm that the addition of a data to a data cluster store store has no impact on virtual machines running?

    Thank you.

    Can anyone confirm that the addition of a data to a data cluster store store has no impact on virtual machines running?

    You can add and remove data warehouses in a cluster of data with VMS running store.

  • Creation of test data for a problem

    Hello

    I use this forum for a few months and it has been extremely helpful. The problem is that I really have no idea how to create some test data for a specific problem. I tried Googling, but to no avail. I had other users to create data test for some of my problems using a 'WITH' statement, but it would be great if someone could explain the logic behind it and how to address a specific problem where in the application, I use several tables.

    I know this is probably a stupid question and I'm relatively new to sql, but it would help a lot if I understand the process.

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    WITH construction is known as factoring request void.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e26088/statements_10002.htm#i2077142

    (Not easy to find unless you know what it's called)

    It allows you to start your request with a sub request which acts as a view definition that can then be used in your main query, just like any other view or a table.

    This example declares two views on the fly - master_data and detail_data, which are then used in the example query. Each query sub emulates the data in the table by selecting literal values in the dual table a line using union all to generate multiple lines.

    The two queries shows different results when an outer join is used in the second (+) {noformat} {noformat}

    SQL> -- test data
    SQL> with
      2      master_data as
      3      (
      4      -- this query emulates the master data of a master detail query
      5      select 1 id, 'Header 1' description from dual union all
      6      select 2 id, 'Header 2' description from dual union all
      7      select 3 id, 'Header 3' description from dual union all
      8      select 4 id, 'Header 4' description from dual
      9      ),
     10      detail_data as
     11      (
     12      -- this query emulates the detail data of a master detail query
     13      select 1 id, 1 detail_id, 'Detail 1.1' description from dual union all
     14      select 1 id, 2 detail_id, 'Detail 1.2' description from dual union all
     15      select 1 id, 3 detail_id, 'Detail 1.3' description from dual union all
     16      select 2 id, 1 detail_id, 'Detail 2.1' description from dual union all
     17      select 2 id, 2 detail_id, 'Detail 2.2' description from dual union all
     18      select 2 id, 3 detail_id, 'Detail 2.3' description from dual union all
     19      select 2 id, 4 detail_id, 'Detail 2.4' description from dual union all
     20      select 4 id, 2 detail_id, 'Detail 4.2' description from dual union all
     21      select 4 id, 3 detail_id, 'Detail 4.3' description from dual
     22      )
     23  -- main query
     24  -- to select from test data
     25  select
     26      m.description,
     27      d.description
     28  from
     29      master_data m,
     30      detail_data d
     31  where
     32      m.id = d.id
     33  order by
     34      m.id,
     35      d.detail_id;
    
    DESCRIPT DESCRIPTIO
    -------- ----------
    Header 1 Detail 1.1
    Header 1 Detail 1.2
    Header 1 Detail 1.3
    Header 2 Detail 2.1
    Header 2 Detail 2.2
    Header 2 Detail 2.3
    Header 2 Detail 2.4
    Header 4 Detail 4.2
    Header 4 Detail 4.3
    
    9 rows selected.
    
    SQL> edi
    Wrote file afiedt.buf
    
      1  with
      2      master_data as
      3      (
      4      -- this query emulates the master data of a master detail query
      5      select 1 id, 'Header 1' description from dual union all
      6      select 2 id, 'Header 2' description from dual union all
      7      select 3 id, 'Header 3' description from dual union all
      8      select 4 id, 'Header 4' description from dual
      9      ),
     10      detail_data as
     11      (
     12      -- this query emulates the detail data of a master detail query
     13      select 1 id, 1 detail_id, 'Detail 1.1' description from dual union all
     14      select 1 id, 2 detail_id, 'Detail 1.2' description from dual union all
     15      select 1 id, 3 detail_id, 'Detail 1.3' description from dual union all
     16      select 2 id, 1 detail_id, 'Detail 2.1' description from dual union all
     17      select 2 id, 2 detail_id, 'Detail 2.2' description from dual union all
     18      select 2 id, 3 detail_id, 'Detail 2.3' description from dual union all
     19      select 2 id, 4 detail_id, 'Detail 2.4' description from dual union all
     20      select 4 id, 2 detail_id, 'Detail 4.2' description from dual union all
     21      select 4 id, 3 detail_id, 'Detail 4.3' description from dual
     22      )
     23  -- main query
     24  -- to select from test data
     25  select
     26      m.description,
     27      d.description
     28  from
     29      master_data m,
     30      detail_data d
     31  where
     32      m.id = d.id (+)
     33  order by
     34      m.id,
     35*     d.detail_id
    SQL> /
    
    DESCRIPT DESCRIPTIO
    -------- ----------
    Header 1 Detail 1.1
    Header 1 Detail 1.2
    Header 1 Detail 1.3
    Header 2 Detail 2.1
    Header 2 Detail 2.2
    Header 2 Detail 2.3
    Header 2 Detail 2.4
    Header 3
    Header 4 Detail 4.2
    Header 4 Detail 4.3
    
    10 rows selected.
    
  • Type of spatial data of form error ORA-01704 (SDO_UTIL. FROM_WKTGEOMETRY)

    I'm doing a program (c# & ODP.NET) to do the task, to recover data of geometry of space sqlserver2008 and INSERT INTO Oracle11 database database.
    Due to the help of the syntax of well-known text (WKT), so I need to use "SDO_UTIL. FROM_WKTGEOMETRY ('POLYGON ((56678400...") to insert data of geometry in oracle. When the text of the polygon is longer than 4000 RHC, I got the exception
    [ORA-01704: string literal too long]

    How can we solve this problem? It's urgent!

    Hoping to hear from you.
    Fan

    Try with bind variable:

    oerr ora 1704
    01704, 00000, "string literal too long"
    // *Cause:  The string literal is longer than 4000 characters.
    // *Action:  Use a string literal of at most 4000 characters.
    //          Longer values may only be entered using bind variables.
    

    Please read http://www.oracle.com/technetwork/issue-archive/2005/05-sep/o55odpnet-101704.html.

Maybe you are looking for