A query need to check whether the database should any recovery media...

Hello

I'm at the stage of editing a database and still be opened.at this point no matter what query is available or in any other way is there to check whether the database should any recovery media or Instance recovery... ?

My goal is before opening the database, I make sure it's compatible or incompatible, and any form of recovery is necessary.

Thank you and best regards,
Rameau

Published by: ragu.dba.in on 6 March 2013 12:57 AM

Hi Lila,

Use these queries, YVERT should match... no fuzzy file, don't check for recovering files in v$ recover_file... spend sufficient archives & realize the audits before open reset-logs

set line 900
set pages 900
set echo on
alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss';
set numwidth 13
col CHECKPOINT_CHANGE# for 9999999999999999
col CHANGE# for 9999999999999999
column error format a10
column member format a60
show parameter db_recover
select * from v$recover_file;
select file#, status from v$datafile;
select file#, checkpoint_change#, checkpoint_time, error from v$datafile_header;
select distinct status from v$backup;
select distinct  checkpoint_change#  from v$datafile_header;
select hxfil file_id, fhscn scn, fhthr thread, fhrba_seq sequence, fhsta status from x$kcvfh;
select distinct fhscn from x$kcvfh;
select hxfil file_id, fhtnm tablespace_name from x$kcvfh;
##### Fuzzy Check ####
alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';
set feedback on
set heading on
set pagesize 1000
set linesize 175
column checkpoint_change# format 999999999999999999999
select status, checkpoint_change#, fuzzy,
to_char(checkpoint_time, 'DD-MON-YYYY HH24:MI:SS') as checkpoint_time,
count(*)
from v$datafile_header
group by status, checkpoint_change#, fuzzy, checkpoint_time
order by status, checkpoint_change#, fuzzy, checkpoint_time;

Thank you
Ajay more
http://www.moreajays.com

Tags: Database

