ORA-01847: day of the month must be between 1 and the last day of the month

Hi all






Select
To_date(mDate||) e '|| mtime, "YYYY-MM-DD HH24MISS") meddate
of PR_MOCTEST_TEMP

mDate IS OF TYPE of DATA VARCHAR2 AND mtime OF VARCHAR2

mDate: 07-09-2009
mtime: 131241

mDate IS IN FORMAT DD-MONTH-YYYY
mtime: HHMMS

mtimeOF IS OF TYPE of DATA VARCHAR2 AND VARCHAR2 mDate

mDate: 07-09-2009
mTIME: 131241

mDATE IS IN FORMAT DD-MONTH-YYYY
mTIME: HHMMS

I NEED TO COMBINE THE 2 COLUMNS TO GET THE OUTPUT AS DD-MM-YYYY HH24MISS
AND I AM GETTING THE ERROR;


ORA-01847: day of the month must be between 1 and the last day of the month

where mistaken?

Please notify


Kai

You will find the bad dates using a table of logging of errors:

--we'll try to insert into here, invalid dates will be thrown out
create table dst(d date);

-- create an error log table dst_err
exec dbms_errlog.create_error_log('dst', 'dst_err');

-- try the insert. Will fail with your ORA-01847
insert into dst select TO_DATE(mdate||' '||mtime,'DD-MM-YYYY HH24MISS') from PR_MOCTEST_TEMP log errors into dst_err('comment'); 

-- view the errors
select * from dst_err;

Tags: Database

