put the offline data file when the database is in NOARCHIVELOG mode

My question is when the database is in log mode Archive No. I am not able to take the database offline.

When I tried in my computer I noticed set-aside.

CASES1:

SYS > alter database datafile 5 offline;

ERROR at line 1;

ORA-01145: offline immediately rejected at least media recovery enabled.

case 2:

SYS > alter database datafile 5 immediate offline;

ERROR at line 1;

ORA - 00933:SQL not correctly completed order

CASE3:

I tried the command drop alter database datafile offline 6; (in NOARCHIVELOG mode) and it is to show the same effect that alter database datafile offline 6; (in ARCHIVELOG mode).

* In NOARCHIVELOG mode are we really drop the data file to use the offline data file? You please tell me the effect of the dropkeyword.

Oracle protects you. Please review ARCHIVELOG and NOARCHIVELOG mode.

When you take the database offline in NOARCHIVELOG mode:

(1) the file is offline

(2) the RCS in which you took the database offline will be is more to be in the online redo logs

(3) at this point, you need to perform a media recovery to enable again the file online (ie. restore the database)

So you can see why you shouldn't do that.

The DROP Offline command does not actually remove the data file. It removes the control file file details and updates the offline data file. It can be used for purposes of recovery or when you actually plan on deleting data files.

Tags: Database

