Sequence generation in Oracle RAC env. (Cached, non-ordered)

Env: Oracle Env. 11G, Transaction Java Application
How does CACHED, non-ordered sequence behave (for PK generation), here is the scenario,
Cache size =10
Node 1 Active - Records created 1,2,3 (3 records total in table)
Node Changes - 2 is Active - Records created 11,12,13, 14 (7 records total in table)
Node Changes - 1 is Active - Records created 21, 22 (or are sequences going to be 4, 5) (9 records total in table)
Node Changes - 2 is Active - No new record added (9 records total in table)
Node Changes - 1 is Active - 2 more Records created (9 recor11s total in table) - Is it going to be 23, 24 OR or is it going to be 6,7 OR or is it going to be 31, 32 (9 records total in table)
Please help with accurate generated seq numbers (PKs) for 9 records.
Also, What happens to PK numbers at:
* shutdown
* hotbackup
* mirroring whole schema or database to another separate db using storage mirroring
* mirroring whole schema or database to another separate db using datapump
How about using cached, ordered sequences to start with and change to no-order if needed for performance reasons
-D

A necessary problem solving skill in the Oracle environment is the ability to experiment. A couple of minutes constructing a simple test is better than hours of speculation:
jw1> create sequence s1;
Sequence created.
jw1> select s1.nextval from dual;
  NEXTVAL
        1
jw1> /
  NEXTVAL
        2
jw1> conn sys/oracle@jw2 as sysdba
Connected.
jw2> select s1.nextval from dual;
  NEXTVAL
        21
jw2> select s1.nextval from dual;
  NEXTVAL
        22
jw2> conn sys/oracle@jw1 as sysdba
Connected.
jw1> select s1.nextval from dual;
  NEXTVAL
        3
jw1> select s1.nextval from dual;
  NEXTVAL
        4
jw1> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
[oracle@berlin1 ~]$ srvctl start instance -db jw -instance jw1 -startoption force
[oracle@berlin1 ~]$ sqlplus sys/oracle@jw1 as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Sat Aug 16 10:40:40 2014
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Advanced Analytics and Real Application Testing options
jw1> select s1.nextval from dual;

