alter tablespace his online;

Dear all,

SQL > alter tablespace his online;

alter tablespace his online

*

ERROR on line 1:

ORA-01113: file 6 needs media recovery

ORA-01110: data file 6: ' / u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat'

Can someone tell me what is the problem here

SQL > recover datafile ' / u01/app/oracle/product/11.2.0/db_1/dbs/tbs_data.dat';

ORA-00279: change 1859444 September at 17/06/2013 02:57:17 necessary to screw 1

ORA-00289: suggestion:

/flash_recovery/flash_recovery_area/SA/ARCHIVELOG/2013_07_01/o1_mf_1_35_%U_.arc

ORA-00280: change 1859444 thread 1 is in sequence #35

Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}

Auto

ORA-00308: cannot open archived log

' /flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc

'

ORA-27037: unable to get file status

Linux-x86_64 error: 2: no such file or directory

Additional information: 3

ORA-00308: cannot open archived log

' / flash_recovery/flash_recovery_area/SA/archivelog/2013_07_01/o1_mf_1_35_%u_.arc'

ORA-27037: unable to get file status

Linux-x86_64 error: 2: no such file or directory

Additional information: 3

Can someone help me on this please.

Thank you

Gallot

Dear all,

While moving oracle files from one place to another place, I missed the space of a single table data file. So, to create this data file, I did this tablespace as offline and tried to use RMAN to restore this data file 6. He recreated the new data file 6 but he could not recover this file because some log files are missing. Then everything just, I did just deleted the Tablespace SA and created a new one with same. Because there is not a lot of data in the database.

And my problem is solved

Thank you

Hiroji gallot

Tags: Database

