View problem in Oracle 10g migration

Hi,
I am involved in Oracle migration from 9 to 10g.
I have a problem with a view that works in Oracle 9 but in Oracle 10g raise the following error:
ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY etc.
In the view source there is a call to another view and in the last one another call to a view with a group by keyword because I need the max() column value in a table, so I need the group by keyword!!!
Any suggestion/work around to get the max() value without group by???
thanks

Hi,
Yes, MAX (and almost all the other aggregate functions) have analytic counterparts.
For example,
MAX (column_1) OVER (PARTITION BY column_2)calculates the same MAX that you would get with
MAX (column_1)
GROUP BY  column_2But without grouping.
(I suppose you'll still want to get only one row per group in your view, but there are ways to do that without using GROUP BY.)
If you need help, post:
some sample data (from the base tables),
the output you want from that data (that is, the contents of the view), and
your existing view definition.

Similar Messages

  • Problem in oracle 10g release 2

    I faced strange problem while selecting data from join of tables (in oracle 10g). While selecting, when the order of fields in "group by" clause is changed, the resulting summary of values is changed too. For eg,
    query1 = SELECT F1, F2, F3, SUM(F4)
    FROM TBL1
    GROUP BY F1, F2, F3, F4
    query2 = SELECT F1, F2, F3, SUM(F4)
    FROM TBL1
    GROUP BY F2, F4, F1, F3
    The results SUM(F4) given by query1 and query 2 do not match. While testing these querries in differnt environments, we found such problem in ORACLE 10g RELEASE 2 only and not in ORACLE 10g RELEASE 1. I need to execute this query in oracle 10g. Can anybody help me finding the exact problem?

    The results SUM(F4) given by query1 and query 2 do not matchSince the group by clause is not same, the result of sum can be different.
    Can you provide us some dataset ?
    Nicolas.

  • Oracle 10g Migration Workbench 10.1.0.4.0

    Hai,
    Could any of you explain me about Oracle 10g Migration Workbench 10.1.0.4.0
    product and also about the features and usage of this project.
    Thanks in advance.
    A.Mohammed Rafi.

    Sandeep,
    Have you used this user which holds the omwb repository before for a migration? When you connected the first itme, did you get a message, that the repository tables did not exist and would you like to create them?
    Are you using the connected or disconnected source model load?
    Donal

  • MSAccess to Oracle 10g Migration Problem

    I have exported an Access 2000 database (2 tables) to XML using Oracle SQL Developer (v1.2.1). It successfully creates
    However, when I then go to Migration => Capture MS Access Exported XML, I find it is greyed-out and cannot be selected.
    I then attempted to use the "Quick Migrate" feature. The pre-migration verification passes with no problems. The program then creates a repository but ends without moving on to the next section ("Capture"). From there, I'm left with a series of tables with an "md_" prefix, but all are empty.
    Any help you can provide would be appreciated.
    Steve

    Tank you Hilary;
    i did this steps :
    1) Close SQL Developer
    2) Create a sqldeveloper.cmd file in the SQL Developer root directory
    3) With the following contents
    SET ORACLE_HOME=%CD%
    start sqldeveloper.exe
    4) Run sqldeveloper.cmd
    but i still get the message :
    java.lang.Exception: oracle.dbtools.metadata.persistence.PersistenceException: Violation de protocole
         at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.start(AbstractMigrationProgressRunnable.java:141)
         at oracle.dbtools.migration.workbench.core.CaptureInitiator.launch(CaptureInitiator.java:93)
         at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handleEvent(ObjectActionController.java:140)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:524)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:855)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:496)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: oracle.dbtools.metadata.persistence.PersistenceException: Violation de protocole
         at oracle.dbtools.metadata.persistence.PersistableObject.doInsert(PersistableObject.java:238)
         at oracle.dbtools.metadata.persistence.PersistableObject.save(PersistableObject.java:172)
         at oracle.dbtools.migration.workbench.core.BasicMigrationStorer.storeObject(BasicMigrationStorer.java:51)
         at oracle.dbtools.migration.capture.CaptureWorker.storeConnection(CaptureWorker.java:596)
         at oracle.dbtools.migration.capture.CaptureWorker.runCapture(CaptureWorker.java:215)
         at oracle.dbtools.migration.workbench.core.ui.CaptureRunner.doWork(CaptureRunner.java:65)
         at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressRunnable.run(AbstractMigrationProgressRunnable.java:161)
         at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(MigrationProgressBar.java:569)
         at java.lang.Thread.run(Thread.java:595)
    tanks for your help :)

  • Password problem in oracle 10g after upgrading from oracle 9i

    Hi to all,
    i'm migrating oracle 9i to oracle 10g. in oracle 9i username/password are same character(eg kareem/kareem)
    after upgrading to oracle 10g will it create any problem. Because in oracle 10g the condition is when creating user is username and password should not contain same character (kareem/kareem not allowed).
    Thanks in advance

    in oracle 10g document, they have mention below condition to create user. See the second condition.
    • Passwords must be between 4 and 30 characters long.
    • Passwords cannot be the same as the user name.
    • Passwords must be from the database character set and can include the underscore (_), dollar ($), and pound sign (#) characters.
    • Passwords cannot be Oracle reserved words.
    • Don't start the password with a numeral.
    • Don's use change_on_install or manager as passwords, since they are used by Oracle.
    As i'm going to upgrade oracle 9i to 10g. if it give problem because username and password are same then i have to request my development team to change the password in their application.Can you please verify and tell me.
    Edited by: user7071421 on Sep 25, 2008 4:33 AM

  • Oracle 10g Migration

    Oracle server version :- 10g
    Oracle client version :- 9i
    BEA Weblogic Version :- 8.1SP5
    Actually we are migrating the database from Oracle 9i server to Oracle 10g server.
    issues :- in 10g very Poor performance compare to 9i
    Actually we don't exactly where is problem occured, wheather it's occured in BEA Weblogic or Oracle database
    plz help how to solve this problem

    SUN_RR wrote:
    Oracle server version :- 10g
    Oracle client version :- 9i
    BEA Weblogic Version :- 8.1SP5
    Actually we are migrating the database from Oracle 9i server to Oracle 10g server.
    issues :- in 10g very Poor performance compare to 9i
    You should consult with Oracle about this. If nothing else has changed except the database version, why would it be the fault of Java or BEA?
    Actually we don't exactly where is problem occured, wheather it's occured in BEA Weblogic or Oracle database
    No one else can guess based on the little information you've provided. Better sort that out. Profile both and see where the time is being spent.
    plz help how to solve this problemBe scientists and get some data.
    %

  • Problem with Oracle 10g Backup

    Hi all! I'm using an Oracle 10g Database installed on a Windows 2003 Server. I have some problems configuring backup policy. First time I configure backup, the flash recovery area size was too small. Waiting for a new disk to arrive (this is a test enviroment), I had to disable archive log mode and now the only backup I can do is logical: export of the entire database. The problem is that Oracle 10g continues to make backups every night and creates empty folder with the data in which the backup was started. I want to completely disable the backup policy. How can I do this? Is it possible to view which is the backup policy defined without using EM console? Infact from the EM console seems that there is no backup policy defined. Thank you for your attention.
    Stefano.

    Ok! I've solved the problem. It was sufficient to eliminate the job executed for the backup from the first tab of the EM console.
    Bye.

  • Installation problem with oracle 10g release 1 in RHEL ES 4 platform

    Hi,
    I am facing such a problem. I want to install Oracle 10g release 1.
    I am using linux 86_64
    os is RHEL ES 4 UPGRADE 5 X_86_64
    When i put the command ./runInstaller It shows os is not supported.
    Is there any way to install this oracle version.
    Can u please suggest which version os is suitable for this.
    please suggest.
    Thanks & regards

    WHICH 10gR1 software do you use? Oracle provides different versions, you need 10.1.0.3 for Linux x86-64 from the OTN download page.
    By the way I would install 10gR2.
    Werner

  • Open cursors problem- j2ee + oracle 10g

    Hi,
    I am using EJB on sunOne application server 8.1., Oracle 10g DB.
    EJB container connects to Oracle DB through a set of connection pools.
    BMP for all entity beans.
    I have about 160 PL/SQL functions that make up the business logic of the online application. everytime the application runs, I get an increasing number of open cursors, including some of the ones that are explicitly closed within PL/SQL (inspection with sys.v_$open_cursor).
    I made sure all CallableStatements, PreparedStatements, RecordSets within the beans are closed and set to NULL. All PL/SQL functions use explicit cursors, so every select statement is managed within a cursor which is explicitly closed when the function finishes with it.
    From v$open_cursor, I identified the sessions with the cursors still open, and issued (ALTER SYSTEM KILL SESSION �sid, #serial�) for each of the sessions (this is done via a PL/SQL function for all inactive sessions).
    These sessions have state INACTIVE, and wait_class IDLE. This has Killed all sessions, but I was not able to use the application anymore. I suspect by killing those sessions we have also caused the connections between EJB container and the Oracle DB. The only way to use the application now is to stop and restart the sunONE domain � this is very inconvenient.
    Has anyone encountered a similar problem? any suggestions to reduce or eliminate the open cursors number? Please help.
    Thank you all

    Maybe you can try to have a smaller steady-pool-size and idle-timeout-in-millis for your connection pools.
    Also, if that's at all possible, have smaller number of connection pools being shared by more apps.
    Just my 2c.
    thanks.

  • Problems: install oracle 10g 32 bits on RH 5.8 x64

    Hello,
    Someone has given me an oracle 10g 32 bits to install on a Redhat 5.8 64 bits server (no other server available).
    I have a lot of errors during the installation process
    exemple:
    INFO: /usr/bin/ld: skipping incompatible /oracle/client/10x_32/lib/libxml10.a when searching for -lxml10
    /usr/bin/ld: cannot find -lxml10
    collect2: ld returned 1 exit status
    I installed libxml10 64 and 32 bits on the system !
    I would like to know if this configuration is POSSIBLE ???!
    If yes, what is the solution / process to fix these compli. problems :-|
    Thanks for your help !

    962147 wrote:
    yes i read the installprocess and pre requisits:
    But first "**is it possible to install oracle 10g 32 bits on redhat 64 bits ???* "
    yes or no ? :-(
    I've never seen any 32-bit software that DIDN'T run on a 64 bit OS, as long as the necessary libraries are installed.
    I used this process: is it the good one ?
    http://www.oracle-base.com/articles/10g/oracle-db-10gr2-installation-on-rhel-5.php
    Tim does a very nice job with his stuff on oracle-base, but that is NOT the official documentation. Why not use ORACLE'S own installation guide? Have you seen http://docs.oracle.com/cd/B19306_01/install.102/b15667/toc.htm
    And why are you installing a a version of Oracle that is out of support?
    And as long as you have a 64-bit OS, why would you want to run a 32-bit version of Oracle?
    Edited by: 962147 on 29 sept. 2012 13:06Edited by: EdStevens on Sep 29, 2012 9:22 PM

  • I have a problem with oracle 10g express edition

    Hello,
    I have just installed oracle 10g express edition and I have a problem with the script editor. I can write anything in the window that appears below buttons undo,redo and find, It is like disabled. I use windows XP, Firefox 2.0 ( I have also tried with Iexplorer and It does not work either). I have javascript enabled.
    anyone knows what is the problem?
    Later,I have installed it in a virtual machine of Windows 2003 Server and It works well but I`d rather use it in my Microsoft XP
    Thank you very much
    Fernando Martínez

    It looks like you can fix this if you replace the codearea.xbl.xml and codearea.iframe.html files in the
    /i/editor folder with files from an Apex 2.2.1 installation - such as the one on apex.oracle.com.
    Since I don't know what the licensing implications are, I will let you figure out the details.

  • Viewing Tables in Oracle 10g Enterprise Manager

    Hello,
    We are running Oracle 10g on a Linux Red Hat platform. We have started the dbconsole listeners to start using Enterprise Manager. The problem we are encountering is that tables that are in our schema are not showing up in Enterprise Manager. We have checked the tables using OEM and they are appearing there normally. The tables not showing were created from an object type. We are able to use DML, DDL on these tables using SQL, iSQLPlus. We appreciate any ideas. Thanks.

    Please clarify how did you check the tables in 10g using EM dbconsole.
    Please post some screen capture of you login using sqlplus and shown the table is there for example,
    %sqlplus test/test1
    SQL*Plus: Release 10.1.0.2.0 - Production on Wed Jun 4 15:39:22 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    TEST@rman>select table_name from user_tables where table_name='A1';
    TABLE_NAME
    A1

  • Problem with ORACLE 10g on VirtualBox ....

    Hi,
    Currently, I installed an instance of ORACLE 10g on Virtual Server with Windows Server 2K3 Enterprise x86, but after to turn off o restart the virtaul Machine, areceived an error of ORACLE "ORA-12514"...
    I had created the virtual server 3 times but the problems continues, Can somebody help me?
    Thanks.
    Oscar Carrizales.

    1000990 wrote:
    Hi,
    Currently, I installed an instance of ORACLE 10g on Virtual Server with Windows Server 2K3 Enterprise x86, but after to turn off o restart the virtaul Machine, areceived an error of ORACLE "ORA-12514"...
    I had created the virtual server 3 times but the problems continues, Can somebody help me?
    Thanks.
    Oscar Carrizales.ORA-12514 ALWAYS only occurs due to a problem on DB Server system.
    One cause of this problem is when the Oracle database is down & needs to be started.
    A remote client send a request to the Listener asking to be connected to a specific service.
    If/when the listener does not know anything about that service, the listener responds with ORA-12514
    post results from the following two OS commands:
    lsnrctl status
    lsnrctl service
    Since every connection request to the listener gets logged, listener.log file will contain a line with 12514 as status code.
    This line contains valuable debugging details. So post this line & surrounding lines.
    for additional debugging suggestions read the URL below:
    http://edstevensdba.wordpress.com/2011/03/19/ora-12514/

  • Oracle 10g migration to linux

    Hi,
    At present we are maintaining a J2EE application running on a UNIX Platform with the following environment configuration:
    o Web Server (Apache 2.0.52)
    o Application Server (WebLogic Server 9.0)
    o Database Server (Oracle 9i)
    The current requirement is to upgrade Oracle 9i on UNIX to Oracle 10g on Linux. Will there be any impact on
    · Oracle developer applications (Forms/Reports) because of oracle upgrade?
    · .net applications accessing oracle because of oracle upgrade?
    · Java applications accessing oracle because of oracle upgrade?
    And there are plans to use Oracle Warehouse Builder and Oracle Workflow Server. Are there any known issues with respect to the above applications during this migration?
    Thanks,

    Hi,
    Upgrading on the same machine doesn't work well. Installing in a different machine
    will work fine.
    This can be done for apps also where you will be migrating the config alone.
    Regards,
    Nirmal

  • Form login problem in Oracle 10g AS, even form does display

    Dear All
    We are facing one problem, when we access form with oracle 10g AS, the form is displayed, but when we enter username and password, it doesnt go to the other screen, it remains hang there and doesnt do any thing, neither give any error.
    we would appreciate the help.
    thanks in advance

    Sounds like you cannot connect to the database....
    Is there a firewall between the app-server and the database? If yes, could you check with your firewall people that all traffice from db-server is allowed to app-server (from app-server to db-server just 1521, or another port that you used for the listener, is enough)
    If not all traffic is allowed, then check the USE_SHARED_SOCKET environment variable (this is the windows name, there is a setting like this for unix too, but I can't recall the exact name by heart. It might be different)

Maybe you are looking for