ORA-01830 during an attempt of incomplete recovery

Hi guys,.

I practice the incomplete recovery but my RMAN script fails with the following error:
ORA-01830: date format picture ends before converting all of the input string

Here's the RMAN script

RUN
{
May 7, 2010 until 05:00 ";
restore the database;
recover the database;
ALTER database open resetlogs;
}

My NLS_DATE_FORMAT has the value
* # env | grep-i nls *.
* # NLS_DATE_FORMAT = HH24:MI:SS * MON-DD-YYYY

Linux x 86, Oracle 10.2.0.4

In your case, case issues (my output is in windows, but should be the same on linux)

SQL> alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';  -- sqlplus can handle uppercase

Session altered.

SQL> select sysdate from dual;

SYSDATE
--------------------
07-MAY-2010 22:27:14

### but your environment is less forgiving  ###

C:\Documents and Settings\User>set nls_date_format=DD-MON-YYYY HH24:MI:SS

C:\Documents and Settings\User>rman target /

Recovery Manager: Release 10.2.0.1.0 - Production on Fri May 7 22:24:47 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: PTS (DBID=774850390)

RMAN> RUN
2> {
3> set until time '07-MAY-2010 05:00:00';
4> }

executing command: SET until clause
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 05/07/2010 22:25:09
ORA-01830: date format picture ends before converting entire input string

Now let's see what happens when I put the NLS_DATE_FORMAT correctly:

C:\Documents and Settings\User>set nls_date_format=DD-MON-YYYY hh24:mi:ss

C:\Documents and Settings\User>rman target /

Recovery Manager: Release 10.2.0.1.0 - Production on Fri May 7 22:25:36 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: PTS (DBID=774850390)

RMAN> RUN
2> {
3> set until time '07-MAY-2010 05:00:00';
4> }

executing command: SET until clause
using target database control file instead of recovery catalog

Now, usually when I write RMAN scripts I'll put the nls_date_format there it will always be good for the rman session:

run {
set until time "to_date('07-MAY-2010 05:00:00','dd-mm-yyyy hh24:mi:ss')";
}

Tags: Database

