Oracle SQL “WITH clause” support

It doesn't appear that JDeveloper 10.1.2 ADF BCs support using the WITH clause in an expert mode View. It says it's valid when tested, but the wizard loses all attribute references. Looking in the <view_object>.xml file, all attribute metdata has been removed from the file.
I can work around it easily by just repeating the sub-query. I was just wondering if it was not supported yet by the wizard, or is it a bug that I should file?
Thanks
Erik

Since it isn't extremely important in this case, I'll just assume that ADF doesn't currently support SQL99 features in case anyone else ever asksthe same question.
Thanks
Erik

Similar Messages

  • Can a SQL WITH Clause be used in Materialized View

    Hello,
    Can we use SQL WITH clause in Materialized View.
    Thanks

    Hello,
    Here is an example
    CREATE MATERIALIZED VIEW MV_TEST
    BUILD IMMEDIATE
    REFRESH FORCE ON DEMAND
    AS
    WITH t AS (SELECT owner, object_type, COUNT ( * )
               FROM my_objects
               GROUP BY object_type, owner)
    SELECT *
    FROM t
    WHERE owner IN ('SYS', 'SYSTEM');Regards

  • PL/SQL WITH Clause

    Hi Gurus,
    I have been trying to find more information regarding the WITH CLAUSE, but most of the info I find is related to Forums. Do you know where i could find Oracle specific documentation on this? I really like using that clause, but i have noticed some drastic performance differences with it compared to the same query run outside of the WITH CLAUSE.
    Just wanted to find some documentation on it and can't seem to find anything.
    As always greatly appreciate the info/feedback.
      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 Linux: Version 10.2.0.3.0 - Production
      NLSRTL Version 10.2.0.3.0 - ProductionThanks,
    S

    Here it goes:
    Using With Clause:
    11g
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10578/tdpdw_sql.htm#TDPDW0073
    10g
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/aggreg.htm#sthref1670
    subquery_factoring_clause:
    11g
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_10002.htm#SQLRF01702
    10g
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#SQLRF01702
    Edited by: fsitja on Apr 15, 2010 5:14 PM

  • Advanced Oracle SQL: Windowing Clause

    I'm trying to learn subject mentioned topic but unable to understand it properly, I looked into google and read few articles but those are confusing so if someone send me some good and easy link for this clause  or tell me this clause in simple words then I really appreciate it. Thanks

    I think Mr. DBMS_RANDOM.value(100000,999999) wants to understand what a Windowing Clause means more than "how do I write one?".
    In that case, the only way to teach will be by example.
    with number_generator as (
      select level as counter
      from dual
      connect by level<=20
    select
      counter
    ,counter || ' + ' || nvl(lag(counter,1) over (order by counter),0) || ' = '
       as math_text
    ,sum( counter ) over (order by counter rows between 1 preceding and current row)
        as sum_of_last_2_rows
    ,sum( counter ) over (order by counter rows between unbounded preceding and current row)
        as running_total
    ,sum( counter ) over (order by counter rows between current row and unbounded following)
        as running_total_reverse_1
    ,sum( counter ) over (order by counter desc rows between unbounded preceding and current row)
        as running_total_reverse_2
    ,sum( counter ) over ( /* order by counter rows between unbounded preceding and unbounded following */  )
        as sum_all_rows
    from number_generator
    order by counter;

  • Oracle SQL with IN condition - bad performance

    Hi,
    I have a table like this
    ID COL1 COL2 COL3
    I have to delete all records in a table where
    COL1 in ('A','B','C','D') and COL2 in ('K','V','N') and COL3 in ('Y','T','I') which means I will have to delete all combination of records for these three columns
    something like 'A','K','Y' ; 'A','K','T' etc
    I did write a query like this
    delete from Tablename where col1 in COL1 in ('A','B','C','D') and COL2 in ('K','V','N') and COL3 in ('Y','T','I')
    while the select statement (select * from Tablename where col1 in COL1 in ('A','B','C','D') and COL2 in ('K','V','N') and COL3 in ('Y','T','I')) gives results (even though takes considerrable time....) but the delete query runs all day..
    The table has about 10,000 records.

    user5127581 wrote:
    Thank you for your response, Justin - The table has no triggers or foreign Key referencesThen have you traced the session to see what it is doing?
    It makes no sense that any query against a 10,000 row table should take all day unless there is some recursive SQL being executed. Triggers and foreign keys would be the most common source of that sort of recursive SQL.
    You also indicate that this is in a PL/SQL block. Are you certain that it is this SQL statement that is slow? And not something else in the block?
    Justin

  • Unable to use the with clause in oracle 9.0.2

    Hi,
    I need to use oracle SQL with clause in oracle 9.0.2 database. Its a 9i feature but i am unable to use it.
    It is giving internal error, when i try to execute it.
    Even for simple query:
    WITH acct_summary as ( select TOT_COLL_AMT from tdc_acct)
    select TOT_COLL_AMT from acct_summary WHERE TOT_COLL_AMT>100;
    Error message while using 8.0.5 sql plus client:
    SP2-0642: SQL*Plus internal error state 2091, context 0:0:0
    Unsafe to proceed
    Please help to find out why i am not able to use the sql with clause in oracle 9.0.2 database.
    Thanks and regards,
    Raajkathir

    Hi Jens Petersen,
    Yes, You are correct. Thank you very much.
    Regards,
    Raja

  • Regarding with clause

    Hi can any say whether we can use with caluse in cursors.

    any select query having dynamic views in from clause can be used as with, and can be used in cursor tooo
    example of with
    http://nimishgarg.blogspot.com/2010/05/oracle-sql-with-clause-subquery.html

  • Dose oracle.sql.ArrayDescriptor support the user defined type in package?

    Hi folks:
    I get a obstacle in calling stored procedure by using JDBC driver (ojdbc14.jar).
    I have the following code:
    create or replace package xxx AS
    type var_table is table of varchar2(50);
    procedure(parameter in var_table);
    end xxx;
    When I use the jdbc driver try to create a type for
    oracle.sql.ArrayDescriptor arrayDes = oracle.sql.ArrayDescriptor.createDescriptor( "var_table ",connection);
    The SQLException is thrown out like those:
    Invalid name pattern:user_schema. var_table
    So, my question is : Dose oracle.sql.ArrayDescriptor not support the user defined type in package? And I also tried to define such type by using sql "create xxxx" outside of package, then there is no SQLException.
    Hopefully for your response and suggestion.Thanks...

    To my knowledge, the Oracle JDBC driver does not support using the ArrayDescriptor for array data types (varray or nested table) that are defined inside of a package. The same is true for StructDescriptor as well. If you want to use array and object data types, you must define them outside of a package. Then you'll be able to use the descriptors in your JDBC programs.

  • Tora pkgbuild: oracle tool with postgresql and mysql support

    Tora is a tool for oracle databases with some support for postgresql and mysql.
    tora PKGBUILD
    pkgname=tora-alpha
    pkgver=1.3.14.1
    pkgrel=1
    pkgdesc="Qt toolkit originally for Oracle databases administration with some support for Postgresql and Mysql"
    url="http://www.globecom.net/tora/"
    depends=('qt')
    makedepends=('perl')
    conflicts=('tora')
    source=(http://dl.sourceforge.net/tora/${pkgname}-${pkgver}.tar.gz)
    md5sums=('5560b5104438e1b71bd89386d0fcdc00')
    build() {
    cd $startdir/src/tora-$pkgver
    ./configure --prefix=/usr
    --without-kde
    --without-oracle
    --without-rpath
    make || return 1
    make ROOT=$startdir/pkg install
    I'm posting this pkgbuild only for testing/research.
    Fist, it's alpha (aka devel) version but stable release does not want to easly compile on my machine and it's too old IMO.
    As you can see it can be built without the need for kde (good news for other WMs/DEs users).
    The funny thing is that I built it without support for... oracle :-) That's because it needs lots of oracle stuff installed and I don't have it. If someone has, he can build a static version of oracle support (if you do please post some info here if it works, etc.).
    The postgresql/mysql support depends on the qt package configuration. Current qt arch package does not inlcude postgresql/mysql plugin support. The next qt release will have mysql support at least (http://bugs.archlinux.org/index.php?do=details&id=1040, http://bugs.archlinux.org/index.php?do=details&id=1166) and I have made a feature reqest for postgresql http://bugs.archlinux.org/index.php?do=details&id=1244.
    I'm still not 100% sure if postgresql and mysql should/shouldn't be put in makedepends (according to the docs and mailinglists it's not needed). I'll check that again when new qt release will be available.
    In other words in such configuration and present qt version this application is pretty useless :-) (though it can be run). But I'm posting this pkgbuild for the others (if someone needs to test it or tries to build it, etc.). I'm sure tora will soon be more attractive especially for someone using oracle databases.

    This won't work using a newer oracle instant client version though, since the pathes won't be set correct.
    The Project TOra won't use automake, since the author refuses doing so.
    Probably it would be a larger patching work to get it working with instantclient_10_2 (the current release version from Oracle).
    Why so?
    It seems as if the include pathes for the oracle client won't be set correclty, since TOra seems to expect a full oracle product installation.
    The configure does not accept a --with-oracle-includes or --with-oracle-libs option any longer (in 1.3.21 it did). Therefore, TOra won't find in example oci.h, since it's not in any include directory known.
    Also, some other files are not in the path TOra expects them to be.
    Without the possibility of passing by configure options handling this, i guess it won't be possible to get this TOra version running with the current instantclient.
    // STi

  • SSL in Oracle SQL Developer?

    PCI DSS (related to protection of credit card data) requires that I have to implement a 2-factor authentication. The 2 factor authentication that I am going to implement is password protection and token encryption like SSL (secure sockets layer).
    When I am trying to access my remote DB using SQL Developer, I will use a password to get connected. In addition to that, I will try to use something like HTTPS which supports SSL. Is there an inbuilt-mechanism for Oracle SQL Developer to support SSL or do we have to configure it manually or is there some other mechanism in place?

    Thats odd.
    Do you see any exceptions in console ? (to see the console launch sqldeveloper.exe in ../sqldeveloper/sqldeveloper/bin dir.)
    -Raghu

  • WITH Clause query doesn't work in Oracle Reports.

    Hi Gurus,
    I'm using a WITH clause query and need to build a report using the same query.
    But when i'm trying to build a report, query is giving error as "WITH clause table or view doesn't exists".
    But the same query perfectly works in sql prompt.
    Oracle Reports doesn't supports WITH clause query?
    Please suggest.
    Thanks,
    Onkar

    I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
    Hope this helps.

  • WITH clause equivalent in oracle 8i

    Hi friends,
    The "WITH" clause is very well supported in Oracle 9i. Is there any equivalent ways to use it in Oracle 8i?
    Regards
    J.B

    Dear J. B.!
    No, there isn't an equivalent for WITH in Oracle 8i. The only workaround for you is to build inline views in the FROM-Clause of your statements. Please have a look at the following link. It shows some example using a WITH-Clause and the equivalent SQL-Statements with an inline view.
    [http://www.oracle-base.com/articles/misc/WithClause.php]
    Yours sincerely
    Florian W.

  • Oracle SQL-92 Non compliance:  When will oracle support empty strings?

    Oracle is the only database on the planet that equates an empty string to a null value. For several major versions, Oracle has said "Make sure you don't rely on null and empty string equivalency because it could go away in the future." When will Oracle get with it and support this aspect of the SQL-92 standard (not to mention mathmatical logic)?

    You log enhancement requests through Metalink.
    The procedure is documented in Metalink document 166650.1 as follows:
    How to Log an Enhancement Request:
    Create a new Service Request in MetaLink.
    On the Create a SR - Brief Description screen, in the Type of problem field, select Enhancement Request.
    Important factors to remember when filling out the Enhancement Request Service Request template and creating the Service Request:
    Fully describe why the current product functionality does not meet your needs.
    Explain in detail the enhancement you would like implemented
    If possible, describe how the product can be changed to achieve the desired results.
    Describe your business expectations. Include key milestone dates and justifications as to why this request is so important and the benefits your organization stands to gain should this request be accepted.
    Once your Service Request has been created, it will be assigned to a Support Engineer who will validate your information. In some cases, your request may be a new or known product defect that the Support Engineer can either provide a fix, a workaround, or introduce to Oracle Development for resolution. In other cases, you may be presenting a valuable product enhancement that can improve Oracle product functionality. In all cases, the Support Engineer will be able to qualify your request and pass along the information to Oracle Development.
    Once the Support Engineer validates your request, and an agreed upon action plan is created, your Support Engineer will create a new Enhancement Request and provide you with an Enhancement Request tracking number. The BUG search tool on MetaLink can then be used to receive status updates.
    Please note that the Support Engineer will close the SR once the enhancement has been logged.
    Also, see document 214168.1

  • Prepared Statement with SQL 'IN' Clause

    Hi,
    I am trying to write a JDBC SQL call to a database using a prepared statement, the call looks something like:
    select *
    from table
    where field in (?, ? ,?)
    this thing is that i don't know how many 'IN' parameters are needed until runtime (they come from a List), so is there an easy way of dealing with this, I haven't been able to find any information on this problem anywhere?

    >
    Hmmm...more expensive than say doing a query on on 2 billion rows with no index?
    More expensive than doing a cross server join?
    More expensive than doing a restore?
    I knew that someone would point this out. :)
    I just tried to exaggerate the importance of cursor sharing. This is one of the most important topic in DBMS world, but quite often ignored by JAVA world. I hope that you understand my good intention.
    >
    2. Insert data corresponding to bind variable to "T". Interesting idea. Please provide the algorithm for that. The only ones I can come up with
    1. Involved creating a "dynamic" SQL for the insert
    2. Doing multiple cross network inserts.
    The first of course is exactly what you said your solution prevented. The second will be more expensive than sending a single dynamically created select.Hopefully, this is not just an "interesting" idea, but very common technique in DBMS. Actually one of the common techniques. There are couple of ways to handle this kind(variable number of bind variables in "IN" clause) of problem.
    What i commented was that the simplest one. It's like this:
    (based on Oracle)
    SQL> create global temporary table bind_temp(value int);
    PreparedStatement stmt = con.prepareStatement("INSERT INTO bid_temp VALUES(?)");
    for(...) {
         stmt.setInt(1, aValue)
         stmt.addBatch();
    stmt.executeBatch();
    Statement stmt2 = con.executeQuery("SELECT * FROM target_table WHERE id IN (bind_temp)");
    ...Doesn't it look pretty? Pretty for both Java developers and DBAs.
    By virtue of the mechanism of batch processing, the total DBMS call is just twice and you need just 2 completely sharable SQL statements.
    (Hopefully you might understand that Oracle global temporary table is just session scope and we don't need them to be stored permanently)
    Above pattern is quite beneficial than these pattern of queries.
    SELECT * FROM target_table WHERE id IN (?)
    SELECT * FROM target_table WHERE id IN (?,?)
    SELECT * FROM target_table WHERE id IN (?,?,?)
    SELECT * FROM target_table WHERE id IN (?,?,?,?,.......,?)
    If you have large quantity of above patterns of queries, you should note that there are another bunch of better techniques. I noted just one of them.
    Hope this clairfies my point.

  • Is there any known problem using Oracle SQL Developer 3.0.04 with Java 1.7?

    I'm new to Oracle. I have installed Oracle SQL Developer 3.0.04 and Java 1.7. When I run Oracle SQL Developer, I will get the window Running this product is supported with minimum Java version of 1.6.0_04 and a maximum version less than 1.7. This product will not be supported....
    Is there any known problem using Oracle SQL Developer 3.0.04 with Java 1.7?
    I have already downloaded Java 1.6 but don't know whether I need to uninstall Java 1.7 first. If don't need to uninstall Java 1.7, how can I set Oracle SQL Developer to run with Java 1.6?
    Thanks for any help.
    Edited by: 881656 on Aug 25, 2011 11:22 AM

    Hi,
    One prior post discussing the use of Java 7 is:
    SQL Developer 3.0  and Java SE 7?
    There is no need to uninstall any Java version (except if you have disk space constraints) and no problem switching between Java versions. This may be controlled in the sqldeveloper.conf file in your ...\sqldeveloper\sqldeveloper\bin directory via the SetJavaHome line. For example:
    #SetJavaHome ../../jdk
    SetJavaHome C:/Program Files/Java/jdk1.6.0_26
    #SetJavaHome C:/Program Files/Java/jdk1.7.0Regards,
    Gary Graham
    SQL Developer Team

Maybe you are looking for

  • Design problem: RS232 communication

    Hi, I have a design problem for communication with a device via RS232. Since I'm normally a C++ programmer I might just look at the problem from a wrong angle and hope for some hints how to do it in LabVIEW. The scenario: A device is communicating wi

  • How to add additional field to the existing report

    hi, report name is RHXPE_EXPIRED_QUALI if u execute report alv list is genereted with like this. object type, id of related object, object name, object type, id of related object,last name, first name like this where can i get these field descriptios

  • How to add interface to customlize MXML Component when use Flex Builder 3?

    How to add interface to customlize MXML Component when use Flex Builder 3?

  • Basic requirement for Java

    Hi, I am new to Java and want to try run code snippets there. Can someone please tell me what software i need to install on my Windows XP machine. Thanks Vijay

  • Connecting CV to AV

    Hello, We are looking for a way to join the attribute views into calculation views. We tried to join the attribute view in the calculation view with left outer join: But when we run a query against this CV  even if we don't select any field from the