To check the superposition of polygons in Oracle

I have a table 1, which has a field such as store number and geometry, and there just one record in it. Now, I want to check this store to table 2 number and identify if there are polygons which overlap to this particular store number polygon and insert in the table 3.

Here's the sql block, that I am using.

Insert into table 3

Select a.store_id, a.store_number, a.client_id, a.geometry

in table 2, table 1 b

where a.client_id = b.client_id

and SDO_RELATE (a.Geometry, (select geometry of table 1 where store_id))

(= 34746), "mask = anyinteract") = "TRUE";

But it returns 1 field in the new table for any store id that I select.

Several problems with the metadata entry.

The table_name must be just the table_name without the prefix in the schema.

And when you remove metadata, all names should be capital letters.

Then first delete the incorrect entry (use all caps):

  1. Delete from user_sdo_geom_metadata where table_name = ' TMC. TEMP_NATHAN_STEP1' and COLUMN_NAME = 'GEOMETRY ';

Then insert using the syntax of the right:

  1. Insert into user_sdo_geom_metadata VALUES ("TEMP_NATHAN_STEP1", "GEOMETRY", SDO_DIM_ARRAY (SDO_DIM_ELEMENT ('x',-180, 180, 0.05), SDO_DIM_ELEMENT ('y',-90, 90, 0.05)), 8307);

Tags: Database

