display in the migration of Oracle 10 g problem

Hello

I am involved in the migration of 9 to 10g Oracle.
I have a problem with a view that work in Oracle 9 but in Oracle 10 g triggers the following error:

ORA-01446: cannot select ROWID, or sample, a view with DISTINCT, GROUP OF...

In the source view, there is a call to another view and in the last one call to a view with a group keyword because I need the value of max() column in a table, so I need the group by keyword!

Any suggestion/work around to get the max() without group value of?

Thank you

Hello

Yes, MAX (and almost all other aggregate functions) have analytical equivalents.
For example,.

MAX (column_1) OVER (PARTITION BY column_2)

calculates the MAX the same you would get with

MAX (column_1)
...
GROUP BY  column_2

But without grouping.
(I guess you always want to get only one line per group in your point of view, but there are ways to do it without using GROUP BY).

If you need help, after:
Some examples of data (from tables of the Basic)
the output you want from these data (that is, the content of the view), and
your existing view definition.

Tags: Database

Similar Questions

  • What are the risks involved in the Migration of Oracle 7 database to oracle10G

    Hello
    As a requirement of business me are necessary for the migration of our current production (Oracle 7.3.4) database to Oracle 10 G R2.

    I need to understand the risk involved in the affirmative and corrective action necessary.
    Your small contribution is greatly appreciated.

    Thanks in advance.

    Kind regards
    Vijay

    I did the migration of Oracle 8.1.6 to 10g database. Although I wasn't about many questions, questions I have met have been documented in Metalink. First, you will need to do a test migration, a UAT and then go to know the risk to go into production.
    I think you need to upgrade to 8.1.7 and migrate then import/export 10g directly. I had faced problems with the database with the Oracle Application database queues.

    Kind regards
    Marie.

  • Sybase to the Migration of Oracle: issues of assignment of object names

    I'm migrating Sybase to Oracle databases. By default, the name of the schema that results is < owner > _ < dbname > (dbo_SALES). To change this, I'm following the example to migrate objects in an existing user, as described here: http://dermotoneill.blogspot.com/2012/03/migrate-to-existing-oracle-users.html

    The name of object change "DATABASE.dbo" to "DATABASE" - and it seems to work very well. The problem I have is that there are many references to the DATABASE... OBJECT that do not include "dbo", the owner of the object. These references seem to be replaced by dbo_DATABASE. Object.

    Is there a way I can add another rule to the object name to catch these references? I am OK the migration offline, but I'd like to avoid performing a find/replace massive.

    Other ideas would be appreciated!
    Kevin

    Hey Kevin,

    I played a bit with a few examples and I was able to reproduce your problem with dbo... conversion of object name.
    Looks like we are trying to guess the name of the target that we did not seize the owners of default database. Speculation works well, unless you specify the name of the target, as in your case.
    Using SQL Developer 3.2.2 there is no solution except the search and replace dbo_databasename in the build script, as you suggest.
    Sick, working on a better solution for the next release, if Developer SQL will guess 'dbo' as the user, then it may as well find the name of the specified target of the dbo instead to assume the default value of naming conversion.
    Thanks for the comments,

    Kind regards
    Dermot.
    SQL development team.

  • Display after the XP service pack 2 update problem

    I installed the XP 2 service (Xp pro) on my Satellite Pro 2100 and since I was on the right side of the screen a black border that is not used about 2 cm wide.

    Is the same reported problem of pLippo (17-Sep-04 22:53) with the same subject.

    This problem prevents me to install SP2, can anyone help?

    Thanks in advance.

    Enzo

    Hi Enzo,

    in a first time, you must uninstall and update your display driver.

    I thik this helps because "gfan" had the same problem with a laptop computer and reinstalling solved the problem!

    Antoni Bye

  • Able to decrypt the passwords to oracle, a security problem?

    Hello
    Before all sorry if this is a silly question. I'm still fairly new to Oracle...

    My company is using Toad for Oracle to access our database, now I found a thread on the internet saying there is a tool that allows to decrypt the passwords to oracle.
    How can we prevent someone from our database passwords decryption?

    Thread of the example: http://toadfororacle.com/thread.jspa?threadID=36841

    Is it a security issue?

    Thank you
    Dere

    Published by: user6032647 on 05/04/2012 22:12

    The way I read it is that TOAD stores Oracle connection details in an .ini file, and this file can be decrypted.

    Oracle does not store the encrypted passwords, it stores the hashed passwords that cannot be decrypted. If the hashes are exposed they can be brute-force, so the complex passwords are essential.

    It is a problem of TOAD. Connection passwords should not be saved (I guess that TOAD a standard Windows "save my password checkbox", it were not used for years). If it is used as a mechanism to hide the users of TOAD database connection details, then serious consideration of safety is required.

    Dave

  • problem 1-200 after the migration to a new comp. problem at the opening of the Muse

    Hello

    Ive just migrated my old imac10.6.8 to a version of imac10.8.2.

    In my old computer wasn't there a problem with my creative cloud including the Muse programs.

    But now if I am using the Muse on my new computer, he says: "the 1-200 problem, try again later."

    IndesignCS6 however seems to work very well. I didn ' tested others yet...

    Your time is much appreciated. Thank you very much...

    Lucien

    ---------------------

    -reallly guys... more than 60 views and no responses yet...;-(makes me a little sad...)

    The error message is:

    -"An unexpected error has occurred. Please try again later... »

    Who can help me?

    Thanks in advance...

    Lucien

    Please delete the "opm.db" file found in:

    / Library/Application Support/Adobe/OOBE

    Note the built-in Mac file search functions and Windows will not detect hidden files or folders. If you are not familiar with how to navigate to folders/files hidden on your computer:

    Use the "Go to folder" item in the "Go" in the Finder menu and enter "~/Library/Application Support/Adobe/OOBE" (without the quotes). Delete the file opm.db.

  • The migration of GLCS2 to DWCS4 problem.

    I installed the extension in Dreamweaver CS4 and repeatedly attempted to Import GoLive CS2 site migration, but I get the error message:

    "Choose a folder that contains your site Adobe GoLive files."

    And Yes, I know that I have to select the folder that contains the file of the site... and I did.

    I read the statement more and more, and do not see how I make mistakes.

    I did a search on this forum, but the other migration issues seem to be different from mine.

    I did restart Dreamweaver several times and several times to choose the folder of the site via the function 'Browse', but without success.

    This seems to be a bug.

    Any ideas?

    Thank you.

    Ron

    I assume that you tried the first step mentioned here?

    http://forums.Adobe.com/message/2584306

    Of GoLive, go to Site > convert Site to new Structure.

    Then, since Dreamweaver, go to the Site > Import Site in GoLive.

  • Display on the Satellite C855D-162 new driver problem

    I got my computer laptop C855D-162 Wednesday and I'm still not running. I had Windows 8, installed all I could from Windows update. When I turn on the pc I get the Message in Norwegian so I m trying my best result.

    + AMD VISION Engine Control is not supportet by the driver Version of the map of the active screen. The AMD graphics driver update or enable AMD card controller screen. +

    Sorry I'm not 100% sure that I translated it directly, but I hope that you can understand what I write.
    What I tried was to go too Control Panel and system for updating the graphics card, but when I did.

    I got an error 43 and a message that it has not worked.
    I also did a check on the Office Help menu and on the test it came out for the map screen that something was wrong. Abit worried ofc I'm not getting this sort since im trying to get written papers due this weekend .and that I had some bad luck purchasing this pc
    I just hope that it is something that I forgot to do so because this is a new pc.

    On a test I did (I got AMD Radeon HD M 7610)

    Driverbehandling har overforingen installasjonen av driveren atiilhag.inf_amd64_ae6e6f4a21b45b05\atiilhag.inf for enhetsinstans-ID PCI\VEN_1002 & DEV_6742 & SUBSYS_FB3B1179 & REV_00\4 & 38 has 0A1E8 & 0 & 0010 med State following: 0x0.

    I don't know if this can help: P

    Therefore, I am here on my new computer and I have no idea what to do

    Hilde

    Please post the exact model name and the model number of your laptop.

  • MSSQL Server 2000 to Oracle 11 g: error on the Migration repository linking

    Hello! I'm currently migrating a MS SQL Server 2000 database to Oracle 11 g. With the help of:

    SQL Developer Version 4.0.2.15 Build 15.21

    JDK1.7.0_65

    I sysad account in MS SQL Server 2000, but have limited the privilege with Oracle 11 g as we have another group of TI that govern. Reading the documentation of migration said in the tutorial of migration of a database server Microsoft SQL to Oracle Database 11 g, I asked our IT to create the user using the following script:

    CREATING USER MWREP
    IDENTIFIED BY mwrep
    DEFAULT TABLESPACE MWREP_DATA
    TEMPORARY TABLESPACE TEMP;

    GRANT CONNECT, RESOURCE, CREATE SESSION, SEE at MWREP;

    Using the user defined MWREP, I tried to create the migration repository using SQL Developer, but it returned an error:

    SQL error on executing the Script

    Try to delete the repository before the creation of repository

    I tried to delete the repository, but he returned a denunciation of the question:

    Removal of the migration repository is completed, however, there was a problem with the deletion.  There may be several reasons for this. (1) the connection is not open.  (2) the repository has been damaged.  (3) there was no repository in this regard.  Db objects have not been deleted. The saved connection has been removed from the migration repository list

    Reading further, I came across these topics: How to remove a directory, How to associate Migration repository when using the tooland https://blogs.oracle.com/OCP10to11/entry/sqldeveloper_try_deleting_repoand learns that it is caused by a limited tablespace. Given that our IT run the following script to change the user MWREP:

    ALTER USER MWREP QUOTA UNLIMITED ON MWREP_DATA;

    But I still encounter the same error than repository migration association. Do I need a sysad privilege to continue with the association? (The generated code will run in by IT after conversion and translation). Do not change the quota of the user on the tablespace not yet enough?

    Any help is appreciated. Thank you in advance!

    Post edited by: changes GreenApple101 20140818 GMT + 08: 1. subject of ' SQL Developer: error on Association of Migration guard "" MSSQL Server 2000 for Oracle 11 g: error on Association of Migration repository "2. Some corrections of grammar

    Hi all! Tried to use a lower version of SQL Developer (Version 3.2.20.09 build HAND-09, 87), and I have successfully bound to the migration repository.

  • Number displayed in the oracle.sql.NUMBER form in the result of the query

    Developer SQL version 3.2.10.09.57 displays numbers like "oracle.sql.NUMBER@66a35419 (the part after @ is not constant and change each time) even for simple count (*) select double."
    At the same time "run the Script (F5)" no indication that the header
    COUNT (*)
    ------------
    and no the query results.

    Hi Andriy,

    The forum search, I see a similar complaint noted against 3.1.07.42. Instruction execution produces the list oracle.sql.NUMBER, probably because of a corrupt installation query results (due to decompress questions, or perhaps no decompression in an empty directory). See the following thread:
    SQLDev 3.1: Number-fields in the tables have "oracle.sql.NUMBER @...". »

    Hope this helps,
    Gary
    SQL development team

  • With regard to the migration of the Oracle database to MS SQL

    Hi all

    In my application, oracle is the existing database. We need to migrate from Oracle database to MS SQL.
    We need procedure is as below
    1 export data from Oracle and keep it in a file. (.dmp)
    2 import data from MS SQL in the oracle export file.

    and vice versa from MS SQL to Oracle.

    My question is - it is possible to import the .bmp (oracle export data) in MS SQL.

    Please clarify for me.

    There are two options to get the data from Oracle to MS SQL.
    The simplest is to create a linked in MS SQL to Oracle server and copy the data with a query like select * in oracle.schema.table my_mssqlTable; via the linked server.
    Some data types will not be supported.
    That's an instant copy.

    If you need a fence at real-time replication, you can use replication MS (I would not recommend because it creates triggers on the Oracle tables), or you can use GoldenGate or DataCurrents or other replication products.

  • 101202 BPEL process (Oracle AS) of the migration to SOA Suite 11 g (WLS)

    Hi all

    I am looking for more information on the migration processes BPEL developed using 101202 BPEL Process Manager struggle to run on AS Oracle 10 g, Oracle SOA Suite 11 g running on Weblogic Server.

    Pointers is very appreciated.

    Thank you
    Anish.

    Looking for info on integration OSR 10 g and SOA Suite 11 g I found this link (http://docs.oracle.com/cd/E12839_01/upgrade.1111/e10127/upgrade_soa_apps.htm) that might help you.

    Published by: alfredozn on November 15, 2011 11:26

  • Advantage of the portfolio after the migration to HSM with Oracle 11.2.0.1.0

    Hello

    I found this integration for Utimaco Cryptoserver guide: http://hsm.utimaco.com/solutions/db-encryption/ and now I wonder if it is necessary to keep the original portfolio after the migration of HSM with Oracle 11.2.0.1.0. As I understand it, eventually all the necessary keys are stored in HSM. Is still used portfolio in a way or is it possible to reuse maybe after you set the METHOD to FILE sqlnet.ora?

    Thank you

    Hi flyer007,

    If you used the Wallet before Oracle, then migrate the master key of TDE from there to an HSM is a renewal of key operation; the keys of the table (for the TDE column encryption), and tablespace (for TDE tablespace encryption) key is decrypted with the old key in the portfolio) and encrypted again with the new MK unified (in the HSM).

    Your RMAN backup files, export files Data Pump and same 'live' in the redo logs, TEMP and UNDO tablespace can be encrypted with the old MK in the wallet, that's why we NEVER delete the portfolio.

    Of course, the Oracle database automatically knows what MK he needs.

    Good luck

    Peter

  • Problem with the migration of key primary and foreign from SQL Server to Oracle

    Hi people, I use SQL Developer to migrate Oracle to a SQL database, and I'm stuck with a few questions:

    So far, the worst of them is the fact that I can not migrate the PKs and FKs. After having successfully captured the model DB in SQL Server and Oracle conversion, when the tool generates scripts, all ALTER TABLE queries that add pharmacokinetics and the FKs have their columns duplicate targets.

    for example: when I'm trying to migrate a simple table that contains an Id (PK) and the columns name, the tool generates the following scripts:


    PROMPT create Table TestTable...
    CREATE TABLE TestTable)
    ID NUMBER (10,0) NOT NULL,
    Name VARCHAR2 NOT NULL
    );

    The PROMPT create constraint primary key on the table TestTable PK_TestTable...
    ALTER TABLE TestTable
    ADD CONSTRAINT PK_TestTable PRIMARY KEY
    (
    ID,
    ID
    )
    ENABLE


    Regarding the FKs, the tool duplicates the columns thus:

    ALTER TABLE SomeTable
    ADD CONSTRAINT FK_SomeTable_SomeTable2 FOREIGN KEY
    (
    SomeTable2Id,
    SomeTable2Id
    )
    REFERENCES SomeTable2
    (
    ID,
    ID
    )
    ENABLE
    ;

    Does anyone have an idea on how to solve these problems? I would be very grateful for answers!

    Hi Fernando,

    I was unable to reproduce this problem. My primary / foreign keys when defined using unique columns.

    The PROMPT create constraint primary key on the suppliers table PK_Suppliers...
    ALTER TABLE suppliers
    ADD CONSTRAINT PK_Suppliers PRIMARY KEY
    (
    Vendor No.
    )
    ENABLE
    ;

    I tried a few things like
    capturing twice and rename the two models of the same
    Rename the converted templates
    but without success.
    I think that this problem occurs is in the capture phase or convert.

    (1) you perform the capture online or offline?
    (2) can provide you a DDL together for one of these tables and the indexes to see if I can reproduce?
    (3) made of capture or convert fail or be again at any stage?

    I all else fails I would attempt a capture and convert again using a new repository (create a new schema in Oracle and associate him the migration repository).

    Kind regards
    Dermot
    SQL development team

    Published by: Dermot ONeill on October 22, 2009 12:18

  • Migrate the database to Oracle 10 g Standard Edition to Enterprise Edition

    What is the best way to migrate a database was created with the title of Oracle Enterprise Edition (both 10 gr 2) Standard edition?

    I can just install new binary EA. or do I have to recreate the Pb and to import/export?

    Thanks in advance!

    Hello

    I suggest that you install classic editiion and import/export company defenitely will work for you without hassle.

    Just export / import the schema of the application based

    On SE
    exp system/password owner=userA,userB, userC, userD file=myusersexport.dmp log=myusersexport.log
    
    On EE, make sure  userA, userB, userC, userD exists and so any special ROLES before importing
    imp system/password fromUser=userA,userB,userC,userD toUser=userA,userB,userC,userD  file=myusersexport.dmp log=myusersimport.log
    

    Concerning

Maybe you are looking for