Similar Questions

  • retrieve the information of partition table with lack of offline data file

    I just restored a backup of a database. When I unzipped data files, I discovered that a single data file was so damaged in the starting order of the database, I had to put the offline data file. The tablespace which reports the data file holds the information of partition of a table. Since I have no archives from when the data file has been created, I know it is not possible to recover the data file, I have to recover as many lines as possible other files in the tablespace data but when export or create the table as what to choose in the affected partition get ORA-00376 : cannot read file 1624 at the moment.

    is there a way to tell oracle to ignore the data offline file and export the remaining data file information?

    Just to clarify my situation a little more;
    iI have a table called PPGA_ACTABOPRE that is partitioned by HASH and has 20 partitions, each partition in a different tablespace and tablespace each have about 8 files of data. A data file in the partition 9 is missing and I want is to get the information from the files of the remaining data, but whenever I issue a select statement or an exp or anything I get ORA-00376.

    I try to set the flag to ignore blocks corrupt with run DBMS_REPAIR. SKIP_CORRUPT_BLOCKS ('PPGA', 'PPGA_ACTABOPRE'); and then select the info but it did not work.

    Any suggestion would be appreciated;
    Thanks in advance

    For the actabopre_p08 partition, some files are available, and we're not. You can access data at the segment level, because some extensions are missing.

    You would need to access the data by rowid. You could loop through dba_extents and use dbms_rowid.create to generate a list of ROWID that may exist in the available data files.

    This may help: -.

    http://kerryosborne.Oracle-guy.com/2009/02/saving-rows-from-corrupt-blocks/
    http://kerryosborne.Oracle-guy.com/scripts/save_u.SQL

    Published by: Robert Geier on March 12, 2010 15:33

  • After you rename the data file, cannot start database

    Oracle 11 g 2
    OEL 5 (ASM)
    Network infrastructure (cluster install) - no CARS yet

    Something interesting happened. Perhaps this question might be more suited to the "ASM" section, but that's.

    I gave a data in ASM file an alias with the following command (the ASM instance):
    SQL> alter diskgroup DATA add alias '+DATA/oradb/datafile/users01.dbf' for '+DATA/oradb/datafile/users.253.795630487';
    
    Diskgroup altered.
    Then, as mentioned in Note: 564993.1, we need to update the database as well with the new alias. However, when I went to the stopping and starting of the database, I received the following:
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    It's strange. Nothing has changed except the alias being added to the data file. This is all before operation. That's happened?

    I think that it may have to do with the different ASMOPER, ASMADMIN, ASMDBA groups that have been installed as part of the installation of the grid Infrastructure. In addition, the listener is running out of the GI home.

    All my variables environment (e.g. ORACLE_SID, ORACLE_HOME, etc.) are defined.

    Any ideas?

    Thank you.

    Hello
    When you connect with tnsnames alias while the database is down the listner did not know the service, so you must start the database on the server database with sqlplus / as sysdba. After starting the registry of data base with the listener and your connection works again.
    Alternativ you can add a service to your listener.ora to connect with him while he is arrested, as long as you do not have it you must use local connect which means sqlplus / as sysdba.

    concerning
    Peter

  • Do not put the database quiesce mode

    Hi all

    has an issue which concerns abandonment EM repositry.


    When I run below on 11.2.0.2 I get a warning saying DB will be put in quiesce mode
    EMCA - deconfig dbcontrol db-rest drop

    ———————————————————————-
    WARNING: even if the repository is dropped the database quiesce mode will be set.
    ———————————————————————-


    but when I do the same thing for 11.2.0.1 it get no warning or anything...
    is this something new for 11.2.0.2? How can I avoid this?

    As it is difficult for us to have some downtime for this system (which is 11.2.0.2)...
    y at - it another way to drop the repositry with putting DB in quiesce mode...

    is Reson for this, Let's install OEM Agent on it, so need to drop the repositry of exsitnig DB


    Here's the delicate error...


    $ emca - deconfig dbcontrol db-rest drop

    EMCA STARTED November 15, 2011 16:04:15
    Configuration MS Assistant, Production of the Version 11.2.0.0.2
    Copyright (c) 2003, 2005, Oracle. All rights reserved.

    Enter the following information:
    SID of the database: ORCL
    Listener port number: 1521
    User SYS password:
    November 15, 2011 16:04:25 oracle.sysman.emcp.DatabaseChecks checkRestrictedMode
    WARNING: ORA-01034: ORACLE is not available

    November 15, 2011 16:04:25 oracle.sysman.emcp.DatabaseChecks checkDataGuardEnabled
    WARNING: ORA-01034: ORACLE is not available

    SYSMAN user password:

    ----------------------------------------------------------------------
    WARNING: even if the repository is dropped the database quiesce mode will be set.
    ----------------------------------------------------------------------
    Do you want to continue? [yes (Y) (N) /no]: N
    $

    Published by: user8363520 on November 15, 2011 08:05

    user8363520 wrote:

    is Reson for this, Let's install OEM Agent on it, so need to drop the repositry of exsitnig DB

    If you mean the "Grid Control" agent, you don't need to drop the repository, the OEM agent will deal with it.
    : p

  • ORA-01157: cannot identify/lock data file error in database pending.

    Hello

    I have a back-end database and the base ensures (11.2.0.1.0) that runs in ASM with the names of different diskgroup. I applied an incremental backup on a standby database to solve the gap newspaper archive and generated a controlfile to standby in the primary database and restore the standby database controlfile. But when I started the MRP process his starts not and lift error in the alerts log ORA-01157: cannot identify/lock file. When I questioned the standby database file it shows the location on primary data filenames not the database pending.

    ******************************

    PRIMARY DATABASE

    *****************************

    SQL > select name from v$ datafile;


    NAME

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

    +Data/OraDB/datafile/system.256.788911005

    +Data/OraDB/datafile/SYSAUX.257.788911005

    +Data/OraDB/datafile/undotbs1.258.788911005

    +Data/OraDB/datafile/users.259.788911005

    ****************************************

    BACKUP DATABASE

    ****************************************

    SQL > select name from v$ datafile;


    NAME

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

    +STDBY/OraDB/datafile/system.256.788911005

    +STDBY/OraDB/datafile/SYSAUX.257.788911005

    +STDBY/OraDB/datafile/undotbs1.258.788911005

    +STDBY/OraDB/datafile/users.259.788911005

    The actual physical location of files of database Eve in ASM in the standby server is shown below

    ASMCMD > pwd

    + STDBY/11gdb/DATAFILE

    ASMCMD >

    ASMCMD > ls

    SYSAUX.259.805921967

    SYSTEM.258.805921881

    UNDOTBS1.260.805922023

    USERS.261.805922029

    ASMCMD >

    ASMCMD > pwd

    + STDBY/11gdb/DATAFILE

    I even tried to rename the data files in the database backup, but it throws error

    ERROR on line 1:

    ORA-01511: Error renaming data/log files

    ORA-01275: RENAME Operation is not allowed if management undo file is

    Automatic.

    Kind regards

    007

    You must specify the complete location

    *.db_file_name_convert='+data/OraDB/datafile/,'+STDBY/11gdb/DATAFILE /'

    and to rename the data file, your standby_file_management parameter must be set to MANUAL.

  • [offline data file] How to deal?

    Hello

    There's a tablespace TBS, which has 4 files of data. A data file has a status offline. This data file is empty, I mean, it was never used. Now, I want to delete this data file. Delete I put it online, but Oracle says that this data file media recovery is necessary. Media recovery cannot be established because there is no available archivelog. I don't know what to do with this case. I guess I have to export schemas use tablespace TBS and deposited a tablespace TBS and then import these schemas in a tablespace of new TBS_NEW. Am I wrong?

    Hello

    I guess I have to export schemas use tablespace TBS and deposited a tablespace TBS and then import these schemas in a tablespace of new TBS_NEW. Am I wrong?

    It can also depend on objects stored in this table space.

    For example if you have some clues, you can REBUILD in a different Tablespace and, if you have Tables, you can SWITCH to a different Tablespace. Using ALTER INDEX REBUILD and ALTER TABLE MOVE instructions you can move these objects without dropping.

    However, there is an exception for the Table with columns by using the specific data type as LONG instance. You cannot move so easily, and for this kind of Tables, you can use export/import or utility Datapump.

    Hope this helps.
    Best regards
    Jean Valentine

  • Consolidate data files when you use impdp

    Dear all,

    We are trying to move data from an environment of 10gr 2-11 GR 2 environment using the data pump. In the environment of 10 gr 2, we have several data files for several storage spaces and we want to create data files less in the environment 11 2 GR. We have CARS in environments and use ASM. In addition to the Group of disks in both names environments are different. Here are two scenarios:

    10 gr 211 GR 2
    Name of data fileSizeName of data fileSize
    + DATA\TS1_DF1. DBF20 GB+ DG_DF\TS1_DF01. DBF100 GB
    + DATA\TS1_DF2. DBF20 GB
    + DATA\TS1_DF3. DBF50 GB
    + DATA\TS2_DF1. DBF10 GB+ DG_DF\TS2_DF01. DBF150 GB
    + DATA\TS2_DF2. DBF150 GB
    + DATA\TS2_DF3. DBF20 GB

    Can achieve us using data pump?

    Kind regards

    Base schema export will export all the objects schema, tables and indexes. also grants.

    But if subsidies to the role and this role does not exist in the target database, then you will get the warnings.

    Manually create the roles.

    Concerning

    Mr. Mahir Quluzade

  • Message form "Emailing data files" when it should not

    I have a simple PDF with a form I created with the form tools in Acrobat 8 Pro for sending a FDF file by e-mail.

    It works OK but when you click on some other internal links on the page in the document (established in InDesign) completely unrelated to the form I get the following pop up box:

    Sending files of data by Email
    Please note that this form contains a button to send by e-mail. Clicking this button will send a data file containing the data that you type into the form. However, the form itself will not be sent. Remember that you can not save a completed copy of the form with Adobe Acrobat Reader 9.

    1. How can I stop this popping up. Especially on pages that are unrelated to the form.

    2. Why does say: "don't forget you can't save a completed copy of the form with Adobe Acrobat Reader 9 when it doesn't seem to work OK. I can send the FDF file to an email address. But this box pop up is not good.

    And I have another query that is not really on the subject.
    3. How do you get the option buttons to be mutually (for example: sex: male/female)-it is said in the Options button in the Radio button Properties tab so that they have the same field name. But when you set the domain name?

    I posted this in the Mac section, because I think that the Mac of Acrobat Pro version can be the cause of the road!

    1. How can I stop this popping up. Especially on pages that are unrelated to the form.

    I don't know that you can. This is a user setting, not a PDF setting.

    2. Why does say: "don't forget you can't save a completed copy of the form with Adobe Acrobat Reader 9 when it doesn't seem to work OK. I can send the FDF file to an email address. But this box pop up is not good.

    It is correct. The user cannot save the file which is a pdf file. He sends you a pdf file, but as you have noticed a fdf file.

    3. How do you get the option buttons to be mutually (for example: sex: male/female)-it is said in the Options button in the Radio button Properties tab so that they have the same field name. But when you set the domain name?

    If you double-click any field with the field tool, you get the field properties box. You can set the value of the name field and by default here. You want the name of the field to be the same, but different default value.

  • What do I need to use the database shall begin backup mode to perform the backup?

    Hi all

    I have a primary database to 10g (10.2.0.4) with intelligence on a solaris platform. I need to create a different primary eve for the same database.

    I stopped the recovery based on standby and began copy (copy of the os) the existing files pending at the 2nd backup server. But I didn't keep the (mounted) existing standby database into begin backup mode. Is this right?

    Thank you

    Arun

    For a mounted database backup mode?

    orclz >

    orclz > startup mount

    ORACLE instance started.

    Total System Global Area 788529152 bytes

    Bytes of size 3050600 fixed

    373293976 variable size bytes

    406847488 of database buffers bytes

    Redo buffers 5337088 bytes

    Mounted database.

    orclz >

    orclz > alter database begin backup;

    ALTER database begin backup

    *

    ERROR on line 1:

    ORA-01109: database is not open

    orclz >

  • control of the database is in unscure mode

    Hi all
    I created a database in the version of Oracle 10.2.0.4 on windows platform.
    After you create the database, I received a warning that your control of database is in unscure mode.
    Well let me know is necessary to control databasae in safe mode.
    Thank you
    REDA

    Hi reda,.
    The thread below is having answer to your query:

    Error to ensure control of the database from the DB Configuration Wizard

    Best regards

    Rafi.
    http://rafioracledba.blogspot.com/

  • How can you put a missing dll file when you cannot start

    system32\hal.dll on windows xp home sp3

    system32\hal.dll on windows xp home sp3

    1. Insert the Windows XP CD in your CD-ROM drive and restart your computer. If you are prompted, select any options needed to start (boot) on the CD.
      
    2. when the text portion of Setup begins, follow the prompts. Select the repair or recovery option by pressing R.
      
    3. If you have a dual-boot or multiboot system, select the installation that you want to access from the Recovery Console.
      
    4. When you are prompted, type the administrator password. If you have not set a password for the account admin simply press on enter
      
    5. at the command prompt, type chkdsk/r > press ENTER. (Note: there is a space between the slash and the letter k).
      
    6. at the end of the output of scan type > press ENTER.
      
    7 restart your computer.

    If you do not have a Windows Xp disk, follow the instructions HERE to create a drive of the Windows Xp Recovery Console.

  • Panel Builder said in InDesign cs6 folio I need put up-to-date, but when even does not recognize that I have.

    I can't open a new Folio, either. I downloaded several updates, I just got CS6 through the creative cloud, I uninstalled and reinstalled and sought advice everywhere. I'm at the end of my rope here. It shouldn't be this hard.

    Go to Menu in InDesign help and click on update. Install tools DPS. If this does not help, go to http://www.adobe.com/downloads/ and install the DPS for CS6 InDesign tools.

  • change log mode archive without closing the database

    Hi all

    Is it possible to put the database in archive log mode before you shut down the database, and when the database stops and starts, the database should automatically be in log mode archive?

    because we cannot stop the database in the days of the week and we have system restart the weekend and we are not here this day here. So is there a way to set the database in the log archiving across the memory so that each restart of the database, it should start automatically in log mode archive.

    my environment is windows server 2008 R2 with oracle 11.2.0.3

    Thanks in advance.

    Published by: 931643 on 5 December 2012 10:37

    931643 wrote:
    Thanks for the reply Max Seleznev,

    First of all I thought to write the script to include in this process. But we cannot run all the commands in the sqlplus using windows task. for example:

    You can write a batchfile as below:

    CD.
    sqlplus / as sysdba
    Select name, open_mode from v$ database;

    When you run this, it will open up to sqlplus prompt but then will not run the query.

    This is the reason why I am to know if there is another way.

    Thank you

    When you do things wrong, you do not get the desired results

    Please desired SQL in a separate file (run.sql), then proceed as below

    sqlplus scott/tiger @run.sql

  • How can I recover a data file if it drop without backup!

    Dear friends,

    I have a request.

    In oracle database 10g, I created a database of test name 'medium '. I created a tablespace "support_ts" here.
    In my absent mind, I deleted the data file that is associated with "support_ts" physically. Logically the tablespace information is in the database, but physically the data file is deleted.

    'SUPPORT' database has no backup (export and rman), also the database is in noarchivelog mode.

    Now, is it possible to recover or do I focely delete the tablespace for database information? While, in the next database startup search information tablespace "support_ts"?

    Hello

    Recover the data file is not possible without the backup of the data file.

    You can re-create the control file and the startup of the database.

    Steps to recrete the control file.

    1. change controlfile backup of database to trace in the "";
    2. open the control file and remove the entry from tablespace and datafile support partly noreset newspapers.
    3. connect sys as sysdba
    4 cancel immediately / closed stop
    5 startup nomount
    6. paste balls noreset controlfile content
    7. After you have created the mount controlfile and open the database.

    Kind regards
    Prasanna

  • RMAN backup on the database with data file with corrupted block

    Hi friends,

    I have a problem with a database of oracle 11g XE on windows server 2003, the database is in production, it is open, is operating normally.

    The database has no backup configured before, so I put the database archiving mode and tried to backup using rman utility, but it show me some errors.

    First of all, it showed me:

    ORA-19501: error in reading file... SYSAUX. DBF

    ORA-27070: async read/write failed

    OSD-04016: error queuing an asynchronous i/o request.

    And when I passed the dbv on the SYSAUX file utility. DBF showed the fatal error.

    So, I switched CHKDSK utility on windows to repair the disc of the error. After that, run utility dbv and he passed and showed me the corrupt on SYSAUX blocks. DBF

    Then, came to rman and ran:

    RMAN > validate the logical database checking;

    State of the file marked corrupt blocks examined empty blocks high YVERT

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

    3 0 1111 115840 78859075 FAILED

    File name: C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF

    Type block for lack of treated blocks blocks

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

    Data 0 0

    Index 0 0

    Other 38 114729

    After that: watching the content of v$ database_block_corruption;

    Show me a lot of lines like this:

    SQL > select * from v$ database_block_corruption;

    FOLDER # BLOCK # BLOCKS CORRUPTION_CHANGE # CORRUPTIO

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

    3 4440 1 FRACTURED 0

    3 4439 1 0 ZERO ALL THE

    3 4386 2 FRACTURED 0

    3 4384 1 0 ZERO ALL THE

    3 4334 1 0 ZERO ALL THE

    ...

    33 selected lines.

    Finally I try to rerun rman and he shows me the error:

    ORA-19566: exceeded the limit of 0 blocks corrupt file C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX. DBF

    How can I do backup with rman? Maybe I can by pass the corrupt block?

    I'll be grateful for any help you can provide.


    =)

    It would be better if you try to find the reason of corruption and try to recover the corrupt blocks. A block corrupted in the backup would really not must use. But if you're ready to take backup, you can ask RMAN to ignore corrupt blocks and move forward.

    Use the pseudo-code for the backup

    Run {set maxcorrupte for the database to 10;

    backup tablespace sysaux ;}

    HTH

    Aman...

