Can we rollback catcpu.sql using flashback database?

Hello all,
Can we use FLASHBACK DATABASE to roll back the changes made by the catcpu.sql/catpatch.sql used for upgradation/patching? [ I am aware that oracle provides rollback sql's but just curious. ]
TIA,
JJ

Keep in mind, catpatch is only the second part of the patching process, before that you already patched the software. If you want to have a complete rollback, follow the instructions in the readme file.
Werner

Similar Messages

  • Can I use flashback database to recover it?-----QNo.115

    I have dropped a tablespace through RESETLOGS.
    Can I use flashback database to recover it?-----

    5.3.1 Limitations of Flashback Database
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/rpfbdb003.htm

  • Can I use flashback database to flashback a pluggable database?

    Hi All,
    I created a container database and then created a pluggable database.
    In the pluggable 12.1 datbase, I loaded the user data.
    I performed the below
    sqlplus / as sysdba;
    create restore point CLEAN_DB guarantee flashback database;
    And I performed the transactions on the pdb.
    Now my intention is to restore to the restore point CLEAN_DB as created from the above step.
    If I perform the below, will it restore my pdb to the initial state?
    flashback database to restore point CLEAN_DB;
    Regards,
    Kamal.

    Hi,
    You cannot use FLASHBACK DATABASE for pluggable database.
    Flashback query/versions queryis UNDO based and work in PDB’s
    Flashback transaction query/flashback transactionis UNDO and REDO based and work in PDB’s
    Flashback data archiveUNDO gernerated archives
    Flashback table
    before drop –> Rename segment name of recylebin, which is based on UNDO, work in PDB’s
    flashback table to –> is UNDO based, work in PDB’s
    Flashback databasedoesn’t work in PDB’s:
    RMAN> flashback pluggable database prmdb01 to time "to_date('23:00 20-11-2013','hh24:mi dd-mm-yyyy')";
    Starting flashback at 25-NOV-13
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of flashback command at 11/20/2013 23:00:00
    RMAN-05108: Command is not supported for pluggable database
    Regards
    Mahir M. Quluzade
    p.s. Command exists but not supporting, may be next release come support.

  • Can we create pl/sql code over database link?

    Hi All,
    We are using Oracle 9i database.
    I want to know if we can create or modify pl/sql code (procedue, package, etc) over the database link? That means - can we create a procedure in remote database using the db link?
    Thanks,
    Dnyanesh

    yes, I can connect to the remote database directly and create/modify the packages.
    But I want the users not to create them using the db link.
    Is there any way to create the pl/sql package over database link?
    Thanks,
    Dnyanesh

  • Can I migrate from sql azure business database edition (old) to sql azure standard database edition (new in preview)?

    I have an export .bacpac file from a sql azure business database edition and I want import that file to sql azure standard database edition.
    I have tried through Azure but I think that is not supported yet.
    I have also tried through Microsoft SQL Server Management Studio 2012 but Wizard only shows me old editions "web" and "business" for destination database and it is incompatible...
    Thanks.

    I've done this today.
    You'll need to restore your database onto Azure as a Business/Web addition. Either use your existing or New > SQL Database > Import.
    Then you need to sign up to the SQL Preview https://azure.microsoft.com/en-us/services/preview/.
    Once you've done that, in the Azure portal under DB > Scale, you'll have Web, Business, Basic, Standard and Premium to choose from.
    Obviously this is still in preview mode.

  • How can I rollback a transaction using EJBContext.rollbackOnly()?

    I failed to rollback a "required" method of a seesion bean using EJBContext.rollbackOnly() , but it rollbacked if I throw EJBException , how can I rollback a transaction by
    EJBContext.rollbackOnly() ? Thanks for your help.
    regards,
    dean

    The full and partial updates (whether it be Thunderbird, Firefox or SeaMonkey) from mozilla.org are only provided to the official builds and not builds built yourself or by a third-party.
    The openSUSE and other Linux distro provided builds have their own ways of package updates in their package manager.
    However if the poster is using Thunderbird for Linux from http://www.mozilla.org/en-US/thunderbird/ (64-bit Linux is on ftp) then those preferences would be valid and work.
    Nothing is being gutted as it has been this way since forever with third-party builds whether on Windows, Mac OSX and Linux.

  • Using Flashback Database on 11g

    hi everyone,
    My 11g db is size 50 GB on a very strong Windows server.
    No performance problems whatsoever.
    If I enable Flashback Database logging am I likely to notice any performance degradation? The data is not really heaviily changed.
    What about disk space - does it use the existing redo/archive logs or does it create different logs for the flashback feature?
    Thanks for your opinions.
    John

    user629010 wrote:
    hi everyone,
    My 11g db is size 50 GB on a very strong Windows server.
    No performance problems whatsoever.
    If I enable Flashback Database logging am I likely to notice any performance degradation? The data is not really heaviily changed.Even if the data is not heavily changed, with the internal changes happening, there would be some activity always generating Redo/Undo. You would want to check the working of the RVWR process to see any possible waits over it. In addition to this, if the speed of the writing of RVWR is not good enough to write, you would see the contention on the Undo tablespace as it won't be freed as long as the corresponding writes are not saved by RVWR.
    >
    What about disk space - does it use the existing redo/archive logs or does it create different logs for the flashback feature?Flashback database uses *.flb* files which , if I remember correctly ,grow in 8mb of chunks. FLasback database does not uses the existing redo logs. Yes, it does uses the archived logs in addition to the FLB logs. So before you think to use this featuture, you do want to check the retention period of the logs , also the disk space required to manage that much retention period.
    HTH
    Aman....
    Thanks for your opinions.
    John

  • How can i configure an odbc using a database from sql to my excel

    Hi, i hope you can help me
    I have an excel sheet in wich i'm working, but i need to import data from a database used SQL, but i need the ODBC connection,... I try to used the administrator ODBC, but it has no driver for me to connect it to the SQL database, ... who knows wich tool can i use?
    best regards,
    Pamela

    As far as I know -you still can't do that with the mail app on a device. You can select each contact by tapping the blue + sign to open the contacts app and you have to add them one at a time.
    These are third party apps that will let you do this - Group Email ... And there are others in the app store.

  • T-SQL USE : Reference Database in Different Server

    I'm fairly new to SQL so perhaps I am missing something but what I am trying to do is have a script I wrote select a certain database depending on @@ServerName.  This script will be run by the testing department and needs to work regardless of connection.
    IF @@SERVERNAME IN ('X')
        USE DataBaseA
    ELSE IF @@SERVERNAME IN ('Y')
        USE DataBaseB
    ELSE
        USE DataBaseC
    What happens is DataBaseB does not exist on server X so I receive the error of "no database exists".  As well, DataBaseC lacks certain columns in tables that DataBaseA has (DataBaseC will later get these columns but are not there right now). 
    Is there a different way to force the code to properly use the right database and not throw errors?

    Interesting. I was not aware of that.
    I suggest you resort to dynamic SQL if possible.
    Build your SQL command into a variable, write only one USE STATEMENT into it and run it via EXECUTE.
    More about dynamic SQL at
    MSDN or from Erland Sommerskog.
    Another option could be using SSIS and work with variables there.
    Or go to powershell and cmd get the Servername there and fire up sqlcmd with the right commands (you can use parameter -d instead of use).
    In the end there could be quite a bunch of work involved depending how much you have to do in your script.
    Cheers
    Martin

  • Can i open an SQL express 2005 database in SQL server express 2012?

    Hi,
    i have a database and it's in SQL express 2005 but because my windows 8 is not compatible with the installer, i have to install the latest 2012 installer. my problem now is that i cannot open it in the 2012 edition..what do i have to do?

    Hi white_roses,
    Could you let us know how do you restore the database to SQL Server 2012 Express edition? Please help to collect the detail error information of this issue, it will benefit for us to do further investigation.
    As Sandesh and ED suggested above, we can directly detach our databases from SQL Server 2005 and then attach them to SQL Server 2012. For detail steps, please refer to the following article:
    http://msdn.microsoft.com/en-us/library/ms187858.aspx
    After we move a database from the instance of SQL Server on server A to the instance of SQL Server on server B, users may be unable to log in to the database on server B. If need the logins information on Server B, please refer to the following article:
    http://support.microsoft.com/kb/918992
    If you have any question, please feel free to let me know.
    Thanks,
    Jerry Li

  • Can't connect to SQL server GKB database

    I've installed Visual Composer on my laptop with Portals, SQL server and IIS.  When installing Visual Composer, it asked for a domain name.  What do I put in there?
    When I try to run VC, I get a message saying cannot connect to GKB database.  What is the GKB database and any ideas why I can't connect to it?
    Thanks,
    Dae Jin

    Dear all ,
    While installing i am getting this error
    the visual composer requires sql 2000 server indicate an appropriate server
    and in the log file I am getting this error
    <b>DBNETLIB]SQL Server does not exist or access denied.
    [DBNETLIB]ConnectionOpen (Connect()).</b>
    Previously I installed the following things in my PC
    1,win server 2000 with sp3
    2,sql server 2000 with sp3
    3,ie6
    4,I installed IIS service also .
    help me
    Thankx
    Ganesh

  • FLASHBACK Database : rman vs sql command differnces

    I am new to Oracle and want understand the difference and which is the correct way of flashing back the database?
    RMAN command vs SQL Command on using FLASHBACK DATABASE
    SQL> FLASHBACK DATABASE TO RESTORE POINT BEFORE_ONLINE_TEST;  {CODE} Vs rman> run{
         flashback database to restore point BEFORE_TEST_320130313;
         sql "alter database open resetlogs"; }
    Referring this article on http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmflash.htm#BGBDCAFA it says we can use both RMAN and SQL command for database flashback.
    Questions:
    1. Difference between using RMAN and SQL command on database flashback?
    2. When to use RMAN or SQL on the  database flashback?
    3. Which is the Oracle recommended or best way ?
    Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:28 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:29 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    When I issue the SQL Plus command of
    SQL> flashback database to restore point BEFORE_TEST_20130313 ;
    flashback database to restore point BEFORE_TEST_20130313
    ERROR at line 1:
    ORA-38754: FLASHBACK DATABASE not started; required redo log is not available
    ORA-38762: redo logs needed for SCN 87612483975 to SCN 87612485856
    ORA-38761: redo log sequence 1 in thread 1, incarnation 3 could not be accessedHowever on running this on RMAN
    RMAN>
    list backup of archivelog scn between 87612483975 and 87612485856
    RMAN> ;
    starting full resync of recovery catalog
    full resync complete
    List of Backup Sets
    ===================
    BS Key  Size       Device Type Elapsed Time Completion Time
    5212758 19.75M     SBT_TAPE    00:00:04     13-MAR-2013 16:36:17
            BP Key: 5212765   Status: AVAILABLE  Compressed: NO  Tag: TAG20130313T163611
            Handle: <TestDB_60:809973373:1>.al   Media: 945c30b6:506c6cd2:3a14:0001
      List of Archived Logs in backup set 5212758
      Thrd Seq     Low SCN    Low Time             Next SCN   Next Time
      1    1       87612468290 13-MAR-2013 13:28:19 87612484321 13-MAR-2013 16:36:06
      1    2       87612484321 13-MAR-2013 16:36:06 87612484339 13-MAR-2013 16:36:09
    BS Key  Size       Device Type Elapsed Time Completion Time
    5212759 896.50M    SBT_TAPE    00:00:17     13-MAR-2013 16:36:30
            BP Key: 5212766   Status: AVAILABLE  Compressed: NO  Tag: TAG20130313T163611
            Handle: <TestDB_59:809973373:1>.al   Media: 945c30b6:506c6cbd:39f5:0001
      List of Archived Logs in backup set 5212759
      Thrd Seq     Low SCN    Low Time             Next SCN   Next Time
      1    5       87612363812 12-MAR-2013 14:22:26 87612659040 13-MAR-2013 03:04:08
    run {
    allocate CHANNEL dev_2  TYPE 'SBT_TAPE' format '%U' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8)';
    allocate CHANNEL dev_3  TYPE 'SBT_TAPE' format '%U' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8)';
    allocate CHANNEL dev_4  TYPE 'SBT_TAPE' format '%U' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8)';
    flashback database to restore point BEFORE_TEST_20130313;
    sql "alter database open resetlogs";
    release channel dev_2;
    release channel dev_3;
    release channel dev_4;
    starting media recovery
    archived log for thread 1 with sequence 2 is already on disk as file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_2.3612.810054205
    archived log for thread 1 with sequence 3 is already on disk as file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_3.1588.810054205
    channel dev_2: starting archived log restore to default destination
    channel dev_2: restoring archived log
    archived log thread=1 sequence=1
    channel dev_2: reading from backup piece <TestDB_60:809973373:1>.al
    channel dev_2: piece handle=<TestDB_60:809973373:1>.al tag=TAG20130313T163611
    channel dev_2: restored backup piece 1
    channel dev_2: restore complete, elapsed time: 00:00:46
    channel dev_2: deleting archived log(s)
    archived log file name=+DG_PERF_FLASH_02/TestDB/archivelog/2013_03_15/thread_1_seq_1.2969.810106317 RECID=49 STAMP=810106318
    media recovery complete, elapsed time: 00:00:05
    Finished flashback at 10-MAR-2013 05:32:07
    database reset to incarnation 5215723
    When we issue the SQL Plus command, if there is  need of old database backup of archive log, how does that SQL Plus communicate with rman recovery catalog and retrieve?

  • How to use Flash recovery area only for flashback database feature

    I would like to use flash recovery area only for flashback database feature, which means, flash recovery area will store only flashback logs.
    I dont want to use that file system for any other files, like archive log files, database backups, control file copies, multiplex redo log, etc
    is it possible? I want to use this feature only for flashback database option and hence i dont want to disturb any existing configuration in my database
    including backup jobs. Is it required to store archive redo log files also in flash recovery area to use the flashback database feature?
    I certainly can't afford to have a copy of entire database in this file system as size of my DB is more than the flash recovery area file system I have.
    Thanks
    Sarayu

    user13312943 wrote:
    Aman,
    I think i was not clear in my question. Let me try again
    My only requirement is to use flashback database feature (or be prepared to use if required). I dont want to create a large file system to use this FRA to store all these files. Out of all the files being stored here copy of data files seems to be consuming more space. I see these files are classified as transient and permanent files. I am okay with permanent files. I fear that this file system may consume more space if i store backup files on disk. I want database backups to go to tapes, not to the FRA disk. Is it possible?
    Thanks for your reply
    Okay, well in that case you can use RMAN and push the backups to the tape drives. FLB logs would be stored on the FRA.
    Aman....

  • Flashback database steps

    SQL> select name from v$datafile;
    NAME
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SYSTEM01.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\UNDOTBS01.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SYSAUX01.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\USERS01.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\EXAMPLE01.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\TEST.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SVSS.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SVSS01.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\RMAN.DBF
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\FLASH.DBF
    10 rows selected.
    SQL> create tablespace prod datafile 'e:\oracle\product\10.2.0\oradata\agile2\prod.dbf' size 50 m;
    Tablespace created.
    SQL> alter user flash1 default tablespace prod;
    User altered.
    SQL> connect flash1
    Enter password: ******
    Connected.
    SQL> select * from tab;
    no rows selected
    SQL> create table flash(id number(23));
    Table created.
    SQL> insert into flash values(32);
    1 row created.
    SQL> commit
    2 ;
    Commit complete.
    SQL> set time on;
    14:20:54 SQL> connect /as sysdba
    Connected.
    14:21:03 SQL> select name from v$datafile;
    14:21:11 SQL> drop tablespace prod including contents;
    Tablespace dropped.
    14:21:47 SQL> shu immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    14:22:22 SQL> startup mount
    ORACLE instance started.
    Total System Global Area 293601280 bytes
    Fixed Size 1296332 bytes
    Variable Size 104859700 bytes
    Database Buffers 180355072 bytes
    Redo Buffers 7090176 bytes
    Database mounted.
    14:23:29 SQL> flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss');
    flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss')
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 11 will be lost if RESETLOGS is done
    ORA-01111: name for data file 11 is unknown - rename to correct file
    ORA-01110: data file 11: 'E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00011'
    14:23:47 SQL> alter database rename file 'E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00011' to 'e:\oracle\product\10.2.0\oradata\agile2\prod.dbf';
    Database altered.
    14:24:40 SQL> flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss');
    flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss')
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 11 will be lost if RESETLOGS is done
    ORA-01110: data file 11: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\PROD.DBF'
    14:25:05 SQL>
    iam not able to recover the dropped tablespace using flashback database,,,iam tried this many times some time iam able to recover ,most of time iam getting above error only.
    anyone help me,,
    pl share ideas.
    Thanks in advance;

    See flashback limitation
    You cannot use Flashback Database alone to retrieve a dropped data file. If you flash back a database to a time when a dropped data file existed in the database, only the data file entry is added to the control file. You can only recover the dropped data file by using RMAN to fully restore and recover the data file.
    so after dropping tablespace,you can't perform flashback.
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/flashdb.htm#CFHFIBGH
    What Do All 10g Flashback Features Rely on and what are their Limitations ? [ID 435998.1]
    Edited by: Kuljeet Pal Singh on May 16, 2012 2:57 PM

  • Dynamically Pass sql query in Database adapter

    hi',
    How can we dynamically pass sql query in Database adapter, is there any way, I am using SOA 11G.
    Thanks
    Yatan

    Hi,
    Tried that too. No luck. Gives me this.
    The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'selectUsingIn' failed due to: Pure SQL Exception.
    Pure SQL Execute of select interface_id, property_name, property_value from ( (?) ) failed.
    Caused by java.sql.SQLSyntaxErrorException: ORA-00903: invalid table name
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    Regards,
    Neeraj Sehgal

Maybe you are looking for

  • Using screen from another program?

    Can I use a screen created in one module pool program for another report/module pool program? Is that possible? Thanks.

  • How to Setup an ACL over a Command in solaris 2.6

    Hi all, Has anyone have an idea on how to setup an ACL over a command in solaris 2.6 . i.e: to force a user (or a group) to enter a password to run a command (like mount and others). Thanks for your help. haed98. [email protected]

  • Discount amount

    Hi all, To our customers we sometimes wants to give a discount in the form of an amount instead of a %. We can use the field down at the right after Total before discount but that's not what we want to use, because.. We use the XL reporter to create

  • Jerky ken burns zoom

    i made slide show in iphoto, used some custom ken burns, then when imported to idvd6, the zooms sometimes are jerky when previwed in idvd; also, what i see on the preview in slide show i photo isnt always what ends up happening........

  • CP6 HTML5 output file, show/hide don't work

    Hi all, I've create a menu screen where I have grouped some graphics to a button and disabled 'visible in output'. I then created a conditional script to show or hide the group depending on interaction, assigning the script to the slide on enter. How