Similar Messages

  • Sequence Generation on Oracle Client

    Hi...
    We have to create sequences on the oc4j client with the format <mobileuser name><date stamp><sequence number>.How do we get the mobileuser name from the mobile client authentication.Can u please tell us the API to login the mobile client and how it can be passed on to include in the sequence.
    Thanks in Advance....

    You need to place that code where ever you are creating your user session object. I don't know the architecture you are using so I really can't tell you exactly where to place it.
    http://download-uk.oracle.com/docs/cd/B19188_01/doc/B15920/nvappdev.htm
    Here is what the documentation has on the subject:
    <blockquote>
    7.2.4.3.2 Web-to-Go User Context
    Web-to-Go creates a user context (or user profile) for every user who logs in to Web-to-Go. Web applications always run within the user's specific context. Servlets, which are always part of an application, can use the user context (in which it is running) to access the services provided by Web-to-Go. The user context can then be used to obtain the following information.
    Name of the user
    Mode the user is running in (online or offline)
    Application that a user is accessing
    The database connection
    Roles that the user has for this application
    Name or value pairs stored in the registry for the user
    Servlets can access the user profile through the standard named java.security.Principal obtained through the getUserPrincipal method of the javax.servlet.http.HttpServletRequest class.
    This object can also be obtained from the HttpSession object. For example,
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException{
    // Retrieve the database connection from the User Profile,
    // which can be accessed from the HttpRequest
    HttpSession session = request.getSession(true);
    OraUserProfile profile = (OraUserProfile)session.getAttribute("x-mobileserver-user");     
    7.2.4.3.3 Database Connectivity in Java Code
    Servlets can obtain a connection to the Oracle database, using the following statement.
    HttpSession sess = request.getSession();
    WTGUser user = (WTGUser)sess.getAttribute("x-mobileserver-user");
    Connection conn = user.getConnection() ;
    </blockquote>

  • Restoring RMAN Backup from ASM RAC env to Non ASM standalone environment

    Hi,
    Can anyone please tell me how to restore database using RMAN in a Non ASM environment as my backup file with ASM RAC environment.
    i was also looking for some documentation which provides clear explanation about RMAN backup and Restore in ASM and Non ASM environment.
    Thanks

    You can set the parameter db_file_name_convert in init.ora in you new database with [ID 47325.1]
    or
    you can set parameter "set newname" in your script rman. [ID 549972.1]
    if you have one or two destinations of dbfiles in ASM I seggest to you set parameter db_file_name_convert in init.
    example:
    db_file_name_convert=('+DGDATA','/u01/oradata/');
    remenber you need set log_file_name_convert to.
    log_file_name_convert=('+DGREDO','/u01/redo/');
    if you use "set newname" commands you need set this lines in your script rman.
    set newname for datafile 1 to '/u01/oradata/system01.dbf';
    set newname for datafile 2 to '/u01/oradata/undotbs01.dbf';
    set newname for datafile 3 to '/u01/oradata/sysaux01.dbf';
    set newname for datafile 4 to '/u01/oradata/users01.dbf';
    and every datafiles you need set!
    Edited by: user1107977 on 21/07/2011 13:47

  • Changes between a RAC(Objects) and NON RAC

    Hi all,
    I want to findout what all the different things to be considered when an application is made to run on RAC env.
    For eg: I found there is a difference between the way the Sequences are used in a RAC env from Non RAC.
    Are there any guidelines for the Objects used in RAC?
    Also can you point me to any doc related to tuning the interconnect as we are identifying wait events related to cluster "Cluster was consuming significant database time"
    Thanks.

    Hi hyddba,
    Absolutely, at database level for application has no changes at objects.
    At application code has changes to benefit aplications from failover TAF and FAN events.
    http://www.oracle.com/pls/db102/to_toc?pathname=rac.102%2Fb28759%2Ftoc.htm&remark=portal+%28Getting+Started%29
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • Oracle Rac on Solaris Containers

    We are planning to implement Oracle 11G RAC on Solaris 10 using non-global zone. RAC is now officially certified on Solaris containers.
    But we are still investigating whether zone Cluster (Using Solaris Cluster) is the prerequisite to have Oracle RAC on Solaris non-global zone.
    This oracle document *(Supported Virtualization and Partitioning Technologies for Oracle Database and RAC Product Releases [ID 1173831.1])* stated that:
    _"*Oracle Solaris Containers are supported with Oracle RAC 10gR2 and 11gR1 (with Oracle Solaris Cluster on SPARC64). Solaris version 10 Update 7 or later (patches 141444-09, 143055-01, 142900-06, 143137-04 "md patch") with Oracle Solaris Cluster 3.3 and 3.2u2 patched to 126106-39 or later."*_
    Does it mean that Oracle RAC is supported on Solaris Container only with Solaris Cluster?
    In other word does Oracle RAC is supported on Solaris Non-Global zones without using Solaris Cluster?

    It was my understanding too. Do you have any source document where it is specifically noted that solaris cluster(Zone Cluster) is needed for RAC?
    Please check this document www.oracle.com/technetwork/articles/systems-hardware-architecture/deploying-rac-in-containers-168438.pdf, nowhere it is said that Solaris Cluster is needed.

  • Is there a way to have Virtual RAC env???

    hello,
    I was wondering if there is any way to have your own VIRTUAL RAC. i have heard about vmware i believe but dont know how exactly that works or as a matter of fact what it is??. It there a way or is it possible to have a virtual RAC env on your laptop or desktop?? If so then are there any guides on how to do this?? from step-step till the end? As i dont want to spend about 2 grand and build my own RAC system at my house, just to know how RAC works as i have never worked on RAC. Thanks

    Hi,
    You can build Oracle RAC env on your laptop, if it does have good hardware. Using VMWare software(www.vmware.com), you can create virtual nodes on your laptop and install Enterprise Linux operating system.
    For how to build it, follow the steps given this link:
    http://www.scribd.com/doc/320791/Install-Oracle-RAC-10g-on-Oracle-Enterprise-Linux-Using-VMware
    All the best.

  • Oracle RAC on 2 Microsoft hyper-v VMs

    Is it possible to setup a test Oracle RAC env on 2 Microsoft Hyper-v VMs like you can using VMware?
    I have setup a VMWare test Oracle RAC env following http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php and was hoping this could also be done with Microsoft Hyper-V.
    Thanks,
    Steve

    I would speculate that this certification matrix mainly applies to a situation of installing Oracle RAC on Hyper-V VMs running on separate physical hosts using some sort of "true" shared disk. At this time, I am mainly trying to investigate the possibility of running a "test" low-cost Oracle RAC on a single Hyper-V physical host running 2 Linux VMs. If possible the shared disk wouild just be some sort of pseudo disk setup in Hyper-V shared between the VMs running on the physical hosts. I know this is possible with VMWare. I believe it is also possible with OracleVM (but have not tried OracleVM myself). The place I am currently working is using Hyper-V to run their virtual hosts and I was hoping that the "cheap" Oracle RAC Test environment using VMs could also be implemented with Hyper-V.
    Thanks,
    Steve

  • 'su - oracle -c env ' on Linux

    The problem I'm having is this: The oracle user can start ORACLE
    using the $ORACLE_HOME/bin/dbstart command. But root running
    /etc/rc.d/init.d/dbora can not. This is in spite of having the
    same env vars set for both accounts. I've tracked it down to
    this line:
    su - $ORA_USER -c $ORA_HOME/bin/dbstart
    which translates to: su - oracle -c $ORACLE_HOME/bin/dbstart
    Running this from the shell in root, or from the dbora script, I
    get the much noted error: "'libclntsh.so.1.0: Cannot open shared
    object file: No such file or directory'". However I know that
    the LD_LIBRARY_PATH has been set correctly! To investigate it
    further, I tried running this command:
    su - oracle -c env
    And NONE of the env vars set in oracle's .profile appeared!!
    Whereas if I run this command on Solaris, I get the proper vars!
    Is this a Linux setting?? How do I get it to read the .profile
    script?
    Help!
    null

    Fixed my own problem by UPGRADING su! I installed the
    GNU sh-utils 1.16 which includes su and the functionality
    returned -- ie, root can now start Oracle!
    Apparently RedHat 5.0 shipped this crummy version of su! Anyone
    else noticed this?
    Andrew Lienhard (guest) wrote:
    : The problem I'm having is this: The oracle user can start
    ORACLE
    : using the $ORACLE_HOME/bin/dbstart command. But root running
    : /etc/rc.d/init.d/dbora can not. This is in spite of having the
    : same env vars set for both accounts. I've tracked it down to
    : this line:
    : su - $ORA_USER -c $ORA_HOME/bin/dbstart
    : which translates to: su - oracle -c $ORACLE_HOME/bin/dbstart
    : Running this from the shell in root, or from the dbora script,
    I
    : get the much noted error: "'libclntsh.so.1.0: Cannot open
    shared
    : object file: No such file or directory'". However I know that
    : the LD_LIBRARY_PATH has been set correctly! To investigate it
    : further, I tried running this command:
    : su - oracle -c env
    : And NONE of the env vars set in oracle's .profile appeared!!
    : Whereas if I run this command on Solaris, I get the proper
    vars!
    : Is this a Linux setting?? How do I get it to read the .profile
    : script?
    : Help!
    null

  • How to establish user equvalance between 2 rac nodes on non default ports??

    Hi Friends,
    Please shed some light on how to establish user equvalance between 2 rac nodes on non default ports such as ssh on 22...
    i want to establish user equvalance on other ports..
    Thanks
    RB

    R12DBA wrote:
    Hi Friends,
    Please shed some light on how to establish user equvalance between 2 rac nodes on non default ports such as ssh on 22...
    i want to establish user equvalance on other ports..
    Thanks
    RBHi RB ,
    22 is default port for ssh. For configuring
    http://yasarmoran.wordpress.com/2010/06/12/configuring-ssh-on-oracle-rac-nodes/
    For non default port , first of all you need to configure ssh on new port . For that refer :
    http://www.itworld.com/nls_unixssh0500506

  • Row cache wait in Oracle RAC

    Hi,
    Our application is running on Oracle RAC. During certain time of the day, the applcation responds very slowly. At these times, it is observed that the row cache waits are very high. We have even tried altering the sys.AUDSES$ sequence and changing it cache size to 10000 from default 20, but this did not help.
    Can anyone suggest a solution for this problem? And why this problem occurs?

    Hi,
    it looks like your problem is related to the fact that you do not cache sequences (this is a well know RAC tuning topic).
    Oracle introduced sequences (wrong name, definitely) to generate unique numbers, not to actually support a time sequence of events, or to preserve an order or to have ascending sequences of numbers with no gaps.
    Ordering a sequence of events is a serialization process that should not be implemented by a sequence.
    Now, if you do not cash sequences, in RAC the lock (enqueue) on the sequence (that is required when you ask for the next set of values) is a global resource on which inter instance contention occurs.
    Furthermore, in case the application has a high volume of inserts, having nocache sequences leads to inter instance index block contention.
    Oracle says that the default cache value of 20 for sequences is inappropriate in most case of RAC implementations and it is frequent to have caches of 1000 values or more. You need to test what is your ideal value.
    Now it is up to you to decide between:
    - keep things as they are and have a non scalable RAC installation
    - find a way to cache sequences without harming the application assumptions.
    Hope it helps,
    Regards,
    Corrado

  • Oracle RAC 10g on Solaris 10 in a non-global zone

    I need to run Oracle RAC 10g on Solaris 10 in a non-global zone as I must cap the CPUs used for Oracle licensing limitations. My question is a simple one, but one for which I'm getting conflicting information depending upon whom I ask.
    If I want to run RAC in a non-global zone on two nodes, does this require the use of Solaris Cluster?
    I know there are good reasons to use Solaris Cluster, but the company for which I work cannot afford the additional expense of Solaris Cluster at this time. Is it possible to run Oracle RAC 10g in a capped container without Solaris Cluster or is Solaris Cluster absolutely required?
    Thanks in advance for any insight you can provide.

    AFAIK, Oracle 10g RAC is not supported in solaris containers.
    It is however supported in Solaris zone clusters...in order to use it, you would have to use Sun Cluster 3.2 (iinm).

  • Enable Cache Fusion in Oracle RAC

    Hi gurus,
    I cannot find on google how to enable and test Cache Fusion feautre in Oracle RAC. Could you help me please?
    Best.

    I don't know. I cannot find parameter which enable or disable CFAs Aman has already stated the feature is already present
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/consist.htm#CNCPT1317
    I even cannot find information how to test CF to ensure that it really works?!http://download.oracle.com/docs/cd/B28359_01/rac.111/b28254/monitor.htm#RACAD981
    @Aman
    Cache Fusion is the technology which makes the 10g RAC, 10g RAC. And 11g Database as well :)
    Edited by: Amy De Caj on Jul 19, 2009 4:26 AM
    Edited by: Amy De Caj on Jul 19, 2009 4:28 AM

  • Oracle E-Business Suite non-rac to rac

    Hi,
    I've r12.0.6/10.2.0.3/RHEL5.3/file system NON-RAC and want to go r12.0.6/11gr2V2/RHEL5.4/ASM and RAC enviornment.
    Planning to move as follows:
    -Upgrade RHEL 5.4
    -Upgrade to 11gr2V2
    -COnvert to ASM
    -Configure to RAC.
    Please advice if any idea which has less risk.
    Please let me know metalink note convert single instance to RAC doc /File System to ASM or any good note.
    Any advice is welcome.
    Thanks

    Please see this thread for similar discussion.
    Cloning non-RAC to RAC ?
    Cloning non-RAC to RAC ?
    Thanks,
    Hussein

  • Cloning Oracle APPS Rac Database to Non Rac Databse

    Hi all,
    I have question.
    Presently we are following RMAN duplicate database cloning from RAC asm to (non RAC)non asm database of size 1TB.
    If suppose if our databse is 3TB or More. then is there method that we can minimize the cloning time. If so please let me know.
    Thanks
    Maverick

    Hi;
    Presently we are following RMAN duplicate database cloning from RAC asm to (non RAC)non asm database of size 1TB.
    If suppose if our databse is 3TB or More. then is there method that we can minimize the cloning time. If so please let me know.We have 4 Tb RAC+ASM and we also follow same method. I belive there is no faster method, at least we can not find :)
    Regard
    Helios

  • How to restore (not duplicate) DB from RAC ASM to non ASM

    Hello everybody,
    i am trying to recover db from RAC+ASM to non ASM no RAC node. I am running Oracle 10g (10.2.0.4) on Win2003 Server. I have functional backup from my prod system.
    Here are my steps:
    *1. On prod server i make backup running this script in RMAN*
    configure channel device type 'SBT_TAPE' parms'SBT_LIBRARY=oracle.disksbt,ENV=(BACKUP_DIR=e:\backup)';
    RUN {
    backup device type SBT_TAPE database tag zal20081129;
    SQL 'alter system archive log current';
    backup device type SBT_TAPE archivelog ALL tag zal20081129;
    *2. I prepared clon instance on another server (The same Oracle version) and start it to nomount mode.*
    *3. I copied the backup from prod server to clon server to exactly the same path. (e:\backup)*
    *4. I connect to RMAN on my new node and I use the DBID parameter and I restore controlfile.*
    rman
    connect target /
    set DBID 3079749916
    startup nomount
    run {
    allocate CHANNEL CTAPE DEVICE TYPE 'SBT_TAPE' PARMS'SBT_LIBRARY=oracle.disksbt,ENV=(BACKUP_DIR=f:\backup)';
    allocate channel CDISK DEVICE TYPE DISK;
    restore controlfile from 'f:\backup\78k91lrn_1_1';
    alter database mount;
    *5.Then I check the backup, crosscheck etc.*
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    169 Full 42.78G SBT_TAPE 01:12:54 04-MAR-09
    BP Key: 169 Status: AVAILABLE Compressed: NO Tag: DATAFILES
    Handle: 75k91hcj_1_1 Media:
    List of Datafiles in backup set 169
    File LV Type Ckp SCN Ckp Time Name
    1 Full 928460863 04-MAR-09 +DATA/agost/datafile/system.272.668509367
    2 Full 928460863 04-MAR-09 +DATA/agost/datafile/undotbs1.273.668509387
    3 Full 928460863 04-MAR-09 +DATA/agost/datafile/sysaux.263.668509393
    4 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_archive_data.298.668509401
    5 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_archive_index.258.668509401
    6 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_blob.259.668509401
    7 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_data.274.668509405
    8 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_index.275.668509533
    9 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_report_data.260.668509661
    10 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_report_index.261.668509661
    12 Full 928460863 04-MAR-09 +DATA/agost/datafile/undotbs2.264.668509661
    13 Full 928460863 04-MAR-09 +DATA/agost/datafile/users.265.668509667
    14 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_index.270.668510837
    15 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_index.299.668510843
    16 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_data.300.668510859
    17 Full 928460863 04-MAR-09 +DATA/agost/datafile/ifsapp_data.301.668510865
    BS Key Size Device Type Elapsed Time Completion Time
    171 1.98G SBT_TAPE 00:02:54 04-MAR-09
    BP Key: 171 Status: AVAILABLE Compressed: NO Tag: ARCHIVE_LOGS
    Handle: 77k91lm2_1_1 Media:
    List of Archived Logs in backup set 171
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 790 927018133 03-MAR-09 927379509 03-MAR-09
    1 791 927379509 03-MAR-09 927635333 03-MAR-09
    1 792 927635333 03-MAR-09 927804715 03-MAR-09
    1 793 927804715 03-MAR-09 928438198 04-MAR-09
    1 794 928438198 04-MAR-09 928496353 04-MAR-09
    1 795 928496353 04-MAR-09 928496667 04-MAR-09
    2 941 927018173 03-MAR-09 927414357 03-MAR-09
    2 942 927414357 03-MAR-09 927725821 03-MAR-09
    2 943 927725821 03-MAR-09 927747874 03-MAR-09
    2 944 927747874 03-MAR-09 927804436 03-MAR-09
    2 945 927804436 03-MAR-09 928375778 03-MAR-09
    2 946 928375778 03-MAR-09 928460503 04-MAR-09
    2 947 928460503 04-MAR-09 928496341 04-MAR-09
    2 948 928496341 04-MAR-09 928496660 04-MAR-09
    *6. Then I run this script to restore and recover db.*
    run {
    SET UNTIL SEQUENCE 795 THREAD 1;
    SET UNTIL SEQUENCE 948 THREAD 2;
    restore database;
    switch datafile all;
    recover database;
    *7. Everything goes well see under.*
    RMAN&gt; 2&gt; 3&gt; 4&gt; 5&gt; 6&gt; 7&gt;
    executing command: SET until clause
    executing command: SET until clause
    Starting restore at 04-MAR-09
    using channel ORA_DISK_1
    using channel ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: starting datafile backupset restore
    channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to +DATA/agost/datafile/system.272.668509367
    restoring datafile 00002 to +DATA/agost/datafile/undotbs1.273.668509387
    restoring datafile 00003 to +DATA/agost/datafile/sysaux.263.668509393
    restoring datafile 00004 to +DATA/agost/datafile/ifsapp_archive_data.298.668509401
    restoring datafile 00005 to +DATA/agost/datafile/ifsapp_archive_index.258.668509401
    restoring datafile 00006 to +DATA/agost/datafile/ifsapp_blob.259.668509401
    restoring datafile 00007 to +DATA/agost/datafile/ifsapp_data.274.668509405
    restoring datafile 00008 to +DATA/agost/datafile/ifsapp_index.275.668509533
    restoring datafile 00009 to +DATA/agost/datafile/ifsapp_report_data.260.668509661
    restoring datafile 00010 to +DATA/agost/datafile/ifsapp_report_index.261.668509661
    restoring datafile 00012 to +DATA/agost/datafile/undotbs2.264.668509661
    restoring datafile 00013 to +DATA/agost/datafile/users.265.668509667
    restoring datafile 00014 to +DATA/agost/datafile/ifsapp_index.270.668510837
    restoring datafile 00015 to +DATA/agost/datafile/ifsapp_index.299.668510843
    restoring datafile 00016 to +DATA/agost/datafile/ifsapp_data.300.668510859
    restoring datafile 00017 to +DATA/agost/datafile/ifsapp_data.301.668510865
    channel ORA_SBT_TAPE_1: reading from backup piece 75k91hcj_1_1
    channel ORA_SBT_TAPE_1: restored backup piece 1
    piece handle=75k91hcj_1_1 tag=DATAFILES
    channel ORA_SBT_TAPE_1: restore complete, elapsed time: 01:25:12
    Finished restore at 04-MAR-09
    Starting recover at 04-MAR-09
    using channel ORA_DISK_1
    using channel ORA_SBT_TAPE_1
    starting media recovery
    channel ORA_SBT_TAPE_1: starting archive log restore to default destination
    channel ORA_SBT_TAPE_1: restoring archive log
    archive log thread=1 sequence=794
    channel ORA_SBT_TAPE_1: restoring archive log
    archive log thread=2 sequence=947
    channel ORA_SBT_TAPE_1: reading from backup piece 77k91lm2_1_1
    channel ORA_SBT_TAPE_1: restored backup piece 1
    piece handle=77k91lm2_1_1 tag=ARCHIVE_LOGS
    channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:02:26
    archive log filename=E:\ORADATA\AGOST\FLASHBACK\AGOST\ARCHIVELOG\2009_03_04\O1_MF_1_794_4TX5D7RD_.ARC thread=1 sequence=794
    archive log filename=E:\ORADATA\AGOST\FLASHBACK\AGOST\ARCHIVELOG\2009_03_04\O1_MF_2_947_4TX5D7OY_.ARC thread=2 sequence=947
    channel default: deleting archive log(s)
    archive log filename=E:\ORADATA\AGOST\FLASHBACK\AGOST\ARCHIVELOG\2009_03_04\O1_MF_2_947_4TX5D7OY_.ARC recid=1563 stamp=680629925
    channel default: deleting archive log(s)
    archive log filename=E:\ORADATA\AGOST\FLASHBACK\AGOST\ARCHIVELOG\2009_03_04\O1_MF_1_794_4TX5D7RD_.ARC recid=1562 stamp=680629925
    media recovery complete, elapsed time: 00:00:13
    Finished recover at 04-MAR-09
    *8. Then when i want to open database*
    using command 'Alter system open resetlogs;' I got this error:
    RMAN&gt;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 03/05/2009 07:26:03
    RMAN-06003: ORACLE error from target database:
    ORA-00600: internal error code, arguments: [kgeade_is_0], [|http://forums.oracle.com/forums/], [], [|http://forums.oracle.com/forums/], [], [|http://forums.oracle.com/forums/], [], [|http://forums.oracle.com/forums/]
    In the alert log I have got this error: (for every log group)
    ORA-00313: open failed for members of log group 4 of thread 2
    ORA-00312: online log 4 thread 2: '+FLASHBACK/agost/onlinelog/group_4.260.668510637'
    ORA-17503: ksfdopn:2 Failed to open file +FLASHBACK/agost/onlinelog/group_4.260.668510637
    ORA-15001: diskgroup "FLASHBACK" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    ORA-29701: unable to connect to Cluster Manager
    ORA-00312: online log 4 thread 2: '+DATA/agost/onlinelog/group_4.268.668510633'
    ORA-17503: ksfdopn:2 Failed to open file +DATA/agost/onlinelog/group_4.268.668510633
    ORA-15001: diskgroup "DATA" does not exist or is not mounted
    ORA-15077: could not locate ASM instance serving a required diskgroup
    ORA-29701: unable to connect to Cluster Manager
    So obviouslly database wants to open online logs in the path like ASM. Which is wrong. What should I do to tell database to open it according to init.ora parameters
    *.db_create_file_dest='e:\oradata\agost'
    *.db_create_online_log_dest_1='e:\oradata\agost'
    Any suggestions???
    Thanks

    Hi,
    thanks for you quick answer. But I do restore to the local file system, even if the log says:
    restoring datafile 00001 to +DATA/agost/datafile/system.272.668509367
    restoring datafile 00002 to +DATA/agost/datafile/undotbs1.273.668509387 .....
    all the datafiles are correctly restored. I think oracle uses the parameter db_create_file_dest and creates the files there.
    I tried also the script with SET NEW NAME:
    run {
    Set newname for datafile 1 to 'e:\oradata\AGOST\system.272.668509367';
    Set newname for datafile 2 to 'e:\oradata\AGOST\undotbs1.273.668509387';
    Set newname for datafile 3 to 'e:\oradata\AGOST\sysaux.263.668509393';
    Set newname for datafile 4 to 'e:\oradata\AGOST\ifsapp_archive_data.298.668509401';
    Set newname for datafile 5 to 'e:\oradata\AGOST\ifsapp_archive_index.258.668509401';
    Set newname for datafile 6 to 'e:\oradata\AGOST\ifsapp_blob.259.668509401';
    Set newname for datafile 7 to 'e:\oradata\AGOST\ifsapp_data.274.668509405';
    Set newname for datafile 8 to 'e:\oradata\AGOST\ifsapp_index.275.668509533';
    Set newname for datafile 9 to 'e:\oradata\AGOST\ifsapp_report_data.260.668509661';
    Set newname for datafile 10 to 'e:\oradata\AGOST\ifsapp_report_index.261.668509661';
    Set newname for datafile 12 to 'e:\oradata\AGOST\undotbs2.264.668509661';
    Set newname for datafile 13 to 'e:\oradata\AGOST\users.265.668509667';
    Set newname for datafile 14 to 'e:\oradata\AGOST\ifsapp_index.270.668510837';
    Set newname for datafile 15 to 'e:\oradata\AGOST\ifsapp_index.299.668510843';
    Set newname for datafile 16 to 'e:\oradata\AGOST\ifsapp_data.300.668510859';
    Set newname for datafile 17 to 'e:\oradata\AGOST\ifsapp_data.301.668510865';
    Set newname for tempfile 1 to 'e:\oradata\AGOST\temp.276.668509397';
    SQL "ALTER DATABASE RENAME FILE ''+DATA/agost/onlinelog/group_1.256.668509345'' TO ''e:\oradata\AGOST\REDO01.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+FLASHBACK/agost/onlinelog/group_1.257.668509351'' TO ''e:\oradata\AGOST\REDO02.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+DATA/agost/onlinelog/group_2.257.668509357'' TO ''e:\oradata\AGOST\REDO03.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+FLASHBACK/agost/onlinelog/group_2.258.668509361'' TO ''e:\oradata\AGOST\REDO04.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+DATA/agost/onlinelog/group_3.266.668510623'' TO ''e:\oradata\AGOST\REDO05.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+FLASHBACK/agost/onlinelog/group_3.259.668510627'' TO ''e:\oradata\AGOST\REDO06.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+DATA/agost/onlinelog/group_4.268.668510633'' TO ''e:\oradata\AGOST\REDO07.LOG'' ";
    SQL "ALTER DATABASE RENAME FILE ''+FLASHBACK/agost/onlinelog/group_4.260.668510637'' TO ''e:\oradata\AGOST\REDO08.LOG'' ";
    SET UNTIL SEQUENCE 795 THREAD 1;
    SET UNTIL SEQUENCE 948 THREAD 2;
    restore database;
    switch datafile all;
    recover database;
    But it gives me this error in RMAN:
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    sql statement: ALTER DATABASE RENAME FILE ''+DATA/agost/onlinelog/group_1.256.668509345'' TO ''e:\oradata\AGOST\REDO01.LOG''
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 03/06/2009 10:48:55
    RMAN-20000: abnormal termination of job step
    RMAN-11003: failure during parse/execution of SQL statement: ALTER DATABASE RENAME FILE '+DATA/agost/onlinelog/group_1.256.668509345' TO 'e:\oradata\AGOST\REDO01.LOG'
    RMAN-11001: Oracle Error:
    ORA-00600: internal error code, arguments: [kgeade_is_0], [], [], [], [], [], [], []
    and in alert log i have got this:
    Errors in file c:\oracle\product\10.2.0\admin\agost\udump\agost_ora_3200.trc:
    ORA-00600: internal error code, arguments: [kgeade_is_0], [], [], [], [], [], [], []
    Fri Mar 06 10:48:55 2009
    ORA-600 signalled during: ALTER DATABASE RENAME FILE '+DATA/agost/onlinelog/group_1.256.668509345' TO 'e:\oradata\AGOST\REDO01.LOG' ...
    dont know what to do.
    There must be way how to recover it. I think my first try (without SET NEWNAME) is closer to the end, there is only need to "repair" the online logs.
    Any other suggestions?
    thanks

Maybe you are looking for

  • Shiiping/Export mapping problem in SAP B1

    Hi all: My present client(SE) has a case of transaction where in for the case of Export they based on Sales Order they directly use to create A/R Invoice (Commercial) after which they send this Commercial Invoice to Exporter(agent) who further book t

  • LCD Screen (not working)

    Hi, I have blackberry curve 9300. i purchased it 4 months ago (sep 2011) after 3 months i am having problem in screen (it goes all white).  as it is in warranty so blackberry service center replaced it, now after one month again i am having same prob

  • Sale order document numbering hidden

    Detail explanation: for example : thro sales login username & password , i post transaction then it take over sale quote approval then add draft as save to get the document number but users find the problem Cannot Add Or Update This Document; Rows Ar

  • ABAP Routines

    Hi All, My project is using ABAP Routines for the conversion and transfer of datas, can you please let me know in detail about these ABAP routines how these are written and if any available ones readily. Thank you sirs.. Regards

  • Show PDF documents from BO in WebDynpro ABAP

    Hi experts. I have some fix PDF docs, stored using Bussiness Objects. I can not use Mime objects, and I need show this .pdfs in my webdynpro. Currently I have defined a content as XString to store mi pdf. I have a Function which recovery mi pdf and s