Maybe you are looking for

  • iTunes Apple music artists following

    Hello I wonder why I can't follow the artists more? When I see a new artist within apple's music that I could click 'follow' (volg in Dutch), but nothing happens? A few months ago I could follow people like you should but now it no longer works... Do

  • DeskJet F340

    HP Deskjet F340 All in one printer print well the first lines of the document, and then it vanishes. I don't have black ink and I bought it in the HP store not so long ago. I printed only aprox. 35 pages and I don't think it could be empty. I took th

  • Windows 7 64-Bit product key: help!

    When I got my Windows 7 laptop, it was purchased at Walmart, renovated, which means that Windows 7 is already installed. A few months went by, and my keyboard broke. Therefore, I sent, and society which sets, took it apart and fixed it. Then, suddenl

  • Windows 7 runs slowly using Standard MS Project 10 with a Pool of resource/schedule Master 20 projects running. But XP works well?

    I ' am running Windows 7, which is causing a delay of 30 seconds of opening of the Master Schedule & about 50sec to close. The other 2 computers running XP & only take 5 seconds to open & 15 sec to close, it seems that maybe it's a registry problem &

  • SP2-0642: SQL * more internal error of State 2165

    HelloI was faced with the question with sqlplus suddenly in 11.2.0.3 throw version on solaris 10 OS, it was working fine until today. No changes made on this (11.2.0.3.Q3) oracle home, but new ORACLE HOME installed by Server DBA (shared server) with