How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile Làm thế nào Thả Tablespace và Cơ sở dữ liệu Oracle Recover Khi vô tình Xóa Datafile

Accident may happens, even though it's costly one. Tai nạn xảy ra trong tháng năm, mặc dù nó tốn kém nhất. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Điều này là đặc biệt là trường hợp của Oracle cơ sở dữ liệu, mà các cửa hàng cơ sở dữ liệu các đối tượng vật chất trong các tập tin dữ liệu trên đĩa cứng. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. Nhanh tay các quản trị viên tháng năm vô tình xóa một số các datafiles, hoặc có thể được hưởng datafiles hỏng hoặc unreadable trên đĩa cứng không thành công. You may get also some missing datafiles after database recovery process. Bạn cũng có thể được hưởng một số cơ sở dữ liệu bị mất datafiles sau khi quá trình khôi phục. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible.

The solution to the missing datafiles is to drop the affected tablespace where has incomplete datafiles, and then recreate the tablespace and import the data into the tablespace from backup. Giải pháp cho thiếu datafiles là thả các tablespace, nơi đã bị ảnh hưởng datafiles không đầy đủ, và sau đó lại lí các tablespace và nhập dữ liệu vào tablespace từ sao lưu dự phòng. However, the steps are not so straight forward. Tuy nhiên, các bước như vậy không phải là thẳng về phía trước.

  1. Run SQL*Plus. Chạy SQL * Plus.
  2. Connect to database as SYSDBA with this query: Kết nối vào cơ sở dữ liệu như là SYSDBA với các truy vấn này:

    CONNECT / AS SYSDBA CONNECT / AS SYSDBA

  3. Mount the database instead of starting it up: Gắn kết các cơ sở dữ liệu thay vì nó bắt đầu lên:

    STARTUP MOUNT; Startup MOUNT;

  4. Issue the following command to bring the missing datafile offline so that Oracle won't trying to connect and access the datafile anymore: Vấn đề các lệnh sau đây để đem lại cho người thiếu datafile ngoại tuyến để mà Oracle sẽ không cố gắng để kết nối và truy cập vào datafile nữa:

    ALTER DATABASE DATAFILE '<datafile name with complete path>' OFFLINE DROP; Cơ sở dữ liệu thay đổi DATAFILE '<datafile tên với đầy đủ path>' gián tuyến thả;

    Repeat the command for every datafiles that unaccounted for. Lặp lại các lệnh cho mỗi datafiles rằng unaccounted cho.

  5. Now start the database proper: Bây giờ bắt đầu cơ sở dữ liệu phù hợp:

    ALTER DATABASE OPEN; Cơ sở dữ liệu thay đổi MỞ;

  6. As the tablespace has damaged, drop it to recreate from fresh backup. Là tablespace đã bị hư hỏng, thả nó vào lí từ tươi sao lưu dự phòng.

    DROP TABLESPACE <tablespace name> INCLUDING CONTENTS; Thả TABLESPACE <tablespace name> BAO GỒM NỘI DUNG;

  7. Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system. Đảm bảo các datafiles cho tablespace đã bị xoá, nếu không, loại bỏ chúng bằng cách thủ công từ các hệ điều hành.

    Tip: Mẹo: How to check datafiles that belong to tablespace Làm thế nào để kiểm tra rằng datafiles thuộc tablespace . .

  8. Continue with the recovery process. Tiếp tục với quá trình phục hồi.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Lưu ý: Các trang web là máy tính dịch và cung cấp "như là" mà không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể là khó hiểu. Please refer to Xin vui lòng tham khảo original English article Tiếng Anh bản gốc bài viết whenever possible. bất cứ khi nào có thể.