Similar Questions

  • ORA-01427 during the attempt to INSERT SQL job

    Hello

    I have non-logiques problem.

    I use Oracle 10 g.
    I have a query that contains some subqueries, this is pretty normal query as similar milion:

    SELECT a.field1,
    (SELECT b.field2 FROM tab2 b WHERE b.key = a.key) Field2
    OF tab1 a

    Query works fine, amount of the returns expected Recordset, but while I'm saving it somehow it returns me an error:
    ORA - 01427:single - line subquery returns multiple rows

    It would be normal that I have by running a SELECT statement. But SOME major work - error occurs when I try to save the results somehow - INSERT, CREATE TABLE AS or save it to file.

    Help, please.
    Thank you.

    nodeX wrote:

    Query works fine, amount of the returns expected Recordset, but while I'm saving it somehow it returns me an error:
    ORA - 01427:single - line subquery returns multiple rows

    No it's not. Most likely you use SQL * Developer, Toad, SQL * Navigator or another GUI tool that retrieves the screen by screen lines. So when you run this select your tool retrieves and displays just the first screen and it happens so that for the first lines of the scalar subquery in your select screen returns just one line. However, when you issue INSERT SELECT all lines are read, and at least one of them, results in a scalar subquery returns more than one line. Do a complete test of your question, SELECT, SELECT your tool try and extract all lines (in most of the tools it's > button) or post your query in SQL * more. In all cases:

    SELECT a.field1,
    (SELECT b.field2 FROM tab2 b WHERE b.key = a.key) field2
    FROM tab1 a
    

    means the key of the column in the table tab2 is logically unique for any value of tab1.key.

    SY.

  • ORA-16143: connections of RFS not allowed during or after a Terminal recovery

    Hi all

    I wanted to transfer primary DB archiving log of STANDBY DB by the window / given destnination

    After you have created the database physically Eve, I put database waiting for recovery by using the command:-change the recovery of database managed standby database disconnect from the session.

    After that when I ran this command: -.
    ALTER database recover managed standby database finish;

    After that when I tried to recover database to help given comand awaiting:-recover managed standby database.

    Get the error such as ORA-16143: RFS connections that are not allowed during or after a Terminal recovery

    I can see this error on primary DB filev alerts log

    I can open my database in waiting.

    The two Oracle: 10.2.0.4
    The two platform: RHEL 4.7

    Please suggest me for this, help is appreciated

    Published by: user1687821 on July 12, 2010 08:37

    user1687821,

    After the use of the clause to FINISH, you MUST open the standby database as PRIMARY.

    Finishing clause must be used while you're perparing to failover to your database pending.

    Which is clearly given by the error message; you did a cover of Terminal:

     ORA-16143: RFS connections not allowed during or after terminal recovery 
    

    unless you have a pending restore point until you execute the clause of finishing, you will need rebuild your watch or use it as the primary database.

    See you soon.

  • Oracle - Incomplete recovery

    Dear,

    Database running in a - mode Archive

    I have a table that contains 2 million records at the time (07:00) and the inserted rows of 1 million Swiss francs to (07:02) and committed my only.
    Now, I took a backup hot all the time base (07:02).
    and by 07:05 I have deleted 1 record million and pledged my transaction.

    Now I need my all 3 million rear lines, then thought to perform a
    time based incomplete recovery.

    Here are the steps I've done...

    (1) I stop the database.
    (2) copied all the hot of all data files backup and restored to its original location.
    (3) has started the instance and mounted.
    3) issued the command of recovery
    > recover database until time '2010-08-27 07:02.

    Now I get the below error.

    ORA-01547: WARNING: RECOVER succeeded but OPEN RESETLOGS would get below error
    ORA-01195: online backup of file 1 needs a recovery more match
    ORA-01110: data file 1: ' D:\ORACLE\PRODUCT\10.2.0\ORADATA\FIRSTDB\SYSTEM01. DBF'

    What is the missing step here / what am doing wrong here?

    is not that if data that are needed to make the comparable database is in the log file during recovery and not not been archived?

    Yes. When you are prompted for the ArchiveLog, provide the name of the Redo Log file.

    Note that an incomplete recovery requires an OPEN RESETLOGS and your online redo logs will be overwritten. So, once you issue an OPEN RESETLOGS, you you not a second chance to RECOVER the database. So, I recommend that you stop the instance and take cold backups online Redo Logs.

    Hemant K Collette

    Published by: Hemant K grapple on August 27, 2010 11:45

  • Validate the XML: DateTime-> ORA-01830 / 01858

    Hello

    I'm trying to parse an XML document that contains an element which is defined as DateTime
    <CreDtTm>2012-06-02T09:30:47.000Z</CreDtTm>
    The xsd is as follows
    <xs:element name="CreDtTm" type="ISODateTime"/>
    ...
    <xs:simpleType name="ISODateTime">
      <xs:restriction base="xs:dateTime"/>
    </xs:simpleType>
    For me the format looks OK, but I get
    ORA-01830: date format picture ends before converting entire input string
    I found http://stackoverflow.com/questions/6370035/why-dbms-xmlschema-fails-to-validate-a-valid-xsdatetime/6382096#6382096
    and changed the schema:
    <xs:simpleType name="ISODateTime" xdb:SQLType="TIMESTAMP WITH TIME ZONE">
    Now, I get
    ORA-01858: a non-numeric character was found where a numeric was expected
    So I tried
    ALTER SESSION SET NLS_TIMESTAMP_TZ_FORMAT='yyyy-mm-dd"T"hh24:mi:ss.ff3"Z"';
    and tested
    select systimestamp from dual;
    
    SYSTIMESTAMP
    ----------------------------------------
    2012-07-27T10:52:05.860Z
    The exact format, but still ORA-01858.

    Validation is performed with
    DECLARE
      xmldoc XMLTYPE;
    DECLARE
      xmldoc XMLTYPE;
    BEGIN
        xmldoc := XMLTYPE(q'[<?xml version="1.0" encoding="UTF-8"?>
          ...
          <CreDtTm>2012-06-02T09:30:47.000Z</CreDtTm>
          ...]');
        xmldoc := xmldoc.createSchemaBasedXML('http://...xsd');
        XMLTYPE.schemaValidate(xmldoc);
    END;
    Anyone know where I am going wrong?
    select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for HPUX: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Concerning
    Marcus

    Published by: Marwim on 27.07.2012 11:45
    Addition of the db version

    Hi Marcus,

    This one is interesting.
    I had already implemented my own example shortly before posting your own, then here's something that works for me:

    BEGIN
    
      dbms_xmlschema.registerSchema(
        schemaURL => 'test_ts.xsd'
      , schemaDoc => 
    
      '
    
      
      
        
      
    '
    
      , local => true
      , genTypes => false
      , genTables => false
      , enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
      );
    
    END;
    /
    
    SQL> DECLARE
      2    doc xmltype := xmltype('2012-06-02T09:30:47.000Z', 'test_ts.xsd');
      3  BEGIN
      4    doc.schemaValidate();
      5  END;
      6  /
    DECLARE
    *
    ERROR at line 1:
    ORA-30992: error occurred at Xpath /CreDtTm[@SYS_XDBBODY$]
    ORA-01858: a non-numeric character was found where a numeric was expected
    ORA-06512: at "SYS.XMLTYPE", line 354
    ORA-06512: at line 4
    

    OK, same error so far.

    SQL> REM : change from ", " to ".,"
    SQL> ALTER SESSION SET nls_numeric_characters = '.,';
    
    Session altered.
    
    SQL> DECLARE
      2    doc xmltype := xmltype('2012-06-02T09:30:47.000Z', 'test_ts.xsd');
      3  BEGIN
      4    doc.schemaValidate();
      5  END;
      6  /
    
    PL/SQL procedure successfully completed.
    

    Now it's working.

    I know that there is an implicit conversion happening in addition to automatic mapping "dateTime"--> 'TIMESTAMP WITH time ZONE'.
    Documentation, although not very clear, seems to hint in that direction:

    With the help of Z back to indicate the time zone UTC

    XML Schema allows the time zone specified under Z, component to indicate the UTC time zone. When a leaking Z value is stored in a SQL TIMESTAMP WITH time ZONE TIMES column, the time zone is actually stored as + 00:00. Thus, the value retrieved contains the leak + 00:00, not the original Z. For example, if the value in the input XML document is 1973-02-12 T 13: 44:32Z, the output is 1973-02 - 12 T 13: 44:32.000000 + 00:00.

    So I think that Oracle is attempting to expand "2012-06 - 02T 09: 30:47.000Z" at "2012-06 - 02 T 09: + 00:00 30:47.000000"but relying on the NLS configuration session to determine the decimal separator used in the fractional part of timestamp.»

  • Error ORA-01830 drives me crazy

    I've not found anything relevant online to my question so I'll try here. To set this up, I'm still in the learning I'll phase of Oralce, so be gentle please.

    I run this query:

    Update fascor_load
    Set order_status_id = 18
    where load_date < to_date('06-APR-01','DD-MON-YY');.

    He has in turn triggers:

    create or replace
    relaxation Fascor_Load_BUR
    before the update on Fascor_Load
    for each line

    declare
    closed whole;
    Date of Current_Date_Time;

    Start
    Select order_status_id from firm order_status where description = "CLOSED";
    Select to_char (sysdate,' HH24 LUN-JJ-AA "") in the double Current_Date_Time;

    If: old. Order_Status_ID <>: new. Order_Status_ID and
    : new. Order_Status_ID = closed and
    : new. Load_Completion_Date is null then

    -Insert Current Date/time in the field of Load_Completion_Date
    : new. Load_Completion_Date: = Current_Date_Time;
    end if;
    end;


    When you run the query, I get:


    ************************************************************
    Error from the 1 in the command line:
    Update fascor_load
    Set order_status_id = 18
    where load_date < to_date('06-APR-01','DD-MON-YY')
    Error report:
    SQL error: ORA-01830: date format picture ends before converting all of the input string
    ORA-06512: at "EIS_EMERY. FASCOR_LOAD_BUR', line 7
    ORA-04088: error during execution of trigger ' EIS_EMERY. FASCOR_LOAD_BUR'
    01830 00000 - "date format picture ends before converting all of the input string.
    * Cause:
    * Action:
    *************************************************************

    Someone has ideas on what exactly the cause this problem? I thought that perhaps that is the data type of Load_Completion_Date, which is of type 'Date', so I dropped the column and then tried to add it again but this time by putting a mask on it, but it would not get in shape the type date when adding the column.

    I'm lost on this and it seems to simple.

    927300 wrote:
    For me, the result is:

    18 APRIL 12

    Select TO_CHAR (sysdate,'YYYY-MM-DD HH24:MI:SS) twice;

    do high instead
    It is strictly a matter of presentation of data; also known as the formatting!

  • incomplete recovery until error

    I want to perform incomplete recovery with RMAN using up to that time, I performed the following tasks

    stop immediately;
    bootable media;
    ALTER session set nls_date_format ='YYYY-MM - DD:HH24:MI:SS';

    RMAN target sys/sys@alvis

    Run {}
    until the time ='2011 - 02 - 10:15:25:00';
    restore the database;
    recover the database;
    ALTER database open resetlogs;
    }


    but it shows the following error

    RMAN-03002: failure of the command set to 10/02/2011 16:41:31
    ORA-01861: literal does not match the format string


    Wat could be the problem?


    Thanks in advance

    You set your NLS_DATE_FORMAT in a database session, however, your RMAN connection is for another session.

    Try setting NLS_DATE_FORMAT as an environment variable in your OS BEFORE connecting to RMAN command-line.

    Something like:

    C:\>SET NLS_DATE_FORMAT=YYYY-MM-DD:HH24:MI:SS
    C:\>RMAN sys/sys@alvis
    

    or

    $ NLS_DATE_FORMAT=YYYY-MM-DD:HH24:MI:SS
    $ export NLS_DATE_FORMAT
    $ RMAN sys/sys@alvis
    
  • BlackBerry smartphone Error Message "an error has occurred during an attempt to access a file on the computer"

    I get this error message when I try to sync my contacts from my outlook on my device:

    "An error occurred during an attempt to access a file on the computer"

    I use the new desktop version 7.0.0.43

    Any ideas?

    No problem at all.  I appreciate your help.  I finally solved the problem in parade the following:

    Via the Command line, run the following:

    Reg delete "HKCU\SOFTWARE\Classes\CLSID\" /f {B54F3741-5B07-11CF-A4B0-00AA004A55E8}

    Then, run the following via CMD line:

    c:\Windows\system32\regsvr32 vbscript.dll

    Uninstall worked after that and I reinstalled it the version you suggested.

  • I get error 0 x 80070585 during the attempted download or update my apps

    I get error 0 x 80070585 during the attempted download or update my apps

    What should I do?

    HI ramin251,

    Thanks for asking this question to Microsoft Community.
    I will definitely help you with this.

    When your getting the exact messages downloading or error before?

    Follow the steps below.
    Method 1:

    Run the Windows update utility for troubleshooting. Provide links measures.

    Problems with installing updates

    http://Windows.Microsoft.com/is-is/Windows-8/troubleshoot-problems-installing-updates

    Method 2:

    Synchronize the App license:

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Method 3:

    Resolution of the problems of the app.

    Let us know if you need more assistance. We will be happy to help you.

  • Hello! I work with the Director 12, Windows 7. A fatal error occurred during my attempt to chance the script police. Now this fatal error occurred whenever I start the Director. I shut down the system and tried again, even failure. What can I do?

    Hello!

    I work with the Director 12, Windows 7. A fatal error occurred during my attempt to chance the script police. Now this fatal error occurred whenever I start the Director. I shut down the system and tried again, even failure.

    What can I do?

    Save the relevant keys, then search your registry at HKCU\Software\Adobe\Director\12\Script

    If this does not help, save the entire branch and try to delete it

  • I get an error occurred during the attempt to access the service

    I get. An error occurred during the attempt to access the service

    Hey Joe,

    Please update your Adobe Acrobat Reader CD player.

    You can also use export PDF files web service: https://cloud.acrobat.com/exportpdf

    Kind regards

    Rahul

  • I am trying to convert a pdf to Word and continue to receive an error message "year error occurred during the attempt to access the service.  Any suggestions?

    I am trying to convert a pdf to Word and continue to receive an error message "year error occurred during the attempt to access the service.  Any suggestions?

    Hey lee,

    Are you still facing this problem?

    Have you tried accessing the service by using the browser: http://cloud.acrobat.com/exportpdf

    Kind regards
    Rahul

  • ORA-01830: date format

    Hi all

    in 10.2.0.3

    I have run the following query:

    Select completion_time from V$ BACKUP_DATAFILE where creation_time < sysdate-10;

    12/06/2013-12:39:34

    12/06/2013-12:35:20

    But when executing:

    Select file # completion_time, blocks, block_size in V$ BACKUP_DATAFILE where completion_time > (select to_char (sysdate - 6/24, ' DD/MM/YY HH24:mi:ss') of double)

    I have:

    ORA-01830: date format picture ends before converting all of the input string

    Thanks for help.

    > where completion_time > (select to_char (sysdate - 6/24, ' DD/MM/YY HH24:mi:ss') of double)

    Why you convert sysdate to a string? (and why are you selecting in double?)

    Your first example he was entitled.

    Did you mean this: where completion_time > sysdate - 6/24;

  • vCenter on Windows Server 2008 cannot open VM´s. unable to connect to the MKS console: Timeout during an attempt to read

    I have setup a new vCenter to replace the old (new on MS server 2008, an old man on MS server 2003), but after registering the VM´s, I am not able to connect to them with the console. Error message: unable to connect to the MKS: Timeout during an attempt to read

    If I connect directly to the host ESX 4 it works fine.

    Is that what someone has any ideas, how to solve this problem? I have already tried:

    -Added the new vCenter address and IP to the/etc/hosts

    -restart the ESX servers

    -Re-installed VMware tools to the new vCenter

    None of the above has helped, and I start to desperate... Anyone have an idea?

    If you use vcenter to manage your servers from another computer. You should try to disable the windows firewall on the vcenter computer that manages the esx server. He worked for another problem in the past. Windows firewall started blocking applications of mks someday and we don't know why. Allowing exceptions in windows firewall did not work if the firewall has been turned off completely and then it worked.

    (Please allow points)

  • incomplete recovery of a data file.

    I'm performing incomplete recovery of a data file that uses the following scenario.
    SQL > select * v log$;
    shows current journal seq is 10;

    I perform dml as follows:
    SQL > update hr.emp set salary = 1000;
    SQL > commit;

    Now, I've deleted log archiving with sequence # 9 alongwith users.dbf datafile.
    Now to perform an incomplete recovery of the datafile, users.dbf. I followed the following steps.
    RMAN > the judgment;
    RMAN > bootable media.
    RMAN > run
    {
    until the sequence 9;
    restore data file 4;
    recover datafile 4;
    }
    RMAN > alter database open;
    Now, when I ask about hr. EMP, it shows the updated lines, i.e., salary column has been updated with 1000;
    I want to know that after the incomplete rcovrry until the seq, what other newspapers is applied. My example shows that this newspaper seq 10 has also been applied. Pls help me to improve my understanding.
    I can't understand the reason to get updated when the incomplete recovery lines.

    Hello.

    You cannot perform incomplete recovery of a single data file. After recovery, before opening the database, all SNA must be synchronized between controlfiles, redo logs and data files. A single data file must be restored and recovered to the last SCN for the database to open. If you want / need to do incomplete recovery, always restore ALL data files, recover their until the desired point in time and then open the database with resetlogs synchronize all data with controlfiles and redo logs files.

    In your case, you have made a complete recovery of the data file. Very probably data repeat still available in the online redo logs were used to recover the data at the last CSS file (since you said that you have removed the archiving log - which, incidentally, makes your online backup no need for a full recovery, after the redo logs switch line and crushes with sequence #9 redo log and beyond).

    When experimented with incomplete recovery, until the RCS or at least up to the time, it allows you to specify the point in time recovery with much more accurately and without guessing, what happened in whatever sequence of journal. You must manually remove the files of data or archivelog files before playing with incomplete/complete recovery. In fact, it is a good practice not to delete the database of linked files: o)

    Kind regards
    Martin

Maybe you are looking for

  • Missing command key

    Hello I have a brand new iPad 2 Pro.  I can't find a key on my keyboard, however. Instead, I have an emoji key where the control key should be. I checked my settings, and the keyboard is set to the standard version with the off emoticons. Is it possi

  • Cannot connect to itunes store

    When I open Itunes Store, appears an Itunes U link, open it, and this message "cannot connect to itunes store. I don't know how to solve this problem, I want to watch movies and I can't. It is not connecting to wifi, it only is not that I don't sign,

  • 15 - ac179TX: audio driver

    Dear Sir. When I plug the headphones still portable speaker play, so I want to uninstall audio driver. After that I uninstalled the driver how can I recover

  • Can't find Win7 64 bit drivers for Satellite S50 - 10 p

    Hey, there don't seem to be drivers for this laptop for windows 7... just windows 8 I managed to install most of them anyway using this page: http://support.toshiba.com/drivers and selecting windows 7 64 bit it and install missing drivers (hopefully,

  • Android Stock S90A user interface

    Hello everyone, I have seen that in the mid-2015 people have spend Vibe UI Android L UI. I have my developer options unlocked, but I can't find "Switch system UI" option in the menu. I know that it was an "experimental" feature Yet, I would use my St