Similar Questions

  • I bought the iphone 6 s more time face in Saudi Arabia. I need to check if the original phone to apple or duplicated. So please help me find this problem.

    I bought the iphone 6 s more time face in Saudi Arabia. I need to check if the original phone to apple or duplicate. So please help me find this problem.

    Hey there, I guess your question is "how to determine if my iphone is true or false. If Yes, then if you go here https://selfsolve.apple.com/agreementWarrantyDynamic.do just enter your serial number and code and if his 'real', then it will show you the model of the Iphone and guaranteed dates. If this isn't the case, then you know the rest. If this is not the case then try to download apps from the app store and run or can it connect to itunes. Tell me what best worked: D - Jon

  • I can't uninstall microsoft silverlight. I get the message that I need to check with the installer of the hotfix package.

    Original title: microsoft difficulty 50747

    I can't uninstall microsoft silverlight. I get the message that I need to check with the installer of the hotfix package. Pls help!

    Hello

    Because the problem is related to Silverlight, I suggest you post this question in the Microsoft Silverlight forum.

    http://forums.Silverlight.NET/forums/

  • How to check if the database for DRDA gateway is installed and configured.

    Hi all

    How can we check if the database for DRDA gateway is installed and configured.

    Our operating system is AIX 5 L 64 bit OS.
    RDBMS: 11.2.0.3

    Kind regards

    Duplicated
    How to check if the database for DRDA gateway is installed and configured.

    + - locked thread-+.

    Nicolas.

  • How to check if the selection is any text tho:

    Ok.. Another question:

    How to check if the selection is any text tho:

        if (app.documents.length != 0 && app.selection.length != 0 &&

         (app.selection[0].constructor.name=="Text"||app.selection[0].constructor.name=="Paragraph"))

    but sometimes the selection is 'textStyleRange', sometimes 'character' etc. is there a shortcut to check both?

    I usually do something like this:

    if ( app.documents.length && app.selection.length && app.selection [ 0 ].hasOwnProperty ( 'baseline' ) )
         alert ( "It's a text!" );
    

    Hope that helps.

    --

    Marijan (tomaxxi)

    http://tomaxxi.com

  • check whether the work of clone was successful

    Hi all

    today I am cloning of virtual machines with my vCenter (scheduled tasks) and I remove my clones with PowerCLI Powershell.

    But if Te my data store is full, the work of clone will be not successful, in this case, I want to get an alert.

    How can I check whether my work clone was successful?

    Thanks in advance

    You can try:

    (Get-Task | Where-Object { $_.Name -eq "CloneVM_Task"}).State
    

    The Get-job cmdlet retrieves information about current or recent tasks.

    The status value returned is error, pending, running or success.

    Robert

  • Check whether the backup is suitable for restoration

    DB version: 11 g

    RMAN, how can I check whether or not the available backup is not corrupted?

    validate backup and restore to validate

    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm

    Badin

  • How to check if the database has Unicode (UTF-8) character encoding?

    Trying to figure out how to check the database to see if it is set to "UTF-8"?

    Thank you

    Might as well add these links for any future reference (from 10.2 docs), where the latter is a whole chapter on the use of Unicode:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14225/ch2charset.htm#sthref144
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14225/ch6unicode.htm#g1014017

  • Check whether the checkbox in a form is activated or not using javascript

    When you click a checkbox (TBD) it must set the value of a field with a default value "1234". If uncheck us the box, it must set the field to null.
    I set the box as STATIC2:; 1234 in the form.

    I used the event onClick on the box and calls a function to update the column.
    Inside the function I check if the box is checked using
    If (document.getElementById('P4_TBD').checked = true)
    {
    document.getElementById('P4_COL1).value = '1234';
    }
    on the other
    {
    document.getElementById('P4_COL1).value = "; / * or $s ("P4_COL1", "");

    }

    It works only when the box is checked. If the checkbox is unchecked is not setting the field to null.
    I checked document.getElementById('P4_TBD').checked = false instead of the else clause. It does not work.
    Please help me on this issue.

    Thank you
    Ravi

    When you use the check box or option button, your button ID is using an index. If you create a group of 3 check with ID = "MY_CHECKBOXES" boxes, APEX will create the following ID for each of your options: MY_CHECKBOXES_0, MY_CHECKBOXES_1 and MY_CHECKBOXES_2. If you want to test if the first checkboxe is checked, you will use document.getElementById('MY_CHECKBOXES_0').checked.

    I didn't test a single checkbox, but I would expect your check to be "TDB_0" not "BDM" which is the frame that surrounds your checkbox group.

  • Crash of the database without any error

    Hello
    I asked this question of PL/SQL and they redirect me to this forum... hope I can get a solution... [Previous Thread of PL/SQL: http://forums.oracle.com/forums/thread.jspa?threadID=925433 & tstart = 0]

    Maybe I can start from the beginning and helps you understand what I'm trying to achieve...

    I am loading an XML file in a table called: table_b
    Table_B has a column called col_a which is of type CLOB... XML file is stored in col_a...

    I downloaded my XSL file using Oracle procedures, and then I want to use Oracle XDB functions to transform the XML file using the XSL type...

    OBJECTIVE: transform XML to another format...

    starting this pl:
    declare
    v_l clob.
    CLOB v_t;
    V_1 sys. XMLType;
    V_2 sys. XMLType;
    Start
    Select col_a v_l table_b where col_c = "value_d";

    -v_t: = DBMS_XDB. GETCONTENTCLOB('/home/XSL/Transf.xsl');

    V_1: = XMLType (v_l);
    -v_2: = XMLType (v_t);

    -dbms_output.put_line (substr (v_t, 1, 900));
    dbms_output.put_line (substr (v_l, 1, 900));

    end;
    /

    -Error in this line and causes the database to crash without error
    V_1: = XMLType (v_l);

    Description of the table, I select the values of:

    describe table_b;

    Name of Type Null
    -col_c VARCHAR2 (3)
    col_a CLOB()

    Thanks Alex for your time; the answers to your question.
    Select * from version of v$.

    Oracle Database 11 g Enterprise Edition Release 11.1.0.6.0 - 64 bit Production
    PL/SQL release 11.1.0.6.0 - Production
    "CORE 11.1.0.6.0 Production."
    AMT for 64-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production

    hope you can follow and try to rebuild the image here... If you need information please... Thank you

    Just like your code, the Oracle database software is also code. So it will be contains bugs, like your code. At the point where we get the human factor, there's no bugs... so there is no need to 'shout '.

    If you have an ID customer support Oracle, you were able to connect to a request for priority service 1. Oracle will help you immediately (but you must also be on standby 24 hours...).

    A few reasons I can think that denies the database to write errors... (some issues I encountered during my 15 years while working with Oracle

    -Unplug the power of server cable
    -read only privileges on files and directories
    -a failure to disks, corrupt hard drive sectors
    -parameters for the wrong OS kernel / environment settings
    -the demon of background database hangs himself and therefore can save his own mistakes
    -etc...

    Apperently doesn't understand you all the details ("now, the problem is in this file because he had some references in there which made reference to a DTD and other XSL files... ") so your computer might be that your XML file is not well formed somewhere, perhaps due to the conversion of the data due to the settings of national language of the customer. If you use XMLTYPE, Oracle will check on XML wellformedness and if an XML schema or a reference is present, it will make an attempt to do a check against this information if it is available at the session / database. Just like, for example, a type of 'DATE' or 'NUMBER '. The content gets checked if it valid as a 'DATE' or 'NUMBER '.

    Spaces should also be analyzed and verified if this isn't the start of a character / item. All XML parsers / DOM methods will serialize and check the content in this way.

    I'm still using that you log an SR with Oracle Support. As Alex showed you, it should work at least he did in his old 9.2 database environment. There is more here than meets the eye...

  • Impossible to find in the Menu to create recovery media ThinkVantage programs

    Hi all:

    I'm doing a product recovery disc for my Type 8380 - 85U Thinkcentre. desktop computer.  The help file says to go to Start --> all programs --> ThinkVantage --> to create recovery media to do this.

    I did, but there is no option in the menu of ThinkVantage to create recovery media.

    I need to know what the real app is only the tip of the shortcut to.

    I called the Tech Support line and told to search for and download document Outphasing-67520.  I have done this and downloaded the Lenovo systems Toolbox which told me to provide me with the utility to create the recovery media.  I installed the Toolbox systems and create product recovery disc was not one of the functions that this app provides.

    Can anyone tell me the name of the file and if possible the location of the executable file that indicates the shortcut in the menu create recovery media.

    Thanks in advance for any help getting this done product recovery disc.

    Best regards

    Michael, W1RC

    Hi Netnubar:

    You WROTE:... the executable file is "RRMedia.exe".

    Thank you. You are right.  My problem is solved.

    Wonder why two of the IBM support people didn't know that.

    Best regards

    W1RC

  • Can I delete the second partition after recovery media creating?

    Hey,.

    I just create recovery media, with 2 DVDs and I wonder if I can now delete the partition on the HARD disk, which contains a folder named "HDDRecovery" called 'Data'

    I ask here because I don't want to do something stupid. Thanks in advance for the answer

    Hello

    There is nothing special, just remove them as you usually do. The thing most important you have already made the recovery discs. :)

  • Need to check if the watch is on the right track

    Dear Sir

    Most of the dba is familiar with waiting for database, which are intended to avoid the disaster. After you have created the day before I normally use the query to check if standby works properly following or sync with the primary db:

    Select max(sequence#) from v$ archived_log in case of application = 'YES ';


    But is it enough to know everything about the standby db? Or is there something else that could we check to determine the standby state db?

    Hello follow the methods below to check the status of the standby.

    Step 1: Check the sequence of log by using the following query to the primary database

    SELECT THREAD # "Thread", SEQUENCE # 'Last generated sequence' IN V$ ARCHIVED_LOG WHERE (THREAD #, FIRST_TIME) IN the ORDER (SELECT THREAD #, MAX (FIRST_TIME) OF V$ ARCHIVED_LOG GROUP BY THREAD #) BY 1.

    OR

    SELECT THREAD #, MAX(SEQUENCE#) IN V$ ARCHIVED_LOG GROUP BY THREAD #;

    Step 2: Check the sequence of logs from database pending and the difference in gap using the query below

    SELECT A BOW. THREAD # "Thread", ARCH. SEQUENCE # 'last received sequence', Appl. SEQUENCE # "last sequence applied", (the centre ARCH. SEQUENCE #-APPL.) Sequence #) 'Offset' from (SELECT THREAD #, SEQUENCE # v $ ARCHIVED_LOG WHERE (THREAD #, FIRST_TIME) IN (SELECT THREAD #, MAX (FIRST_TIME) OF V$ ARCHIVED_LOG GROUP BY THREAD #)) ARCH, (SELECT THREAD #, SEQUENCE # v $ LOG_HISTORY WHERE (THREAD #, FIRST_TIME) IN (SELECT THREAD #, MAX (FIRST_TIME) OF V$ LOG_HISTORY GROUP BY THREAD #)) APPL WHERE ARCH. THREAD # = APPL. TRI WIRE # 1.

    Compare the results of step 1 and step 2. Based on the sequence of newspaper difference we need to choose the best possible methods to synchronize the standby

    Thank you

    Bhavani

  • Need guidance in upgrading the database of EBiz at 11 GR 2.

    Need advice in the E Biz Database upgrade to 11 GR 2 (ASM, CRS, binary Oracle) and also applications for R12.


    Kind regards.

    Do a search of the forum before posting similar questions that your questions have been answered many times in the forum before.

    11 GR 2 11.2.0.2 database certified with E-Business Suite
    http://blogs.Oracle.com/stevenChan/2010/11/db_11gr2_11202_ebs.html

    Oracle E-Business Suite and Oracle Real Application Clusters Documentation Roadmap [ID 745759.1]
    The use of Oracle 11 g Release 2 Real Application Clusters with Oracle E-Business Suite Release 12 [823587.1 ID]

    The Oracle Applications upgrade guide: Version 11i release 12.1.1
    http://download.Oracle.com/docs/CD/B53825_03/current/HTML/docset.html

    Guidelines for preparation of database E-Business Suite Release 12.1.1 upgrade [ID 761570.1]

    Oracle E-Business Suite Release 12.1.3 now available
    http://blogs.Oracle.com/stevenChan/2010/08/ebs_1213_available.html

    Thank you
    Hussein

  • you need to relax from the database

    Hi all

    If a hours of attendance of people is less than 4 hours then absent system and do not count day

    If a participation of the person less than 7 hours then system shows half attendance and County half working day.

    annual,

    a_date (in time),

    b_date (time).

    a_status (for type 1 now, 0absent).

    a_day (for 1 day, half-day of 0.5)

    CREATE or replace TRIGGER presence

    BEFORE the update on attendance_t

    FOR EACH ACTIVE LINE

    DECLARE

    v_begin attendance_t.start_dat%TYPE;

    v_end attendance_t.end_dat%TYPE;

    BEGIN

    v_begin: =: old.start_dat;

    v_end: = Nvl (: new .end_dat, SYSDATE);

    : new.attend_time: = To_char (((v_end-v_begin, 'JOUR'), 'fm09') |) » h: ")

    || To_char (((v_end-v_begin, 'JOUR')), "fm09"). » m: ")

    || To_char (((v_end-v_begin, 'JOUR')), "fm09"). » s') ;

    END attendance_bu;

    Implementation error.

    PLS-00412: list of values not allowed as an argument to the function or procedure

    Start_date END_DATE (time out) ATTEND_TIME A_STATUS A_DAY

    -------------------     ----------------------          --------------------    --------------      ------------

    SYSDATE 03:00 m: 06 s 0

    SYSDATE 06:00 m: 05 s 1 0.5

    SYSDATE 05:00 m: 06 s 1 0.5

    I need to show, attend_time, status, day (1 day, half-day of 0.5)

    11.1.0.7.0 - 64 bit Production

    Post edited by: 994122 I posted on another forum, trying to get the answer...

    No need for a trigger... solve in a view.

    WITH the DATA (student, start_date and end_date)

    AS (SELECT 1, to_date ('17.09.2014 08:00:00 ',' dd.mm.yyyy hh24:mi:ss'), to_date ('17.09.2014 16:30:00 ',' dd.mm.yyyy hh24:mi:ss') OF the double)

    UNION ALL

    SELECT 2, to_date ('17.09.2014 12:00:00 ',' dd.mm.yyyy hh24:mi:ss'), to_date ('17.09.2014 16:30:00 ',' dd.mm.yyyy hh24:mi:ss') OF double

    UNION ALL

    SELECT 3, to_date ('17.09.2014 14:00:00 ',' dd.mm.yyyy hh24:mi:ss'), to_date ('17.09.2014 16:30:00 ',' dd.mm.yyyy hh24:mi:ss') OF double

    UNION ALL

    SELECT 4, to_date ('17.09.2014 14:00:00 ',' dd.mm.yyyy hh24:mi:ss'), double null

    )

    Student SELECTION

    start_date

    End_date

    TO_CHAR (trunc (SYSDATE) + (nvl (end_date, sysdate) - start_date), 'HH24:MI:SS')

    , CASE WHEN nvl(end_date,sysdate) - start_date > 1 / 24 * 4 THEN 1 ELSE 0 END AS a_status

    CASE

    WHEN nvl(end_date,sysdate) - start_date > 1 / 24 * 7 THEN 1

    WHEN nvl(end_date,sysdate) - start_date > 1 / 24 * 4 THEN 0.5

    0 OTHERWISE

    end as a_day

    data;

    HTH

Maybe you are looking for

  • Satellite U200-124 - unknown devices with Windows XP SP2

    I downloaded Toshiba U200 driver for Windows XP of the site, install Windows, install all drivers.Well.But I have 2 unrecognized devices in Device Manager.1 1394 NETWORK ADAPTER. Product Code V1394\NIC1394\92423A39002 PCI Device. Device Code PCI\VEN_

  • HP Officejet Pro 8630: Set up to scan

    Im trying to set up the feature on printer for analysis. I have an IPad & IPhone and can't understand how I can activate the analysis feature. I don't have a desktop or laptop computer. appreciate any guidance Thank you

  • Carpet * a DVD UJ850s on Satellite L30 works fine to read the CD but not DVD

    Hello.. This seems to be a different problem with the other DVD problems on the forum. I have a brand new PSL33E L30 - 10V running Vista Edition family Basic. It has all the critical updates installed.He pre-recorded bed and house burned audio and da

  • OCR to file for C310a all-in-One format is incomplete?

    For c310a all-in-one printer, how can I find the included OCR software that converts .docx, .rtf format? The current software Win7 64-bit v.14.4.0 seems only to analyze a 'document' in PDF format (or other type of image). Help files indicate the alle

  • Anyone know how to use the recovery Pro Yoga 2 media?

    Hey guys,. Technical support is not useful at all. I paid $60 for some recovery disks recover my accidentally formatted Yoga 2 Pro. The disks came with no instruction, and their use is weird. First of all, there are two disks of 1, disc 2, but there