Tables with space from sizing columns

Oracle EE last everything

So I have a link data table as in:
describe links ;
 Name                            Null?    Type
 ----------------------------------------- -------- ----------------------------
 ID                                  NUMBER
 NETWORK_ID                             NUMBER
 BEG_NODE_ID                             NUMBER
 END_NODE_ID                             NUMBER
 GEOM                                  MDSYS.SDO_GEOMETRY
 LENGTH                              NUMBER(9,3)
 SPEED_LIMIT                             NUMBER(3)
 DETAIL_LEVEL                             NUMBER(3)
 IN_SYNCH                             NUMBER(1)
 CREATED                             DATE
 MODIFIED                             DATE
 CREATED_BY                             VARCHAR2(30)
 MODIFIED_BY                             VARCHAR2(30)
 MODSTAMP                             TIMESTAMP(6)
Table is not partitioned and currently has about 69 million lines. ID, Network_id have your clues of normal base on them.
geom has a spatial index. So I guess my question is I'm starting to push the limits here for the performance of the spatial index?
In another thread here, I read something that oracle will not use a spatial index for certain types of transactions?

The geometry that is recorded in each line is G_TYPE 2002 (line or curve) for example:
SDO_GEOMETRY(2002, 8307, NULL, 
SDO_ELEM_INFO_ARRAY(1, 2, 1), 
SDO_ORDINATE_ARRAY(
-97.35263, 
32.70169, 
-97.35277, 
32.70178, 
-97.35301, 
32.70185, 
-97.35319, 32.70186,
-97.35347, 32.70184)
)
Then John gave me this answer really great to know how to look for a point in a using bounding box of the:
 
sdo_inside(geom, [create a 2003 geometry to describe a rectangle]) 
function. Now since this line is a series of points, can one still use the sdo_inside or would be:
 sdo_anyinteract(geom,[create a 2003 geometry to describe a rectangle]) 
function is best?

Thanks in advance.

Its a small example. I had not to build your dashboards and the sdo_geom_metadata and the spatial index, I used the SDO_GEOM. RELATE to the function rather than the space operator. The result is the same:

--test relation line with point (second vertex of line)
--  INSIDE
SELECT SDO_GEOM.RELATE
 (SDO_GEOMETRY(2002, 8307, NULL,
    SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
  'INSIDE',
  SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
  0.01
 ) rel FROM dual;  

REL
--------------------------------------------------------------------------------
FALSE
1 row selected.

--  TOUCH
SELECT SDO_GEOM.RELATE
 (SDO_GEOMETRY(2002, 8307, NULL,
    SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
  'TOUCH',
  SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
  0.01
 ) rel FROM dual;  

REL
--------------------------------------------------------------------------------
FALSE
1 row selected.

--  ANYINTERACT
SELECT SDO_GEOM.RELATE
 (SDO_GEOMETRY(2002, 8307, NULL,
    SDO_ELEM_INFO_ARRAY(1, 2, 1),
    SDO_ORDINATE_ARRAY(-97.35263,32.70169,-97.35277,32.70178,-97.35301,32.70185,-97.35319, 32.70186,-97.35347, 32.70184)),
  'ANYINTERACT',
  SDO_GEOMETRY(2001, 8307,
    SDO_POINT_TYPE(-97.35277,32.70178,0), NULL, NULL),
  0.01
 ) rel FROM dual;  

REL
--------------------------------------------------------------------------------
TRUE
1 row selected.

You will find the theory to UNAMA fine l.

Tags: Database

Similar Questions

  • How to create the table with the rows and columns using the layout?

    One of my friends advised me to put my site on the mode of provision as it is better than the standard as he said
    but I couldnot make an ordinary table with the rows and columns in mode available th
    y at - there someone who can tell me how to?
    Thank you very much

    Wednesday, April 18, 2007 21:01:38 + 0000 (UTC), "Mr.Ghost".
    wrote:

    > A friend of mine advised me to put my whole site on the mode of disposal as its
    > better than standard, as he says

    Your friend won't. Don't listen to him any more. Mode of disposal creates
    very fragile and rigid code pauses at the first opportunity.

    Gary

  • CRUD for tables with large number of columns

    Hello

    I work for a government agency in Colombia, and we do a poll with about 1200 variables. Our database model has few paintings, but they have a large number of columns. Our Oracle 11 g database is, and we do not use Oracle APEX. I've read about APEX and it seems to be useful to generate quick forms and reports. However, I would like to know if it is possible to generate CRUD for tables with many columns, and that would be the best way to do it.

    Thanks in advance.

    Carlos.

    With the help of 250 point on a single page is actually really bad for the user experience. I would probably be it cut into pieces and using several pages to guide the customer through it as a workflow.

    You could also add some pop-up windows which includes some elements of your table, just saved on other pages. But I probably don't like that.

    Tobias

  • The script generation is not supported for Table with XML or UDT column Types

    I get this message trying to generate a script to create a table with an XMLTYPE column.  We use the Oracle Developer Tools for Visual Studio to generate scripts as SQLDeveloper does still not support TFS integration.  He was always pretty easy to generate scripts and maintain control of source code in this way (with the exception of materialized views).  It was great, just right click and generate a script for the project and check it in.  Unfortunately as the adoption of XML grows, we find passage to the SQL Developer more often to perform tasks not supported and then return to the VS IDE to manage source code control.  Free of any chance that it will be supported in the future?

    Yes, our plan is to support several types as time goes by.

    You possibly can speed things along by voting or by filing a request for new feature here:

    http://Apex.Oracle.com/pls/Apex/f?p=18357:46

  • Create table with data in the column

    Create a new table, just want to know if there is a way to add a new column to the table with a value in all areas of this column when new rows are added to that this column will always be the same value

    As...

    name | address | zip | assets



    Active will always be Yes.
    I do a trigger?

    Use the default...

    create table (test)
    name varchar2 (20).
    address varchar2 (40),
    zip number (7).
    Active VARCHAR2 (3) DEFAULT NULL NOT 'yes');

  • How to show the value of string with spaces in separate columns

    Hi all, I am using Oracle 10 g.

    create table
    create table sample_test (
      Name    VARCHAR2(20 BYTE))
    Insert a table
    insert into sample_test values ('JOAN   SCT')
         insert into sample_test values ('MELIA FILCK')
          insert into sample_test values ('SSAN LIER-LILEY')
           insert into sample_test values ('C.M. DANY WES')
               insert into sample_test values ('A L SCOTT')
    Select * from sample_test;
    Name
    JOAN   SCT
    MELIA FILCK
    SSAN LIER-LILEY
    C.M. DANY WES
    A L SCOTT
    I would like the following output
    NAME1        NAME2      NAME3
    JOAN          SCT               
    MELIA        FILCK               
    SSAN       LIER-LILEY
    C.M.          DANY       WES
    A             L          SCOTT
    whenever there is a space in the name of the value next to who should be included in another column. Please note the name joan has TBS of two spaces. but it must be treated as a single space.

    also is it possible to get something like that
    NAME1        NAME2     
    JOAN          SCT               
    MELIA        FILCK               
    SSAN       LIER-LILEY
    C.M.DANY       WES
    A L          SCOTT
    the value before the first space on the right must be everything in domain Name1 Name2.

    Thanks in advance.

    Hello

    Since you have Oracle 10, you can use regular expressions:

    For the release of 3 columns:

    SELECT        REGEXP_SUBSTR (name, '[^ ]+', 1, 1)     AS name1
    ,        REGEXP_SUBSTR (name, '[^ ]+', 1, 2)     AS name2
    ,        REGEXP_SUBSTR (name, '[^ ]+', 1, 3)     AS name3
    FROM        sample_test;     
    

    [^ xyz] means "any character except x, y or z."
    + means "1 or more of the previous ones.
    The 4th argument to REGEXP_SUBSTR indicates where we want the appearance of the model.

    For the release of 2 columns:

    SELECT        REGEXP_REPLACE (name, ' *[^ ]+$')     AS before_last_space
    ,        REGEXP_SUBSTR  (name,   '[^ ]+$')     AS after_last_space
    FROM        sample_test;
    

    $ here means "the end of the string.

    In Oracle 10, you will often use REGEXP_REPLACE to get substrings.

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

    Published by: Frank Kulash, 7 Sep 2011 15:21

  • Several flat_files through the external table with only the common columns of loading

    Hi, I have 50 flat files and each of them have some columns (fields) common and I need to load only the fields that are common to an external Table. Is any chance to do it with education unique external table. Or I need to load all flat_files at separate tables and then with the ETG and UNION load them only one table.

    If the page size for all the files are different, I think that your only option would be to define different external tables and create a view that joins all the.

    HTH
    Srini

  • Create a table with auto increase of columns

    I remember there is a single line of SQL to create a column that can auto increase. -Does anyone know it? something like below:

    CREATE TABLE HAS
    (
    ID INTEGER AUTOINCREMENT
    )

    Thanks a lot for your help!

    Not in Oracle, no.

    You can simulate the SQL Server AUTOINCREMENT feature by

    -Creating a table
    -Creating a sequence
    -Creating a level trigger line BEFORE INSERT on the table that populates the column, i.e.

    CREATE TABLE a (
      a_id integer primary key
    );
    
    CREATE SEQUENCE a_id_seq;
    
    CREATE TRIGGER trg_a
      BEFORE INSERT ON a
      FOR EACH ROW
    BEGIN
      SELECT a_id_seq.nextval
        INTO :new.a_id
        FROM dual;
    END;
    

    Justin

  • How can I update this table with values from another table?

    Hello

    I have a table 'governed '. I want to replace the values in the column "regies.agent" by the value of the column "regies_personnes.id."
    As you can see the tables have a column of common values. IE regies.agent = regies_personnes.nom

    Table 'governed ':
    Insert into 'authorities' (AGENT) values ('Humberdot Alain");
    Insert into 'authorities' (AGENT) values ("Danard Patrick");

    Table 'regies_personnes ':
    Insert into REGIES_PERSONNES (NAME, ID) values ("Humberdot Alain", 1);
    Insert into REGIES_PERSONNES (NAME, ID) values ("Danard Patrick", 2);

    Before having it
    SQL > select agent of authorities;
    Humberdot Alain
    Patrick Danard

    After the update, the result should be
    SQL > select agent of authorities;
    1
    2

    Thank you for your kind reply.

    You can

    update regies r set agent = (select id from regies_persones p where r.agent = p.nom)
      where exists (select id from regies_persones p where r.agent = p.nom)
    
  • How to create a table with spaces between the lines...

    Hello

    I use jdev 11.1.1.6 and I need to insert spaces between the lines. How this can be done?

    Thank you and best regards,
    Tarun Agrawal

    Hello

    I'm sorry to forget on the spacer. You must use css like mentioned AP.

    Arun-

  • split the table 1 d of string with spaces in solitary segments

    Hello ppl,

    I wanted to post it because it took me a while to do this thing. I have table with spaces and I do the 2D array. For example:

    ? NM 100.0 ok->

    ? NM

    100.0

    Ok

    Take a peek inside. Maybe someone will find it useful.


  • Table - sepatare elements with spaces

    Hello

    Is it possible to replace commas output table with spaces?

    Instead of array.toString (), use array.join(""):

    
    
        
            
        
    
        
            
        
    
        
        
    
    
    

    Peter

  • a table with 1200 coulumns or 30 tables with fewer columns

    Is there any show shot in a table with columns of 1200 by report to separate columns in the 30 tables by certain categories of business?
    Queries will always require a subset of the columns of 1200 across all categories of 30 companies.

    a. you may not have a table with more then 1000 columns:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10820/limits003.htm#i288032

    b. After 255 columns, the line will be chained between two (or more) data blocks,

    So yes, this will impact your performance:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10713/logical.htm#CNCPT1055

    c. you might want to consider grouping table 30:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10713/tablecls.htm#i25478

    Amiel Davis

  • Update of table with 14 million records

    good day, I'm updating a table with 14 million documents column. using the data from another table.
    This takes terrible time just updated to 500,000 over the weekend, which is unacceptable.
    ideas to improve my code and get the fastest update is much appreciated.

    DECLARE
    TYPE vc_type is table of index varchar2 (20) by pls_integer;
    type tabtype_rowid is table of pls_integer rowid indexes;
    my_cur sys_refcursor;
    cur_limit integer: = 10000;

    tab_rowid tabtype_rowid;

    Start
    OPEN FOR My_cur
    SELECT value, rowid
    TABLE 1A

    where the value IS NOT NULL
    and id is null;


    loop
    collect the fetch my_cur in bulk in tab_value, cur_limit limit tab_rowid;

    FORALL k IN 1.tab_npi.count

    UPDATE table 1A
    A.ID = (select id SET
    in Table 2b
    where value = tab_value (k)
    and rownum = 1
    )
    WHERE a.rowid = tab_rowid (k);

    COMMIT;

    When the output tab_value.count < cur_limit;.
    end loop;

    END;


    Thank you

    903537 wrote:
    I tried to update basic training, as a first step and it crashed...

    He didn't fail, it failed.

  • REORG several tables with DEC

    Oracle 11.1.0.6 database
    RHEL 5.3

    Hi all

    1.)

    I want reorg several tables with the ETG. But because there are several tables with different indexes and column names I can not use the order by clause.

    create the table reorg_HR_STAGE_EDW. SFHR_ORG_MAPPING_FILE
    tablespace REORG
    PCTFREE 10 pctused, initrans, maxtrans 1 255
    storage)
    initials pctincrease of 1 M following 0M 0
    MINEXTENTS 1 maxextents unlimited
    in select * from HR_STAGE_EDW. SFHR_ORG_MAPPING_FILE;

    The table is going to get reorganized even without the orderby clause?

    2.)
    The steps I should follow are (please, correct me if I'm wrong):

    -Create table with the new name in the new tablespace
    -Remove the old tables
    -Move converted tables to the original tablespace

    Is it OK, what happens to the index?

    Help, please

    You can also copy dependent table with dbms_redfinition. The procedure is called COPY_TABLE_DEPENDENTS. See http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_redefi.htm

    ALTER table move would also be possible, but doen't it locks the table all the time?

    Kind regards

    -wiZ

Maybe you are looking for

  • clear most visited sites

    Hello, I wanted to know if there is anyway to remove the most visited sites in the bookmarks toolbar? Don't see much usage in the recent history of compensation, if someone can come behind me and click on the most visited sites in the bookmarks toolb

  • Is there an API that returns the model number or any other identifier for a module installed, I can use to identify the characteristics of this module?

    For example, I'll call you DaqSystem.Local.GetPhysicalChannels (PhysicalChannelTypes.AI, PhysicalChannelAccess.External) For a list of connected devices.  The data in the table back looks like this: cDAQ1Mod4/ai0 (etc.) It tells me that I have a Comp

  • Router WRT120N - EE disconnect once per hour

    HelloJust Yestarday (16.02.2010) I bought router WRT120N-EE. I had problems with disconnection from the beginning.I got the cable modem. I connected wrt120n modem, following the 2 PC viaethernet ports connected to the router. I am beeing cut exactly

  • Paid for model resembles a framework...

    I'm a little new to this, but I bought my first model and when it looked like just a small number of areas of text and strewn loading picture frames.It came with folders full of images that I imagined would be in place when I opened it. I'm importing

  • The CC license renewal

    I have a number of clients with Creative Cloud 2014 installed. Using creative cloud Packager, I used the serial number, we have been provided at the time of purchase. For more than a year, they worked without any problems. Recently, the licenses have