oracle11g迁移表空间
表空间名为sbjc,要从'D:\APP\ORACLE\ORADATA\TABLESPACE\SBJC.DBF' 迁移到 'F:\oracle\oradata\tablespace\SBJC.DBF'。 扼要操作步骤: 第一步:登陆数据库 第二步:中止数据库 第三步:在open方式下启动数据库 第四步:将表空间(SBJC)脱机 第五步:手工将
表空间名为sbjc,要从 'D:\APP\ORACLE\ORADATA\TABLESPACE\SBJC.DBF' 迁移到 'F:\oracle\oradata\tablespace\SBJC.DBF'。
扼要操作步骤:
第一步:登陆数据库
第二步:中止数据库
第三步:在open方式下启动数据库
第四步:将表空间(SBJC)脱机
第五步:手工将表空间所运用的数据库文件('D:\APP\ORACLE\ORADATA\TABLESPACE\SBJC.DBF'), 复制到你要转移的目录('F:\oracle\oradata\tablespace\SBJC.DBF'),
第六步:将表空间与新目录下的数据库文件关联
第七步:将表空间联机,提交,OK,完成。
迁移步骤:
C:\Users\Administrator>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on 星期六 11月 9 12:03:15 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> conn / as sysdba
已连接。
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup open
ORACLE 例程已经启动。
Total System Global Area 3.4206E+10 bytes
Fixed Size 2192864 bytes
Variable Size 1.6643E+10 bytes
Database Buffers 1.7515E+10 bytes
Redo Buffers 45727744 bytes
数据库装载完毕。
数据库已经打开。
SQL> alter tablespace sbjc offline;
表空间已更改。
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
D:\APP\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
D:\APP\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
D:\APP\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
D:\APP\ORACLE\ORADATA\ORCL\USERS01.DBF
D:\APP\ORACLE\ORADATA\ORCL\DZJC_DATA.DBF
F:\ORACLE\ORADATA\TABLESPACE\ZFJC.DBF
D:\APP\ORACLE\ORADATA\TABLESPACE\SBJC.DBF
已选择7行。
SQL> alter tablespace sbjc rename datafile 'D:\APP\ORACLE\ORADATA\TABLESPACE\SBJC.DBF' to 'F:\oracle\oradata\tablespace\SBJC.DBF';
表空间已更改。
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
D:\APP\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
D:\APP\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
D:\APP\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
D:\APP\ORACLE\ORADATA\ORCL\USERS01.DBF
D:\APP\ORACLE\ORADATA\ORCL\DZJC_DATA.DBF
F:\ORACLE\ORADATA\TABLESPACE\ZFJC.DBF
F:\ORACLE\ORADATA\TABLESPACE\SBJC.DBF
已选择7行。
SQL> alter tablespace sbjc online;
表空间已更改。
SQL> commit;
提交完成。
若上述有报错:
SQL>rollback;
SQL> alter tablespace eucrmspace rename datafile 'F:\oracle\oradata\tablespace\SBJC.DBF' to 'D:\APP\ORACLE\ORADATA\TABLESPACE\SBJC.DBF';

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



1. Open the WeChat app on the old device, click [Me] in the lower right corner, select the [Settings] function, and click [Chat]. 2. Select [Chat History Migration and Backup], click [Migrate], and select the platform to which you want to migrate the device. 3. Click [Select chats to be migrated], click [Select all] in the lower left corner, or select chat records yourself. 4. After selecting, click [Start] in the lower right corner to log in to this WeChat account using the new device. 5. Then scan the QR code to start migrating chat records. Users only need to wait for the migration to complete.

Linux and Docker: How to migrate and synchronize containers across hosts? Summary: Docker is a popular containerization technology that provides a lightweight virtualization solution. In a multi-host environment, it is a very common requirement to migrate and synchronize containers across hosts. This article will introduce how to use Linux and Docker to implement cross-host migration and synchronization of containers, and provide some sample code for reference. Introduction The rise of containerization technology makes application deployment and migration more flexible and efficient. on multiple hosts

This article is reprinted from the WeChat public account "Living in the Information Age". The author lives in the information age. To reprint this article, please contact the Living in the Information Age public account. In machine learning, a basic concept is how to judge the difference between two samples, so that the similarity and category information between the two samples can be evaluated. The measure to judge this similarity is the distance between two samples in the feature space. There are many measurement methods based on different data characteristics. Generally speaking, for two data samples x, y, define a function d(x, y). If it is defined as the distance between the two samples, then d(x, y) needs to satisfy the following basic properties : Non-negativity: d(x, y)>=0 Identity: d(x, y)=0 ⇔ x=y pair

Swap space plays an important role in Linux systems, especially when the system is low on memory. It acts as a backup memory storage space that helps the system run smoothly and maintain stability even under high load. This article provides you with a detailed guide to adding swap space on Ubuntu 22.04LTS to ensure that your system performance is optimized and can handle various workloads. Understanding Swap Space Swap space provides virtual memory that is used to supplement the system's physical RAM. When the system is low on RAM, the kernel swaps data to disk to prevent out-of-memory and system crashes. Linux systems commonly use swap space to handle this situation. Run multiple memory-intensive applications simultaneously to process very large files or data

How to migrate and integrate projects in GitLab Introduction: In the software development process, project migration and integration is an important task. As a popular code hosting platform, GitLab provides a series of convenient tools and functions to support project migration and integration. This article will introduce the specific steps for project migration and integration in GitLab, and provide some code examples to help readers better understand. 1. Project migration Project migration is to migrate the existing code base from a source code management system to GitLab

The remaining space on the c drive is 50-80G which is more suitable. Since the system will generate junk files, cache files, etc. in the future, it is recommended to reserve at least 50GB-80GB of space for the C drive; if you are not used to choosing a path when installing software and do not clean your computer frequently, then at least 100GB is required. .

As we all know, if the system disk occupied is too large after the system installation is completed, it may cause system lags, delays, and even file loss. Therefore, before you install the win11 system, you need to know how much C drive space is required to upgrade win11. Let’s take a look with the editor. How much C drive space is required to upgrade win11: Answer: Upgrading win11 requires 20-30GB of C drive space. 1. According to Microsoft’s win11 configuration requirements, you can see that win11 installation requires 64GB of hard drive space. 2. But in fact, generally speaking, there is no need for such a large space. 3. According to feedback from users who have already installed win11, the win11 upgrade requires about 20-30GB of C drive space. 4. But if our door only has

1. On the old device, click "Me" → "Settings" → "Chat" → "Chat History Migration and Backup" → "Migrate". 2. Select the target platform device to be migrated, select the chat records to be migrated, and click "Start". 3. Log in with the same WeChat account on the new device and scan the QR code to start chat record migration.