11 Responses to “How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile” 11 hồi đáp tới "Làm thế nào Thả Tablespace và Cơ sở dữ liệu Oracle Recover Khi vô tình Xóa Datafile"

  1. Dan Dân
    May 21st, 2009 10:08 Tháng năm 21, 2009 10:08
    11 11

    Exactly what I needed! Chính xác những gì tôi cần thiết! Thanks for saving what seemed to be a wretched issue! Cảm ơn bạn đã tiết kiệm những gì có vẻ là một vấn đề không may!

  2. lara Lara
    April 20th, 2009 20:47 20 tháng tư, 2009 20:47
    10 10

    thanks a million. nhờ một triệu đồng.
    ura life saver ura cuộc sống tiết kiệm

  3. Dewan Gazzali Dewan Gazzali
    February 19th, 2009 06:49 19 tháng hai, 2009 06:49
    9 9

    This is a life saver …. Đây là một cuộc sống tiết kiệm .... this works fine in oracle 10G HP itenium (or any where else). hoạt động tốt trong oracle 10G HP itenium (hoặc bất kỳ nơi nào khác).
    great doc. doc lớn.
    thanks cảm ơn
    Dewan Gazzali Dewan Gazzali

  4. Nora Nora
    December 17th, 2008 13:53 17 tháng mười hai, 2008 13:53
    8 8

    *2nds last post* * 2nds đăng bài cuối cùng *

  5. Michael Michael
    November 6th, 2008 06:15 6 tháng mười một, 2008 06:15
    7 7

    You are a life saver!!!!!! Bạn đang có một cuộc sống tiết kiệm !!!!!!

  6. mark đánh dấu
    October 28th, 2008 03:09 28 tháng mười, 2008 03:09
    6 6

    I ran a script to create a user w/o checking it closely enough. Tôi chạy một tập lệnh để tạo ra một người sử dụng w / o kiểm tra chặt chẽ nó đủ. Next thing you know, my db won't start because it is looking for a data file that doesn't exist. Sau đó bạn đã biết, tôi sẽ không bắt đầu db vì nó là tìm kiếm một tệp dữ liệu đó không tồn tại. This tip helped me get around the error quickly. Mẹo này giúp tôi nhận được xung quanh lỗi một cách nhanh chóng. Thanks for posting it. Cảm ơn bạn đã gửi bài này.

  7. Steve Steve
    October 9th, 2008 02:31 9 tháng mười, 2008 02:31
    5 5

    Thank you for taking the time to post this very valuable information. Cảm ơn bạn đã dành thời gian để đăng bài này rất có giá trị thông tin. :)

  8. Cesar Cesar
    September 2nd, 2008 00:31 2 tháng chín, 2008 00:31
    4 4

    Thank you very much, this was really helpful. Cảm ơn bạn rất nhiều, điều này đã được thực sự hữu ích.
    I had problems dropping the tablespace, i had to drop the user also. Tôi đã có vấn đề giảm các tablespace, tôi đã phải thả những người sử dụng cũng.

  9. ravisha ravisha
    July 8th, 2008 19:31 8 tháng bảy, 2008 19:31
    3 3

    This info helped us to a very great extent and hence we are able to proceed further smoothly. Thông tin này đã giúp chúng tôi đến một mức độ rất lớn và qua đó chúng tôi có thể tiếp tục tiến hành thông suốt.

  10. LP LP
    April 2nd, 2008 18:27 2 tháng tư, 2008 18:27
    2 2

    These are only to drop the TS Đây là những chỉ để thả các TS

    but not to recover… nhưng không phải để phục hồi ...

    hence the worst…. vì vậy việc xấu nhất ....

  11. How to Remove and Drop Datafiles from Tablespace in Oracle Database » My Digital Life Làm thế nào để Hủy bỏ và Thả Datafiles từ Tablespace trong cơ sở dữ liệu Oracle »My Digital Life
    August 4th, 2007 02:57 4 tháng tám, 2007 02:57
    1 1

    [...] If one or more datafiles is missing after a recovery process or accidental deletion, you can use ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP command to make the datafile offline so that database can starts up after which the troubled tablespace can be dropped. [...] Nếu một hoặc nhiều datafiles là mất tích sau khi một quá trình khôi phục hoặc xóa tình cờ, bạn có thể sử dụng thay đổi cơ sở dữ liệu DATAFILE <datafile name> Offline thả lệnh để làm cho datafile ngoại tuyến để các cơ sở dữ liệu có thể bắt đầu theo sau đó có thể không trong tablespace bị tụt xuống. (See instruction to recover from missing datafiles.) [...] (Xem hướng dẫn việc phục hồi từ thiếu datafiles.) [...]

Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Đăng ký nhận xét tính năng đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo về ý kiến mới nhất được đăng, đăng ký với My Digital Life Comments RSS feed Cuộc sống kỹ thuật số Bình luận của tôi nguồn cấp dữ liệu RSS or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong thư điện tử tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm kiếm các điều khoản cho các Điều

