How Oracle query space on versions

Hey Geeks,

I'm doing a spatial query to find the intersection of polygons.

But the scenario is, for the new user there will be a new version under his name, then he creates features in bentley map and post in Oracle Server.

Then I need to make the query to find those who intersect but only entities newly created version.

SELECT c.RECORD_ID FROM VW_LYR_STES c, T_LYR_LND p WHERE c.case_id = 'ABCD019034. '

AND SDO_RELATE (c.GEOM, p.GEOM, 'mask = anyinteract') = 'TRUE '.

Any ideas on how to achieve this, queries on the particular version.

Thanks in advance,

Ken

With Workspace Manager you shouldn't really be query the table LT - you should go through the view of high - T_LYR_STES in your case.  You can query the underlying table for the LT, but it's a bit nebulous art.  I use Workspace Manager for years and I've never asked the LT table directly if trying to debug some weird data scenarios.  In the normal course of events, you always pass by the view.

If the user has not yet merged to the workspace, then you should go to this area of work and request here.  For example

execute dbms_wm.goToWorkspace(');
SELECT c.RECORD_ID
FROM VW_LYR_STES c, T_LYR_LND p
WHERE c.case_id = 'ABCD019034'
AND SDO_RELATE(c.GEOM,p.GEOM,'mask=anyinteract') = 'TRUE';

Tags: Database

Similar Questions

  • How can I identify what version of Oracle is an instance?

    How can I identify what version of Oracle is an instance?

    Hello

    Use:

    SELECT *.

    SINCE the release of v$.

    It will produce output like:

    BANNER
    ----------------------------------------------------------------------

    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    The Group of numbers by the end of the 1st line (11.2.0.2.0 above) is the most important part.

  • 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

  • Can we make several Off features in a collection of panels and how the query-off based on the example?

    Mr President.

    Can we make several Off features in a collection of panels and how the query-off based on the example?

    Concerning

    Once again, no jdev version?

    It must be really hard to remember ehich version you are working.

    Would have given a quick glance in the docs

    featuresOff java.util.Set Yes a list separated by spaces of the features by default to disable to the panelCollection. Values supported are

    That is the answer to a message.

    The second answer is that qbe is filtering tables. If you fund the table without filter you have not the qbe.

    Timo

  • How Oracle called the hidden for the function-based index columns?


    I came across an interesting problem today.  Statistics object for a schema that have been created on the basis of data X have been imported into a 'identical' to the database schema Y.

    The problem is that, on the basis of data X a group of hidden columns associated with index based service (FBIs) were named SYS_NC00182$ to SYS_NC00191$ and on the basis of data Y the same hidden columns were named SYS_NC00183$ to SYS_NC00192$!  The consequence was that statistical column for an FBI data base X have been used for a totally different FBI on the database Y.

    Now, of course, if this was g 11 or 12 c I could just create virtual columns and those of the index.  In this way the names of the columns would be compatible on databases.  However, it is a 10g database, and I do not have this option.

    I am curious to understand how Oracle generates these hidden column names.  I'm also curious if, in 10g, there is a way to identify the name of a column hidden for an FBI that doesn't involve a statement explain plan running on a query that uses all the expressions of the FBI for the table.

    The names of $ SYS_NCnnnnn are based on the internal column id - what is loosely based on the order of creation of the FBI. If you delete a column the column internal ids (after this column), which means the names for the SYS_NCnnnnn$ the change.  An opportunity to explain your results is that a (real) column on the X data table fell, but the column still exists on the database Y.

    If you want to get the link between the current internal name and expression, then you can start with dba_ind_expressions - and create a customized version of the view - e.g @.

    Select c.intcol #, c.name, io.name, idx.name, bo.name, base.name, c.default$, ic.pos #.

    of sys.col$ c, sys.obj$ idx, basis of sys.obj$, sys.icol$ ic.

    sys. User$ io, sys.user$ bo, sys.ind$ I

    where bitand(ic.spare1,1) = 1 / * expression * /.

    and (bitand (students, 1024) = 0) / * not bmji * /.

    and ic.bo # c.obj = #.

    and ic.intcol # c.intcol = #.

    and ic.bo # base.obj = #.

    and io.user # idx.owner = #.

    and bo.user # base.owner = #.

    and ic.obj # idx.obj = #.

    and idx.obj # i.obj = #.

    and however # (1, 2, 3, 4, 6, 7, 9)

    /

    The first two columns in the select ones that I added to the initial view definition.

    Concerning

    Jonathan Lewis

  • How can I tell what version number of Medica Player I have in my PC

    How can I tell what version number of Medica Player I have in my PC.  My PC is configured to update automatically.  When I clicked on the 'ownership' of my Windows Media Player ted, it was created on 11 August 2011.  This means that I have the latest version (#12?) in my PC?

    Hi eaumng,

    Launch windows media player, right-click on an empty space in the lower right of the media player, hover over or select help and 'media player' and that should bring up a page on the drive media of which version you are running. If you OS is xp sp3, you probably #11 is installed, and it is the most updated for XP version.

  • How do I know what version of Media Player is installed?

    original title: version of Windows Media Player?

    I have windows 7 Premium installed on my computer.  How can I tell what version of Windows Media Player I have installed?  I have a new device that requires Windows Media Player 10 or higher to use my new camera, which is an mp3 player.

    Hi Cathy,.

    Thanks for posting your query in Microsoft Community!

    I understand you want to know what version of Windows Media Player you are using. I will help you with that.

    How to determine the version of Windows Media Player

    http://support.Microsoft.com/kb/190990#appliesTo

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

    We can't wait to hear back on your part.

  • How instalo una previa CC version?

    Estoy having problemas con mi version of Ilustrador (2015.3) y queria back a version 2015.

    How lo hago?

    1. launch creative cloud and go to applications

    2. go to previous versions and click list dropdown icon - see image below:

  • How much free space will be left after you import?

    Hallo. I need to replace all the patterns on the integration server using those on the production server. I want to know how much free space is left on/off data to the integration server after this kind of refreshment. The two databases are Oracle 9 so I'll use exp/IMP. Here's how I do it. Could check you if I think that good? It is 72 GB of free space on/data on the target server.

    Size used Avail capacity mounted file system
    / dev/vgsmxdata/lvsmxcopy G 194,74 122,56 72,18 G G 63% / data

    Overall size of the exported schemas of the SOURCE_DB is 150 GB. The same patterns on TARGET_DB takes 90 GB. If the difference is 60GB. Free space in the data files in TARGET_DB is 30 GB. This means that in the first place, the free space in the data files is filled and after that datafiles extend? This would mean that a database would extend up to 150 GB and data/free space would be 40 GB after updating. Am I wrong?

    SELECT ' TOTAL :'|| SUM (ALLOCATED_MB),
    ' USE :'|| SUM (USED_MB) USED,
    "FREE :'||". SUM (FREE_SPACE_MB)
    FROM (SELECT SUBSTR (df.NAME, 1, 40) file_name, df.bytes / 1024 / 1024 allocated_mb,)
    ((df.bytes/1024/1024)-NVL (SUM (dfs.bytes) / 1024 / 1024, 0)) used_mb,)
    NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb
    V $ datafile df, dfs dba_free_space
    WHERE df.file # = dfs.file_id (+)
    GROUP OF dfs.file_id, df.NAME, df.file #, df.bytes
    ORDER BY file_name);

    SOURCE_DB@Server1
    TOTAL (MB): 170860.984375
    USED (MB): 152777.859375
    FREE (MB): 18083.125

    TARGET_DB@Server2
    TOTAL (MB): 121634,984375
    USED (MB): 92853,109375
    FREE (MB): 28 781 875

    Published by: Przemek P on October 9, 2012 10:48

    There are a few potential pitfalls. First of all, when you import, the definition of the INITIAL segment may be too big, using more place you expect. This can be things like adding many lines, remove them and do not reset the high watermark before an insertion above the upper limit, or sometimes old problems that nobody noticed have stayed or reproduced. Second, if you have tables that have been updated, by using the pctfree in most blocks, then pctfree is honored to import, leaving more room never-to-be-used in blocks.

    From my experience, those who do rarely estimate more than 10% to the title, but sometimes previous misadventures are not completely fixed, wasting a lot of space or using excessive space. I spend usually less computing time and time of observation. But then again, I know what to expect of my App YMMV.

  • Question the use of Oracle query Variables

    Hello

    I am new to Oracle, I tried to extract the data from the Oracle database by using the following query which includes 1 variable SYSDATE_UTS, but when I try to execute the query I get an error. Please let me know what I am doing wrong and how I can fix.

    Error message
    -----
    ORA-06550: line 4, column 1:
    PLS-00428: an INTO clause in this SELECT statement
    -----

    Oracle query

    DECLARE SYSDATE_UTS NUMBER: = (sysdate-to_date('19700101','yyyymmdd')) * 86400;
    BEGIN

    SELECT
    INCIDENT_NUMBER,
    TO_DATE (to_char ((1/86400 * REPORTED_DATE) + to_date ('19700101', 'YYYYMMDD'), "jj/mm/aaaa hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as REPORTED_DATE_TIME,
    GROUP_TRANSFERS
    LAST_MODIFIED_BY
    , to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * LAST_MODIFIED_DATE, "mm/dd/yyyy hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as LAST_MODIFIED_DATE
    , (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) age
    CASE
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 0 AND 1, THEN ' 0 - 1 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 2 AND 4 and THEN 2-4 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 5 AND 9, THEN 5-9 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 10 AND 19, THEN 10-19 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) > 20 THEN ' Days 20 + ".
    ANOTHER "UNKNOWN".
    END AS AGE_GROUP
    OF IncidentDataBase
    and the STATE not in (4,5,6)
    and rownum < 10;
    END;

    If you run this query in sql * plus you can declare a sql * more variable, assign a numeric value according to 'now' and use in your application, i.e.

    SQL > variable NUMBER of SYSDATE_UTS;
    SQL > exec SYSDATE_UTS: = (sysdate-to_date('19700101','yyyymmdd')) * 86400;

    You would then call your request, referring to sql * more variable with a colon as SYSDATE_UTS prior to it (i.e.: SYSDATE_UTS)

    SELECT
    INCIDENT_NUMBER,
    TO_DATE (to_char ((1/86400 * REPORTED_DATE) + to_date ('19700101', 'YYYYMMDD'), "jj/mm/aaaa hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as REPORTED_DATE_TIME,
    GROUP_TRANSFERS
    LAST_MODIFIED_BY
    , to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 * LAST_MODIFIED_DATE, "mm/dd/yyyy hh24:mi:ss"), 'hh24:mi:ss dd/mm/yyyy') as LAST_MODIFIED_DATE
    , (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) age
    CASE
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 0 AND 1, THEN ' 0 - 1 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 2 AND 4 and THEN 2-4 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 5 AND 9, THEN 5-9 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) BETWEEN 10 AND 19, THEN 10-19 days
    WHEN (to_date (to_char (to_date ('01011970 ', 'ddmmyyyy') + 1/24/60/60 *: SYSDATE_UTS, ' mm/dd/yyyy'), ' mm/dd/yyyy'))-(to_date (to_char (+ to_date('19700101','yyyymmdd') + 1/86400 * REPORTED_DATE, ' mm/dd/yyyy'), ' mm/dd/yyyy')) > 20 THEN ' Days 20 + ".
    ANOTHER "UNKNOWN".
    END AS AGE_GROUP
    OF IncidentDataBase
    and the STATE not in (4,5,6)
    and rownum<>

    Table stores IncidentDataBase the "dates" in the number of seconds since the epoch unix?

  • How Oracle process concurrent requests

    Hi all

    Database: 11g

    I'm trying to understand how an Oracle DB handles multiple (simultaneous) requests submitted at the same time? One of my colleagues said that it can process only one instance at a time and not really treat multpile queries at a time. Is this true? An insertion point doesn't seem right to me, but I couldn't find any information on how he manages in fact several requests at once.

    Any info, etc. would be greatly appreciated.

    Thank you

    S

    >
    I'm trying to understand how an Oracle DB handles multiple (simultaneous) requests submitted at the same time? One of my colleagues said that it can process only one instance at a time and not really treat multpile queries at a time. Is this true? An insertion point doesn't seem right to me, but I couldn't find any information on how he manages in fact several requests at once.

    Any info, etc. would be greatly appreciated.
    >

    In contrast to some databases (they also have changed the behavior now), Oracle has never locks the table for read operations. First, Oracle have always pick up blocks at the moment (compatible mode) for a query and current mode for an LMD. When a session is a select statement, Oracle will read the segment headers and go and get the blocks. Like all queries are made in compatible mode, no matter how many sessions is but they all do the same becomes coherent. If some of these blocks have been changed until the query has begun but not committed or rolled back, Oracle will know that they are back and go and get them. But they are also in the buffer. Now, while the session is ended to retrieve the blocks (while still working Session 2), it would be possible that some session DML has updated some blocks that Session2 would have to pick up. Now 2 Session should also rebuild the undo blocks for blocks of the pre-image. It's why you can see while the meeting has made 1000 becomes coherent, is it possible that Session2 should be 5000 gets consistent because it was to read UNDO blocks so.

    To extend the subject on works the Oracle query mechanism, if the blocks are in the buffer cache, it will bring (LIO) and send it back to the PGA TOUR that he will send back to the client in the form of data. If blocks are not in the cache, it will go and read disks (PIO) and before to return data to the PGA, stop and load the buffer cache and then send it back to PGA and then back to the client. So now when Session B comes in next with the same query, Oracle will get from the buffer and return it immediately.

    You want to do a trace on sessions 1 and 2 for example (all by doing an update the same table Session 3 prior to the session 2 finishes) and you will see clearly how Oracle worked for your query.

  • New user how empty or spaces to display in a CSS Diag rule

    This is probably very simple but I tried many options and seem to be missing something. I thought BEFORE in block ownership was the key, but it still doesn't work.  It's my first website in CS4

    I created this in my css

    {p.underpic}

    text-align: left;

    do-size: 14px;

    margin-top: 0px;

    margin-bottom: 0px;

    Padding: 15px;

    Width: 250px;

    do-family: Georgia, "Times New Roman", Times, serif;

    border-style: solid;

    border-width: 1px;

    border color: #ccc;

    }

    So I want to put this desc under an image would have three lines and be able to space myself like that

    This is a test how

    making spaces appears

    $77,00

    Here is the code

    < / div >

    "< div id ="portfoliobox"> < a href =" images/Silver necks/Brown Agate 500.jpg' target = "_parent" > < img src = "images/Silver necks/Brown Agate 279.jpg" alt = "Earring 1" width = "279" height = "419" border = "0" / > < / has >

    < class p = "underpic" > This is a test - how to make spaces if poster I-$77,00 < /p >

    < / div >

    without the - all spaces are compressed out and I want to be able to keep I would like to.

    Thank you Terry

    Thank you all, tried most of the ideas and came up to the top with a fix that works sorta. If I insert multiple in the line, I can force spaces will appear. Not as clean as I hoped, but it will work. (Probably to right until the next version of the software... Terry

  • How can I check the version of the rdf file?

    Hi all:
    How can I check the version of the rdf file? This kind of CEXRECRE.rdf.

    my environment is: oracle 11.5.9
    platform: Linux red hat 4.0





    Concerning
    Terry

    Terry,

    Use "adident" or "strings - a ' commands - see (Note: 125922,1 - how to find Oracle Application File Versions) for more details.

    Thank you
    Hussein

  • How Oracle to store geometry values in the columns of the table?

    How Oracle to store geometry values in the columns of the table?

    Check this box:
    [Oracle Spatial User guide | http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/toc.htm]

    Check other documents space here.
    [http://www.oracle.com/pls/db102/portal.portal_db?selected=7]

    Published by: Anantha R on August 20, 2009 13:43

  • How to find the JDBC version

    Snoussi,

    How do we find JDBC version in apps 11i and R12.

    Thank you

    Hello

    You can get that by running the s/n RDA Data Collection Test Applications.

    Note: 183274.1 - Applications DBA data RDA Collection Test 11i
    https://MetaLink.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=183274.1

    Note: 732091.1 - Applications DBA data RDA Collection Test R12
    https://MetaLink.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=732091.1

    You can also refer to:

    Note: 164317,1 - upgrade with Oracle Applications 11i JDBC drivers
    https://MetaLink.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=164317.1

    Note: 435697.1 - how-to version get installed JDBC
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=435697.1

    Kind regards
    Hussein

Maybe you are looking for

  • Contact does not receive messages

    Hello, I need emergency aid, like one of my Skype contacts does not receive any of my messages, but I can receive all their I tried to register another account, but it still does not work, I have no idea why

  • Sections-

    Dear friends, I felt comfortable with the Pages about 5 years ago.  I have worked earlier with 09 numbers and fight with decision-making sections.  I think remember that sections allowed me to write as many pages in this section without text running

  • I have high speed internet, but now it, s verry slow and sometimes d, get it

    Hi I have a problem when i, m internet and I want to change the window or go to something else it take some time to change or w, go to another window, and when I type something upward This could take a few seconds before it turns out the letters, can

  • Report l / h

    I hit a button randomly on my computer and now all "icons" on my desk are twice the size than before. It makes me NUTS.How can I fix that? -Brian

  • I transferred files from my old laptop to my Vista running a new but can't open them as they say that they are not supported

    I transferred files using a windows vista belkin easy transfer cable to windows 7 * original title - I moved from my old laptop to my new files but can't open them as they say that they are not supported. Some files that I can open it but its just gi