Similar Questions

  • Diffrence between the tablespace is ONLINE and READ WRITE?

    Hi all

    I'm very confused on the tablespace is ONLINE and READ WRITE?

    Some say that if the tablespace is online, this means that its READ WRITE and when its offline then its READ-only.

    So, what is the difference between them:

    ALTER TABLESPACE offline tablespacename; -> done mean READ only now?

    ALTER TABLESPACE tablespacename online; -> is it means its READ WRITE now?

    If Yes, then what is the use of the following command if above 2 commands? :

    ALTER TABLESPACE tablespacename [READ ONLY |] READING WRITING];

    Kind regards

    Confused Ritu

    In addition, when the tablespace is offline, objects belonging to those who are not available for use to users. You wouldn't be able to query for objects in a tablespace offline.

    When the tablespace is read only - no write operation cannot be performed i.e. etc. INSERT/UPDATE/DEL. Oracle says that read-only tablespaces provides a way to protect the historical data so that users cannot modify it. You can drop objects, such as tables or indexes, to a tablespace read-only, but you can't create or modify objects in a tablespace read only

    In order to bring a tablespace OFFLINE to ONLINE - so that it is available to users, you must "ALTER TABLESPACE online tablespacename" command. A tablespace online can be READ ONLY or READ WRITE mode.

  • ALTER table move online in an encrypted tablespace

    Hello

    Our DBA want to put all our data in encrypted storage.

    Once they create encrypted tablespaces, we will have to do «alter table move online...» "orders for encrypted storage space around the tables.

    Has anyone here done already?   Keeps the table moved really 'on-line' (available at query/insert/update) during the move?  Or will we have to wait some time stop/downtime while the tables are moved?
    What about the tables with long or CRAFT?

    Thank you!

    KSandberg and to add to the recall of John that only ITO tables can be moved online, if the table needs to be moved offline the indexes would be invalid until rebuilt.  If the table is an IOT I suggest you rebuild the index online after the move because even if the indexes are always used the logical ROWID is more pointing to the correct location and access of the index will be less effective that will you rebuild the index.

    - -

    The dbms_redefinition package could be an alternative solution if you need to move the tables no - ITO online.

    - -

    HTH - Mark D Powell.

  • ALTER TABLESPACE BEGIN BACKUP MODE

    Hi all
    When we issue alter tablespace begin backup command then freezes the data file headers and all modified blocks will be written to streams and when we issue end backup command then the database will write the blocks changed to data files by accessing files redo.
    my doubt is suppose archiver process archive redo files and all redo files are overwritten. now how the database will write the changed blocks to restore and database dealing with this task.

    TIA

    "Hot backup" is obsolete with 10g or more recent technology as Rman covers this much better.
    Please switch to RMAN at your early convenience.

    Also, as the database must be in archivelog backup online, it is not a problem, that the online redo log files are overwritten, like recovery will use two online redolog files and archived.
    Your question doesn't make sense to me.
    Redo are written in files LGWR, ARCH Archive files. Changes are written to the database by DBWR. All who are independent processes, and the changes are written to redo front to be written to the database.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • alter tablespace offline...

    Hello

    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/tspaces005.htm

    just a quick question,
    alter tablespace....offline temporary
    A tablespace can be taken offline temporarily, even if there are error conditions for one or more files in the storage space. When you specify TEMPORARY offline, the database supports offline data files that are not already in offline mode, the control points as she does.
    If no file is offline, but you use the temporary clause, media recovery is not required to bring to the online storage space. However, if one or more files from the storage space are offline due to clerical errors, and you are taking the tablespace offline temporarily, the tablespace requires recovery before you can bring it online.

    Based on the explanation above, done means that these datafile (with the error condition) code with the storage space you want to use offline will not in offline mode.
    Oracle will be only offline these 'good' datafile associate with storage space?

    My confusiong early when he mentions:
    if one or more files of the tablespace are offline because of write errors,
    which make me feel that even in the midst of erros, all storage data files will be always taken offline.

    The documents also mention:
    Specify TEMPORARY only when you cannot take the tablespace offline normally. In this case, only the files taken offline because of errors need to be recovered before the tablespace can be brought online. Specify IMMEDIATE only after trying both the normal and temporary settings.
    In this case, based on my current knowledge, I mention since all data files are taken offline in the middle of the condition of erros, we just need to recover those files that have the condition of error on them. ???

    Published by: flaskvacuum on March 1, 2012 11:45

    >
    Oracle will be only offline these 'good' datafile associate with storage space?
    >
    Well, Yes, but it's because the files of data with errors will already be ordering offline offline will not be offline them.
    >
    that means the code of these datafile (with the error condition) with the tablespace you want to use offline will not be in offline mode
    >
    No - the doc says that data files wilth errors have been offline. And after ordering TEMPORARY if you try to put the storage space online, it will fail because it will try to put offline the with online also return errors.

    That's why the doc has this cautionary
    >
    Caution:

    If you take a tablespace offline, use the NORMAL clause (default) if possible. This setting ensures that the tablespace requires not coming online restore, even if after incomplete recovery, you reset the sequence of redo logs using an ALTER DATABASE OPEN RESETLOGS.
    >
    You should check the status of all data files before you use CONNECTION TEMPORARY offline, or if a data file is already offlilne because of a clerical error, you will find that what you thought was temporary will avoid you to bring online storage space unless you do a recovery.

  • alter tablespace temp failed

    C:\Documents and Settings\Administrateur > sqlplus

    SQL * more: Release 8.1.7.0.0 - Production on Mon Dec 13 12:56:25 2010

    (c) Copyright 2000 Oracle Corporation. All rights reserved.

    Enter the user name: sys as sysdba
    Enter the password:

    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the partitioning option
    Release 8.1.7.0.0 - Production jserver

    SQL > set linesize 3333
    SQL > select * from dba_tablespaces;

    NOM_TABLESPACE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS LOGGING EXTENT_MAN DISTRIBUTION CONTENT PLU
    ------------------------------ -------------- ----------- ----------- ----------- ------------ ---------- --------- --------- --------- ---------- --------- ---
    RECORD PERMANENT ONLINE SYSTEM 65536 65536 1 2147483645 50 65536 DICTIONARY USER NO.
    RECORD PERMANENT 524288 524288 8 4096 50 524288 DICTIONARY USER NO. RBS ONLINE
    RECORD PERMANENT 131072 131072 1 4096 0 131072 DICTIONARY USER NO. USERS ONLINE
    TEMP 65536 65536 1 0 65536 TEMPORARY USER NO. DICTIONARY ONLINE REGISTRATION
    TOOLS 32768 32768 1 4096 0 32768 CONSIGNMENT PERMANENT ONLINE DICTIONARY USER NO.
    RECORD PERMANENT ONLINE 131072 131072 1 4096 0 131072 DICTIONARY USER NO. INDX
    RECORD PERMANENT DRSYS 65536 65536 1 2147483645 50 65536 USER NO. DICTIONARY ONLINE

    7 selected lines.

    SQL > alter tablespace temp add tempfile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12 M;
    alter tablespace temp add tempfile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12 M
    *
    ERROR on line 1:
    ORA-03217: invalid option to alter the TEMPORARY TABLESPACE


    SQL >

    oracleRaj wrote:
    any solution... ??

    You must upgrade the database 11g, Execute following and post result it

    alter tablespace temp add datafile 'E:\oracle\product\10.2.0\oradata\temp03.dbf' size 12M;
    
  • Tablespace offline / online.

    Hi all
    Oracle 9.2 - aix 5.
    I took example tablespace offline earlier using TOAD and then delete the sample data file. It's successful activity. but it is giving error as shown below in the alert log file when you restart the db.
    __________
    EXAMPLE OF ALTER TABLESPACE OFFLINE
    Mon 2 Nov 15:04:31 2009
    Errors in the /oracle/ora92/920/admin/guru/bdump/guru_dbw0_516208.trc file:
    ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
    ORA-01110: data file 4: ' / oracle/app/oracle/oradata/guru/example01.dbf'
    ORA-27041: could not open the file
    IBM AIX RISC System/6000 error: 13: permission denied
    ___________
    ________________________________________

    SQL > select State from dba_tablespaces where nom_tablespace = 'EXAMPLE ';

    STATUS
    ---------
    ONLINE

    SQL > ALTER TABLESPACE EXAMPLE offline;
    EXAMPLE OF ALTER TABLESPACE OFFLINE
    *
    ERROR on line 1:
    ORA-01191: file 4 is already offline - can not do a normal life in offline mode
    ORA-01110: data file 4: ' / oracle/app/oracle/oradata/guru/example01.dbf'
    ________________________________________________

    Although the tablespace is offline oracle tries to write to drop something. and every time it gives an error in the alert file. I do not understand how oracle watch double same tablespace status at the same time...?

    Amit.

    Hi amit,
    You can follow the steps:

    restore the file data that fell
    recover the database
    Drop tablespace

  • Missing ALTER TABLESPACE syntax... STRATEGY TO ADD DEFAULT ILM

    Hi all

    I'm checking the syntax of the statement:

    ALTER TABLESPACE tbs1

    STRATEGY TO ADD DEFAULT ILM

    STORE COMPRESS ADVANCED SEGMENT LINE AFTER 30 DAYS OF ACCESS LOW;

    The statement of work, but I found this syntax in the SQL (version 12.1) reference.   The song 'ILM add POLICY' after the 'DEFAULT' keyword is not documented.

    Did I miss something or Iit s a lack of documentation?

    Thank you

    Best regards

    Angelo Della Penna

    John,

    The OP post "alter TABLESPACE.

    (The DEFAULT clause for ALTER TABLESPACE for the TABLESPACE points CREATE documenttion).

    There is no clause of ILM for default for CREATE TABLESPACE.

    https://docs.Oracle.com/database/121/SQLRF/statements_7003.htm

    Therefore, it is undocumented (or a bug in the documentation)

    MK

  • How to change the 'Drive' for the BSO cubes (just like we do using "alter tablespace" for ASO cubes) using MAXL etc.?

    Hello team,

    I'm trying to make a backup copy of the cube by using the copy commands, BSO

    but after copy, I need to change the drive letter (for the data and indexes of the files) using MAXLs.

    I am able to do for cubes ASO using "Alter tablespace" i.e. for example, change "D:\" car ' to 'E:\. "for the tablespace files.

    I need to do the same for the BSO cubes? any idea?

    Kind regards

    Amit

    Don't forget while you can also change the drive it can't displace data. You would have to export the data, delete the database, change the disks, and then reload.

    For the actual command of MaxL watch the MaxL Alter Database command. You can add, dorp or set volumes of disk for ind and pag files

  • How to Setup Data Guard with alter tablespace... begin backup approach

    Hello!

    I am writing this compilation of documents in a guard daata establishing in 10g. I was in charge to present different approaches in implementing on Rhel 5.

    I came across 3 procedures (which is to duplicate a database with RMAN, then configure it to a Data Guard feature). I read a process using (let's this is what the article said, but procedure was presented):

    alter tablespace... .begin backup;
    alter tablespace... .end backup;

    then copy the generated files and configure it to the data protection feature.

    Someone help it with that? Is there like a blogsite or steps I can take for this scenario?

    Hello;

    The best I found was: (and its same 10 Oracle! and not RMAN.)

    http://sites.Google.com/site/catchdba/physical-standby-database-using-HOTBackup

    There, an old link here on this topic:

    DataGuard configuration using hot backup files

    Hard to find much on this topic as "Hot Backup" almost always comes to RMAN.

    This collection of notes can also help:

    DataGuard knowledge browser Product Page [ID 267955.1]

    And the "Formidable" Powerpoint:

    www.dbspecialists.com/files/presentations/standbydb.ppt

    Seems that this method is dead somewhere between Oracle 8 and Oracle 9

    Best regards

    mseberg

    Published by: mseberg on March 16, 2012 20:31

  • Alter tablespace name wrong when creating data file

    Hello

    While creating a data file, I used alter tablespace name wrong.
    For example,.
    I used:
    ALTER TABLESPACE ADD datafile APPS_TS_SEED ' / d01/oracle/stkmnfun/db/apps_st/data/a_txn_data05.dbf' size 1024M;

    Correct one:
    ALTER TABLESPACE ADD datafile APPS_TS_TX_DATA ' / d01/oracle/stkmnfun/db/apps_st/data/a_txn_data05.dbf' size 1024M;

    I have created a more a_txn_data06 with the correct STORAGE space...
    But, did anyone know how this can be corrected?


    Thanks in advance,

    As long as it has not at all affected in this data file, you can deposit with
    alter tablespace... datafile drop...

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • is it OK to alter tablespace temp SYS of the running production database

    Dear,

    is it OK to alter tablespace temp of the user SYS of the running production database

    Business database version 10.2.0.5
    single instance on AIX

    We have two temp tablespace temp and temp2

    I'm trying to rebuild the index by using sys connection but its not working, cannot extend the temp tablepspace

    then I checked this system a default temp tablespace is of a size of 2 GB

    on the other hand, all other schemas has (including the owner of the index) have the temp of larger size.


    He suggests to change the tablespace temp of SYS.

    Ok. Then the answer is Yes, change the SYS temp tablespace should not be a problem. If you use SYS to reconstructions of index maintenance is another story. In any case, Yes, change the tablespace temp should not be a problem. Other sessions of this user would continue using the old tablespace until their completed transaction. New transactions will begin using the newly designated temp tablespace.

    Hope that helps,

    -Mark

  • Question about ALTER TABLESPACE add datafile on/slide

    Good afternoon

    As an exercise, I created a STORETABS tablespace and added a data file using the command:
    SQL> alter tablespace storetabs add datafile 'e:/storetabs3.dbf' size 50M;
    This successful step. A new file was created at the root of e: as expected.

    Following this command, I have published:
    SQL> alter tablespace storetabs drop datafile 'e:/storetabs3.dbf';
    
    Tablespace altered.
    The command succeeded. However, the file * ' e:/storetabs3.dbf' * has not been deleted. After re-reading the documentation found at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3002.htm, I feel that deleting the operating system file itself is something that must still be done manually.

    Question: Am I right that there is no option to cause 'alter tablespace < tablespace > drop datafile < datafilename >' remove it the o/s file? In other words, should the o/s file always be deleted manually as a separate step?

    Thank you for your help,

    John.

    John,

    Don't know what part of the documentation page you are referring to but on the same page to the following location
    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_3002.htm#sthref5437,
    He clearly staes

    Specify DROP to drop from the tablespace an empty datafile or tempfile specified by filename or file_number.
    This clause causes the datafile or tempfile to be removed from the data dictionary and deleted from the operating system.
    The database must be open at the time this clause is specified
    
  • ALTER Index Rebuild online

    My database is out 10 gr 2. Sometimes, I pass command ALTER INDEX < index name > REBUILD online on the indexes that are 500 MB in size. It takes about ten minutes to run the command. The database alert log shows no activity for the first six minutes, and DML is allowed on the associated table. At about minute seven journal alerts shows the first of a series of five online redo logs switches. They are each 100 MB.

    During the time that online redo logs, DML execution sessions cannot fill. When the new version of the index was created again online records switching station, the original copy of the index disappears, the ALTER INDEX command ends, and blocking for DML ceases.

    I read that the DML statements are not affected by executing ALTER INDEX REBUILD online, but experience shows that the blocking of the above sessions. Can someone explain to me what is happening in the different stages of the index rebuild? Is there something I can do to eliminate the blocking of the DML statements during the period when redo online record switch?

    Thank you
    Bill

    Bill,

    A useful reference for you:
    http://jonathanlewis.WordPress.com/2009/06/05/online-rebuild/

    Another very useful reference - of many articles:
    http://richardfoote.WordPress.com/category/index-rebuild/

    For what reason you rebuild the index?

    Charles Hooper
    Co-author of "Expert Oracle practices: Oracle Database Administration of the Oak Table.
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • ALTER TABLESPACE ONLINE crashes

    Hello

    10.2.0.1 on Solaris 10 SPARC 64-bit environment

    Production database has been restored to the test database server. Restoration and recovery, it's all over no problem. After opening the database, a particular tablespace is offline.

    In trying to put online, the session hangs and the system state dumped, containing the following lines in the alert.log

    WAITED TOO LONG FOR A CACHE LINE ENQUEUE LOCK! PID = 15
    State of the system dumped to trace file /loyalty_data/LOYALTY/dump/bdump/payback_smon_1743.trc

    Individual data files are available online, but the external entity tablespace is always offline and unable to put online. Any help is appreciated.

    Thank you
    Siva

    Salvation;

    Please see
    Troubleshooting: 'has WAITED TOO LONG FOR a CACHE of LINE ENQUEUE LOCK!" [278316.1 ID]

    Respect of
    HELIOS

Maybe you are looking for

  • The tracks window moving flex time marker move

    LPX 10.2.4, running I have the main window showing my pieces and, below, the editor, which I currently use for set Flex time markers. For some reason, in the last 15 minutes he began to behave differently in a way that has seriously slowed down my wo

  • I need help updating my graphics card! Help, please!

    Hello, I need help. I have the HP ENVY 700-214, I absolutely love it. If there was one thing I could change, however, it would be the graphics card. Which brings me to my question. What is the best graphic card compatible with desktop HP ENVY 700-214

  • Where can I login?

    Hi all Have tried to locate the login for my account of Palm, I can't seem to find it. If I want the remote erase or update my account where the link? Can someone please send a link to the site... Please. In addition, this account keeps my previous 7

  • Homegroup question - error "a homegroup can be created on a home network.".

    I read a lot of messages and no cover up my problem. I worked through programs of solving problems without result. The network in the network and sharing Center show that my current network is a home network. I want to create a homegroup and click on

  • In Windows 7 Professional is it is possible to restrict access to the C: drive still be able to write to it?

    I've seen several threads on hide the C: drive to restrict the overall use of the C: drive, but I'm on a mission to survey about whether you can limit the C: drive but still be able to write files to it.  We currently do not allow any executable to b