ROW_NUMBER differences between 10g and 11g

Hello and all my apologies if this has been previously answered, I searched but not found an answer.

I have a simple table: X

Address Source feature
13534780 547045234 A
5903573 547045234 A
9805116 582004049 A
9808958 582004049 A
6429371 583032305 A
6669148 583032305 A

When I run the following SQL code:

Select Address, Entity, row_number () over (partition by entity by Source order): the nurse of X;

Oracle 10g, you get:

Treat the entity RN
5903573 547045234 1
13534780 547045234 2
9805116 582004049 1
9808958 582004049 2
6429371 583032305 1
6669148 583032305 2

then 11g, we obtain:

Treat the entity RN
13534780 547045234 1
5903573 547045234 2
9808958 582004049 1
9805116 582004049 2
6669148 583032305 1
6429371 583032305 2

If I repeat these races, they are always consistent within each version of the database, which is what I expected.

Is it due only to order the rows in the table have been loaded and how can I within the query ensure parity between the two versions.

Thank you.

Published by: User909022 on June 21, 2012 03:31

Select Address, Entity, row_number () over (partition by entity by Source order): the nurse of X;

Source control - the source is the same for both records, oracle cannot guarantee the new Ordinance, alwas, you can have the chance to get different results. If you need to make the order by clause, which must be a subsequent order by other attraibutes

Select Address, Entity, row_number () over (partition by entity by Source order, address): the nurse of X;

Tags: Database

