How can I determine what is the minimum SCN number I need to restore up to.

Say if I have a full database backup, I know I have file inconsistency, but I want to know what is the minimum time or SCN number a need to roll forward to in order to be able to open the database?
For example: I do a database restore.
restore database ;
RMAN> sql 'alter database open read only';
sql statement: alter database open read only
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 03/16/2009 15:00:04
RMAN-11003: failure during parse/execution of SQL statement: alter database open read only
ORA-16004: backup database requires recovery
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
I need need to apply archive log files. All references I find for ORA-00194 state the solution is to "apply more logs until the file is consistent " But "HOW MANY LOGS", or more apporaite up to what time or SCN? How does one determine what TIME or SCN is required to get all file consistent?
I thought this query might provide the answer, but it doesn't
select max(checkpoint_change#)
from v$datafile_header
MAX(CHECKPOINT_CHANGE#)
7985876903
--It applies a bit more redo, but not enough to make my datafiles consistent.
recover database until SCN=7985876903 ;
Starting recover at 03/16/09 15:04:54
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
using channel ORA_DISK_6
using channel ORA_DISK_7
using channel ORA_DISK_8
starting media recovery
channel ORA_DISK_1: starting archive log restore to default destination
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=18436
channel ORA_DISK_1: reading from backup piece /temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1
channel ORA_DISK_1: restored backup piece 1
piece handle=/temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1 tag=TAG20090315T041716
channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
archive log filename=/u01/app/oracle/flash_recovery_area/P1/archivelog/2009_03_16/o1_mf_1_18436_4vxd81yc_.arc thread=1 se quence=18436
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
I've discover I need to apply archive logs until this query reports all datafiles as FUZZY=NO , but this only works by guessing at some time periord to roll forward to, then checking the FUZZY column, and try again. Is there a way to know, I have to roll forward to a specific SNC in order for all my datafiles to be consistent?
select file#
     , status
     , checkpoint_change#
     , checkpoint_time
     , FUZZY
     , RECOVER
,LAST_DEALLOC_SCN
from v$datafile_header
order by checkpoint_time
Thanks,
Jason

The minimum point in time is the time when the last backup piece for datafiles in that backup was completed.
Your alert.log should show the redo log sequence number at that time.
You can query V$ARCHIVED_LOG and get the FIRST_CHANGE# of the first archivedlog generated after that backup piece completed.
A
LIST BACKUP;in RMAN should also show you the SCNs at the time of the backups.
You can also query SCN_TO_TIMESTAMP -- eg
select timestamp_to_scn(to_timestamp('15-MAR-09 09:24:01','DD-MON-RR HH24:MI:SS')) from dual;will return an approximation of the SCN.
Hemant K Chitale
http://hemantoracledba.blogspot.com
Edited by: Hemant K Chitale on Mar 17, 2009 9:41 AM
added the LIST BACKUP command from RMAN.

Similar Messages

  • When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Websites remembering you and automatically log you in is stored in a cookie.
    *Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    *Tools > Options > Privacy > Cookies: Exceptions
    In case you are using "Clear history when Firefox closes":
    *do not clear Cookies
    *do not clear Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

  • How can I determine what dns server the wifi client use within airport

    How can I determine what dns server the wifi client use within airport
    I want to use dns servers other then the one that airport extreme is using. For example I got the 172.16.1.1 (the default gateway - airport extreme), but I want to use the office dns servers, that are in a 10.x.x.x range.
    Is there a possibility?
    Thanks and happy eastern

    The Airport Extreme uses the DNS servers assigned by the network that it connects to. Is you Airport Extreme on the 10.x.x.x network? if it is then you are already using the 10.x.x.x DNS servers. Check your Airport Extreme with the Airport Utility and you will see in the Internet tab, the DNS servers used. The devices connecting to the Airport Extreme are assigned a DNS address of the Airport Extremes IP, In your case 172.16.1.1 but all DNS searches and resolution are done with the DNS servers you see in the Airport Extreme.
    If you want to use some other DNS then you can override in the Airport Extreme which will be used by all devices connecting too the Airport Extreme, Or you can edit the DNS address in each devices wireless settings.

  • I can't shut down my MacBook Pro.  I'm getting the following message: "The Finder can't quit because some operations are still in progress." How can I determine what is running?

    I can't shut down my MacBook Pro.  Each time I try, I get the following message: "The Finder can't quit because some operations are still in progress."  How can I determine what is running?

    Yea,
    I bought an original CRT iMac  two day's before  they were launched, which got the reseller into trouble, and had it replaced by APPLE.
    This was a great learning process for me dealing with the glitches. :-)
    I LOVE MAC. Now own 4 and on my 10th. in 15 years + 7  bought for family.
    Cheers,
    Tom

  • How can i determine what the most recent os my imac will run?

    How can i determine what the most recent os my iMac will run?
    Serial Number QP6*****VUW
    Processor 2.16 GHz Intel Core 2 Duo
    Currently running Version 10.5.8
    <Edited by Host>

    You CAN run 10.7, but I don't advise it, buy the 10.6.3 upgrade disk from the Apple Store online and then backup files off the machine and upgrade to 10.6.3., then Software Update to 10.6.8 would be the BEST option for your older hardware and it will run most all of your 10.5 software and be faster than 10.5 or 10.7.
    If you go to 10.7 it won't run nearly any of your 10.5 software and you will have to buy all new ones for a machine that's getting a little bit dated, near it's end of life stage. 10.7 will slow your machine down, especially with low RAM.
    http://roaringapps.com/apps:table
    At your machines stage, the hard drive is getting old, the vents are clogged up with dust and it's going to cost a bit to get the drive etc upgraded. You can if you wish, but 10.7 really needs more RAM (4GB) and a faster hard drive.
    But your still subjected to the video card going out etc.
    IMO upgrade to 10.6.8 and stay there until the wheels fall off, then buy a new 10.8 machine being released after this summer or 10.9 machine.
    Harden your Mac against malware attacks

  • How can I determine what computers are home sharing??

    How can I determine what computers are home sharing??

    Launch iTunes on the computers you're interested in. Check in the "Advanced" menu.
    If "Turn on Home Sharing" is listed as an option, the iTunes library that you have open is not Home Sharing.
    If "Turn off Home Sharing ([accountname]) is listed as an option, the iTunes library that you have open is Home Sharing.

  • I've got an old I-phone.  How can I determine what model it is?  3 or 4.

    I've got an old I-phone.  How can I determine what model it is?  3 or 4.

    Append the last three characters of its serial number to http://www.everymac.com/ultimate-mac-lookup/?search_keywords= and load the page.
    (104117)

  • How can I determine what computers are authorized on my iTunes account?

    How can I determine what computers have been authorized on my iTunes account?  I've reached my limit and now I'd like to deauthorize one computer.
    Thanks,
    Jerry

    There is no list.
    You can only deauthorize a single computer from that computer.
    If you do not have access to the computers, then you would have to deauthorize all.

  • How can I determine what is using my broadband?

    I have limited broadband (not uncapped) but something is chewing up my available data at an alarming rate. How can I determine what it is and how to stop it?

    You should be able to click on the one item, and then
    select Info, to see what else is involved w/ this kernel.
    And check the Console utility, to see what (among so
    many) specific items may relate to the use of internet.
    Items by Time & Date narrow the field somewhat.
    Good luck & happy computing!

  • How can I determine what LLB a VI is being loaded from?

    I've been frustrated switching between versions when an application opens and suddenly can not find a VI which is being loaded from a LLB.  How can I determine what LLB (or other type of library) a VI is being loaded from ? 
    Is there a list of all libraries along with what VIs are included in them somewhere?
    Thanks, 
    Dave 

    In the context help, enable "Show Optional Terminals and Full Path ", then just hover over your VI, either on the diagram on in the hierarchy view.
    LabVIEW Champion . Do more with less code and in less time .

  • How can we determined what role contains a particular privilege.

    Hi All.
    How can we determined what role contains a particular privilege.???
    I have found note User Management (UMX) Security Infrastructure Reporting (Doc ID 1222663.1)
    Our implementation doesn't seem to have a "UMX_W3H_HOMEPAGE / W3H Homepage Permission Set"
    This is a R12.0.4 instance
    Thanks in advance

    How can we determined what role contains a particular privilege.???User Management Responsibility > Roles & Role Inheritance > Search for the Role > Click on Edit and you will find the list of Permissions.
    I have found note User Management (UMX) Security Infrastructure Reporting (Doc ID 1222663.1)
    Our implementation doesn't seem to have a "UMX_W3H_HOMEPAGE / W3H Homepage Permission Set"
    This is a R12.0.4 instanceAccording to (How to Assign User Management Security Reports to a User [ID 1221304.1]), it is available in 12.1.1 and above.
    Thanks,
    Hussein

  • How can L identify what are the not null fields of a table in a stored procedure ?

    How can L identify what are the not null fields of a table in a stored procedure ?

    You could query the data dictionary:
    SELECT column_name
    FROM all_tab_columns
    WHERE owner = '...'
    AND table_name = '...'
    AND nullable = 'N'

  • HT4061 my phone is unable to power on and i dont have the packaging how can i check what is the serial number of the phone

    my phone is unable to power on and i dont have the packaging how can i check what is the serial number of the phone

    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • What is the minimum file system access needed to run ODI 10.1.3.4.0 client?

    Hi ODI discussion folks,
    I have a couple of questions from an Oracle partner that I'm trying to find a definitive answer for if possible. The partner is setting up ODI 10.1.3.4.0 for a customer who insists that the absolute minimum amount of access to the file system is granted due to corporate security policies.
    I have checked the bundled ODI documentation but couldn't really find anything about file system permissions needed to run the ODI client. I was pointed towards the "Setting Up Security for an Integration Project — What to Consider" document but this does not mention a great deal about how much access to the file system is needed for the ODI client to function.
    What the partner is asking is the following:
    "1. What are the minimum file/folder permissions needed for the ODI client installation? I'm installing at xxxxx
    and their machines have to be locked down as much as possible.
    2. Say you have 3 users all wanting to run integrations etc and the Master and Work
    repositories have been set up. An admin installs the ODI client but doesn't
    create the connection to the Master repository. What are the minimum
    file/folder permissions required on the client machine to:
    a) create the connection to the repository
    b) run any subsequent integrations?"
    If anyone can advise on this then that would be much appreciated.
    Regards
    Craig Huggans
    Oracle Hyperion Support
    Message was edited by:
    user648991

    Hi Craig,
    How are you?
    Let me try to contribute a little....
    1) The minimum requirement is for its own installation directory, there is no reason to have access to other directories unless if it is necessary to read files from some other directory at the client
    2) Again only to its own install directory. The connection setting is recorded at \bin install directory. After that, all information are recorded at repository, there is no client work.
    Be free to contact me by email or phone if you have any new doubt. You can get my email from my profile.
    Does it respond your doubts?
    Cezar Santos

  • How do I know what is the minimum resource requirement for OLAP 11g?

    How do I know for OLAP 11gR1 ...
    1. what is the minimum number of CPUs and speed required
    2. how much minimum physical memory, SGA, PGA etc. is required?
    Regards, Anirban

    Hello Anirban,
    In summary, since the OLAP option is an option to Oracle Database 11g, Enterprise Edition the minimum requirements in order to run the database would be identical to those necessary to run a "Data Warehousing" type installation. That being said starting up a database is a far cry from actually performing well while accessing and building OLAP Cubes in your Database.
    There are lots of things to consider. For example: the complexity of your model; data sparcity; level of aggregation; system load, SLAs, etc..
    Lets look at true minimum requirements and then consider what it would take to achieve good performance in your environment
    TRUE MINIMUM...
    I performed a test in my environment (Oracle Database 11g Release 2 (11.2.0.2.0) on Oracle Enterprise Linux 5.5) using Analytic Workspace Manager 11.2.0.2.0A and found the following minimum settings to work against the OLAPTRAIN schema (You may find it here http://www.oracle.com/technetwork/database/options/olap/index.html). This is a very small schema which we use for demonstration purposes.
    I discovered that the database started with a memory_target of only 160m (apparently this is the absolute minimum for my environment). I knew that if the database successfully started that I would be able to query the Cube but maintain it? Running queries against the OLAPTRAIN Sales Cube, despite being slow, worked as anticipated. Next, I performed a maintain operation on the Sales Cube where I had to abort the job because it ran into memory issues at 160m, however, when I increased it to only 180m it did a complete maintain in a reasonable timeframe, albeit slow considering the limited resources.
    MINIMUM REQUIREMENTS TO ENSURE REASONABLE PERFORMANCE IN YOUR ENVIRONMENT
    Most importantly ensure you have a good cube design
    Run a sample set of your data in order to define what "reasonable performance" is for your environment. Create a small representative cube in order to test both build and query performance while collecting and analyzing database statistics through AWR and ADDM. For OLAP option specific queries please take a look at http://wiki.oracle.com/page/OLAP+option+-DBASample+Scripts.
    You could creat a view on top of your fact table and use the view to generate your OLAP Cube. This will allow you to test a more manageable amount of data. For example, if you have 10 years of data and want to determine the footprint and resources required in order to manage a Cube of this volume then consider scoping it down to a few months first then increase it by a measured amount in order to predict requirements. Monitor your resources and ensure you balance I/O, memory and processors. Since the OLAP option is a Enterprise Edition option it falls under Data Warehousing. As such there is plenty of literature available on oracle.com in order to define what it takes to achieve a balanced Data Warehouse.
    I would recommend contacting Oracle Consulting or an Oracle Partner to determine the best fit for your environment.

Maybe you are looking for

  • Problem with my nokia5530

    Hello dear friends, I have a problem with my nokia 5530, when I download some applications I can not install them. then doing a manual installation .. while the QT install gives me this error "pips installer is not upgradable 10257" AND THEN "swi 0 r

  • Authentication in weblogic 5.1

    Hi all, I have the following requirements. I have an application which asks for the authentication information like username and password at first. The application is running in weblogic5.1 server. Is there a way where in weblogic.properties file, i

  • Ipod won't reset no disk mode

    I had the folder icon show up and the unhappy ipod.... This is the second generation 10 gig ipod.. believe it or not it still holds a charge... I can't reset or get to disk mode.... any help would be great

  • Cannot connect to ApShell in BPC Admin

    Hi, We are in the process of BPC installation. We have installed NW 7.01 + IIS 6.0 & .NET server. We have followed all the steps mentioned in the BPC installation guide. But, after installation, we are not able to login into ApShell in BPC Admin wind

  • ICal events not showing up on remote computer

    Hi, I am using .Mac to sync iCal. I write an appointment in Computer A. Computer B will sync the appointment and allocate the time on computer B but doesn't show what the appointment was. Any idea?