Similar Questions

  • How to check the total memory used by Oracle and user who use more memo

    Hello

    I use oracle 10.2.0.4 on Windows 2003 server SP2 version.

    1. How can I check the "total memory" used by Oracle

    2. which users use more CPU resources.

    Thanks and greetings
    Amit

    Hello

    Oracle EM is the best to identify the use of the processor and memory used by each session.

    In addition, use after query to calculate the memory used by each session of the.

    SELECT to_char (ssn.sid, '9999') | ' - ' || NVL (ssn.username, nvl (bgp.name, 'background')) |
    NVL (Lower (SSN.machine), ins.host_name) "SESSION."
    TO_CHAR (prc.spid, '999999999') ' PID/THREAD. "
    TO_CHAR ((se1.value/1024) / 1024, '999G999G990D00'). "MO" "SIZE."
    TO_CHAR ((se2.value/1024) / 1024, '999G999G990D00'). "MO" 'MAXIMUM SIZE '.
    V $ sesstat se1, v$ sesstat se2, v$ session ssn, v$ bgprocess bgp, v$ process RPC.
    v$ ins instance, v$ statname stat1, v$ statname stat2
    WHERE se1.statistic # = stat1.statistic # and stat1.name = 'pga session in memory.
    AND se2.statistic # = stat2.statistic # and stat2.name = 'pga memory max session'
    AND se1.sid = ssn.sid
    AND se2.sid = ssn.sid
    AND ssn.paddr = bgp.paddr (+)
    AND ssn.paddr = prc.addr (+);

    Kind regards
    Charrier

  • How to check the fix related information in Oracle 7

    As I want to check the patch of an Oracle DB 7 lvl. Could someone tell me how to check or find information.

    Thanks to all the experts here.

    Welcome to the forums!

    What specific version of 7? As a general rule, this statement should provide information

    SQL> select * from V$version;
    

    http://download.Oracle.com/docs/CD/A57673_01/doc/dcommon/oin/index.htm

    HTH
    Srini

  • Check the connection to a remote Oracle database


    Hello

    I have an application that runs on a server that connects to an Oracle database on another server.  The application uses Java and JNDI to connect, there is no Oracle client installed on the server hosting the application.  The application seems to have been to connect to the database on the other server.  How can I check that the connection to the database still work from the server hosting the application?  Is there a software tool that I use does not require Oracle client must be installed.

    Thanks in advance

    Alanjo

    the connection request is saved in the file listener.log on the DB server

  • How can I check the owner, who has installed oracle s/w on the server?

    Hi all;

    My server with "n" of users. Suppose I want to find out who is the owner of the oracle software.

    How can I check it? Is there a specific file to find out?

    Thanks in advance...

    > Can we consider OraInventory location to determine the owner of the oracle s/w?

    You can do anything that you consider appropriate on your system.

    IMO, the OS user which has the Oracle software is "qwerty", as evidenced by the ls command.

  • How to check the sessions of locking in oracle 10g

    Hello

    I tried to get hang of the sessions. I had the session blocking using v$ lock view.

    Pls help how to get hang of the sessions.

    Kind regards
    Vincent

    >
    SQL > SELECT SID, SQL_ID, name of USER BLOCKING_SESSION FROM v$ session WHERE BLOCKING_SESSION IS NOT NULL;
    SELECT SID, SQL_ID, username, BLOCKING_SESSION FROM v$ session WHERE BLOCKING_SESSION IS NOT NULL
    *
    ERROR on line 1:
    ORA-00904: "BLOCKING_SESSION": invalid identifier
    >

    What is your version of the database? Please show us all the 5 digits of the version (select from version$ v); *

    10.1_

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Prod
    PL/SQL Release 10.1.0.4.0 - Production
    CORE    10.1.0.4.0      Production
    TNS for Linux: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.0 - Production
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
    no rows selected
    

    In 10.2*

    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
    no rows selected
    

    11g _ _ (showing a situation of real lock)

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    5 rows selected.
    
    SQL> SELECT SID, SQL_ID, USERNAME, BLOCKING_SESSION FROM v$session WHERE BLOCKING_SESSION IS NOT NULL;
    
           SID SQL_ID        USERNAME                       BLOCKING_SESSION
    ---------- ------------- ------------------------------ ----------------
           145 62ttrb9xf43zr SCOTT                                      26
    
    1 row selected.
    

    Published by: user12035575 on 10 Sep, 2011 12:42

  • How to check if JGeometry is the line or polygon?

    Hello!
    I'm trying to discern a JGeometry I is a point, line or polygon. JGeometry has a method isPoint() to check if it's a point, but I don't see any of the similar methods of lines or polygons. Only isCircle() or isRectangle() or LRSGeometry().

    Currently I use getOrdinatesArray() and check if the first pair is the same as the last. It's obviously not ideal, because a line could very well end up in the same place as its origin.

    Ideas?
    Thank you!

    Hello

    int getType()
    Gets the type of geometry.

    you will need to evaluate the whole against http://download.oracle.com/docs/html/B14255_01/sdo_objrelschema.htm#sthref208

    Luke

  • Check the installed oracle components are actually used in the database

    I got a new database I have to optimize. So I think to delete some installed components that I think are not be used somehow in the database (IE procedures calls etc.). I see a whole bunch of components as "ODD", 'ORDIM', which I think are not used, but previous DBAs have installed them. So, is it possible to make sure that no part of the database are actually using these components so that I can remove these components. Also, what are your expert comments on it?

    Is it a production or a development environment? If an object is not used then this isn't necessarily a problem (performance wise) unless it is either cluttering up your dictionary or raising concerns regarding the consumption of unnecessary space. Personally, I would recommend that it is preferable to resolve what is to be used / taken of resources. It is maybe once a year report or a few old utility out once a year, the best monitoring, why those things are there.

    If you go down the road of a fall, rather than drop anything immediately block accounts for an agreed period to ensure that the scheme is not used & check all references other schemas of objects in the schema that you intend to drop, potentially of audit to check if they are being called by other patterns / verification dba_dependencies between schemas and objects using a hierarchical query to check the sub-levels.

    There are also quite a few standard Oracle components that are installed by default that have interdependencies and not necessarily be used in the dictionary (control dba_features_usage_statistics)

  • How to check the Logs in the Oracle Mobile Applications?

    Dear all Experts,

    I am facing a few times error on the Mobile Supply Chain Application that ((an unexpected error has occurred please check log for)), please help find where can I see the Logs and check what error comes and what is the reason of it.

    Thanks in advance

    Hi, Jean Luc,.

    This community is designed more for Oracle Mobile application and related products. But still I can answer this:

    (1) make sure that the $INST_TOP/admin/scripts/mwa.cfg has trace log level

    (2) bounce your server if it is not defined after the configuration of the server.

    (3) check the $INST_TOP/logs for log fles: mainly check . Inv.log and . system.log

    Kind regards

    Nikhil Misra

  • How to check the internal operations, Manager of competitor status in Oracle Apps R12 of en

    Step by step how to check the internal operations, Manager of competitor status in Oracle Apps R12 of front end and how to start their.

    Richa says:
    Step by step how to check the internal operations, Manager of competitor status in Oracle Apps R12 from front end

    Simultaneous treatment - platform generic competitor Manager Questions / answers [ID 105133.1]

    and how to start the

    (1) using the adcmctl.sh (from the backend)
    (2) using the button Activate (from front) - http://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174302.htm#4334248

    Thank you
    Hussein

  • who to check the setting in the procedure or the oracle Packagusing Defualt table

    Hello

    My question is who to check the procedure parameter or a Package using the default oracle as a table

    user_procedure, we will have any kind of the PKG, PROCEDURE etc...

    same as if I wan't to see the partial procedure that eventually all the setting that to check?

    Hello

    870003 wrote:
    Hello

    My question is who to check the procedure parameter or a Package using the default oracle as a table

    user_procedure, we will have any kind of the PKG, PROCEDURE etc...

    same as if I wan't to see the partial procedure that eventually all the setting that to check?

    The data dictionary includes teas views:
    USER_PROCEDURES that has one row per stored procedure in your schema
    $user_arguments which has one line per parameter (or argument) to each stored procedure or a function in your schema
    USER_OBJECTS who has one line per package, package body, procedure or function in your schema. (It includes tables, synonyms, etc., but you can question him saying ' WHERE object_type IN ('PACKAGE', 'BODY of PACKAGE', 'PROCÉDURE', 'FUNCTION') ")
    USER_SOURCE who has one line of code in one of your packages, package bodies, procedures or functions

    There are also views starting with ALL_ (such as ALL_PROCEDURES, ALL_ARGUMENTS,...) for objects in any schema that you are authorized to use.
    There are also views starting with DBA_ (for example, DBA_PROCEDURES,...) for objects in any schema, if you have privileges on them or not, but you are not privileges to see the DBA_ views.

  • How to check the table have are all views in oracle

    Hello
    How to check the table have are all views in oracle
    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' 
    

    You can use dba_dependencies to find views in the different schema.

  • HOWTO check the correct installation of Oracle...

    Hi all

    How can I check if my Oracle installation is complete and in good health? I am enter connection problems after you have created a database with the dbca Wizard. This is the track of the error:

    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 error: 2: no such file or directory
    Process ID: 0
    Session IDs: serial number 0: 0

    This error I get when I try to log in to myself, being locally on the server. I have general connectivity issues, though more like tns-problems to research...

    Any idea, that I can help out the old message?

    Xenofon

    Make sure you have either init init.ora (GOLD).ora (OR) spfile.ora (OR)spfile .ora in location $ORACLE_HOME/dbs

    and then

    Start pfile='/u01/app/oracle/product/10.2.0/dbs/init.ora

    see your alerts and log
    Thank you

  • How can I use SQL to check the Version of Oracle Forms and object of the request?

    Hi all:

    How can I use SQL to check the Version of Oracle Forms and object of the request?





    Concerning
    Terry

    Terry,

    See the following threads/docs for the version of forms.

    How to find the developer version
    Re: How to find the developer version

    Note: 466890.1 - Script to find the Apache, Java, Jinitiator, version of forms and details of the JVM for Oracle E-Business Suite 11i
    Note: 392793.1 - how to get Forms Oracle Oracle Applications 11i Command Line Version
    Note: 468311.1 - Script to find the Apache, Java, JRE, Forms for Oracle E-Business Suite R12 version

    What purpose are you talking?

    Thank you
    Hussein

  • How can I check the version of Oracle on Linux?

    Hi all:

    How can I check the version of Oracle on Linux?




    Concerning
    Terry

    Hi terry;

    How can I check the version of Oracle on Linux?

    You mean your version of db or something else? If you mean you want to check your version number is:

    env as oramgr source file
    sqlplus "virtue sysdba".

    When you open a sqlplus session it will give u something like below:

    SQL * more: Release 10.2.0.4.0 - Production on

    Respect of
    HELIOS

Maybe you are looking for

  • Firefox crashes when I try to watch a video on youtube.

    My firefox crashes completely, I see only the first frame of the video, but I can still hear the sound. All this happened after the update on firefox. I have to go to Task Manager to close it.

  • Continuous data acquisition programming

    I wrote a program that I use to get the measurements continuously to a load with the DAQ assistant (attached) cell. I want to measure load values every 0.5 seconds and record each value using Scripture in the action file. I'm having some problems wit

  • Case of event Structure to manage the value between

    I put in place a structure of the event to enter data in a multicolumn listbox.  I wanted to use a table, but it was difficult to place symbols in the first column; even using the odd fonts (Webdings, etc.) to get check marks, x, etc...  I don't want

  • T61p drivers on Windows 7 (64-bit)

    Hello I want to upgrade my laptop to Windows 7 (64-bit) Windows XP I use (instead of slow Vista) is old enough (and only 32-bit). I found there is no drivers for a lot of thing (tried the system update, but it downloaded only a few drivers). Finally

  • FireSight hour defense Center

    I have time on firesight a time greater than the local time, I don't know if I disabled the advance of the era will become accurate. I don't know how to configure the daylight saving time. your help is appreciated for this problem. Thank you