Similar Questions

  • Resume it AGAIN APPLY: differences of 10g and 11g

    Versions > 10.2, 11.2
    OS > Solaris

    I have a question about step 4 below.
    In 10g and 11g versions for a physical Standby DB, you

    Step 1.
    Mount the DB using
    startup nomount;  
    alter database mount ;
    Step 2. Start using it to apply
    alter database recover managed standby database disconnect from session;
    Step 3. Open the DB to help ensure
    recover managed standby database cancel; -- stop the redo apply
    alter database open ; 
    Step 4. Resume it AGAIN APPLY
    alter database recover managed standby database using current logfile disconnect ;
    At this point (after step 4), version 10.2, the standby DB goes back to fashion to Mount , but DB 11.2 remains Open for READ ONLY queries because of the ACTIVE DATAGUARD feature. Am I wrong?

    Yes, you are right.

    In 10g, there is no active dataguard option (application of redo is not possible when the database is open). Application of roll forward is only possible when the backup database is in the editing phase. When the database is opened in read-only, the application mode of archive is not possible. In order to execute queries against database tables, a physical standby database, he had to stop the log apply and open the database in read-only mode. This means that the log files are waiting for this period and should be applied once the database is returned to the managed recovery mode.

    11 g, this isn't the case. It allows users to have read-only access to the pending physical databases. This option gives continuous customers the flexibility to run queries to the database physical standby, while log shipping and apply its work. The application archive is possible even when the database is open read-only. This option is called Active Dataguard (Oracle, high availability). To do this, the steps you have mentioned are perfect. It's the advantage in 11g.

  • Diff between 10g and 11g odi

    Hello

    Can someone answer the major differences between ODI 10 and 11g. Urgent!

    Thank you
    Pop...

    quickly:

    * new user interface: ODI studio with new allow (object open tabs, save button, button cancel...)
    * new object: workload
    * new agent architecture: JEE agent
    * integration with weblogic; ODI console instead of the metadata browser
    * support of the union/intersection /... in interfaces
    * new improved KM and index
    * support of the 'picture of the derivatives' in yellow interface (ie: use request void instead of create the yellow table)
    * Search feature for interface
    * simulation of the code without running the interface
    * support for partitions of tables
    * global scope KM
    * best import/export tool

  • Replicate between 10g and 11g?

    Is it possible to have a schedule of process and the spread of capture on an Oracle 11 g server, and changes are sent to and applied on an Oracle 10 g 2 Server?

    What the inverse (source is 10 gr 2 and destination is 11g)?

    I can't find Oracle statements on the question if any of these are supported or not.

    Thank you

    I assume you mean with the flow rather than, say, materialized views for replication. If this is the case, Yes, you can use the workflow to replicate data between different versions of the database. You can be limited using the workflow features that were available in the lower version - flow added the ability to manage data 11 g transparent encryption, for example - but except that it generally works very well.

    Justin

  • Connection by level: is there a difference between 10g and 9i?

    Hello

    When I run the following query
     Select level from dual connect by level <= 2 
    using Oracle10g Release2 database, I have a set of two lines:
    1
    2
    .
    But when I run the same query by using Oracle 9i database, I have an a single row result set:
    1
    .
    Please, help me understand why this difference?
    Thank you.

    Yes, there is. In the earlier versions as 9i, you must use see online:

    select  *
      from  (
             select  level
               from  dual
               connect by level <= 2
            )
    /
    

    SY.

  • loadjava - 10g and 11g

    Hello;

    Implementation of this line in 11g:
    loadjava, myUser and password - u - v - r-f./java/MyString/MyStringObject.java
    Everything is OK.

    Running the same line in 10g:
    arguments: '-u' ' myUser/Password' '-v' '-r' '-f' '. / java/MyString/MyStringObject.java'
    Error in the determination of the contained classes dans./java/MyString/MyStringObject.java
    Exception oracle.aurora.sqljdecl.ParseException: lexical error on line 75, column 5. Encountered: '@' (64), after:

    The error is @Override
        /**
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
    Why does this happen?
    Is it possible to fix by changing the loadjava settings?
    Is there an incompatibility between 10g and 11g?

    Thank you.

    >
    Implementation of this line in 11g:
    loadjava, myUser and password - u - v - r-f./java/MyString/MyStringObject.java
    Everything is OK.

    Running the same line in 10g:
    arguments: '-u' ' myUser/Password' '-v' '-r' '-f' '. / java/MyString/MyStringObject.java'
    Error in the determination of the contained classes dans./java/MyString/MyStringObject.java
    Exception oracle.aurora.sqljdecl.ParseException: lexical error on line 75, column 5. Encountered: '@' (64), after:

    The error is @Override

    Why does this happen?
    >
    Why is it? Because the JVM in Oracle 10 g is version 1.4 and the annotation of substitution does not exist in 1.4 since it was added in version 1.5, which is the version of the JVM using Oracle 11 g.
    >
    Is it possible to fix by changing the loadjava settings?
    >
    Non - Java 1.4 cannot, of course, supports a feature that did not exist at the time.
    >
    Is there an incompatibility between 10g and 11g?
    >
    The JVM version included with 11g is 1.5 in 10g is 1.4

    See what's new in 11g Release 1 in the Java Developer's Guide
    http://docs.Oracle.com/CD/B28359_01/Java.111/b31225/whatsnew.htm
    >
    Compatibility with JDK 1.5 Oracle JVM
    Sun Microsystems introduced new features in Java Development Kit (JDK) 1.5. To support these new features and enhancements, Oracle has updated to the last Platform Java 2, Standard Edition (J2SE) Oracle JVM.
    >

    See replacement Type Annotation in the Java API for 1.5
    http://docs.Oracle.com/javase/1.5.0/docs/API/Java/lang/override.html
    >
    Indicates that a method declaration is intended to override a method declaration in a superclass. If a method is annotated with the annotation type but does not override a method of the superclass, compilers are required to generate an error message.

    Since:
    1.5
    >
    And "' NO you can't ' is the answer if you plan to ask if you can replace the version of the JVM in 10g with 1.5 or newer.

    See my response in this thread for a few days.
    Re: uninstall the virtual machine JAVA of oracle 11g

  • Upgrade to DB 10g and 11g

    Hi guys,.

    Current version: 10.2.0.5
    Target Version: 11.2.x.x

    I intend to improve my DB from 10g to 11g.
    Before the actual upgrade, I can create a test 11 g environment.

    I've read a few articles and understand the following concepts
    1 create a set of tuning in current 10 g to capture plan and the performance of the sql execution statistics
    2 export the setting of 10 g and 11 g SQL import base
    3 export all data to 10 g and 11 g
    4 to 11 g database, consider whether there is a best execution plan and accept

    For my scenario here, my test 11g environment is not all applications server conneecting to it.
    For my 11g generate other plans, the sql should be run at least once in 11g. As there could be a number of SQLs captured in the tuning set, how I run everything manually (via sql * more) because I did not have a request to call him?

    In fact, my main goal here is to compare the execution between 10g and 11g plan. Already from 9i and 10 g, I have actually generate version manually sql execution plan and compare manually.



    Thank you

    Have you thought about Oracle Real Application Testing - http://www.oracle.com/technetwork/database/focus-areas/manageability/rat-option-11gr2-datasheet-128580.pdf

    Lordane Iotzov

  • C2664 errors after the upgrade of client db 10g and 11g

    Hi, after upgrading customer db 10g and 11g, the compiler gave errors error C2664:

    /************************************************************
    AddCxrCh.cpp (2071): error C2664: 'sqlglm': cannot convert parameter 1 from 'char' [513] in ' unsigned char *'
    Types of art are not related. conversion requires reinterpret_cast, C style cast or function-style cast
    make: * [AddCxrCh.obj] error 2
    ************************************************************/

    The same code was compiled correctly when you use the db 10g client. I know that I can easily correct this error by changing the code, but there is more than a sqlglm used instructions. I'm looking for a way that will solve the problem by changing the settings of the compiler.

    Thank you

    Hello

    There is a change between 10g and 11g. It is described in "Oracle 11g Pro * C nsqlprep Sqlglm issues [ID 860382.1]". The document, you can find on Metalink, aka Oracle Support.

    Herald tiomela
    http://htendam.WordPress.com

  • Difference between Standard 10g and 11g Standard edition.

    Hi all

    I tried Googling to find the difference between the Standard of 10g and 11g Standard editions, but couldn't find what I want.

    Y at - it links you want to share.

    Thank you

    Hello

    I tried, please check

    http://docs.Oracle.com/CD/B19306_01/license.102/b14199/editions.htm#BABJICBB (10 G based on the edition functions)

    http://docs.Oracle.com/CD/B28359_01/License.111/b28287/Editions.htm#DBLIC116 (11 g features based on edition)

    Just compare the two.

    Hope that helps.

    -Thank you

    Pavan Kumar N

  • difference between Quisced and Suspended database (10g)

    is someone can you please tell me what what is the difference between suspended and suspended database

    check this http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/start.htm

    everything was mentioned anout quised and suspend database sessions.

  • Difference between AL32UTF8 and UTF8

    Hello

    Our current database version is 10g with CHARSET = UTF8 to support Greek characters. However, the customer wants to switch to 11g (11.2.0.4.0) and the database of test created with CHARSET = AL32UTF8.

    Up to now to insert Greek characters, we have been offering script mentioning set NLS_LANG = AMERICAN_AMERICA. UTF8 and he has been inserting Greek characters correctly. However, it does not work with the new machine. If this setting, execution of the script gives error for the Greek characters "quoted string not properly done".


    I have two questions here:


    (1) is there a difference between UTF8 and AL32UTF8?

    (2) settings NLS_LANG works on character set of database right? What setting I put for NLS_LANG allowing to insert Greek characters or script windows or linux machine to run?


    Thanks in advance.

    Hello

    Answered below:

    -Oracle UTF8 is Unicode 3.0 revision in 8.1.7 and upward. AL32UTF8 is updated with Unicode versions in each major release, Oracle RDBMS 12.1 it is updated to Unicode 6.1,

    Apart from the difference in Unicode version the "big difference" between UTF8 and AL32UTF8 AL32UTF8 has build in support for "Additional characters", which are coded using "Surrogate pairs" (also wrongly called ' surrogate characters"'").

    Oracle UTF8 (Unicode 3.0) stores additional characters in the form of 2 characters, for a total of 6 bytes, using "modified UTF-8" instead of the "standard UTF - 8"(implemented in Oracle 9.2 and upward using AL32UTF8) 4 bytes for an extra character.

    This "modified UTF-8' is also called CESU-8 .

    Practically, this means that in 99% of UTF8 and AL32UTF8 data are the same for * storage * data. Only the additional characters differ in bytes/codes stored between UTF8 and AL32UTF8.

    -the necessary parameters are:

    LANG = el_gr. UTF8

    LC_ALL = el_GR.utf8

    NLS_LANG = 'GREEK_GREECE. AL32UTF8.

  • Difference between FYI and Notification

    Hi all

    Sorry for the dummy question, but I'm a newbie BPM/BPMN and try to understand better what I use for my modeling process.

    Could you please explain to me the difference between the FYI and Notification? When it is better to use?

    Asked me to send an e-mail notification to users just to let them know where the process is, no manual action is required and the process must continue without interruption.

    Thanks for any help.

    Fairlie

    Hi Fairlie,

    Here is a tool of 2 page that lists all the different activities in BPMN, gateways and Oracle 11g and 12 c BPM events and what they serve each to- https://blogs.oracle.com/soacommunity/entry/bpm_poster_for_bpm_suite

    In your use case where you want to send an email to someone, and no manual intervention is required, use the Notification activity.

    News is an Interactive activity and causes a work item instance appear in the Inbox an end user in the workspace.  The difference between this and other types of interactive activities is that the work item instance does not stop at this activity in the process, but instead continues on the next activity in the process.

    A Notification activity is an automatic activity which does not create an instance of work item in an Inbox in the workspace, but rather sends a message of electronic mail, instant messaging, SMS or voice.

    When the work item instances reach these two activities, they do not stop and continue them automatically the next activity in the process.

    Dan

  • 10g and 11g

    Hello

    I read the various messages about Discoverer 10 g and 11 g upgrade.

    No matter who would be able to tell me the General problems that exist that we must be aware of if we improve to 11g?

    Thank you.

    Leah

    Hi LEA
    I see no major problems that would prevent you from upgrading to 10g and 11g.

    The server underlying application changes to OAS for Weblogic, but put except that you won't see any changes. Certainly more and Viewer function similarly as Admin and office. Even the iitself EUL is 100% compatible between the two. You mind I advise to use a 11g database.

    The tricky part is to understand how to install discoverer 11g and then having someone who can learn to manage the discoverer using Weblogic.

    From the point of view of the end-user, everything will be fine. In fact, in my opinion discoverer 11g works faster than 10g, probably because Weblogic manages web stuff better than the old OAS.

    Hope this helps
    Best wishes
    Michael

  • difference between BYTE and CHAR

    Hi all

    Oracle, as in syntax below, what is the difference between BYTE and CHAR used as size data type for the column NAME:

    CREATE THE CUSTOMER TABLE
    (
    NAME VARCHAR2 (11 BYTE),
    CUSTOMER_ID NUMBER
    )

    and

    CREATE THE CUSTOMER TABLE
    (
    NAME VARCHAR2 (11 CHAR),- or even VARCHAR2 (11)
    CUSTOMER_ID NUMBER
    )



    Rgds,
    PC

    First - do not use reserved words for column (NAME).

    If the database character set is UTF-8, which I believe is the default value in the recent version of Oracle. In this case, some characters take more than 1 byte to store in the database.

    If you set the field as VARCHAR2 (11 BYTE), Oracle will allocate 11 bytes for storage, but you can not actually be able to store 11 characters in the field, because some of them take more than one byte to store, for example, non-English characters.

    By setting the field as VARCHAR2 (11 CHAR) you tell Oracle to allocate enough space to store 11 characters, regardless of the number of bytes it takes to save each of them. I think that in Oracle 10g, 3 bytes per character were used.

    Kind regards

    Robert.

  • Difference between 'Reload' and "Reload (Override Cache)"?

    Https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_navigation, what is the difference between 'Reload' and "Reload (Override Cache)"? What makes "ignore cache"?

    Reloading Web pages and cache bypass aims to obtain a new copy of perhaps obsolete or damaged files currently stored in the disk cache.
    You can do it like the first attempt if a normal charging does not seem to provide a version of a Web site or if you are having problems with a Web site otherwise.

    We usually have advice that if you have questions:

    Reload Web pages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.
    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if an extension or theme (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problems.

Maybe you are looking for

  • How to restore star favorite on the menu bar?

    Yet once I accidentally deleted that he tries to delete a bookmark. I don't remember how I got the star back last time.

  • Hello, I have a question - why firefox doesn't sync tabs group on my devices?

    Sorry, my English is not good, but this issue is so important, and I decided to write about it. In my settings, in the "Synchronization" section I did not the checkbox that can make me synchronize my group tabs. It's so bad, because I have more group

  • Crush the recovery on Satellite L750 partition

    I've updated windows 7 Home premium to Windows 7 Professional. Please could you give me some tips to update (or replace) the recovery as well as Win 7 Pro partition becomes the default o/s, and all software and drivers Toshiba Satellite L750 are incl

  • tabs in an excel file convert to numbers

    I received a .csv file which, I presume, was created in Windows.  Apparently there are tabs... I don't know how to access when I open via numbers.  It just shows a single sheet.

  • Conclusion

    I need to know how too find A text on a program with courses of the program!