Queries On UDT in Oracle.

Hi All,
I have got a couple of doubts on the Types.
1. the first one would be, I have a couple of Types which are created in one Schema for which I have been given execution permissions on another Schema [To which I have an access to]. But when I am trying to run a function which calls these types, they are not getting recognized and it is raising an error
"Error = System.InvalidOperationException: Custom
type mapping for 'dataSource='(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP) (HOST =
10.0.2.3) (PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME =
ORCLTD)))' schemaName='Test_API' typeName='COUNT'' is not specified or is invalid."
Here the Test_API would be the main schema where the Type and function exists.
Please suggest... any help will be greatly appreciated.
2. the second one would be ... If I have a Type which is derived from a base type, then how can I declare and send the parameter values in a PL/SQL command set. Please help me out. Waiting for you guys reply.
Thanx,
Anil.

HI,
please consider the following notes that explain how SAP handles commitments in purchasing
Note              459509     FAQ: Commitments in purchasing
Note     772206     Commitment Update in Service Purchase Orders
BR
Nadia Orlandi

Similar Messages

  • Queries with respect to Oracle 10g RAC - Primary & Standby DB environment

    Hi,
    Please guide in the following queries:
    On my 3 Node RAC with Primary DB, I have configured database backup (using Flashback) every 30min and I keep only one copy at a time. I also have a Physical Standby in the environment which has redo applied from primary with 30min delay.
    1. During recovery, is it possible to do recovery, on to the Primary DB, to a point-in-time which is 2 hr in past using the same flashback databse?
    2. Is it possible to restore the flashback database backup (taken from 3 Node RAC with Primary DB) into a NEW oracle setup which is different from the 3 Node RAC setup with Primary DB?
    3. If the Storage Device of 3 Node RAC setup fails, can I point the 3 Node instances on to a new Storage Device which has the backup of PrimaryDb restored from a StandBy db?
    Regards

    Is there anybody who can help on this?

  • Queries regarding DB2 to Oracle migration

    Hi,
    I am new to working on Oracle Migration Workbench and DB2. We are evaluating Oracle Migration Workbench (OMWB )for migrating our client's database which is on DB2 Version 5 Release 2 to Oracle. Request clarifications on below listed questions:
    1/ Is OMWB capable of migrating database which is on DB2 Version 5 Release 2 to Oracle?
    2/ When I connected to the AS/400 system using Capture Wizard, the system just stays on the Source Database Window with the message "Capturing Source Database..." for an unusually long time. Is there anyway to figureout if the process is going on fine or if there is an issue?
    Thank you.
    Regards,
    Balu

    To answer you first question, we don't support that version. You will need to seek an alternative tool, like for example SQL Ways from Ispirer
    http://www.ispirer.com/products/
    Donal

  • Parameterized queries not implemented in Oracle OLEDB ?

    Hi Xperts !
    I'm implementing an ADO application with Oracle Provider for OLEDB and get an error when accessing Parameters:Count properties of an ADO command object.
    Is this not implemented in Oracle OLEDB ?
    Is there a workaround to get and set parameters for a query ?
    Thanks in advance.
    Phil

    It can in principle be achieved in SQL (depending on what result set you require) with CONNECT BY and SYS_CONNECT_BY_PATH in 9i and later and with POWERMULTISET in 10g. No doubt this could be done in 8i if absolutely necessary.
    Possibly DBMS_FREQUENT_ITEMSETS in 10g supports this kind of analysis.

  • Extracting the DML queries by LCR in Oracle and send them over to IBM MQ

    Hi,
    My question is mostly about the concept of LCR (logical change recortds in Oracle Streams)
    I want to extract any DML script which has been applied to one specific table, but i don't want to apply this DML anywhere , I just want to send it over by AQ in oracle and then
    the MQ queues in IBM will recieve it.
    I don't know what the Mainframe guys are going to do with it but my task is to just send them the script?
    Do you think it's possible using the LCRs?
    Thanks in advance for comments!

    I had implemented such a setup few months back and it works fine except for some performance issues.
    you'll need to implement oracle streams and oracle messaging gateway for this propagation.
    below mentioned are the generalized steps:
    >>capture changes from redo log for the table by creating a capture process.
    >>store these messages in the staging area of advanced queues, which in turn are queues themselves.
    >>use apply process to enqueue these messages onto messaging gateway queue.
    >>the messages can be transported to Websphere MQ by creating propagation jobs, foreign queue links, messaging gateway agents etc.
    you can figure out the basic details using the link mentioned below.
    http://csus-dspace.calstate.edu/bitstream/handle/10211.9/1004/Masters%20Project%20Report_Raj_1222010.pdf?sequence=1

  • Queries on oracle hang after index creation

    Hi,
    I have a problem where queries issued on an oracle database hang after I create indexes on some of the tables used by these queries.
    I have a script where I drop indexes :
    DROP INDEX EVP_PCON00_CDSITC_IX;
    DROP INDEX EVP_PCS202_STIMP1_IX;
    DROP INDEX EVP_PECT00_ONAECT_IX;
    DROP INDEX EVP_PVAL01_ONAVAL_IX;
    After this script I load data into those tables.
    Then I launch another script where I recreate the indexes I just dropped :
    CREATE INDEX EVP_PCON00_CDSITC_IX  ON EVP_PCON00(CDSITC) TABLESPACE TS_ODS_INDEX;
    COMMIT;
    CREATE INDEX EVP_PCS202_STIMP1_IX  ON EVP_PCS202(STIMP1) TABLESPACE TS_ODS_INDEX;
    COMMIT;
    CREATE INDEX EVP_PVAL01_CDORIV_IX  ON EVP_PVAL01(CDORIV) TABLESPACE TS_ODS_INDEX;
    COMMIT;
    When the script ends, I try to execute a query using some of the tables I created indexes on :
    SELECT ...
    FROM ....
    WHERE ....
    The query never return a result set, it just hangs, I look at the session browser in toad and the scan of the first table used in the query hangs.
    When I drop those indexes and re execute the query everything works fine.
    Thanks
    Edited by: 946359 on Jul 13, 2012 9:20 AM

    This is the result I get :
    Execution Plan
    Plan hash value: 1198043594
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 1343 | 12 (17)| 00:00:01 |
    | 1 | HASH UNIQUE | | 1 | 1343 | 12 (17)| 00:00:01 |
    |* 2 | HASH JOIN OUTER | | 1 | 1343 | 11 (10)| 00:00:01 |
    | 3 | NESTED LOOPS OUTER | | 1 | 1257 | 9 (12)| 00:00:01 |
    | 4 | NESTED LOOPS OUTER | | 1 | 1033 | 8 (13)| 00:00:01 |
    | 5 | NESTED LOOPS OUTER | | 1 | 809 | 7 (15)| 00:00:01 |
    |* 6 | HASH JOIN | | 1 | 585 | 6 (17)| 00:00:01 |
    | 7 | NESTED LOOPS | | | | | |
    | 8 | NESTED LOOPS | | 1 | 490 | 3 (0)| 00:00:01 |
    | 9 | TABLE ACCESS FULL | EVP_PTIP00 | 1 | 452 | 2 (0)| 00:00:01 |
    |* 10 | INDEX RANGE SCAN | EVP_PTIC00_CDROLE_IX | 1 | | 1 (0)| 00:00:01 |
    |* 11 | TABLE ACCESS BY INDEX ROWID| EVP_PTIC00 | 1 | 38 | 1 (0)| 00:00:01 |
    | 12 | TABLE ACCESS FULL | EVP_PTIF00 | 1 | 95 | 2 (0)| 00:00:01 |
    |* 13 | TABLE ACCESS BY INDEX ROWID | EVP_PTAB00 | 1 | 224 | 1 (0)| 00:00:01 |
    |* 14 | INDEX RANGE SCAN | EVP_PTAB00_CLTABL_IX | 1 | | 1 (0)| 00:00:01 |
    |* 15 | TABLE ACCESS BY INDEX ROWID | EVP_PTAB00 | 1 | 224 | 1 (0)| 00:00:01 |
    |* 16 | INDEX RANGE SCAN | EVP_PTAB00_CLTABL_IX | 1 | | 1 (0)| 00:00:01 |
    |* 17 | TABLE ACCESS BY INDEX ROWID | EVP_PTAB00 | 1 | 224 | 1 (0)| 00:00:01 |
    |* 18 | INDEX RANGE SCAN | EVP_PTAB00_CLTABL_IX | 1 | | 1 (0)| 00:00:01 |
    | 19 | TABLE ACCESS FULL | EVP_PRIB00 | 1 | 86 | 2 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("EVP_PRIB00"."NOTIER"(+)="EVP_PTIP00"."NOTIER")
    6 - access("EVP_PTIF00"."NOTIER"="EVP_PTIP00"."NOTIER")
    10 - access("EVP_PTIC00"."CDROLE"='EMP')
    11 - filter("EVP_PTIC00"."CDDDRX"='CL' AND "EVP_PTIP00"."NOTIER"="EVP_PTIC00"."NOTIER")
    13 - filter("EVP_PTAB00_SITF"."CDTABL"(+)="EVP_PTIP00"."CDSITF")
    14 - access("EVP_PTAB00_SITF"."CLTABL"(+)='SITF')
    15 - filter("EVP_PTAB00_TITR"."CDTABL"(+)="EVP_PTIP00"."CDTITR")
    16 - access("EVP_PTAB00_TITR"."CLTABL"(+)='TITR')
    17 - filter("EVP_PTAB00_RMAT"."CDTABL"(+)="EVP_PTIP00"."CDRMAT")
    18 - access("EVP_PTAB00_RMAT"."CLTABL"(+)='RMAT')

  • Trace queries from abap to a custom oracle database via dblink

    I' m
    connecting to a database by dblink (name magiap).
    I
    would like to know if somewhere I can trace all the queries from abap to oracle
    in this specific session , to dbs ='MAGIAP'.
    For istance, i would like that the query
    "SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" = '305142941' will
    be stored some where (in a file??).
    I would like that parameters - w_CODPARTY- will be substituted and stored in the trace
    file with the value (305142941), as shown in the previous
    Here
    is the piece of code ..(a very short example of course)..
    DATA : dbs LIKE dbcon-con_name,
    v_CODPARTY(15),
    v_DESPARTY1(60).
    data : w_CODPARTY(15) value '305142941'.
    dbs = 'MAGIAP'.
    TRY.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    IF sy-subrc <> 0.
    EXEC SQL.
    CONNECT TO :dbs
    ENDEXEC.
    ENDIF.
    IF sy-subrc <> 0.
    * RAISE err_conn_aea.
    ENDIF.
    EXEC SQL.
    set connection :dbs
    ENDEXEC.
    EXEC SQL .
    SELECT "DESPARTY1"
    into :v_DESPARTY1
    FROM "T040PARTY"
    WHERE "CODPARTY" =
    :w_CODPARTY
    ENDEXEC.
    IF sy-subrc NE 0.
    * rc = 4.
    ENDIF.
    EXEC SQL.
    DISCONNECT :dbs
    ENDEXEC.
    ENDTRY.

    Hi Silvana,
    The SQL statements have been stored in the SQL Cursor Cache, on the database and they will be available until they have been invalidated. You can access the statements at the 'MAGIAP' side and see the last executed queries in the cache.
    You can access bind variables by query on the V$SQL_BIND_CAPTURE table, also.
    On the other hand, you can activate the trace by the statement, below;
    ALTER SYSTEM SET sql_trace = true SCOPE=MEMORY;
    Then, the sql statements will be available in the usertrace file. Please note that you should execute and investigate all the statements that I noted above, at the remote side. Plus, as far as I know that it is not able to distinguish the records by the "dblink name". You should check all the statements and try to figure out what queries have been executed remotely.
    Best regards,
    Orkun Gedik

  • Help desiging a 10g Oracle Report with Matrix and Lexical Parameters - Long

    Hello all:
    I apologize in advance for this long post.... I'm using Oracle Reports 10g (9.0.4.0.33). First -- the question:
    I need to create a Matrix where the rows come from one database table
    (TABLE1) and the columns and cell contents come from a linked query (pulled from TABLE2) that is generated with lexical parameters based on the current TABLE1 row. The lexical parameters contain a WHERE clause for the TABLE2 query. Basically, I have a linked query between TABLE1 and TABLE2. I need to generate a Matrix around it.
    Does anyone know if this is even possible?
    Here's the background on the application, if that is helpful...
    I have an application where I maintain database tables containing names/addresses along with information pertaining to them. As part of the processing, I need to produce reports that contain statistics based on values in the table. For example, each row has a field RTYPE that identifies the Record Type (1-Suppress, 2-Buyer, 3-Inquirer). Each row also has a last purchase date field. The statistics produced for this field would look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Buyer      100 150 250 30 25 15 8 9 22 83
    Inquirer     1000 800 493 ...
    Suppress ... ...
    Totals ... ...
    Each cell contains the count of the number of records that have the corresponding RTYPE and Last Purchase date. The dates across the top are determined by the most recent purchase date in the file. We count the last 12 months, month by month, and then anything older than that is grouped by
    year of purchase. So, the column headings are variable.
    The SQL query for this example looks like this:
    SELECT CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END HLDESC,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END YYMM_8,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END FmtDate_8,
    COUNT(*) HLCOUNT
    FROM &TABLENAME T
    GROUP BY CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END
    ORDER BY CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END
    There might be a better way to write this, but that isn't the issue at the moment.
    I have many different tables, each with different fields. I need to produce counts on each of those fields. Some of those fields have a limited number of values where I need to count the occurrences and attach a description (like the RTYPE counts above). Others, like Last Purchase Amount, require counts within ranges (between 0 and 9.99, 10 and 19.99, etc.). Still others are "multiple choice"-style fields (such as products purchased), where we have multiple single-char flags that are not null when the corresponding products are purchased. In this case, we need to produce statistics that look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Product 1 .........
    Product 2 .........
    The worst of the bunch is a field where I need to count the occurrence of each value within it (hundreds of values) without entering descriptions, so I don't know how many rows will appear ahead of time. This is used for "source codes" that identify where the name/address came from. They look similar to the RTYPE above, but the leftmost column contains each value from the field rather than a description. There are so many possible values and they change so often that it isn't feasible to enter a description for each one.
    Right now, I manually create an Oracle Report for each table when I design/load it. This is becoming difficult to manage, since I have over 150 of them now. Each of these reports can have any number of matrices to display (the largest right now has about 25).
    The new table structure to generate these reports consists of two tables: A COUNTHDR table and a COUNTROW table. The COUNTHDR table represents a single Matrix within the report. It contains info such as a heading for the Matrix and whether column totals should be calculated or not. The COUNTROW table contains a description for each row and an SQL Fragment that contains an appropriate WHERE clause to match the description. In the event of a "source code" style count, COUNTHDR has the name of the field to count. COUNTROWs won't exist, so I'll be handling those counts differently. But, ignoring that issue for now, the report structure looks like this:
    + Q1 +
    |
    + COUNTHDR +
    |
    + COUNTROW +
    | linked query
    + Q2 +
    |
    + COUNTDTL +
    Q2 is the query with lexical parameters for the table and "where clause" that identifies the actual statistic I need counted. I need fields from COUNTROW and COUNTDTL to form a Matrix.
    Can this be done? How?
    Of course, if anyone out there has a better idea on how to achieve my goal of not writing a report per table, please let me know!! :-)
    TIA
    Eric Raskin
    PS. This structure does not exactly duplicate my original query, since multiple Matrix rows are created by the single SQL query given in the example. Instead, I'll end up executing an SQL query for each row, which is less than desirable. The design will need some tweaking...
    PPS. I have tried handling this problem by pre-counting the target table and storing the results in a COUNTCOL table, containing the details of the matrix. This actually does work, but the performance is terrible. I have one "source code"-style count that generated over 20,000 detail cells, including all the "0" cells needed to fill out the matrix. If you don't generate the "0" cells, you get holes in the matrix presentation and/or error messages (which I can explain if you wish). I never did get Oracle Reports to print this one -- I gave up after an hour of runtime on a P4 3GHz machine connected via Gigabit Ethernet to the server. Hence the attempt to push the SQL Queries back into the Oracle Report itself.
    Eric H. Raskin Voice: 914-765-0500
    Professional Advertising Systems Inc. Fax: 914-765-0503
    200 Business Park Dr Suite 107 [email protected]
    Armonk, NY 10504

    Hi there
    here's example of my code
    Html header of the page :
    <script language="JavaScript" type="text/javascript">
    function callMyPopup (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url;
    url = 'f?p=&APP_ID.:8:&APP_SESSION.::::P8_PROJECT,P8_PDRL_NO:' + formVal1 + ',' + formVal2;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    troubleshooting
    1.Test each parameter separate first - each work ?
    2.Use code above, rerig it, create multiple parameter
    3.try again...
    hope this helps...
    check your orginial source (page where items are) - what data

  • Oracle.jbo.NoDefException JBO-25058

    I am using JDeveloper 11g (11.1.1.2.0) and I am getting an exception when using a choice list in a Search form (Query Component) which is created as a View Criteria on a view object based on an entity object. These are the steps I followed when creating this:
    1. Created an Entity Object.
    2. Created a view object
    3. Created a view accessor for accessing the values to be used for LOV.
    4. In the View Object's attributes window, specified the LOV for the attribute "USR_STA_CD"
    5. Created a view criteria(s) for this view object.
    6. For one of the View Criteria's, for the attribute "USR_STA_CD", selected operator "EqualTo", Operand to be "Literal", checked "IgnoreCase" so that this attribute can use the Choice list with all the values retrieved by the view accessor created earlier.
    Now in the front end, using this view object created the search form (Query Components) page and the detail page (with the control flow accordingly mapped in the bounded task flow). The Detail Page is able to show the choice list (correctly with the view accessor and LOV configiration done in the Model).
    I have also tested the functionality using the Business Component Tester locally and it is working fine with the choice list getting all the required configured values from the view accessor but in the front end, the search form (Query Components) page is throwing the below error on loading:
    *oracle.jbo.NoDefException: JBO-25058: Definition __vcrow_indexed_attribute__UsrStaCd_0 of type Attribute is not found in vcilov_LOV_UsrStaCd_DSExternalUserVOSubCriteria1_vcrow78_UsrStaCd.*     
    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:526)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.hasAttributeViewablePermission(JUCtrlValueBinding.java:3300)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeViewable(JUCtrlValueBinding.java:3265)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeFromRow(JUCtrlValueBinding.java:685)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributes(JUCtrlValueBinding.java:1348)
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.getDisplayValues(JUCtrlListBinding.java:3675)
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.getMergedPrompt(JUCtrlListBinding.java:3666)
         at oracle.jbo.uicli.binding.JUCtrlListBinding$JUCtrlListBindingItemRef.get(JUCtrlListBinding.java:3633)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding$1.get(FacesCtrlListBinding.java:271)
         at java.util.AbstractList$Itr.next(AbstractList.java:345)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.addSelectItems(SelectItemUtils.java:209)
         at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.getSelectItems(SelectItemUtils.java:78)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneChoiceRenderer.getSelectItems(SimpleSelectOneChoiceRenderer.java:83)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer._renderContent(SimpleSelectBaseRenderer.java:194)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.renderElementContent(SimpleSelectBaseRenderer.java:113)
         at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsElement(FormInputRenderer.java:149)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:135)
         at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1600)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:204)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:186)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2572)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:468)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:628)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:570)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:327)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    Caused By: oracle.jbo.NoDefException: JBO-25058: Definition __vcrow_indexed_attribute__UsrStaCd_0 of type Attribute is not found in SNIDataSecurityService_DSExternalUser1_SearchExternalUsers_51.
    Below is the XML file for the view object with the View criteria(s) definition. The view criteria that is causing this
    problem is "SearchExternalUsers" and the attribute name is "UsrStaCd" (USR_STA_CD).
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="DSExternalUserVO"
    Version="11.1.1.55.36"
    SelectList="DSExternalUserEO.USR_ID,
    DSExternalUserEO.USR_STA_CD,
    DSExternalUserEO.USR_TERM_DT,
    DSExternalUserEO.USR_FRST_NAM,
    DSExternalUserEO.USR_LAST_NAM,
    DSExternalUserEO.CPY_NAM,
    DSExternalUserEO.VERS_NUM,
    DSExternalUserEO.CRE_USR_ID,
    DSExternalUserEO.CRE_DTTM,
    DSExternalUserEO.UPD_USR_ID,
    DSExternalUserEO.UPD_DTTM"
    FromList="SNI.SNI_DS_EXT_USR DSExternalUserEO"
    BindingStyle="OracleName"
    CustomQuery="false"
    RowClass="sni.datasecurity.model.queries.DSExternalUserVORowImpl"
    ComponentClass="sni.datasecurity.model.queries.DSExternalUserVOImpl"
    DefClass="sni.foundation.bcextensions.SNIViewDefImpl"
    PageIterMode="Full"
    UseGlueCode="false"
    ComponentInterface="sni.datasecurity.model.queries.common.DSExternalUserVO"
    ClientProxyName="sni.datasecurity.model.queries.client.DSExternalUserVOClient">
    <DesignTime>
    <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess"/>
    <Attr Name="_isCodegen" Value="true"/>
    </DesignTime>
    <Variable
    Name="roleCd"
    Kind="viewcriteria"
    Type="java.lang.String"/>
    <Data>
    <Property
    Name="ID"
    Value="69408eb1-0128-1000-800c-0a0a0a0a2ccb::::ViewObject"/>
    </Data>
    *<ViewAccessor*
    Name="ExtUserStatusCodesLOVVA"
    ViewObjectName="sni.foundation.lovs.quries.SNIListOfValuesVO">
    *<ParameterMap>*
    *<PIMap Variable="BindApplicationCode">*
    *<TransientExpression><![CDATA['DATASEC']]></TransientExpression>*
    *</PIMap>*
    *<PIMap Variable="BindDomainName">*
    *<TransientExpression><![CDATA['USER_STATUS_CODES']]></TransientExpression>*
    *</PIMap>*
    *</ParameterMap>*
    *</ViewAccessor>*
    *<ListBinding*
    Name="LOV_UsrStaCd"
    ListVOName="ExtUserStatusCodesLOVVA"
    ListRangeSize="-1"
    NullValueFlag="start"
    *NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"*
    *MRUCount="0">*
    *<AttrArray Name="AttrNames">*
    *<Item Value="UsrStaCd"/>*
    *</AttrArray>*
    *<AttrArray Name="ListAttrNames">*
    *<Item Value="DmnValCd"/>*
    *</AttrArray>*
    *<AttrArray Name="ListDisplayAttrNames">*
    *<Item Value="LongVal"/>*
    *</AttrArray>*
    *<DisplayCriteria/>*
    *</ListBinding>*
    <EntityUsage
    Name="DSExternalUserEO"
    Entity="sni.datasecurity.model.entities.DSExternalUserEO">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-808b-0a0a0a0a2ccb::::EntityObjectInstance"/>
    </Data>
    </EntityUsage>
    <ViewAttribute
    Name="UsrId"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="UsrId"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_ID">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8079-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    *<ViewAttribute*
    *Name="UsrStaCd"*
    *IsNotNull="true"*
    *PrecisionRule="true"*
    *EntityAttrName="UsrStaCd"*
    *EntityUsage="DSExternalUserEO"*
    *AliasName="USR_STA_CD"*
    *LOVName="LOV_UsrStaCd">*
    *<Data>*
    *<Property*
    *Name="ID"*
    *Value="69409894-0128-1000-807a-0a0a0a0a2ccb::::ViewObjectAttribute"/>*
    *</Data>*
    *<Properties>*
    *<SchemaBasedProperties>*
    *<CONTROLTYPE*
    *Value="choice"/>*
    *<DISPLAYWIDTH*
    *Value="20"/>*
    *</SchemaBasedProperties>*
    *</Properties>*
    *</ViewAttribute>*
    <ViewAttribute
    Name="UsrTermDt"
    PrecisionRule="true"
    EntityAttrName="UsrTermDt"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_TERM_DT">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807b-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="UsrFrstNam"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="UsrFrstNam"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_FRST_NAM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807c-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="UsrLastNam"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="UsrLastNam"
    EntityUsage="DSExternalUserEO"
    AliasName="USR_LAST_NAM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807d-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CpyNam"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CpyNam"
    EntityUsage="DSExternalUserEO"
    AliasName="CPY_NAM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-807e-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="30"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="VersNum"
    PrecisionRule="true"
    EntityAttrName="VersNum"
    EntityUsage="DSExternalUserEO"
    AliasName="VERS_NUM">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8086-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="CreUsrId"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CreUsrId"
    EntityUsage="DSExternalUserEO"
    AliasName="CRE_USR_ID"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8087-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    <Properties>
    <SchemaBasedProperties>
    <DISPLAYWIDTH
    Value="20"/>
    </SchemaBasedProperties>
    </Properties>
    </ViewAttribute>
    <ViewAttribute
    Name="CreDttm"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CreDttm"
    EntityUsage="DSExternalUserEO"
    AliasName="CRE_DTTM"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8088-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="UpdUsrId"
    PrecisionRule="true"
    EntityAttrName="UpdUsrId"
    EntityUsage="DSExternalUserEO"
    AliasName="UPD_USR_ID"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-8089-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    <ViewAttribute
    Name="UpdDttm"
    PrecisionRule="true"
    EntityAttrName="UpdDttm"
    EntityUsage="DSExternalUserEO"
    AliasName="UPD_DTTM"
    IsUpdateable="false">
    <Data>
    <Property
    Name="ID"
    Value="69409894-0128-1000-808a-0a0a0a0a2ccb::::ViewObjectAttribute"/>
    </Data>
    </ViewAttribute>
    *<ViewCriteria*
    *Name="SearchExternalUsers"*
    *ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"*
    *Conjunction="AND">*
    *<Properties>*
    *<CustomProperties>*
    *<Property*
    *Name="displayOperators"*
    *Value="InAdvancedMode"/>*
    *<Property*
    *Name="autoExecute"*
    *Value="false"/>*
    *<Property*
    *Name="allowConjunctionOverride"*
    *Value="true"/>*
    *<Property*
    *Name="showInList"*
    *Value="true"/>*
    *<Property*
    *Name="mode"*
    *Value="Basic"/>*
    *<Property*
    *Name="displayName"*
    *ResId="displayName"/>*
    *</CustomProperties>*
    *</Properties>*
    *<ViewCriteria*
    *Name="DSExternalUserVOSubCriteria1"*
    *ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"*
    *Conjunction="AND">*
    *<ViewCriteriaRow*
    *Name="vcrow78"*
    *UpperColumns="1">*
    *<ViewCriteriaItem*
    *Name="DSExternalUserVOSubCriteria1_vcrow78_UsrId"*
    *ViewAttribute="UsrId"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="SearchExternalUsers_DSExternalUserVOSubCriteria1_vcrow78_UsrStaCd"*
    *ViewAttribute="UsrStaCd"*
    *Operator="="*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="SearchExternalUsers_DSExternalUserVOSubCriteria1_vcrow78_UsrFrstNam"*
    *ViewAttribute="UsrFrstNam"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="SearchExternalUsers_DSExternalUserVOSubCriteria1_vcrow78_UsrLastNam"*
    *ViewAttribute="UsrLastNam"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *<ViewCriteriaItem*
    *Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_vcrow78_CpyNam"*
    *ViewAttribute="CpyNam"*
    *Operator="STARTSWITH"*
    *Conjunction="AND"*
    *Required="Optional"/>*
    *</ViewCriteriaRow>*
    *</ViewCriteria>*
    *</ViewCriteria>*
    <ViewCriteria
    Name="SecondarySearch"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    <Property
    Name="displayName"
    ResId="displayName"/>
    </CustomProperties>
    </Properties>
    <ViewCriteria
    Name="DSExternalUserVOSubCriteria1_1"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <ViewCriteriaRow
    Name="vcrow11"
    UpperColumns="1">
    <ViewCriteriaItem
    Name="DSExternalUserVOSubCriteria1_1_vcrow11_UsrId"
    ViewAttribute="UsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_UsrFrstNam"
    ViewAttribute="UsrFrstNam"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_UsrLastNam"
    ViewAttribute="UsrLastNam"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_CpyNam"
    ViewAttribute="CpyNam"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_CreUsrId"
    ViewAttribute="CreUsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Required="Optional"/>
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow11_CreDttm"
    ViewAttribute="CreDttm"
    Operator="="
    Conjunction="AND"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewCriteria>
    <ViewCriteria
    Name="SearchExternalUsersByRole"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <Properties>
    <CustomProperties>
    <Property
    Name="displayOperators"
    Value="InAdvancedMode"/>
    <Property
    Name="displayName"
    ResId="LABEL_SEARCH_EXTERNAL_USERS_BY_ROLE"/>
    <Property
    Name="autoExecute"
    Value="false"/>
    <Property
    Name="allowConjunctionOverride"
    Value="true"/>
    <Property
    Name="showInList"
    Value="true"/>
    <Property
    Name="mode"
    Value="Basic"/>
    </CustomProperties>
    </Properties>
    <ViewCriteria
    Name="DSExternalUserVOSubCriteria1_1"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserVO"
    Conjunction="AND">
    <ViewCriteriaRow
    Name="vcrow124"
    UpperColumns="1">
    <!--ViewCriteriaItem
    Name="DSExternalUserVOSubCriteria1_1_vcrow124_UsrId"
    ViewAttribute="UsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Value=""
    Required="Optional"/-->
    <ViewCriteriaItem
    Name="DSExternalUserVOCriteria_DSExternalUserVOSubCriteria1_1_vcrow124_DSExternalUserRole"
    ViewAttribute="DSExternalUserRole"
    Operator="EXISTS"
    Conjunction="AND"
    Required="Optional">
    <ViewCriteria
    Name="DSExternalUserRoleVONestedCriteria"
    ViewObjectName="sni.datasecurity.model.queries.DSExternalUserRoleVO"
    Conjunction="AND">
    <ViewCriteriaRow
    Name="vcrow125"
    UpperColumns="1">
    <!--ViewCriteriaItem
    Name="DSExternalUserRoleVONestedCriteria_vcrow125_UsrId"
    ViewAttribute="UsrId"
    Operator="STARTSWITH"
    Conjunction="AND"
    Value=""
    Required="Optional"/-->
    <ViewCriteriaItem
    Name="DSExternalUserRoleVONestedCriteria_vcrow125_RolCd"
    ViewAttribute="RolCd"
    Operator="="
    Conjunction="AND"
    Required="Optional"/>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewCriteriaItem>
    </ViewCriteriaRow>
    </ViewCriteria>
    </ViewCriteria>
    <ViewLinkAccessor
    Name="DSUserGroup"
    ViewLink="sni.datasecurity.model.queries.viewlinks.ExternalUserToUserGroup"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <ViewLinkAccessor
    Name="DSExternalUserRole"
    ViewLink="sni.datasecurity.model.queries.viewlinks.ExternalUserToExternalUserRole"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <ViewLinkAccessor
    Name="DSExternalUserSniRel"
    ViewLink="sni.datasecurity.model.queries.viewlinks.ExternalUserToExternalUserSniRel"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false"/>
    <LOVUIHints
    ListType="105"
    MRUCount="0"
    ListRangeSize="-1"
    NullValueFlag="none"
    NullValueId="LOVUIHints_NullValueId">
    <DisplayCriteria/>
    </LOVUIHints>
    <ResourceBundle>
    <PropertiesBundle
    PropertiesFile="sni.datasecurity.model.SNIDataSecurityModelBundle"/>
    </ResourceBundle>
    <ClientInterface>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    <Method
    Name="getRowStatus">
    <Return
    Type="java.lang.String"/>
    <Parameter
    Name="row"
    Type="oracle.jbo.Row"/>
    </Method>
    </ClientInterface>
    </ViewObject>
    Thanks
    Venkat
    Edited by: Venkatesh Pasam on Jun 9, 2010 2:14 PM
    Edited by: Venkatesh Pasam on Jun 9, 2010 2:16 PM
    Edited by: Venkatesh Pasam on Jun 9, 2010 2:18 PM

    Can some one please help me with this.
    Thanks
    Venkatesh

  • Different Results from SQL-Query in Oracle 10.2 and  Oracle 11.2

    Look at the following example:
    CREATE TABLE GZP_PLAN (GZP_ID
    NUMBER(9) NOT NULL, PARENT_GZP_ID NUMBER(9),
    CONSTRAINT GZP_PLAN_PK1 PRIMARY KEY(GZP_ID)
    USING INDEX
    TABLESPACE USERS
    TABLESPACE USERS;
    insert into GZP_PLAN values(1,NULL);
    CREATE TABLE GZP_WB (OBJECTID NUMBER
    NOT NULL, GZP_ID NUMBER(10),
    CONSTRAINT GZP_WB_PK1_1 PRIMARY KEY(OBJECTID)
    USING INDEX
    TABLESPACE USERS
    TABLESPACE USERS;
    insert into GZP_WB values(1,1);
    CREATE OR REPLACE VIEW VW_GZP (GZP_ID1) AS
    SELECT xxx.gzp_id
    FROM gzp_plan xxx
    WHERE gzp_id IN (
    SELECT MAX (z.gzp_id) zzz
    FROM gzp_plan z
    START WITH z.gzp_id = xxx.gzp_id
    CONNECT BY PRIOR gzp_id = parent_gzp_id);
    -- query
    select a.* from GZP_WB a where gzp_id in (select gzp_id1 from vw_gzp);
    Result in Oracle 10.2. (Windows Server 2003 32-bit, Oracle 10.2.0.2 or Oracle 10.2.0.5, Enterprise Edition)
    OBJECTID     GZP_ID
    *1 1*
    Result in Oracle 11.2 (Windows Server 2008 64-bit, Oralcle 11.2.0.2, Enterprise Edition or Standard Edition One)
    no rows selected
    The result of the following queries are identical in Oracle 10.2 and 11.2
    SQL> select * from GZP_WB where to_char(gzp_id) in
    2 (select to_char(gzp_id1) from vw_gzp);
    OBJECTID GZP_ID
    1 1
    SQL>
    SQL> select a.* from GZP_WB a, vw_gzp b where a.gzp_id=b.gzp_id1;
    OBJECTID GZP_ID
    1 1

    The solution is Oracle 11.2.0.3 - patchset released 11th November.

  • Oracle Database 10g Express Edition How to change the prot 8080 ????

    Hello I have installed Oracle Database 10g Express Edition
    it listen to port 8080 how can I change it to prot i want ?
    Thanks

    Above post addressed you query. But i suggest Book Mark following doc,it will address most of the queries regarding XE Database
    Oracle Database Express Edition 2 Day DBA

  • Spatial Queries are CPU bound and show very heavy use of query buffers

    Hi,
    Spatial Queries:
    When using tkprof to analyse spatial queries it is clear that
    there are implicit queries being done by Oracle spatial which
    use vast amounts of buffers, and seem unable to cache basic
    information from query to query - thus resulting in our machine
    being CPU bound when stress testing Oracle Spatial, for example
    the example below shows how information which is fixed for a
    table and not likely to change very often is being retrieved
    inefficiently (note the 26729 query buffers being used to do 6
    executions of what should be immediately available!!!):
    TKPROF: Release 8.1.7.0.0 - Production on Tue Oct 16 09:43:38
    2001
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    SELECT ATTR_NO, ATTR_NAME, ATTR_TYPE_NAME, ATTR_TYPE_OWNER
    FROM
    ALL_TYPE_ATTRS WHERE OWNER = :1 AND TYPE_NAME = :2 ORDER BY
    ATTR_NO
    call count cpu elapsed disk query rows
    Parse 6 0.00 0.01 0 0 0
    Execute 6 0.00 0.01 0 0 0
    Fetch 6 0.23 0.41 0 26729 5
    total 18 0.23 0.43 0 26729 5
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 37 (NAGYE)
    Rows Row Source Operation
    0 SORT ORDER BY
    0 FILTER
    1 NESTED LOOPS
    1 NESTED LOOPS
    290 NESTED LOOPS
    290 NESTED LOOPS
    290 NESTED LOOPS
    290 NESTED LOOPS
    290 TABLE ACCESS FULL ATTRIBUTE$
    578 TABLE ACCESS CLUSTER TYPE$
    578 TABLE ACCESS CLUSTER TYPE$
    578 INDEX UNIQUE SCAN (object id 255)
    578 TABLE ACCESS BY INDEX ROWID OBJ$
    578 INDEX RANGE SCAN (object id 35)
    578 TABLE ACCESS CLUSTER USER$
    578 INDEX UNIQUE SCAN (object id 11)
    289 TABLE ACCESS BY INDEX ROWID OBJ$
    578 INDEX RANGE SCAN (object id 35)
    0 TABLE ACCESS CLUSTER USER$
    0 INDEX UNIQUE SCAN (object id 11)
    0 FIXED TABLE FULL X$KZSPR
    0 NESTED LOOPS
    0 FIXED TABLE FULL X$KZSRO
    0 INDEX RANGE SCAN (object id 101)
    error during parse of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the
    view
    and again:
    SELECT diminfo, nvl(srid,0)
    FROM
    ALL_SDO_GEOM_METADATA WHERE OWNER = 'NAGYE' AND TABLE_NAME =
    NLS_UPPER('TILE_MED_LINES_MBR') AND '"'||COLUMN_NAME||'"'
    = '"GEOM"'
    call count cpu elapsed disk query
    current rows
    Parse 20 0.00 0.04 0
    0 0 0
    Execute 20 0.00 0.00 0
    0 0 0
    Fetch 20 0.50 0.50 0 5960
    100 20
    total 60 0.50 0.54 0 5960
    100 20
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 37 (NAGYE) (recursive depth: 1)
    Rows Row Source Operation
    1 FILTER
    2 TABLE ACCESS BY INDEX ROWID SDO_GEOM_METADATA_TABLE
    2 INDEX RANGE SCAN (object id 24672)
    1 UNION-ALL
    1 FILTER
    1 NESTED LOOPS
    1 NESTED LOOPS
    1 NESTED LOOPS OUTER
    1 NESTED LOOPS OUTER
    1 NESTED LOOPS OUTER
    1 NESTED LOOPS OUTER
    1 NESTED LOOPS
    1 TABLE ACCESS FULL OBJ$
    1 TABLE ACCESS CLUSTER TAB$
    1 INDEX UNIQUE SCAN (object id 3)
    0 TABLE ACCESS BY INDEX ROWID OBJ$
    1 INDEX UNIQUE SCAN (object id 33)
    0 INDEX UNIQUE SCAN (object id 33)
    0 TABLE ACCESS CLUSTER USER$
    1 INDEX UNIQUE SCAN (object id 11)
    1 TABLE ACCESS CLUSTER SEG$
    1 INDEX UNIQUE SCAN (object id 9)
    1 TABLE ACCESS CLUSTER TS$
    1 INDEX UNIQUE SCAN (object id 7)
    1 TABLE ACCESS CLUSTER USER$
    1 INDEX UNIQUE SCAN (object id 11)
    0 FILTER
    0 NESTED LOOPS
    0 NESTED LOOPS OUTER
    0 NESTED LOOPS
    0 TABLE ACCESS FULL USER$
    0 TABLE ACCESS BY INDEX ROWID OBJ$
    0 INDEX RANGE SCAN (object id 34)
    0 INDEX UNIQUE SCAN (object id 97)
    0 INDEX UNIQUE SCAN (object id 96)
    0 FIXED TABLE FULL X$KZSPR
    0 NESTED LOOPS
    0 FIXED TABLE FULL X$KZSRO
    0 INDEX RANGE SCAN (object id 101)
    0 FIXED TABLE FULL X$KZSPR
    0 NESTED LOOPS
    0 FIXED TABLE FULL X$KZSRO
    0 INDEX RANGE SCAN (object id 101)
    error during parse of EXPLAIN PLAN statement
    ORA-01039: insufficient privileges on underlying objects of the
    view
    Note: The actual query being performed is:
    select a.id, a.geom
    from
    tile_med_lines_mbr a where sdo_relate(a.geom,mdsys.sdo_geometry
    (2003,NULL,
    NULL,mdsys.sdo_elem_info_array
    (1,1003,3),mdsys.sdo_ordinate_array(151.21121,
    -33.86325,151.21132,-33.863136)), 'mask=anyinteract
    querytype=WINDOW') =
    'TRUE'
    call count cpu elapsed disk query
    current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.08 0.08 0 4 0 0
    Fetch 5 1.62 21.70 0 56 0 827
    total 7 1.70 21.78 0 60 0 827
    Misses in library cache during parse: 0
    Optimizer goal: CHOOSE
    Parsing user id: 37 (NAGYE)
    Rows Row Source Operation
    827 TABLE ACCESS BY INDEX ROWID TILE_MED_LINES_MBR
    828 DOMAIN INDEX
    Rows Execution Plan
    0 SELECT STATEMENT GOAL: CHOOSE
    827 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
    'TILE_MED_LINES_MBR'
    828 DOMAIN INDEX OF 'TILE_MLINES_SPIND'
    CPU: none, I/O: none
    call count cpu elapsed disk query
    current rows
    Parse 1 0.00 0.00 0 92
    Execute 1 0.00 0.00 0 22
    Fetch 1 0.00 0.00 38 236
    total 3 0.00 0.00 38 350
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 37 (NAGYE)
    Rows Row Source Operation
    12 TABLE ACCESS BY INDEX ROWID ROADELEMENT_MBR
    178 DOMAIN INDEX
    Rows Execution Plan
    0 SELECT STATEMENT GOAL: CHOOSE
    12 TABLE ACCESS GOAL: ANALYZED (BY INDEX ROWID) OF
    'ROADELEMENT_MBR'
    178 DOMAIN INDEX OF 'RE_MBR_SPIND'
    CPU: none, I/O: none
    Can Oracle improve the performance of Oracle spatial by
    improving the implementation so as to perform alternative
    implicit queries so as not to use these vast amounts of memory?
    Cheers
    Alex Eadie

    Hi Ravi,
    Thankyou for your reply.
    Here are some more details for you:
    Yes the queries are cached in that it gets its data from RAM and
    not from disk however the number of buffers used internally by
    Oracle RDBMS/Spatial is rather large and results in significant
    CPU usage (namely > 5000 per query or >40MByte). Which I'm sure
    you'd agree? Those numerous internal queries taking >10ms CPU
    time each, which is culmulative.
    A single real of ours query of will take between 180ms and 580ms
    depending on the number of results returned.
    An example query is:
    select a.id, a.geom
    from tile_med_lines_mbr a where sdo_relate
    (a.geom,mdsys.sdo_geometry
    (2003,NULL, NULL,mdsys.sdo_elem_info_array
    (1,1003,3),mdsys.sdo_ordinate_array(151.21121,
    -33.86325,151.21132,-33.863136)), 'mask=anyinteract
    querytype=WINDOW') = 'TRUE'
    Our 500Mhz PC Server database can only execute 3 processes
    running these queries simultaneously to go to 100% CPU loaded.
    The disk is hardly utilized.
    The data is the main roads in Sydney, Australia.
    The tables, data and indexes were created as shown below:
    1.     Create the Oracle tables:
    create table tile_med_nodes_mbr (
         id     number not null,
         geom     mdsys.sdo_geometry not null,
         xl     number not null,
         yl     number not null,
         xh     number not null,
         yh     number not null);
    create table tile_med_lines_mbr (
         id     number not null,
         fromid     number not null,
         toid     number not null,
         geom     mdsys.sdo_geometry not null,
         xl     number not null,
         yl     number not null,
         xh     number not null,
         yh     number not null);
    2.     Use the sqlldr Oracle loader utility to load the data
    into Oracle.
    % sqlldr userid=csiro_scats/demo control=nodes.ctl
    % sqlldr userid=csiro_scats/demo control=lines.ctl
    3.     Determine the covering spatial extent for the tile
    mosaic and use this to create the geometry metadata.
    % sqlplus
    SQLPLUS>     set numw 12
    SQLPLUS>     select min(xl), min(yl), max(xh), max(yh)
         from (select xl, yl, xh, yh
              from tile_med_nodes_mbr union
              select xl, yl, xh, yh
              from tile_med_lines_mbr);
    insert into USER_SDO_GEOM_METADATA
         (TABLE_NAME, COLUMN_NAME, DIMINFO)
         VALUES ('TILE_MED_NODES_MBR', 'GEOM',
         MDSYS.SDO_DIM_ARRAY
         (MDSYS.SDO_DIM_ELEMENT('X', 151.21093421,
                   151.21205421, 0.000000050),
         MDSYS.SDO_DIM_ELEMENT('Y', -33.86347146,
                   -33.86234146, 0.000000050)));
    insert into USER_SDO_GEOM_METADATA
         (TABLE_NAME, COLUMN_NAME, DIMINFO)
         VALUES ('TILE_MED_LINES_MBR', 'GEOM',
         MDSYS.SDO_DIM_ARRAY
         (MDSYS.SDO_DIM_ELEMENT('X', 151.21093421,
                   151.21205421, 0.000000050),
         MDSYS.SDO_DIM_ELEMENT('Y', -33.86347146,
                   -33.86234146, 0.000000050)));
    4.     Validate the data loaded:
    create table result
    (UNIQ_ID number, result varchar2(10));
    execute sdo_geom.validate_layer
    ('TILE_MED_NODES_MBR','GEOM','ID','RESULT');
    select result, count(result)
    from RESULT
    group by result;
    truncate table result;
    execute sdo_geom.validate_layer
    ('TILE_MED_LINES_MBR','GEOM','ID','RESULT');
    select result, count(result)
    from RESULT
    group by result;
    drop table result;
    5.     Fix any problems reported in the result table.
    6.     Create a spatial index, use the spatial index advisor to
    determine the sdo_level.
    create index tile_mlines_spind on
    tile_med_lines_mbr (geom) indextype is
    mdsys.spatial_index parameters
    ( 'sdo_level=7,initial=1M,next=1M,pctincrease=0');
    7.     Analyse table:
    analyze table TILE_MED_LINES_MBR compute statistics;
    8.     Find the spatial index table name:
    select sdo_index_table, sdo_column_name
    from user_sdo_index_metadata
    where sdo_index_name in
    (select index_name
    from user_indexes
    where ityp_name = 'SPATIAL_INDEX'
    and table_name = 'TILE_MED_LINES_MBR');
    9.     Analyse spatial index table:
    analyze table TILE_MLINES_SPIND_FL7$
    compute statistics;
    I hope this helps.
    Cheers
    Alex Eadie

  • RDB, Oracle 9i and Materialised Views

    Hi all,
    I have a RDB 7.1.5.9.1 and an Oracle 9.0.1.4.0 database and the data from the RDB has to be available for queries in Oracle Discoverer. There is a 1Gb (fixed) line between the databases. I have created a database link and that is working fine.
    The RDB is used 24h a day and it is very important that there are no performance problems. I do not think that a 1-on-1 recreation of the data model of the RDB in the Oracle database (with the use of the database link) is the answer. The advantage is of course that the data is always up to date, but when multiple queries are started in Oracle Discoverer I think we have a problem. And the users are used to the fact that the data is not refreshed during the day, so that isn’t an issue.
    So I was thinking of using Materialised Views. Because RDB doesn’t understand Materialised View Logs I can only do a complete refresh of these Materialised Views in Oracle. I can spread the time in which these are refreshed, but I only got about 1 hour (from 7 AM to 8 AM) to refresh about 1200Mb (that is not a lot), but in the future there will be an increase in the amount that has te be refrshed.
    Does anybody know what a complete refresh will do to the performance of the RDB?
    And what happens if someone is querying on a Materialised View during a refresh?
    Of course, any other ideas are more then welcome. I am also considering the use of triggers in the RDB to INSERT-UPDATE-DELETE the data in Oracle and the use of LogMinor, although this last option is a tricky one because the Redo-statements contain rowid’s except from the INSERT statements.
    Thanks!

    in oracle9i database you can create materialized views with logs option but it works only under certain conditions. there is another option in oracle9i database of materialized views in which you can use time refresh.you specify time period after which your database refrsh automatically.
    Yes freshing of materialized view cause performance cost on the server but it is only for time based refresh.as well as concern to the queries their is no problem with them when m-vies is in refresh state.oracle's own infrastructure can handel it.

  • Would this query be faster in Oracle 10?

    I'm running 2 queries on Oracle 8i:
    Query 1:
    select count(Member_ID) from
    select Member_ID, c2, c3, ... c100 from T1
    union
    select Member_ID, c2, c3, ... c100 from T2
    union
    union
    select Member_ID, c2, c3, ... c100 from T10
    Query2:
    select count(Member_ID) from
    select Member_ID from T1
    union
    select Member_ID from T2
    union
    union
    select Member_ID from T10
    The columns c2 to c100 in Query 1 involve a lot of cast statements. Query 1 takes about 81 seconds and Query 2 takes only about 1/4 second – which is a big difference. These 2 queries are equivalent in terms of what the would return. The reason I am doing Query 1 is because I want the inner query to be a view.
    My question is does anyone know if Oracle 10 would be smart enough to 'forget' about columns c2 to c100 in Query 1 as they are not needed in Query 1? Could the execution times of the 2 queries be similar in Oracle 10?
    Please don't ask me to see the whole queries as they too big and beside the point.

    Denis,
    The answer to your question is that Oracle is smart
    enough to know it simply cannot 'forget' columns c2
    until c100. The fact that in your case both the
    queries return the same result, does not mean the two
    are semantically equivalent.
    In query 1 you use a union operator, meaning it has
    to do a SORT UNIQUE step. In other words: only when
    the rows (member_ID,c2,c3,...,c100) are completely
    identical they will be merged. In query 2 the rows
    only get merged when member_ID's are identical.
    Regards,
    Rob.Thanks for your help! I didn't think about that! In this case the Member_ID is unique (but I didn't say that from the outset). I'm going to try this thing over using Union All instead of Union. If that doesn't help me - I may write back with an update on the post...

  • DML issue in Oracle forms

    Hi,
    I have seen sometimes the queries which work in oracle sql*plus and Pl/Sql Developer,they dont work in Oracle forms, for example following query works in
    Pl/sql developer,but not in oracle forms
    select *
    from tablea
    where name in (variable)
    so if variable contains 'AA','BB'
    and records are there in table ,it will not fetch any records,whether variable is with quotes or not .........
    whenever there is a dml statement involving variables ..behavior is somewhat different ....so to get that done ....i normally transfer them to database procedure or function .....then it works fine ..
    Is it known bug or what.
    Regards,
    SS

    You can use a FORMS_DDL or EXECUTE IMMEDIATE
    select_dml := ' select * from tablea where name in ('||:variable||')';
    FORMS_DDL ( select_dml);if variable contains 'AA','BB'

Maybe you are looking for

  • XML file for GigE Vision camera

    Hello, I am working on a design of GigE Vision camera. It should be very simple linescan camera. I implemented the whole required GigE Vision register set, can communicate with the camera in MAX. The problem is that I need to creata this XML file for

  • Why can I only load https pages, Safari and Maverick?

    Hi I can't load http web pages in Safari, but can load https pages. Have similar problem with Opera, but no problem loading http web pages on my iPad. The problem started yesterday and is on my iMac.  So am guessing that it is a mavericks setting iss

  • Problem with incomming call

    hi every one i just upgrade my ios7 i have one problem when some one call me automatic disconnect. when the same user call me again my ring will buzzzz so any idea please i m tried for that, give me solution thnaks

  • Which camcorder works best with mac computer

    I am looking to purchase a camcorder for my teen ager.  She is interested in making short movies and using imovie and the mac computer to edit them, etc.  Which canon  camcorder would be best?

  • HT2638 Help! Lost images in iPhoto.

    I have spent weeks organising my photos on old MacBook pro (2006) ready to move to new one with Lion and latest IPhoto. I dragged onto an external hard drive and tried to put onto new computer. No images but lots of empty frames and same albums there