Is ROWNUM supported in Times Ten

Hi,
Is ROWNUM supported in Times Ten SQL queries.
I get and error 2211: Referenced Column ROWNUM not found
Is there any alternative for ROWNUM is Times Ten.
Mangeh Malekar
Message was edited by:
user464199

TimesTen provides two alternatives to the use of Oracle's ROWNUM:
1. First N
2. Rows M To N
Each row in the final selected set of a select/update/delete statement after applying all selecting operation including sorting will be assigned a unique number starting from 1. If sorting is not specified, the ordering of rows selected will depend on the type of scan or join chosen.
First N means retaining only the first N rows.
Rows M To N means retaining row mth to nth inclusively.
First N can be used in a delete/update statement or an outermost select of a select statement.
Rows M To N can only be used in the outermost select of a select statement.
Ex:
select first 10 * from t1 order by x1; /* select first 10 rows from t1 after sorting*/
update first 5 t1 set x1=x1+1; /* update first 5 row from t1 */
select row 10 to 100 * from t1; /* select row 10 through 100 from t1 */

Similar Messages

  • XA transaction support in Times Ten JDBC Driver

    Hi Chris,
    Could you confirm if the JDBC driver that comes with TimesTen 7.0, supports XA transactions. XA capability is required by the JTA inorder to coordinate the transaction context between JMS and DB transactions in our J2EE application server.
    The TimesTen is accessed over client-server mode (not embedded/collocated)
    If the answer is yes, could you confirm the respective jar file of the jdbc driver, to make sure we have the right one.
    Regards
    VInod

    Chris,
    It seems, the TimesTen jdbc driver may not be fully XA compliant.
    I used following class from "ttjdbc5.jar":
    "com.timesten.jdbc.xa.TimesTenXADataSource" as javax.sql.XADataSource but it resulted in BEA WebLogic complaining about non transaction datasource while setting up datasource in weblogic:
    BEA LOGs
    <<<<<<
    weblogic.common.ResourceException: DataSource 'vkd.test.xaDS' can not be created. It is non-transactional and so can not use XA-aware pool 'vkd.test.xaDS' at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:239) at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:258) at
    >>>>>>>>
    ANy comments?
    In case of other drivers (pointbase etc) BEA automatically detects that the driver is XA and does not show following screen/option to use GlobalDatasource for non-XA drivers etc. But in case on TimesTen driver, it does not consider it to be a XA driver and prompts for GlocalDatasource for non-XA driver etc...
    I suspect, sumething is not right either in the way we are setting up TimesTen datasource in BEA WLS or TimesTen's support XA
    Is there any writeup stating how to use TimesTen with BEA/WLS?
    Please provide your expert opinion.
    Regards
    VInod

  • OGG for Times Ten

    Hi All,
    Could you suggest from where i can download GG binaries for Times Ten 11.2.
    I checked on edelivery OGG 11.1 version having support for Times Ten 7.X version.
    I have tested OGG 11.2 version it is not supporting Times Ten, getting error "TARGETDB : illealgel parameter.
    Thanks for your help.
    Regards,
    Sandeep

    Submit an SR to Oracle support and they will provide you a link for the download.  

  • Client Server mode for time ten connection

    Hi, I am new to Times Ten and got a question for running TimesTen in Client Server Mode. When it is running in Client/Server mode:
    Does the database just run like a regular remote database ?
    Is there security for the remote application, such as userid/password ?
    Is there any limitation on number of remote connection can concurrently connect to the DB ?
    Does it use the JDBC or it has to be the native library ?
    Thank you for your help
    Henry

    Hi,
    With regard to your questions regarding TimesTen client/server mode:
    1. Does the database just run like a regular remote database ?
    I'm not sure exactly what you are getting at here but yes, I would say that it runs like any other c/s database. If you can be more specific in your question then I can give a more precise answer.
    2. Is there security for the remote application, such as userid/password ?
    If the TimesTen instance to which you are connecting was installed with Access Control enabled then yes, normal userid/password security applies. The client application must provide a valid TimesTen userid and password in order to establish a connection.
    3. Is there any limitation on number of remote connection can concurrently connect to the DB ?
    Subject to O/S resource limitations, a single instance of TimesTen (i.e. the TT server) supports a maximum of 9,999 concurrent client/server connections. Each individual datastore supports a maximum of 2047 concurrent connections (direct and client/server).
    4. Does it use the JDBC or it has to be the native library ?
    The TimesTen JDBC driver supports both direct modde and client/server. The TimesTen ODBC driver is provided in both direct mode and client/server versions. The JDBC driver uses the ODBC driver (it is a type 2 JDBC driver) and so the client machine requires a TimesTen client installation to use either ODBC or JDBC to access a remote datastore.
    Chris

  • Is Oracle database Compatible with Times Ten database?

    Hello All,
    I need to use a temporary database in Oracle for some months.
    Later on, I will need to migrate all data to a Times Ten database.
    1. My doubt is if Oracle and Times Ten databases are compatible with
    each other (specially when having this kind of cases) ?
    2. In case the answer is YES to question 1, I would like to know if there are some
    restrictions in that compatibility (type of data, any other issue, etc)
    Best Regards
    Rubén

    Ruben,
    There are two areas you shoul look into regarding your project: SQL functionality and data types. TimesTen 6.0 supports a subset of the SQL features and data types currently available in the Oracle DB; also, TimesTen supports some native numberic data types that are not available in the Oracle DB.
    If your end-game is to use the TimesTen database, then I would start with the TimesTen API and SQL Reference Guide (http://www.oracle.com/technology/documentation/timesten_doc.html)
    Use the SQL functionality documented for TimesTen and pay attention to the common data types. For example, VARCHAR is handled differently from VARCHAR2 (where trailing spaces exist), DATE and Timestamp are handled differently, etc. Additionally, keep in mind most numeric values are declared using NUMBER in the Oracle DB, but not in TimesTen.
    If you are an existing TimesTen licensed customer, please let us know your support ID(CSI) and we can contact you with more information on our future release plan to address SQL and data types compatibility.
    By the way, what's the timeline for your project?
    -scheung

  • Does Times Ten work with External Flash array

    Does the Times Ten In Memory DB support external Flash Arrays or is it completely dependent of Internal Memory. I was told it did not support it in the past, as this changed recently.

    TimesTen supports normal RAM for primary storage and 'disk' (or anything that presents as a disk, such as SSD etc.) for persistent storage. There is no explicit support for any other kind of storage. If the O/S had the capablility to present an external Flash Array as normal RAM then in theory it would work with TimesTen. But of course it would be far, far slower than RAM so there is probably little benefit in doing that even if it were possible.
    Chris

  • Oracle / HTML DB and Times Ten

    Hi
    Just thinking aloud here really, but has anyone thought about using HTML DB against the new (to Oracle) Times Ten in-memory database. Apparently TT supports access via ODBC or JDBC or just regular SQL, so it should be possible to connect a regular Orace Db with HTML DB in it to an in-memory TT db.
    Is this a stupid idea, does it have any real benefits, what does anyone think.
    Jules

    The benfits would be enormous. Basically, what used to require a round trip through the network would now come directly from RAM on the same machine as the application. However, I don't know how you would hook the 2 up. As far as I can tell, HTMLDB can only connect to an Oracle DB. If you did something hokey like use Heterogeneous Services to connect to TimesTen, you'd lose the whole benefit of the in memory architecture (cause you'd have to go through the DB to get the information).
    I think we have to wait until HTMLDB becomes DB agnostic (or the write special DAD connectors for TT).
    -Joe

  • Times Ten Cache

    I have system(Super Computer) which has 4.2 terra byte of memory. Is it possible to install Times ten into that machine?
    how much Cache is allocated to it? what happens if the allocated cache exhausts?

    Provideds the machine runs an O/S and CPU type that is supported by TimesTen then you can install TimesTen on the machine. The amount of memory allocated to TimesTen is controlled by you via configuration parameters. If the memory allocated to TimesTen becomes full (e.g. you fill it with data) then any operation that must allocated more memory will fail with a specific error code indicating that the datastore is full.
    TimesTen provides various mechanisms to help manage the memory such as dynamic caching (load on demand) and data aging.
    Chris

  • Times Ten Mailing List?

    Hi all,
    Does anyone know of a decent mailing list for Times Ten?
    Thanks,
    Dan

    The TimesTen database doesn't support CONTAINs queries and there is no integration with OracleText at this point.
    - scheung

  • Times-Ten and OracleText Queries

    Can Times-Ten be used in conjunction with CONTAINS queries? We need to cache the results of some OracleText queries.

    The TimesTen database doesn't support CONTAINs queries and there is no integration with OracleText at this point.
    - scheung

  • Unable Update SQL Developer with Times Ten in-Memory DB Extension 1.2.1.1.0

    SQL Developer 1.2.1 Build MAIN 32.13 (Windows XP)
    We can't Update SQL Developer with Times Ten in-Memory DB Extension 1.2.1.1.0 :-((
    We did the same actions as described in tutorial
    http://www.oracle.com/technology/products/timesten/viewlets/tt703_sqldev_install_ext_viewlet_swf.html
    In addition to tutorial we have "Log In" window
    "To download Oracle Times Ten in-Memory Database Extension
    you must enter your Oracle Web Account user name and password"
    This window was not displayed in tutorial...
    We try to use three our OTN accounts and the result
    was the same - we was asked with "User name" and "Password"
    again, again, again and again,,, :-(
    Is it a bug or a feature?
    Mayby we didn't understand something or did something wrong?

    Hi Simon,
    I found cause of update failure! It was the HTTP proxy setting.
    I turned off "Use HTTP proxy server" checkbox in SQL Developer -> Tools -> Preferences -> Web Browser and Proxy.
    After this action SQL Developer was successfully updated with Times Ten Extension.
    Valery Yourinsky

  • Unable to insert into oracle db using times ten

    I have a times ten 6.0 installation on my m/c connected to an oracle 10.2.0.2 database. The database is a remote database. My application is deployed to oracle application server (10.1.3.1 SOA). I am getting the following SQLException when I try to insert.the first row.
    java.sql.SQLException: [TimesTen][TimesTen 6.0.4 ODBC Driver][TimesTen]TT5105: OCI initialization failed. -- file "bdbEnv.c", lineno 275, procedure "ttBDbEnvAlloc"
    My env is as follows
    OS = Windows 2000
    DataSource = User DSN
    First Connection
    Permanent Data Store = 100
    Temporary Data Store = 50
    Connections = 20
    Synchronous write through cache
    I tried a select on the table before insert and it worked. Using ttisql I can insert into this table without any problem. Using a standalone java program I am able to insert data into this table. But from within an appserver I am facing this issue.
    Thanks in advance for any help.
    Regards,
    Mahesh.

    Jimmyb,
    Are you logged in as the user that owns that table?
    Yes.
    If yes, then there are no triggers on this table.
    That is true.
    You will need to populate the ID column with your insert statement.
    Just did that.
    Usually, the sequence is very similar to the table name.
    Yes I tried few of them in my sql query and it said "sequence cannot be found"
    Isn't there some way that it will list the name of the sequence currently being used in a table?

  • Times ten to improve performance for search results in Oracle eBS

    Hi ,
    We have various search scenarios in our ERP implementaion using Oracle Apps eBS, for example searching for an item . Oracle apps does provide item search but performance is not great. We have about 30 million items and hence to improve the performance of the search thought Times ten may help.
    Can anyone please clarify if Times ten can be used to improve performance on the eBS database , if yes how.

    Vikash,
    We were thinking along the same lines (using TimesTen for massive item search in e-Business Suite). In our case massive Item / parametric search leveraging the Product Information Management application. We were thinking about setting up a POC on a Linux Server with a Vision Instance. We should compare notes?
    SParker

  • Times ten not scaling how to speed up.

    Hello Everyone,
    I am doing evaluation of times ten to use it as cache but it is not scaling in my test bed:
    From the http://vimeo.com/28397753 demo it seems it can do 5 million transaction per minute by in my test bed which is 4 gb machine it is taking sweet 140 seconds to insert 100 K records almost 120 times slower!
    I have only one table with a integer column and only one index on that column which is not unique.
    TermSize: 1024m
    PermSize: 2024m
    We want a scallable solution that can go upto 250 Million records in a table (and we will have two such table other will be smaller) is it possible with times ten?
    Our queries will generally requst 50K results and we will have 12 fields in this table numeric and integer that we are going to separately index.
    Look up also on a one integer table are taking about 100 milliseconds.
    I am using a TimesTenDataSource ds = new TimesTenDataSource();
    String URL = "jdbc:timesten:direct:TT_1121";
    I tried doing batch inserts of 25,100,500,100 rows per insert with not much improvement.
    Is oracle times ten even fit for such a case?
    thanks and regards,
    sumit

    You say that your machine has 4 GB RAM but you have allocated over 3 Gb to TimesTen. That's fine if there is pretyt much nothing else running o nthe machine but if you have otjer things (such as Oracle DB maybe?) running o nthe machine at the same tiem then you are likely running low on memory. Are you seeing significant page in and pageout acticity when the test runs? If so this will seriously impact performance.
    Can you please provide:
    1. A description of the overall hardware and software environment that you are using for the test.
    2. The exact TimesTen version (output of ttVersion) command.
    3. The DSN configuration (from sys.odbc.ini)
    4. The actual table (or cache group) defintiion including any indexes.
    5. Details of the Java test program. In particular; are you using parameterised INSERT statements? Are you preparing them just once and executing them many times? How often do you commit during the bulk load? etc.
    Thanks,
    Chris

  • Use of Times ten database with Oracle Forms 11g

    Hi,
    We need to use some caching / pre-fetching solution with Oracle Forms 11g.  Is there a possibility that Oracle Forms 11g can be used with Times ten database.
    Regards,

    We have never tested TimesTen with Forms 11g but we suspect there are issues that may prevent if from being used.
    Sorry.
    Chris

Maybe you are looking for

  • My navigation bar disappeared so now I cannot print, edit, etc. How can I get it back. The info on your page does not help.

    I may have accidentally hidden the navigation bar i.e. the one that gives you options like File, Edit, etc. the info you provide for getting it back does not help because it asks me to use those tabs, which are not there anymore. This prevents me fro

  • Reg:Steps in IDOC Scenario

    Hi,     I am very new to IDOC concept so can anyone tell me what is the use and why do we want to create, 1)RFC Destination 2)Port 3)Logical sysytem name 4)Partner Profile ,in IDOC Scenario and also let me know the steps that I have to implement  whi

  • [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied

    ---cmd prompt------------------------ H:\>sqlplus scott/tiger SQL*Plus: Release 10.2.0.3.0 - Production on Sun Mar 28 16:54:53 2010 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10

  • Where can I find Firefox update information on the website?

    Firefox was recently downloaded on the laptop I am using with Win7. Over the past few weeks, several times I've been surprised to find a tab open from Firefox telling me to click here to update. I've been told to always get updates from the website,

  • OSX has unexpectedly quit!

    My computer is on it's deathbed. For some reason, starting yesterday, my computer has been spontaneously crashing. I've never even experienced this with a mac! The longest I have possibly kept it up after these constant crashes is fifteen minutes. It