AVG as an analytic function - gives error ORA-0439

I'm trying my first implementation of AVG as an analytic function. I took the following query which gave a simple average:
SELECT
PERSON.LASTNAME,
COUNT(TO_NUMBER(RPTOBS.OBSVALUE)) CNT,
AVG(TO_NUMBER(RPTOBS.OBSVALUE)) AVRG
FROM
TUT.PERSON PERSON,
TUT.RPTOBS RPTOBS
WHERE
PERSON.PID = RPTOBS.PID AND
RPTOBS.HDID = 54
GROUP BY
PERSON.LASTNAME;
and was rewrote this to give an average of the values of the last 3 dates (I think..)
SELECT
PERSON.LASTNAME,
RPTOBS.OBSDATE,
AVG(TO_NUMBER(RPTOBS.OBSVALUE))
OVER
(PARTITION BY PERSON.LASTNAME
ORDER BY RPTOBS.OBSDATE
ROWS BETWEEN UNBOUNDED PRECEDING AND 2 FOLLOWING)
AS AVRG3
FROM
TUT.PERSON PERSON,
TUT.RPTOBS RPTOBS
WHERE
PERSON.PID = RPTOBS.PID AND
RPTOBS.HDID = 54;
(this seemed to be a direct translation of a similar query in the SQL Reference.
I am getting an error message of:
ORA-0439 - feature not enabled - OLAP Window Functions
Can some one tell me why?
Thanks,
Will Salomon
[email protected]

I haven'y done it personally, but I am told that it's really as simple as de-insatlling the Standard Edition software and then installing the Enterprise Edition. Th einstaller will prompt you for an Oracle SID and you just have to point it to your existing database.
You may wish to test this proposition before risking your actual system. But, in any case, take a back up.
With 9i things are simpler: everyting gets installed, you're just not allowed to use the EE features if you haven't paid for them.
Cheers, APC

Similar Messages

  • One of out DB while starting gives error ORA-03113

    One of out DB while starting gives error ORA-03113. Need some inputs to resolve this issue.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  603979776 bytes
    Fixed Size                  1250380 bytes
    Variable Size             163580852 bytes
    Database Buffers          432013312 bytes
    Redo Buffers                7135232 bytes
    Database mounted.
    ORA-03113: end-of-file on communication channelRegards,
    Lokanath

    Please find the dts.
    Mon Jan 09 16:12:41 2012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Mon Jan 09 16:12:41 2012
    alter database mount exclusive
    Mon Jan 09 16:12:48 2012
    Setting recovery target incarnation to 2
    Mon Jan 09 16:12:49 2012
    Successful mount of redo thread 1, with mount id 3125175737
    Mon Jan 09 16:12:49 2012
    Database mounted in Exclusive Mode
    Completed: alter database mount exclusive
    Mon Jan 09 16:12:49 2012
    alter database open
    Mon Jan 09 16:12:51 2012
    Rolling back half complete log switch of thread 1
    Mon Jan 09 16:12:52 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_lgwr_5024.trc:
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL01.CTL'
    ORA-27091: unable to queue I/O
    ORA-27069: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 432)
    Mon Jan 09 16:12:56 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_lgwr_5024.trc:
    ORA-00204: error in reading (block 432, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL01.CTL'
    ORA-27091: unable to queue I/O
    ORA-27069: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 432)
    LGWR: terminating instance due to error 204
    Mon Jan 09 16:12:58 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_dbw0_5264.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:00 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_pmon_3784.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:01 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_psp0_4388.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:01 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_mman_4828.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:01 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_ckpt_2604.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:01 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_reco_4492.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:02 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_smon_4484.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 16:13:03 2012
    Instance terminated by LGWR, pid = 5024
    Mon Jan 09 16:15:01 2012
    WARNING: inbound connection timed out (ORA-3136)
    Mon Jan 09 16:29:35 2012
    WARNING: inbound connection timed out (ORA-3136)
    Mon Jan 09 16:55:01 2012
    WARNING: inbound connection timed out (ORA-3136)
    Mon Jan 09 17:06:50 2012
    WARNING: inbound connection timed out (ORA-3136)
    Mon Jan 09 17:07:52 2012
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
      processes                = 150
      __shared_pool_size       = 155189248
      __large_pool_size        = 4194304
      __java_pool_size         = 4194304
      __streams_pool_size      = 0
      sga_target               = 603979776
      control_files            = D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL01.CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL02.CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL03.CTL
      db_block_size            = 8192
      __db_cache_size          = 432013312
      compatible               = 10.2.0.1.0
      db_file_multiblock_read_count= 16
      db_recovery_file_dest    = D:\oracle\product\10.2.0/flash_recovery_area
      db_recovery_file_dest_size= 2147483648
      undo_management          = AUTO
      undo_tablespace          = UNDOTBS1
      remote_login_passwordfile= EXCLUSIVE
      db_domain                =
      dispatchers              = (PROTOCOL=TCP) (SERVICE=ecuprogXDB)
      job_queue_processes      = 10
      audit_file_dest          = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ECUPROG\ADUMP
      background_dump_dest     = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ECUPROG\BDUMP
      user_dump_dest           = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ECUPROG\UDUMP
      core_dump_dest           = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ECUPROG\CDUMP
      db_name                  = ecuprog
      open_cursors             = 300
      pga_aggregate_target     = 201326592
    PMON started with pid=2, OS id=4832
    PSP0 started with pid=3, OS id=4208
    MMAN started with pid=4, OS id=3216
    DBW0 started with pid=5, OS id=4020
    LGWR started with pid=6, OS id=4728
    CKPT started with pid=7, OS id=4860
    SMON started with pid=8, OS id=2932
    RECO started with pid=9, OS id=3772
    CJQ0 started with pid=10, OS id=5244
    MMON started with pid=11, OS id=4568
    MMNL started with pid=12, OS id=5828
    Mon Jan 09 17:07:53 2012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Mon Jan 09 17:07:53 2012
    ALTER DATABASE   MOUNT
    Mon Jan 09 17:07:58 2012
    Setting recovery target incarnation to 2
    Mon Jan 09 17:07:59 2012
    Successful mount of redo thread 1, with mount id 3125157033
    Mon Jan 09 17:07:59 2012
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE   MOUNT
    Mon Jan 09 17:07:59 2012
    ALTER DATABASE OPEN
    Mon Jan 09 17:08:01 2012
    Rolling back half complete log switch of thread 1
    Mon Jan 09 17:08:02 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_lgwr_4728.trc:
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL01.CTL'
    ORA-27091: unable to queue I/O
    ORA-27069: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 432)
    Mon Jan 09 17:08:05 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_lgwr_4728.trc:
    ORA-00204: error in reading (block 432, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ECUPROG\CONTROL01.CTL'
    ORA-27091: unable to queue I/O
    ORA-27069: attempt to do I/O beyond the range of the file
    OSD-04026: Invalid parameter passed. (OS 432)
    LGWR: terminating instance due to error 204
    Mon Jan 09 17:08:06 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_dbw0_4020.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 17:08:07 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_pmon_4832.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 17:08:07 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_reco_3772.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 17:08:07 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_smon_2932.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 17:08:07 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_ckpt_4860.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 17:08:09 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_psp0_4208.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Mon Jan 09 17:08:09 2012
    Errors in file d:\oracle\product\10.2.0\admin\ecuprog\bdump\ecuprog_mman_3216.trc:
    ORA-00204: error in reading (block , # blocks ) of control file
    Instance terminated by LGWR, pid = 4728

  • Discoverer Analytic Function windowing - errors and bad aggregation

    I posted this first on Database General forum, but then I found this was the place to put it:
    Hi, I'm using this kind of windowing function:
    SUM(Receitas Especificas) OVER(PARTITION BY Tipo Periodo,Calculado,"Empresa Descrição (Operador)","Empresa Descrição" ORDER BY Ini Periodo RANGE BETWEEN INTERVAL '12' MONTH PRECEDING AND INTERVAL '12' MONTH PRECEDING )
    If I use the "Receitas Especificas SUM" instead of
    "Receitas Especificas" I get the following error running the report:
    "an error occurred while attempting to run..."
    This is not in accordance to:
    http://www.boku.ac.at/oradoc/ias/10g(9.0.4)/bi.904/b10268.pdf
    but ok, the version without SUM inside works.
    Another problem is the fact that for analytic function with PARTITION BY,
    this does not work (shows the cannot aggregate symbol) if we collapse or use "<All>" in page items.
    But it works if we remove the item from the PARTITION BY and also remove from workbook.
    It's even worse for windowing functions(query above), because the query
    only works if we remove the item from the PARTITION BY but we have to show it on the workbook - and this MAKES NO SENSE... :(
    Please help.

    Unfortunately Discoverer doesn't show (correct) values for analytical functions when selecting "<All>" in a page item. I found out that it does work when you add the analytical function to the db-view instead of to the report as a calculation or as a calculated item on the folder.
    The only problem is you've to name all page-items in the PARTITION window, so, when adding a page-item to the report, you,ve to change the db-view and alter the PARTITION window.
    Michael

  • Impdp triggers always give error ORA-04071:missing BEFORE, AFTER or INSTEAD

    Hello,
    I am using 11g impdp to create a test system.
    I use this cmd to import
    impdp 'SYS/xxxxx@PWRFUN AS SYSDBA' dumpfile=PWRPROD.DMP logfile=PWRFUNimportPROD.log SCHEMAS=pwrplant TABLE_EXISTS_ACTION=REPLACE
    Then I get this error for all the triggers
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword
    Failing sql is:
    CREATE TRIGGER "PWRPLANT"."APPROVAL_STEPS_HISTORY" PS_HISTORY
    BEFORE UPDATE OR INSERT ON PWRPLANT.APPROVAL_STEPS_HISTORY
    FOR EACH ROW
    BEGIN    :new.user_id := USER;    :new.time_stamp := SYSDATE; END;
    As you can see, the trigger does contain the word "before".
    When I remove " "PWRPLANT"."APPROVAL_STEPS_HISTORY" " and run the trigger below, it compiles correctly. Why is this, and how do I make my impdp to run correctly?
    CREATE TRIGGER PS_HISTORY
    BEFORE UPDATE OR INSERT ON PWRPLANT.APPROVAL_STEPS_HISTORY
    FOR EACH ROW
    BEGIN    :new.user_id := USER;    :new.time_stamp := SYSDATE; END;

    same error, thanks for your attemp
    Error starting at line 1 in command:
    CREATE TRIGGER "PWRPLANT"."APPROVAL_STEPS_HISTORY" PS_HISTORY
    BEFORE UPDATE OR INSERT ON PWRPLANT.APPROVAL_STEPS_HISTORY
    REFERENCING new AS new
    FOR EACH ROW
    BEGIN :new.user_id := USER; :new.time_stamp := SYSDATE; END;
    Error report:
    ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword
    04071. 00000 - "missing BEFORE, AFTER or INSTEAD OF keyword"
    *Cause:    The trigger statement is missing the BEFORE/AFTER/INSTEAD OF clause.
    *Action:   Specify either BEFORE, AFTER or INSTEAD OF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • REST web-service invocation gives error ORA-29266: end-of-body reached

    We are trying to consume a REST web-service. We send county code and country name to the WS, it then inserts the data and sends us a response in XML.
    I used this PL/SQL code to invoke the rest WS.
    http://blog.warp11.nl/2011/07/calling-a-rest-webservice-with-plsql/
    Problem is there is an error ORA-29266, when processing the utl_http.read_text(t_http_resp, t_respond);
    The error means that there is no response. i.e. NULL response.
    We can PING the service the WS is, so we are not using authentication. Could this be the problem?
    Any help could be greatly appreciated.
    Edited by: user12240205 on Aug 5, 2011 3:33 AM

    We are trying to consume a REST web-service. We send county code and country name to the WS, it then inserts the data and sends us a response in XML.
    I used this PL/SQL code to invoke the rest WS.
    http://blog.warp11.nl/2011/07/calling-a-rest-webservice-with-plsql/
    Problem is there is an error ORA-29266, when processing the utl_http.read_text(t_http_resp, t_respond);
    The error means that there is no response. i.e. NULL response.
    We can PING the service the WS is, so we are not using authentication. Could this be the problem?
    Any help could be greatly appreciated.
    Edited by: user12240205 on Aug 5, 2011 3:33 AM

  • Ldap function gives errors in apex 4.1.1

    Hi all,
    I have a custom function for ldap authentication.
    create or replace
    FUNCTION bgt_ldap_authenticatie_func (
          p_username IN VARCHAR2
        , p_password IN VARCHAR2
    RETURN BOOLEAN
    AS
        l_ldap_host     VARCHAR2(100) := 'domain';
        l_ldap_port     VARCHAR2(4)   := '389';
        l_session       DBMS_LDAP.SESSION;
        l_retval        PLS_INTEGER;
        l_login_result  BOOLEAN := true;
        l_error VARCHAR2(4000);
    BEGIN
        IF p_password IS NULL THEN
            l_login_result := FALSE;
        ELSE
            -- I. LDAP-Login
            BEGIN
                -- LDAP Exceptions
                DBMS_LDAP.USE_EXCEPTION := TRUE;
                -- LDAP-Handle initialiseren ...
                l_session := DBMS_LDAP.INIT(
                      hostname  => l_ldap_host
                    , portnum   => l_ldap_port
                l_retval := DBMS_LDAP.SIMPLE_BIND_S(
                      ld        => l_session
                    , dn        => 'domain\' || LOWER(p_username)
                    , passwd    => p_password
                -- Afmelden van LDAP Server.
                l_retval := DBMS_LDAP.UNBIND_S(ld => l_session);
                -- Registratie was succesvol.
                l_login_result := TRUE;
            EXCEPTION WHEN OTHERS THEN
                l_login_result := FALSE;
            END;
        END IF;
        RETURN l_login_result;
    END;This is working fine on Apex 3.2 and Oracle 10g.
    I now have a development environment with apex 4.1.1 and Oracle 11g.
    I have run above function, with success (no compilation errors).
    I then go to authentication schemes to create my ldap authentication:
    host: domain
    port: 389
    Distinguished Name (DN) String: ou=domain,ou=New Security Groups,ou=Applications,cn=Budgeting_Dev
    Use Exact Distinguished Name (DN): Yes     
    LDAP Username Edit Function: return bgt_ldap_authenticatie_func;      
    When I click on the create button, I get
    1 error has occurred
        ORA-06550: line 5, column 8: PLS-00382: expression is of wrong type ORA-06550: line 5, column 1: PL/SQL: Statement ignoredWhy is it that I'm getting an error when trying to create the authentication when the function has been successfully compiled?
    Thanks,
    Diana

    Hi Diana,
    in addition to Christian comment, the "LDAP Username Edit Function" attribute expects a function which returns VARCHAR2 and not BOOLEAN as your function returns. It should also not be used to actually perform a LDAP lookup, instead it returns the LDAP Username you want to give APEX to perform the LDAP lookup.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Expdp gives error ORA-39125 ,ORA-31642 DBMS_RULE_EXP_RULES

    DB version=10.2.0.4 64bit
    os =linux OEL 64bit
    When i execute expdp it gives the following errors and exit :
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS while calling DBMS_METADATA.FETCH_XML_CLOB []
    ORA-31642: the following SQL statement fails:
    BEGIN "SYS"."DBMS_RULE_EXP_RULES".SCHEMA_CALLOUT(:1,0,1,'10.02.00.04.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 907
    ORA-08103: object no longer exists
    what is the problem?! i searched in metalink and could not find any solution.

    Pl post the complete expdp command used. Can you reproduce this issue consistently ?
    OERR: ORA-8103 "object no longer exists" / Troubleshooting, Diagnostic and Solution [ID 8103.1]
    HTH
    Srini

  • Using DBMS_LOCK  in function gives error

    Dear Guru's
    I need to use the DBMS_LOCK.sleep. Hence to get more info i searched the forum and I found this code from the forum
    CREATE OR REPLACE
    FUNCTION sleep (secs_in IN INTEGER) RETURN NUMBER
    is
    BEGIN
    DBMS_LOCK.sleep(secs_in);
    RETURN secs_in;
    END;
    and tried it in my envrionment..
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options
    SQL*Plus: Release 10.1.0.4.2
    Warning: Function created with compilation errors.
    SQL> show errors
    Errors for FUNCTION SLEEP:
    LINE/COL ERROR
    4/5 PL/SQL: Statement ignored
    4/5 PLS-00201: identifier 'DBMS_LOCK' must be declared
    I tried using the DBMS_LOCK in a Nameless procedure like this
    begin
    dbms_lock.sleep(5);
    end;
    there was no error message and i got a message that it has been executed successfully
    I tried it similarly in a stored procedure , then also i got the same error message
    Please enlighten me on this issue.
    with warm regards
    ssr

    Sounds like you've got execute privs on dbms_lock granted to your user as part of a role. You need to have a direct grant on dbms_lock in order for what you're trying to do to work. (ie. you need to get someone with the appropriate privs to run the following: grant excute on dbms_lock to your_user;)

  • Quote Form: Repeatively Query gives Error:ORA-06502: PLSQL numeric or value

    Hi,
    I am trying to query the sales order form (in Order Management) with the order number.
    Steps to Reporduce:
    Without closing the sales order form, query the same/different order number repetively again and again (upto 30 times) in sales order form and i am getting the following error. It might be due to the form buffer error i think, but i want to know how to resolve this issue.
    ORA-06502 : PLSQL : numeric or value error
    I have suggested the workaround as closing the form after querying every 15 times, but the customer needs a permanent fix by querying continously without closing the form, they want to query the record. Please suggest how to resolve this issue.
    Thanks

    The errors comes when in variable or fields data is coming more than the maximum length it.
    e.g
    declare
    vcheck varchar2(1) := 'ABC'; ---Errorplz share your code where you feel the problem might occurring usually POST-QUERY trigger.
    Baig,
    http://baigsorcl.blogspot.com

  • Standby Database gives error ORA-03113:ORA-03114

    Hi
    I am using oracle 9iR2 on standby database when i recover it return errors like
    SQL> recover standby database;
    ORA-00279: change 8209765386 generated at 07/18/2008 12:10:41 needed for thread
    1
    ORA-00289: suggestion : J:\ORACLE\ORADATA\APR1\ARCHIVE\APR1T001S86548.ARC
    ORA-00280: change 8209765386 for thread 1 is in sequence #86548
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    auto
    ORA-00279: change 8209782309 generated at 07/18/2008 12:22:05 needed for thread
    1
    ORA-00289: suggestion : J:\ORACLE\ORADATA\APR1\ARCHIVE\APR1T001S86549.ARC
    ORA-00280: change 8209782309 for thread 1 is in sequence #86549
    ORA-00278: log file 'J:\ORACLE\ORADATA\APR1\ARCHIVE\APR1T001S86548.ARC' no
    longer needed for this recovery
    ORA-03113: end-of-file on communication channel
    ORA-03114: not connected to ORACLE
    Alert log display
    Starting datafile 1 recovery in thread 1 sequence 86551
    Datafile 1: 'E:\ORANT\ORADATA\APR1\SYSTEM01.DBF'
    Starting datafile 3 recovery in thread 1 sequence 86551
    Datafile 3: 'E:\ORANT\ORADATA\APR1\CWMLITE01.DBF'
    Starting datafile 4 recovery in thread 1 sequence 86551
    Datafile 4: 'E:\ORANT\ORADATA\APR1\DRSYS01.DBF'
    Starting datafile 5 recovery in thread 1 sequence 86551
    Datafile 5: 'E:\ORANT\ORADATA\APR1\EXAMPLE01.DBF'
    Starting datafile 6 recovery in thread 1 sequence 86551
    Datafile 6: 'E:\ORANT\ORADATA\APR1\INDX01.DBF'
    Starting datafile 7 recovery in thread 1 sequence 86551
    Datafile 7: 'E:\ORANT\ORADATA\APR1\ODM01.DBF'
    Starting datafile 8 recovery in thread 1 sequence 86551
    Datafile 8: 'E:\ORANT\ORADATA\APR1\TOOLS01.DBF'
    Starting datafile 9 recovery in thread 1 sequence 86551
    Datafile 9: 'J:\ORACLE\ORADATA\APR1\USERS01.DBF'
    Starting datafile 10 recovery in thread 1 sequence 86551
    Datafile 10: 'E:\ORANT\ORADATA\APR1\XDB01.DBF'
    Starting datafile 11 recovery in thread 1 sequence 86551
    Datafile 11: 'J:\ORACLE\ORADATA\APR1\APR_DATA5_E.DBF'
    Starting datafile 12 recovery in thread 1 sequence 86549
    Datafile 12: 'J:\ORACLE\ORADATA\APR1\APR_DATA4_C.DBF'
    Starting datafile 13 recovery in thread 1 sequence 86550
    Datafile 13: 'J:\ORACLE\ORADATA\APR1\APR_DATA2_D.DBF'
    Starting datafile 14 recovery in thread 1 sequence 86550
    Datafile 14: 'J:\ORACLE\ORADATA\APR1\APR_DATA2_A.DBF'
    Starting datafile 15 recovery in thread 1 sequence 86548
    Datafile 15: 'J:\ORACLE\ORADATA\APR1\APR_DATA2_B.DBF'
    Starting datafile 16 recovery in thread 1 sequence 86550
    Datafile 16: 'J:\ORACLE\ORADATA\APR1\APR_DATA1_A.DBF'
    Starting datafile 17 recovery in thread 1 sequence 86550
    Datafile 17: 'J:\ORACLE\ORADATA\APR1\APR_DATA1_B.DBF'
    Starting datafile 18 recovery in thread 1 sequence 86550
    Datafile 18: 'J:\ORACLE\ORADATA\APR1\APR_INDX1_A.DBF'
    Starting datafile 19 recovery in thread 1 sequence 86549
    Datafile 19: 'J:\ORACLE\ORADATA\APR1\APR_INDX1_B.DBF'
    Starting datafile 20 recovery in thread 1 sequence 86549
    Datafile 20: 'J:\ORACLE\ORADATA\APR1\APR_INDX1_C.DBF'
    Starting datafile 25 recovery in thread 1 sequence 86550
    Datafile 25: 'J:\ORACLE\ORADATA\APR1\APR_INDX3_A.DBF'
    Starting datafile 26 recovery in thread 1 sequence 86550
    Datafile 26: 'J:\ORACLE\ORADATA\APR1\APR_INDX3_B.DBF'
    Starting datafile 27 recovery in thread 1 sequence 86550
    Datafile 27: 'J:\ORACLE\ORADATA\APR1\APR_INDX3_C.DBF'
    Starting datafile 28 recovery in thread 1 sequence 86550
    Datafile 28: 'J:\ORACLE\ORADATA\APR1\APR_MVIEWS_A.DBF'
    Starting datafile 29 recovery in thread 1 sequence 86550
    Datafile 29: 'J:\ORACLE\ORADATA\APR1\BLOB_A.DBF'
    Starting datafile 30 recovery in thread 1 sequence 86549
    Datafile 30: 'J:\ORACLE\ORADATA\APR1\HR_DATA1_A.DBF'
    Starting datafile 31 recovery in thread 1 sequence 86548
    Datafile 31: 'J:\ORACLE\ORADATA\APR1\HR_DATA2_A.DBF'
    Starting datafile 32 recovery in thread 1 sequence 86550
    Datafile 32: 'J:\ORACLE\ORADATA\APR1\HR_INDX1_A.DBF'
    Starting datafile 33 recovery in thread 1 sequence 86550
    Datafile 33: 'J:\ORACLE\ORADATA\APR1\HR_INDX2_A.DBF'
    Starting datafile 34 recovery in thread 1 sequence 86548
    Datafile 34: 'J:\ORACLE\ORADATA\APR1\INVENTORY_A.DBF'
    Starting datafile 35 recovery in thread 1 sequence 86550
    Datafile 35: 'J:\ORACLE\ORADATA\APR1\INVENTORY_INDX_A.DBF'
    Starting datafile 36 recovery in thread 1 sequence 86550
    Datafile 36: 'E:\ORANT\ORADATA\APR1\SAMPLE_DATA1_A.DBF'
    Starting datafile 37 recovery in thread 1 sequence 86550
    Datafile 37: 'J:\ORACLE\ORADATA\APR1\VMS_DATA1_A.DBF'
    Starting datafile 38 recovery in thread 1 sequence 86550
    Datafile 38: 'J:\ORACLE\ORADATA\APR1\APR_MMS_A.DBF'
    Starting datafile 39 recovery in thread 1 sequence 86550
    Datafile 39: 'J:\ORACLE\ORADATA\APR1\AUDIT_DATA_A.DBF'
    Starting datafile 40 recovery in thread 1 sequence 86549
    Datafile 40: 'J:\ORACLE\ORADATA\APR1\UNDOTBS.DBF'
    Starting datafile 41 recovery in thread 1 sequence 86550
    Datafile 41: 'J:\ORACLE\ORADATA\APR1\APR_DATA1_C.DBF'
    Starting datafile 42 recovery in thread 1 sequence 86549
    Datafile 42: 'J:\ORACLE\ORADATA\APR1\APR_INDX3_E.DBF'
    Starting datafile 43 recovery in thread 1 sequence 86548
    Datafile 43: 'J:\ORACLE\ORADATA\APR1\APR_DATA2_C.DBF'
    Starting datafile 44 recovery in thread 1 sequence 86550
    Datafile 44: 'J:\ORACLE\ORADATA\APR1\APR_INDX1_E.DBF'
    Starting datafile 46 recovery in thread 1 sequence 86550
    Datafile 46: 'E:\ORANT\ORADATA\APR1\SYSTEM02.DBF'
    Starting datafile 47 recovery in thread 1 sequence 86550
    Datafile 47: 'J:\ORACLE\ORADATA\APR1\APR_INDX4_A.DBF'
    Starting datafile 48 recovery in thread 1 sequence 86549
    Datafile 48: 'J:\ORACLE\ORADATA\APR1\APR_DATA4.DBF'
    Starting datafile 49 recovery in thread 1 sequence 86550
    Datafile 49: 'J:\ORACLE\ORADATA\APR1\APR_DATA4_A.DBF'
    Starting datafile 50 recovery in thread 1 sequence 86548
    Datafile 50: 'J:\ORACLE\ORADATA\APR1\APR_DATA4_B.DBF'
    Starting datafile 51 recovery in thread 1 sequence 86550
    Datafile 51: 'J:\ORACLE\ORADATA\APR1\APR_INDX4_B.DBF'
    Starting datafile 52 recovery in thread 1 sequence 86550
    Datafile 52: 'J:\ORACLE\ORADATA\APR1\APR_DATA5_A.DBF'
    Starting datafile 53 recovery in thread 1 sequence 86550
    Datafile 53: 'J:\ORACLE\ORADATA\APR1\APR_DATA5_B.DBF'
    Starting datafile 54 recovery in thread 1 sequence 86550
    Datafile 54: 'J:\ORACLE\ORADATA\APR1\APR_DATA5_C.DBF'
    Starting datafile 55 recovery in thread 1 sequence 86550
    Datafile 55: 'J:\ORACLE\ORADATA\APR1\APR_DATA5_D.DBF'
    Starting datafile 56 recovery in thread 1 sequence 86549
    Datafile 56: 'J:\ORACLE\ORADATA\APR1\APR_INDX4_C.DBF'
    Starting datafile 57 recovery in thread 1 sequence 86550
    Datafile 57: 'J:\ORACLE\ORADATA\APR1\APR_INDX3_F.DBF'
    Starting datafile 58 recovery in thread 1 sequence 86550
    Datafile 58: 'J:\ORACLE\ORADATA\APR1\APR_DATA6_A.DBF'
    Starting datafile 59 recovery in thread 1 sequence 86548
    Datafile 59: 'J:\ORACLE\ORADATA\APR1\APR_DATA6_B.DBF'
    Starting datafile 60 recovery in thread 1 sequence 86549
    Datafile 60: 'J:\ORACLE\ORADATA\APR1\APR_DATA6_C.DBF'
    Starting datafile 61 recovery in thread 1 sequence 86549
    Datafile 61: 'J:\ORACLE\ORADATA\APR1\APR_INDX4_D.DBF'
    Starting datafile 62 recovery in thread 1 sequence 86550
    Datafile 62: 'J:\ORACLE\ORADATA\APR1\APR_INDX5_A.DBF'
    Starting datafile 63 recovery in thread 1 sequence 86550
    Datafile 63: 'J:\ORACLE\ORADATA\APR1\APR_INDX5_B.DBF'
    Starting datafile 64 recovery in thread 1 sequence 86550
    Datafile 64: 'E:\ORANT\ORADATA\APR1\USERS01_A.DBF'
    Starting datafile 65 recovery in thread 1 sequence 86550
    Datafile 65: 'J:\ORACLE\ORADATA\APR1\GMT1_DATA.DBF'
    Starting datafile 66 recovery in thread 1 sequence 86548
    Datafile 66: 'J:\ORACLE\ORADATA\APR1\GMT1_INDX.DBF'
    Starting datafile 67 recovery in thread 1 sequence 86550
    Datafile 67: 'J:\ORACLE\ORADATA\APR1\APR_DATA7.DBF'
    Starting datafile 68 recovery in thread 1 sequence 86550
    Datafile 68: 'J:\ORACLE\ORADATA\APR1\APR_INDX7A.ORA'
    Starting datafile 69 recovery in thread 1 sequence 86550
    Datafile 69: 'J:\ORACLE\ORADATA\APR1\APR_INDX8_A.DBF'
    Starting datafile 70 recovery in thread 1 sequence 86550
    Datafile 70: 'J:\ORACLE\ORADATA\APR1\APR_INDX8_B.DBF'
    Media Recovery Log
    ORA-279 signalled during: ALTER DATABASE RECOVER standby database ...
    Wed Jul 23 11:26:24 2008
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Wed Jul 23 11:26:24 2008
    Media Recovery Log J:\ORACLE\ORADATA\APR1\ARCHIVE\APR1T001S86548.ARC
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Wed Jul 23 11:26:25 2008
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log J:\ORACLE\ORADATA\APR1\ARCHIVE\APR1T001S86549.ARC
    Wed Jul 23 11:26:53 2008
    Some recovered datafiles maybe left media fuzzy
    Media recovery may continue but open resetlogs may fail
    Wed Jul 23 11:26:53 2008
    ARC0: terminating instance due to error 472
    Instance terminated by ARC0, pid = 2100
    Tell me the solution.
    Thanks in advance

    I think your database is not going in begin backup mode...
    this is my standby database server Pratap is there any method to check backup mode .
    Thanks

  • Can Analytical function give me this result?

    Hi Friends
    I have the following query:
    SELECT DISTINCT
          DATE_FIELD
          ,ACCT_ID
          ,CITY
          ,STATE
          ,ZIP
          ,UNIQUE_ID
          ,OPEN_DT
          ,TO_CHAR (ROW_NUMBER () OVER (PARTITION BY ACCT_ID ORDER BY ACCT_ID,OPEN_DT ) ) rn
    FROM TABLE1
    WHERE 1=1
    AND OPEN_DT IS NOT NULL This query gives me the following result:
    DATE_FIELD     | ACCT_ID     CITY | STATE | ZIP | UNIQUE_ID |OPEN_DT|RN
    1/02/2010|111|'CITY1'|'STATE1'|3333|2325|9/01/1987|1
    1/02/2010|111|'CITY2'|'STATE1'|3333|2090|19/01/1996|2
    1/02/2010|111|'CITY2'|'STATE1'|3333|2090|20/06/2002|3
    1/02/2010|111|'CITY2'|'STATE1'|3333|2090|20/06/2002|4
    1/02/2010|111|'CITY1'|'STATE1'|3333|2325|20/06/2002|5
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|9/08/1974|1
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|11/12/1980|2
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|5/12/1989|3
    1/02/2010|222|'CITY4'|'STATE1'|3350|8308|5/12/1989|4
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|5/12/1989|5
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|5/12/1989|6
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|4/08/1994|7
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|4/08/1994|8
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|4/08/1994|9
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|30/06/2000|10
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|4/12/2003|11
    1/02/2010|222|'CITY3'|'STATE1'|3350|9747|20/09/2004|12
    1/02/2010|222|'CITY4'|'STATE1'|3350|1794|22/10/2004|13
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|20/08/2009|14
    1/02/2010|222|'CITY4'|'STATE1'|3350|2278|17/09/2009|15
    1/02/2010|222|'CITY4'|'STATE1'|3350|2278|28/09/2009|16
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|1/10/2009|17
    1/02/2010|222|'CITY3'|'STATE1'|3350|1270|1/10/2009|18
    1/02/2010|222|'CITY4'|'STATE1'|3350|8308|2/10/2009|19
    1/02/2010|222|'CITY4'|'STATE1'|3353|2278|2/10/2009|20
    1/02/2010|333|'CITY5'|'STATE2'|5001|9905|17/06/2002|1
    1/02/2010|333|'CITY6'|'STATE2'|5016|3948|24/06/2002|2
    1/02/2010|333|'CITY5'|'STATE2'|5001|9905|3/09/2009|3
    1/02/2010|333|'CITY7'|'STATE2'|5020|6444|3/09/2009|4All I want is the rownumer having maximum rn value from abouve quey.
    How do I achieve this? Much appreciate a quick response.

    Hi,
    Not sure I understand what you mean by maximum rn value? Is it the same value in every row for each partition?
    If that's the case you could use count:
    SELECT DISTINCT
          DATE_FIELD
          ,ACCT_ID
          ,CITY
          ,STATE
          ,ZIP
          ,UNIQUE_ID
          ,OPEN_DT
          ,COUNT(*) OVER (PARTITION BY ACCT_ID) cnt
    FROM TABLE1
    WHERE 1=1
    AND OPEN_DT IS NOT NULLIf not, then perhaps can you post sample data showing what is it that you expect from the output, please? Something along the lines of what you have posted for the current output you're obtaining.

  • Hi, i am new to oracle, SQL DEVELOPER:- ERROR:- ORA-01918

    Hi,
    I am new to oracle, and i have installed Oracle database 12c enterprise edition, and oracle jdeveloper 12c for adf web application development,
    I created a database and a new connection in it using sql developer, however while trying to create new user with the name db1 by right clicking on other users. by following the instructions in oracle documentation site. i get the error that new user db1 doesnt exist, and gives error:- ORA-01981. i even tried by changing the username as i thought may be it doesnt support alphanumeric name, but still i get the same error.
    So please tell me how to create a new user. is there any way to get out of this ora:-01918, as i googled and it says this is a bug.
    My os is win 7 x64(amd processor ).
    Thank you
    Baldwin

    A new user (called a schema in Oracle) is created using the CREATE USER SQL command. You need to be signed in as the SYS schema/user or as a schema that has been granted the rights to create schemas.
    12c database comes in two basic flavours. Container database (containing pluggable databases). Standard database. If connected to a container database, you cannot create standard user schemas - you need to be connected to a pluggable database.
    Also, your question has no relevance to either the SQL or PL/SQL languages - the subject matter of this forum. Please repost your question to a more appropriate forum dealing with SQL-Developer issues.

  • PL/PDF - Procedure test1 is executed but gives error

    Hello All,
    I have Oracle XE 10g with Oracle Apex and recently I installed PL/PDF in the same. I tried to execute the headerfooter procedure given in the installation guide. But it gives error ORA-20000: ERR-006 Procedure call error: xxfooter. How can I get the header and footer from this procedure headerfooter?
    - create header footer procedure
    CREATE OR REPLACE procedure headerfooter is
    /* 7. Example: Header, Footer, number of pages */
    l_blob blob;
    begin
    /* Initialize, without parameters means:
    - page orientation: portrait
    - unit: mm
    - default page format: A4 */
    plpdf.init;
    /* Defines the page number alias.
    Default: {nb} */
    plpdf.nopAlias;
    /*Sets the page header procedure name. The program name passed
    as a parameter executes when the page header is created. */
    plpdf.SetHeaderProcName(
    p_proc_name => 'xheader', -- Page header procedure name: xheader
    p_height => 10 -- Height of header section
    /* Sets the page footer procedure name. The program name passed
    as a parameter executes when the page footer is created. */
    plpdf.SetFooterProcName(
    p_proc_name => 'xfooter', --Page footer procedure name: xfooter
    p_height => 10 --Height of footer section
    /* Begin a new page, without parameters means:
    - page orientation: default (portrait) */
    plpdf.NewPage;
    /* Sets the font and its properties */
    plpdf.SetPrintFont(
    p_family => 'Arial', -- Font family: Arial
    p_style => null, -- Font style: regular (default)
    p_size => 12 -- Font size: 12 pt
    /* Draws a rectangle cell with text inside. */
    plpdf.PrintCell(
    p_w => 50, -- Rectangle width
    p_h => 10, -- Rectangle heigth
    p_txt => 'Page 1' -- Text in rectangle
    /* Begin a new page, without parameters means:
    - page orientation: default (portrait) */
    plpdf.NewPage;
    /* Draws a rectangle cell with text inside. */
    plpdf.PrintCell(
    p_w => 50, -- Rectangle width
    p_h => 10, -- Rectangle heigth
    p_txt => 'Page 2' -- Text in rectangle
    /* Returns the generated PDF document.
    The document is closed and then returned in the OUT parameter. */
    plpdf.SendDoc(
    p_blob => l_blob -- The generated document
    /* Print it:*/
         owa_util.mime_header('application/pdf',false);
    htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
    owa_util.http_header_close;      
    wpg_docload.download_file(l_blob);
    end;
    -Create footer procedure
    CREATE OR REPLACE procedure xfooter is
    begin
    /* Sets the font and its properties */
    plpdf.SetPrintFont(
    p_family => 'Arial', -- Font family: Arial
    p_style => 'I', -- Font style: Italic
    p_size => 8 -- Font size: 8 pt
    /* Print number of page */
    /* Draws a rectangle cell with text inside. */
    plpdf.PrintCell(
    p_w => 0, -- Rectangle width
    p_h => 10, -- Rectangle heigth
    p_txt => to_char(plpdf.CurrentPageNumber) || '/{nb}', -- Text in rectangle
    p_border => '0', -- Without frame
    p_ln => '0', -- Cursor position after the cell is printed: Beside
    p_align => 'C' -- Text alignment: Center
    end;
    Thanks.

    Thanks for your reply,
    Since the owner of header/footer procedures is different than plpdf, I should have given the grants to plpdf schema but unfortunately I missed. Thanks for the answer it worked. Instead of creating synonyms for the procedures in plpdf schema I am passing procedure name with qualifier, the name of its owner, to plpdf api (owner.procedure_name).

  • Advantages and disadvantages of Analytical function

    Plz list out the advantages and disadvantages of normal queries and queries using analytical function (Performance wise)

    I'm not sure how you wish to compare?
    Analytical functions give you functionality that cannot otherwise be achieved easily in a lot of cases. They can introduce some performance degredation to a query but you have to compare on a query by query basis to determine if analytical functions or otherwise are the best solution for the issue. If it were as simple as saying that analytical functions are always slower than doing it without analytical functions, then Oracle wouldn't bother introducing them into the language.

  • Grouping error in Oracle's analytic function  PERCENTILE_CONT()

    Hi,
    I have a question regarding the usage of Oracle's analytic function PERCENTILE_CONT(). The underlying time data in the table is of hourly granularity and I want to fetch average, peak values for the day along with 80th percentile for that day. For the sake of clarification I am only posting relevant portion of the query.
    Any idea how to rewrite the query and achieve the same objective?
    SELECT   TRUNC (sdd.ts) AS ts,
             max(sdd.maxvalue) AS max_value, avg(sdd.avgvalue) AS avg_value,
             PERCENTILE_CONT(0.80) WITHIN GROUP (ORDER BY  sdd.avgvalue ASC) OVER (PARTITION BY pm.sysid,trunc(sdd.ts)) as Percentile_Cont_AVG
    FROM     XYZ
    WHERE
              XYZ
    GROUP BY  TRUNC (sdd.ts)  
    ORDER BY  TRUNC (sdd.ts)
    Oracle Error:
    ERROR at line 5:
    ORA-00979: not a GROUP BY expression

    You probably mixed up the aggregate and analytical versin of PERCENTILE_CONT.
    The below should work, but i dont know if it produces the desireed results.
    SELECT   TRUNC (sdd.ts) AS ts,
             max(sdd.maxvalue) AS max_value, avg(sdd.avgvalue) AS avg_value,
             PERCENTILE_CONT(0.80) WITHIN GROUP (ORDER BY  sdd.avgvalue ASC)  as Percentile_Cont_AVG
    FROM     XYZ
    sorry, what is this where clause for??
    WHERE
              XYZ
    GROUP BY  TRUNC (sdd.ts)  
    ORDER BY  TRUNC (sdd.ts) Edited by: chris227 on 26.03.2013 05:45

Maybe you are looking for

  • Xfi Extreme Gamer: Vista 64: Microphone is no

    As title suggests, I am using the XiExtreme Gamer in?Vista 64. When I plug a microphone into the 3-way jack, even if I select microphone in the audio console, all I hear is a pulsing noise wjen I test the mic in BF242. Is there something else I need

  • SMQ2 - SYSFAIL - Exception condition "LOGSYS_FOR_GUID_CHANGED" rai - Active

    Dear Experts, Greetings!!. In CRM SMQ2, ( inbound Queue ), I have a queue "R3AD_ZDNL_COND_A956" displays as a "sysfail" and have unlocked no change in statuses. I been still double clicked on the queue and displays as "Exception condition "LOGSYS_FOR

  • Are there major differences in Aperture vs Aperture 3?

    I haven't edited my photos in months and the last programs (or workflow etc) I used was to import them to my iphoto then take them into Aperture and use Pixelmator for watermarks on the photos. Aperture at that time did everything I needed to do, So

  • First Midi Note Delay

    Hey All, I'm having a problem where the first midi note i play is delayed all notes after that are fine, does anyone have any idea how to fix this, i am running Logic Pro X on Mavericks, Thanks

  • Regexp and ampersand

    Hi all, I am using regexp to substring a clob of data. The data contains an ampersand (&) so i will need to add this to my regexp. The trouble is it doesnt take it as a literal character (even when using the escape [\] char before it), instead it thi