How to Rename or Move Oracle Tablespace Datafile to Another Location Làm thế nào để Đổi tên hoặc Move Oracle tablespace DATAFILE để khác Địa điểm

Oracle database does not provide an easy user interface to rename a datafile of tablespace, nor database administrator can easily move or relocate the datafile to another location or directory that different from original location on creation of database. Oracle cơ sở dữ liệu không cung cấp một giao diện người dùng dễ dàng để đổi tên một DATAFILE của tablespace, và cũng không quản trị cơ sở dữ liệu có thể dễ dàng di chuyển hoặc di dời các DATAFILE đến một địa điểm hoặc thư mục khác nhau từ vị trí ban đầu về sáng tạo của cơ sở dữ liệu. The rename or move place task has to be performed via Oracle SQLPlus command line interface. Việc đổi tên hoặc di chuyển công việc diễn ra đã được thực hiện thông qua Oracle SQLPlus giao diện dòng lệnh. However, if the operation is performed when the tablespace which owns the datefile is online, error will occur. Tuy nhiên, nếu hoạt động được thực hiện khi tablespace các công ty sở hữu các datefile là trực tuyến, lỗi sẽ xảy ra.

The error message may include the following: Các thông báo lỗi có thể bao gồm:

ORA-01511: error in renaming log/data files ORA-01511: lỗi trong đổi tên đăng nhập / dữ liệu tập tin
ORA-01121: cannot rename database file <string> – file is in use or recovery ORA-01121: không thể đổi tên tập tin cơ sở dữ liệu <string> - tập tin đang được sử dụng hoặc phục hồi
ORA-01110: data file <string>: 'datafile.dbf' ORA-01110: file dữ liệu <string>: 'datafile.dbf'

To properly move the datafile around or rename the datafile, follow this guide: Để di chuyển đúng DATAFILE xung quanh hoặc đổi tên DATAFILE, hãy làm theo hướng dẫn này:

  1. Login to SQLPlus. Đăng nhập để SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Kết nối như SYS DBA với CONNECT / AS SYSDBA lệnh.
  3. Shutdown the database instance with SHUTDOWN command. Tắt máy tính, ví dụ cơ sở dữ liệu với lệnh SHUTDOWN.
  4. Rename or/and move the datafiles at operating system level. Đổi tên hoặc / và di chuyển datafiles ở cấp hệ điều hành.
  5. Start Oracle database in mount state with STARTUP MOUNT command. Bắt đầu của Oracle cơ sở dữ liệu trong nước gắn kết với lệnh StartUp Mount.
  6. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Sửa đổi tên hoặc vị trí của dữ liệu Oracle datafiles trong từ điển bằng cách sử dụng cú pháp lệnh sau đây:

    ALTER DATABASE RENAME FILE '<fully qualified path to original data file name>' TO '<new or original fully qualified path to new or original data file name>'; Đường dẫn <fully đủ điều kiện ALTER DATABASE đổi tên tập tin 'để tập tin dữ liệu gốc name>' <new TO 'hoặc bản gốc đầy đủ đường dẫn đến tập tin dữ liệu mới hoặc nguyên gốc name>';

  7. Open Oracle database instance completely with ALTER DATABASE OPEN command. Mở cơ sở dữ liệu Oracle dụ hoàn toàn với lệnh ALTER DATABASE OPEN.

If the datafiles that need to be changed or moved do not belong to SYSTEM tablespaces, and do not contain active rollback segments or temporary segments, there is another workaround that does not require database instance to be shutdown. Nếu datafiles rằng cần phải được thay đổi hoặc di chuyển không thuộc SYSTEM tablespaces, và không chứa các phân đoạn rollback hoạt động hoặc phân đoạn tạm thời, có một lỗi tạm mà không cần dụ cơ sở dữ liệu sẽ được tắt. Instead, only the particular tablespace that contains the date files is taken offline. Thay vào đó, chỉ có những tablespace cụ thể có chứa các tập tin được lấy ngày offline.

  1. Login to SQLPlus. Đăng nhập để SQLPlus.
  2. Connect as SYS DBA with CONNECT / AS SYSDBA command. Kết nối như SYS DBA với CONNECT / AS SYSDBA lệnh.
  3. Make offline the affected tablespace with ALTER TABLESPACE <tablespace name> OFFLINE; command. Hãy offline các tablespace bị ảnh hưởng với <tablespace ALTER tablespace name> OFFLINE; lệnh.
  4. Modify the name or location of datafiles in Oracle data dictionary using following command syntax: Sửa đổi tên hoặc vị trí của dữ liệu Oracle datafiles trong từ điển bằng cách sử dụng cú pháp lệnh sau đây:

    ALTER TABLESPACE <tablespace name> RENAME DATAFILE '<fully qualified path to original data file name>' TO '<new or original fully qualified path to new or original data file name>'; ALTER tablespace <tablespace name> đường dẫn <fully đủ điều kiện đổi tên DATAFILE 'vào dữ liệu gốc tập name>' <new TO 'hoặc bản gốc đầy đủ đường dẫn đến tập tin dữ liệu mới hoặc nguyên gốc name>';

  5. Bring the tablespace online again with ALTER TABLESPACE alter tablespace <tablespace name> ONLINE; command. Mang theo tuyến tablespace lại với ALTER tablespace thay đổi <tablespace tablespace name> ONLINE; lệnh.

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


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 <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với My Digital Life Comments RSS feed My Digital Life kiến RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

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