Similar Questions

  • Help on the ORA-01841: (full) year must be between-4713 and 9999 and not

    While in the console f? p = 4050 connected in internal/admin in Home-> manage workspaces-> manage developers and users
    Download "ORA-01841: (full) year must be between-4713 and 9999 and not 0" when you try to change a user.
    Unable to reset the password or modify an admin user.
    This just started 2 weeks ago.


    Using Application Express 4.0.2.00.06.

    Someone has seen this.

    I heard of a problem due to a problem with the PASSWORD_LIFE_TIME. Worth giving a try:

    Solution
    The apex_admin app, navigate to home > Service Management > security then enter integer values for:

    -Lifetime account password (days) - enter 11688, for example
    -Apply the changes.

  • Error: ORA-01841: (full) year must be between-4713 and 9999 and not 0

    Hi - I get error ORA-01841 ((full) year must be between-4713 and 9999 and not 0) because of the following line in my where clause:

    AND p_run_date < ((add_months (ip. insured_plan_termination_date,,13) nvl), to_date (31-DEC-9999. ' ' DD-MON-YYYY '))

    I look and what I read speaks not to compare the strings that contain dates, but that is not the case here.   p_run_date is without a doubt a date.  I've hardcoded even on a specific date, and I still get the error.

    Any help is greatly appreciated.

    Thank you

    Christine

    Hi, Christine.

    What is insured_plan_termination_date when you get the error?  If it's December, 9998 or later version, you cannot add 13 months, which would put the year beyond 9999, everything as the error message said.

    You said p_run_date is without a doubt one DATE, but what about insured_plan_termination_date?

    It would really help if you could post a test script complete (including CREATE TABLE and INSERT and your complete query instructions) so that people can recreate the problem and test their ideas.

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

  • error when reading flat file of external table... "ORA-01849: time must be between 1 and 12"

    My question is - is it possible for me to fix this error at the level of external table definition? Please advice

    Here is the data file I am trying to download...

    KSEA | 08-10 - 2015-17.00.00 | 83.000000 | 32.000000 | 5.800000

    KBFI | 2015-08-06 - 15.00.00 | 78.000000 | 35.000000 | 0.000000

    KSEA | 08-10 - 2015-11.00.00 | 73.000000 | 55.000000 | 5.800000

    KSEA | 08-08 - 2015-05.00.00 | 61.000000 | 90.000000 | 5.800000

    KBFI | 2015-08-06 - 16.00.00 | 78.000000 | 36.000000 | 5.800000

    KSEA | 2015-08-07 - 18.00.00 | 82.000000 | 31.000000 | 10.400000

    KSEA | 08-10 - 2015-00.00.00 | 65.000000 | 61.000000 | 4.600000

    KBFI | 08-08 - 2015-07.00.00 | 63.000000 | 84.000000 | 4.600000

    KSEA | 08-10 - 2015-15.00.00 | 81.000000 | 34.000000 | 8.100000

    This is the external table script

    CREATE TABLE MWATCH. MWATCH. WEATHER_EXT ".

    (

    LOCATION_SAN VARCHAR2 (120 BYTE),

    DATE OF WEATHER_DATETIME,

    NUMBER (16) TEMP.

    NUMBER (16) OF MOISTURE,

    WIND_SPEED NUMBER (16)

    )

    EXTERNAL ORGANIZATION

    (TYPE ORACLE_LOADER

    THE DEFAULT DIRECTORY METERWATCH

    ACCESS SETTINGS

    (records delimited by newline

    BadFile "METERWATCH": "weather_bad" logfile 'METERWATCH': 'weather_log '.

    fields ended by ' |' missing field values are null

    (location_san, WEATHER_DATETIME char date_format DATE mask "YYYY-mm-dd - hh.mi.ss", TEMPERATURE, MOISTURE, wind_speed)

    )

    LOCATION (METERWATCH: 'weather.dat')

    )

    REJECT LIMIT UNLIMITED

    PARALLEL (DEGREE 5 1 INSTANCES)

    NOMONITORING;

    Here is the error in the weather_bad which is generated files...

    column WEATHER_DATETIME of 55 error processing in the 1st row to the /export/home/camsdocd/meterwatch/weather.dat data file
    ORA - 01849ther_log.log 55 56 error processing column WEATHER_DATETIME in the row 1 for the /export/home/camsdocd/meterwatch/weather.dat data file
    5756 ORA - 01849ther_log.log: time must be between 1 and 12
    58column WEATHER_DATETIME 57 error during treatment number 2 for the /export/home/camsdocd/meterwatch/weather.dat data file
    59ORA-58 01849: time must be between 1 and 12
    60column WEATHER_DATETIME of 59 error processing 5th for the /export/home/camsdocd/meterwatch/weather.dat data file
    61ORA-60 01849: time must be between 1 and 12
    62column WEATHER_DATETIME of 61 error treatment in line 6 to the /export/home/camsdocd/meterwatch/weather.dat data file
    63ORA-62 01849: time must be between 1 and 12
    64column WEATHER_DATETIME of 63 error treatment in row 7 for datafile /export/home/camsdocd/meterwatch/weather.dat
    65ORA-64 01849: time must be between 1 and 12
    66column WEATHER_DATETIME of 65 error treatment 9 for the /export/home/camsdocd/meterwatch/weather.dat data file online
    67: time must be between 1 and 12

    My question is - is it possible for me to fix this error at the level of external table definition? Please advice

    Yes it is possible.  Let's not your date mask.  You're masking for 12-hour format when your data is in 24-hour format.  Change the mask of your date to be "YYYY-mm-dd-hh24. MI.ss ".  Notice the change in "BOLD".

  • ORA-01841: (full) year must be between-4713 and 9999 and not 0

    I get the error when I run the following. ORA-01841: (full) year must be between-4713 and 9999 and not 0

    Fiscal_Year = 2011

    When I run the query.

    Select * from gl
    where gl_date > = to_date ('01 - SEP-|) FISCAL_YEAR-1 "," MON-DD-YYYY")
    AND gl_date < = to_date (31 - AUG-|) FISCAL_YEAR', 'DD-MON-YYYY')

    Gl_date is of date data type

    Published by: 893185 on April 6, 2012 11:04

    Published by: 893185 on April 6, 2012 11:04

    893185 wrote:
    It gives invalid number

    The operators | and - have the same priority level, if

    SELECT *
    FROM   gl
    WHERE  gl_date >= TO_DATE ( '01-SEP-' || (fiscal_year - 1), 'DD-MON-YYYY')
           AND gl_date <= TO_DATE ( '31-AUG-' || fiscal_year, 'DD-MON-YYYY');
    

    Concerning
    Peter

  • ORA-01850: time must be between 0 and 23

    Hi techies,.

    We have created a procedure for our daily report.its works well for both location.when we run to a location, we end up with this error.our current NLS_DATE_FORMAT is HH24:MI:SS.but its run successfully when we value nls_date_format = .attendu 'DD-MON-YY' other two (which is the same except for one table where it retrieve data via dblink) is to run correctly with NLS_DATE_FORMAT HH24 : MI: SS.


    ORA-01850: time must be between 0 and 23
    ORA-02063: preceding the line of DW_TO_DIRC. NACALOGISTICS.COM
    ORA-06512: at "OTSLGWEB. DAILY_JOB_PROFIT_REPORT_USA", line 89
    ORA-06512: at line 1

    Sameer_appsdba wrote:
    3. can we add ' alter session set NLS_DATE_FORMAT = 'DD-MON-YY' inside the procedure?

    Yes

    SQL> ed
    Wrote file afiedt.buf
    
      1  create or replace procedure p1_nls as
      2  dt date;
      3  begin
      4  execute immediate('alter session set nls_date_format = ''DD-MON-YYYY''');
      5  select sysdate into dt from dual;
      6  dbms_output.put_line(dt);
      7* end;
    SQL> /
    
    Procedure created.
    
    SQL> alter session set nls_date_format = 'DD-MM-YYYY';
    
    Session altered.
    
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    21-07-2011
    
    SQL> set serveroutput on
    SQL> begin
      2  p1_nls();
      3  end;
      4  /
    21-JUL-2011
    
    PL/SQL procedure successfully completed.
    
  • ORA-01849: time must be between 1 and 12

    Hi all



    SELECT SYSDATE FROM DUAL;

    Returns

    MAY 11, 2011 17:33



    SELECT * FROM stables of TIMESTAMP TO_TIMESTAMP (May 11, 2011 14:30 '); Returns

    ORA-01849: time must be between 1 and 12

    Any idea?


    Kai

    Hi, Kai,

    KaiS wrote:
    Hi all

    SELECT SYSDATE FROM DUAL;

    Returns

    MAY 11, 2011 17:33

    SELECT * FROM stables of TIMESTAMP TO_TIMESTAMP (May 11, 2011 14:30 '); Returns

    ORA-01849: time must be between 1 and 12

    Always pass arguments (at least) 2 to TO_TIMESTAMP, like this:

    TO_TIMESTAMP ( '11-MAY-2011 14:30:00'
              , 'DD-MON-YYYY HH24:MI:SS;
              )
    

    The second argument tells TO_TIMESTAMP what format you use. If you don't pass it, then TO_TIMESTAMP will use a default format, which may not be what you want or expect.

  • the year must be between-4713 and 9999... wellllll... it is!

    I'm using SQL * Loader in Oracle 11.2.0.1. I am really puzzled why some files (of thousands) in my. Produce CSV files:

    Sheet 5: Rejected - error on the table IMPORT_PLAYERS, BIRTHDATE column.
    ORA-01841: (full) year must be between-4713 and 9999 and not 0

    Accounts really made the impression that they are the same as all the rest.

    The controlfile is quite simple:

    load data
    INFILE ' / tmp/test/test.csv'
    in the import_players table
    fields ended by ',' optionally surrounded "" "
    TRAILING NULLCOLS
    (player_id, tank,
    char name,
    last_name char,
    tank position,
    whole first_season
    whole last_season
    whole h_feet
    h_inches float,
    integer weight,
    college tank,
    Date of birth DATE "YYYY-MM-DD HH24:MI:SS")

    Here is a sample of the. CSV, which has two records of 'bad' - I have bolded the records that cause problems:

    BAILETO01, Toby Bailey, G, 1998, 1999, 6, 6, 213, University of California - Los Angeles, 1975-11-19 00:00:00
    Jimmie Baker, BAKERJI01, F, 1975, 1975, 6, 9, 220, University of Hawaii, 1953-12-25 00:00:00
    BAKERMA01, Mark, Baker, G, 1998, 1998, 6, 1, 175, Ohio State University, 1969-11-11 00:00:00
    BAKERNO01, Norm, Baker, g., 1946, 1946, 6, 0, 180, 1923-02-17 00:00:00
    * BAKERVI01, wine, Baker, F, 1993, 2005, 6, 10.5, 232, University of Hartford, 1971-11-23 00:00:00 *.
    BAKERMA02, Maurice, Baker, g., 2004, 2004, 6, 1, 175, Oklahoma State University, 1979-07-28 00:00:00
    BalkmRe01 Renaldo Balkman, F, 2006, 2009, 6, 8, 208, University of North Carolina, 1984-07-14 00:00:00
    BALLCE01, Cedric, ball, F, 1990, 1990, 6, 8, 210, University of North Carolina at Charlotte, 1968-04-16 00:00:00
    BALLAGR01, Greg, Ballard, F, 1977, 1988, 6, 7, 215, University of Oregon, 1955-01-29 00:00:00
    BELLRA01, Bell, Raja, g., 2000, 2009, 6, 5, 215, Florida International University, 1976-09-19 00:00:00
    BELLWI01, William, Bell, G, 1959, 1960, 6, 0, 180, North Carolina State University, 1932-09-13 00:00:00
    * BELLAWA01, Walt, Bellamy, c., 1961, 1974, 6, 10.5, 225, Indiana University, 1939-07-24 00:00:00 *.
    IRV, Bemoras, BEMORIR01, f., 1953, 1956, 3, 6, 185, University of Illinois, 1930-11-18 00:00:00
    BENBOLE01, Leon, Benbow G, 1974, 1975, 6, 4, 185, Jacksonville University, 1950-07-23 00:00:00

    I don't really see what's the difference between these and other documents. DATE formats look good and adjust the format of the image that I gave. No special characters - I even copy and paste these files into a new file and I still have this strange error.

    Tried to change the format of DD-MM-RRRR, but it made no difference.

    The DDL table is:

    create table import_players)
    player_id varchar2 (15).
    first name varchar2 (30),
    VARCHAR2 (30) last_name,.
    position tank (1),
    whole first_season
    whole last_season
    whole h_feet
    h_inches float,
    integer weight,
    College varchar2 (50).
    Date of birth
    );

    I'm sure it's something very obvious but... I hit my head for a while now and can't see the problem. Any ideas?

    Hello raindog.
    By specifying the data type of the float in the file control prevents the decimal is interpreted correctly. By removing the data type and therefore have SQL * Loader present Oracle a string instead of a float, Oracle will then force a data conversion and data will load. I would like a little further to determine how to use the type of data in the control file so that Oracle is provided the already converted value research.

    Hope this helps,
    Luke

  • How to capture the ORA-01850 hour must be between 0 and 23

    Hello

    The date picker to manually enter any value in the TextField.  Well, if a user between 24:00 for the time, the application will fail. I want to handle the error.  I have an entry of validation, but of course the to_date conversion fails with the above, EXTRACT function also fails... ideas?

    Thank you

    Efren

    Well, can't do you this validation instead of making to_date?

    substr (Trim(:P1_HOURS), 1, 2) > = 0 AND substr (TRIM(:P1_HOURS), 1, 2)<>

  • FRM-30187: size of the column of type CHAR in the record group must be between 1 and 2000.

    Hi, forms 6i, db 10g

    I created a lov based on this query

    select * from items_qty_vu -- database view
    

    and the view code is

    CREATE OR REPLACE FORCE VIEW items_qty_vu (serial, item_id, expiry_date, qty)
    AS
       WITH item_units_plus AS
            (SELECT item_id, unit_id, factor,
                    LEAD (factor, 1, 1e99) OVER (PARTITION BY item_id ORDER BY factor)
                                                                   AS next_factor,
                    ROW_NUMBER () OVER (PARTITION BY item_id ORDER BY factor DESC)
                                                                           AS rnk
               FROM item_units)
       SELECT     ID.serial, ID.item_id, ID.expiry_date,
                  SUBSTR
                     (SYS_CONNECT_BY_PATH (   TRUNC (  MOD ((  ID.qty
                                                             - ID.qty_allocated
                                                            ),
                                                            iup.next_factor
                                                           )
                                                     / iup.factor
                                                    )
                                           || ' '
                                           || u.unit_name,
                                           ', '
                                          ),
                      3
                     ) AS qty
             FROM item_detail ID JOIN items i ON i.item_id = ID.item_id
                  JOIN item_units_plus iup ON iup.item_id = ID.item_id
                  JOIN units u ON u.unit_code = iup.unit_id
            WHERE CONNECT_BY_ISLEAF = 1
       START WITH iup.rnk = 1
       CONNECT BY iup.rnk = PRIOR iup.rnk + 1 AND ID.serial = PRIOR ID.serial
         ORDER BY ID.serial;
    
    

    When I compile the form, I face the error FRM-30187,

    If I replace my query "select * from items_qty_view" with "select item_id, serial, expiry_date of items_qty_vu", it compiles successfully.

    As salamualikum, Salem,.

    You must follow my instructions carefully.

    1. Select the record group.

    2. go in the record group property

    3. Select and open the column specifications

    4. highlight the column and check the decrease of the length, the bellows of the size that you cross more than 2000 then 2000.

    Compilation of now and you're done.

    Wow. you did.

    Hamid

  • ORA-01841 year must fall between-4713 and 9999

    Hello

    I try to make simple plsql function and I get this error.

    create or replace function biorytmy (d_urodzenia varchar)

    Return number

    is

    number of v_ile_dni;

    BEGIN

    Select to_number (sysdate - (to_date ('d_urodzenia', ' yyyy/mm/dd'))) in the double v_ile_dni;

    Return v_ile_dni;

    END;

    /

    Any suggestions?

    Paul

    Hello

    2877737 wrote:

    Thx for ansers, then how I can insert the number of days variable and use it as number later?

    Paul

    Have you seen answer #2 above?

    If you want that the function always returns an integer, use TRUNC (SYSDATE) instead of SYSDATE.

    You can use a function like this in an INSERT statement.  If you have trouble, after the INSERT statement.

  • There is a problem, I met when I was used to import 'date' datatype sqlldr: ORA-01841: (full) year must be between-4713 and 9999 and not 0

    control the file as follows:

    load data

    INFILE *.

    insert into table test1

    Fields ended by ',' optionally surrounded "" "

    (id, time_date ' to_date (: time_date, "YYYY-MM-DD HH24:MI:SS)")

    begindata

    "1," 2007-07-18 00:00:00.

    2, "2017-07-18 00:00:00"

    the structure of the table:

    create table test1 (int id, date time_date);

    I'm waiting for your ansers!

    Hello

    seems to be a problem with your file, check on Notepad, the value of the column was enclosed in double quote not 2 times the apostrophe...

    load data

    INFILE *.

    insert into table test1

    Fields ended by ',' optionally surrounded "" "

    (id, time_date ' to_date (: time_date, "YYYY-MM-DD HH24:MI:SS)")

    begindata

    1, "2007-07-18 00:00:00.

    2, "2017-07-18 00:00:00.

    HTH

  • What is the difference between varcha2 and nvarchar2

    Hi Experts,

    Could someone please describe the difference between the varcahr2 and the nvarchr2.is it important difference to store the data of nvarchar2 column, I am trying to load data from a flat file to column navarchar2 I get error like this

    ORA-01861: literal does not match the format string

    Thanks in advance...

    Kind regards
    Surya

    Surya says:
    I description table like:

    SQL > desc emp
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    EMPNAME NVARCHAR2 (50)
    JOINDATE DATE
    NUMBER OF SAL

    When I try to insert date below values as:

    INSERT INTO EMP (JOINDATE) VALUES (TO_DATE (' 2011-03-09 00:00:00 "," DD/MM/YYYY HH12:MM:SS'));))

    error is:

    ERROR on line 1:
    ORA-01810: put the code appears twice

    And this has to do with varchar2, nvarchar2 Vs?
    Anyway, your date format mask is incorrect. To convert the minutes, MI should be used and not MM.
    In addition, if you try to convert from 00:00:00 to 12-hour format, it will trigger ORA-01849 time must be between 1 and 12 error.
    check if TO_DATE (' 2011-03-09 00:00:00 "," YYYY/MM/DD HH24:MI:SS') meets your needs.

  • ORA-02256: number of referencing columns must match the referenced column

    The following script produces

    ORA-02256: number of referencing columns must match the referenced columns, can't think of any reason, someone has an idea?

    Please help, I am stuck on an assignment...!

    Capture.PNG

    drop table qualitycheck;

    drop table distribution;

    Manager to move table;

    CREATE THE TABLE MANAGER)

    MgrID number (4),

    mfirstname varchar2 (30),

    msurname varchar2 (30),

    Primary key (mgrid)

    );

    CREATE DISTRIBUTION TABLE)

    ProdID number (4) CONSTRAINT NN_PRODUCT_prodid NOT NULL,

    MgrID number (4) CONSTRAINT NN_MANAGER_mgrid NOT NULL,

    Primary key (prodid, mgrid)

    CONSTRAINT FK_ALLOCATION_MANAGER_mgrid Foreign Key (mgrid) REFERENCE MANAGER,

    CONSTRAINT FK_ALLOCATION_PRODUCT_prodid Foreign Key (prodid) REFERENCES PRODUCED

    );

    CREATE TABLE QUALITYCHECK)

    ProdID number (4) CONSTRAINT NN_ALLOCATION_prodid NOT NULL,

    MgrID number (4) CONSTRAINT NN_ALLOCATION_mgrid NOT NULL,

    number of weekno (2),

    Partition number (1),

    Primary key (prodid, mgrid, weekno)

    CONSTRAINT FK_QUALITYCHECK_PRODUCT_prodid Foreign Key (prodid) ATTRIBUTION of REFERENCES,

    CONSTRAINT FK_QUALITYCHECK_MANAGER_mgrid Foreign Key (mgrid) ASSIGNMENT of REFERENCES

    );

    Hello

    Reason is the primary key of the table that is assigned prodid, mgrid, but you try to create the foreign key columns separately.

    Try which follows and this should work:

    CREATE TABLE QUALITYCHECK (
      prodid number (4) CONSTRAINT NN_ALLOCATION_prodid NOT NULL,
      mgrid number (4) CONSTRAINT NN_ALLOCATION_mgrid NOT NULL,
      weekno number (2),
      score number (1),
    
    Primary Key (prodid,mgrid,weekno),
    
    CONSTRAINT FK_QUALITYCHECK_PRODUCT_FK Foreign Key (prodid, mgrid) REFERENCES ALLOCATION
    );
    
  • ORA-19846: cannot read the header of the data file of the remote site 21

    Hello

    I have a situation or I can say a scenario. It is purely for testing base. Database is on 12.1.0.1 on a Linux box using ASM (OMF).

    Standby is created on another machine with the same platform and who also uses ASM (OMF) and is in phase with the primary. Now, suppose I have create a PDB file on the primary of the SEED and it is created successfully.

    After that is a couple of log, do it again passes to the waiting, but MRP fails because of naming conventions. Agree with that! Now, on the primary, I remove the newly created PDB (coward the PDB newly created). Once again a couple of switches of newspapers which is passed on to the wait. Of course, the wait is always out of sync.

    Now, how to get back my watch in sync with the primary? I can't roll method until the required data (new PDB) file does not exist on the main site as well. I get the following error:

    RMAN > recover database service prim noredo using backupset compressed;

    To go back to November 8, 15

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 70 = device = DISK stby type instance

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at the 18:55:32 08/11/2015

    ORA-19846: cannot read the header of the data file of the remote site 21

    The clues on how to I go ahead? Of course, recreating the eve is an option as its only based on test, but I don't want recreation.

    Thank you.

    I tried like below:

    1 a incremental backup of the primary of the CNS where off the eve also taken primary backup controlfile as Eve format.

    2 copy the backup of the watch parts, catalogged them on the day before.

    3 recovered Eve with noredo option - it fails here with the same error pointing to the 21 data file.

    OK, understood. Try not to get back the day before first, rather than restore the controlfile and then perform the restoration.

    Make it like:

    1. take incremental backup of primary SNA, also ensures the backup controlfile format.

    2. copy pending, get the location of the data file (names) by querying v$ datafile on the eve. Restore the controlfile ensures from the backup controlfile you took on primary and mount.

    3. Since you are using OMF, the path of primary and standby data file will be different. (/). If you require catalog data from the database files pending.

    (Reason: you restore controlfile from elementary to step 2, which takes place from the main access road). Use the details that you obtained in step 2 and catalog them.

    4. turn the database copy by RMAN. (RMAN > switch database to copy ;))

    5 Catalog backup items that you copied in step 2.

    6. recover the standby database using 'noredo' option.

    7. finally start the MRP. This should solve your problem.

    The reason I say this works is because here, you restore the controlfile to primary first, which will not have details 21, datafile, and then you are recovering. So it must succeed.

    In the previous method, you tried to first collect all the day before, and then restore the controlfile. While remedial classes, always watch seeks datafile 21 as he controlfile is not yet updated.

    HTH

    -Jonathan Rolland

Maybe you are looking for