Oracle不同表空间之间的数据迁移
--将数据库为testdb,用户名为testuser中默认(users)表空间里的数据迁移至表空间(newtablespace) --1.用system用户登陆testdb数
首页 → 数据库技术
背景:
阅读新闻
Oracle不同表空间之间的数据迁移
[日期:2013-01-29] 来源:Linux社区 作者:Linux [字体:]
--将数据库为testdb,用户名为testuser中默认(users)表空间里的数据迁移至表空间(newtablespace)
--1.用system用户登陆testdb数据库,创建directory(testdir)并将读、写权限授予testuser用户
create or replace directory testdir as 'e:\temp';
grant read, write on directory testdir to testuser;
--使用expdp命令导出testuser用户的数据
expdp system/aaaaaa@testdb directory=testdir dumpfile=testdb.dmp schemas=testuser;
--2.创建表空间newtablespace
create tablespace newtablespace
logging
datafile 'E:\Oracle\product\10.2.0\oradata\oa\newtablespace.dbf'
size 100m
autoextend on
next 200m maxsize 2048m
extent management local;
--3.将testuser的表空间修改为newtablespace
alter user testuser default tablespace newtablespace;
--4.将testuser用户下面的表、序列等删除
--5.导入数据
impdp system/aaaaaa@testdb directory=testdir dumpfile=testdb.dmp remap_tablespace=users:newtablespace
Oracle 中的sequence用法
CentOS上开启MySQL远程访问权限
相关资讯 Oracle表空间 Oracle数据迁移
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门
Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。
Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

在 Linux 中運行 MySQl(有/沒有帶有 phpmyadmin 的 podman 容器)

哪些流行的MySQL GUI工具(例如MySQL Workbench,PhpMyAdmin)是什麼?