rename datafile đổi tên DATAFILE - -- oracle move datafile oracle di chuyển DATAFILE - -- oracle move tablespace oracle di chuyển tablespace - -- move tablespace di chuyển tablespace - -- oracle rename datafile oracle đổi tên DATAFILE - -- oracle move datafiles oracle di chuyển datafiles - -- rename datafile oracle đổi tên oracle DATAFILE - -- move datafile di chuyển DATAFILE - -- change datafile location DATAFILE thay đổi địa điểm - -- oracle datafile rename oracle DATAFILE đổi tên - -- rename oracle datafile đổi tên DATAFILE oracle - -- oracle show tablespaces oracle hiển thị tablespaces - -- move oracle datafile di chuyển oracle DATAFILE - -- oracle tablespace location oracle tablespace địa điểm - -- oracle tablespace path oracle tablespace con đường - -- all tất cả - -- move datafile oracle di chuyển DATAFILE oracle - -- oracle show datafiles oracle hiển thị datafiles - -- move datafiles oracle di chuyển datafiles oracle - -- rename data file đổi tên file dữ liệu - -- oracle rename oracle đổi tên - -- oracle show tablespace oracle hiển thị tablespace - -- move tablespace oracle di chuyển tablespace oracle - -- Move Oracle Tablespace Move Oracle tablespace - -- sqlplus show tablespaces sqlplus hiển thị tablespaces - -- Oracle change datafile location Oracle thay đổi địa điểm DATAFILE - -- oracle tablespace oracle tablespace - -- mover datafile mover DATAFILE - -- move oracle datafiles di chuyển oracle datafiles - -- oracle datafile name oracle DATAFILE tên - -- sqlplus show tablespace sqlplus hiển thị tablespace - -- change oracle datafile path oracle DATAFILE thay đổi con đường - -- change tablespace name thay đổi tên tablespace - -- oracle move temp file oracle di chuyển tập tin temp - -- move datafiles di chuyển datafiles - -- How to Rename or Move Oracle Tablespace Datafile to Another Location Làm thế nào để Đổi tên hoặc Move Oracle tablespace DATAFILE để khác Địa điểm - -- ORA-01511: error in renaming log/data files ORA-01511: lỗi trong đổi tên đăng nhập / dữ liệu tập tin - -- rename oracle tablespace đổi tên tablespace oracle - -- datafile rename DATAFILE đổi tên - -- mover datafile oracle mover DATAFILE oracle - -- move data file dữ liệu di chuyển tập tin - -- alter datafile rename DATAFILE thay đổi tên - -- rename datafile in oracle đổi tên DATAFILE trong oracle - -- move tablespace datafile di chuyển tablespace DATAFILE - -- move datafile in oracle di chuyển DATAFILE trong oracle - -- alter datafile move thay đổi di chuyển DATAFILE - -- change datafile name DATAFILE thay đổi tên - -- Oracle tablespace filename Oracle tablespace tên tập tin - -- Oracle move tablespace file Oracle chuyển tablespace tập - -- how to rename a datafile làm thế nào để đổi tên một DATAFILE - -- rename datafiles đổi tên datafiles - -- move datafiles in oracle di chuyển datafiles trong oracle - -- oracle tablespace rename oracle tablespace đổi tên - -- ORACLE MOVE DATAFILE TO ANOTHER TABLESPACE ORACLE MOVE DATAFILE TO ANOTHER tablespace - -- how to move oracle datafile làm thế nào để di chuyển DATAFILE oracle - -- oracle move system datafile oracle di chuyển hệ thống DATAFILE - -- oracle tablespace name oracle tablespace tên - -- mover datafiles Triển khai nhanh các datafiles - -- oracle alter move oracle thay đổi di chuyển - -- oracle tablespace files oracle tablespace tập - -- move datafile online di chuyển DATAFILE trực tuyến - -- oracle move temp datafile oracle di chuyển temp DATAFILE - -- MOVE ORACLE DATA FILE MOVE ORACLE DATA FILE - -- renaming datafiles đổi tên datafiles - -- oracle tablespace move oracle tablespace di chuyển - -- MOVE DATAFILE TO ANOTHER TABLESPACE MOVE DATAFILE TO ANOTHER tablespace - -- RENAME ORACLE Đổi tên ORACLE - -- Oracle data file path Đường dẫn tập tin dữ liệu Oracle - -- oracle change datafile path oracle thay đổi đường dẫn DATAFILE - -- renaming an oracle database đổi tên một cơ sở dữ liệu ORACLE - -- oracle oracle - -- move oracle database di chuyển cơ sở dữ liệu ORACLE - -- oracle move tablespace data file oracle di chuyển dữ liệu tập tin tablespace - -- Moving Oracle Datafiles Di chuyển Oracle Datafiles - -- rename a datafile in oracle đổi tên một DATAFILE trong oracle - --