drop tablespace oracle thả tablespace oracle - -- drop tablespace thả tablespace - -- drop tablespace force thả tablespace lực - -- oracle drop tablespace oracle thả tablespace - -- alter database drop tablespace thay đổi cơ sở dữ liệu thả tablespace - -- recover tablespace khôi phục lại tablespace - -- alter tablespace offline drop thay đổi ngoại tuyến tablespace thả - -- recover tablespace oracle khôi phục lại tablespace oracle - -- offline drop offline thả - -- tablespace offline drop tablespace offline thả - -- drop tablespace offline thả tablespace ngoại tuyến - -- recover oracle database khôi phục lại cơ sở dữ liệu oracle - -- offline drop tablespace offline thả tablespace - -- oracle restore tablespace oracle khôi phục lại tablespace - -- Oracle recover tablespace Oracle tablespace phục hồi - -- drop tablespace in oracle thả tablespace trong oracle - -- drop tablespace mount thả tablespace lắp - -- drop offline tablespace thả offline tablespace - -- oracle database offline oracle cơ sở dữ liệu ngoại tuyến - -- how to recover tablespace làm thế nào để khôi phục lại tablespace - -- restore oracle tablespace khôi phục lại oracle tablespace - -- drop tablespace in oracle 10g thả tablespace trong oracle 10g - -- oracle missing datafile oracle thiếu datafile - -- oracle restore datafile oracle phục hồi datafile - -- oracle mount drop tablespace oracle lắp thả tablespace - -- oracle datafile drop oracle datafile thả - -- oracle datafile recovery oracle datafile phục hồi - -- recover tablespace in oracle khôi phục lại tablespace trong oracle - -- recover oracle tablespace phục hồi oracle tablespace - -- Oracle recover datafile Oracle phục hồi datafile - -- recover oracle datafile phục hồi datafile oracle - -- oracle drop tablespace force oracle thả tablespace lực - -- dropping tablespace in oracle rơi tablespace trong oracle - -- oracle tablespace offline oracle tablespace ngoại tuyến - -- oracle delete tablespace oracle xóa tablespace - -- drop data file thả các tệp dữ liệu - -- how to recover oracle database làm thế nào để khôi phục lại cơ sở dữ liệu oracle - -- oracle drop tablespace mount oracle thả tablespace lắp - -- oracle offline drop oracle offline thả - -- oracle drop tablespace offline oracle thả tablespace ngoại tuyến - -- import datafile oracle nhập khẩu datafile oracle - -- REMOVE datafile oracle XOÁ datafile oracle - -- how to drop tablespace in oracle làm thế nào để thả tablespace trong oracle - -- drop tablespace oracle command thả oracle tablespace lệnh - -- DROP TABLESPACE Thả TABLESPACE - -- datafile offline drop datafile offline thả - -- recover datafile oracle phục hồi datafile oracle - -- restore tablespace oracle khôi phục lại tablespace oracle - -- force drop tablespace oracle lực lượng vũ trang thả tablespace oracle - -- how to restore datafile in oracle làm thế nào để khôi phục lại datafile trong oracle - --