怎么将Expdp备份数据转到ASM中
发表于:2024-09-27 作者:千家信息网编辑
千家信息网最后更新 2024年09月27日,这篇文章主要介绍"怎么将Expdp备份数据转到ASM中",在日常操作中,相信很多人在怎么将Expdp备份数据转到ASM中问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"怎
千家信息网最后更新 2024年09月27日怎么将Expdp备份数据转到ASM中
这篇文章主要介绍"怎么将Expdp备份数据转到ASM中",在日常操作中,相信很多人在怎么将Expdp备份数据转到ASM中问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答"怎么将Expdp备份数据转到ASM中"的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
一、问题描述
需求要使用expdp备份数据,检查系统空间很小,不够放备份文件。直接给系统加空间不就得了,可是这样一来就要耽误时间,还要联系一大堆人员。此时ASM空间是很充足的,可不可以使用呢。接着就有以下的操作了。
二、实验
1.数据库建立directory
SYS@PROD1 > create directory databk as '+data/backup';Directory created..[oracle@sam1 ~]$ expdp system/oracle direcotry=databk dumpfile=all.dmp full=yLRM-00101: unknown parameter name 'direcotry'[oracle@sam1 ~]$ expdp system/oracle directory=databk dumpfile=all.dmp full=yExport: Release 11.2.0.3.0 - Production on Sat Feb 15 08:13:57 2020Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,Data Mining and Real Application Testing optionsORA-39002: invalid operationORA-39070: Unable to open the log file.ORA-29283: invalid file operationORA-06512: at "SYS.UTL_FILE", line 536ORA-29283: invalid file operation
此时会有以上报错,原因是日志无法写入ASM当中导致。可以以下两种方式解决:
A.使用NOLOGFILE=YES选项禁用日志。
B.将日志指定到系统的目录。
2.测试NOLOGFILE=YES 成功完成备份
[oracle@sam1 ~]$ expdp system/oracle directory=databk dumpfile=all.dmp full=y NOLOGFILE=YESExport: Release 11.2.0.3.0 - Production on Mon Feb 24 01:22:35 2020Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,Data Mining and Real Application Testing optionsStarting "SYSTEM"."SYS_EXPORT_FULL_01": system/******** directory=databk dumpfile=all.dmp full=y NOLOGFILE=YESEstimate in progress using BLOCKS method...Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATATotal estimation using BLOCKS method: 4.809 GBProcessing object type DATABASE_EXPORT/TABLESPACEProcessing object type DATABASE_EXPORT/PROFILEProcessing object type DATABASE_EXPORT/SYS_USER/USERProcessing object type DATABASE_EXPORT/SCHEMA/USERProcessing object type DATABASE_EXPORT/ROLEProcessing object type DATABASE_EXPORT/GRANT/SYSTEM_GRANT/PROC_SYSTEM_GRANT….... . exported "SYSTEM"."REPCAT$_USER_PARM_VALUES" 0 KB 0 rows. . exported "SYSTEM"."SQLPLUS_PRODUCT_PROFILE" 0 KB 0 rowsMaster table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded******************************************************************************Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is: +DATA/backup/all.dmpJob "SYSTEM"."SYS_EXPORT_FULL_01" completed with 1 error(s) at 01:25:42
3.测试将log写到其他位置 成功完成备份
需要建立一个放log的directory
SYS@PROD1 > create directory logdump as '/home/oracle';Directory created.[oracle@sam1 ~]$ expdp system/oracle directory=databk dumpfile=scott.dmp schemas=scott logfile=logdump:expdp_scott.logExport: Release 11.2.0.3.0 - Production on Mon Feb 24 04:50:37 2020Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionWith the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,Data Mining and Real Application Testing optionsStarting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** directory=databk dumpfile=scott.dmp schemas=scott logfile=logdump:expdp_scott.logEstimate in progress using BLOCKS method...Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATATotal estimation using BLOCKS method: 320 KBProcessing object type SCHEMA_EXPORT/USERProcessing object type SCHEMA_EXPORT/SYSTEM_GRANTProcessing object type SCHEMA_EXPORT/ROLE_GRANTProcessing object type SCHEMA_EXPORT/DEFAULT_ROLEProcessing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMAProcessing object type SCHEMA_EXPORT/TABLE/TABLEProcessing object type SCHEMA_EXPORT/TABLE/INDEX/INDEXProcessing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINTProcessing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICSProcessing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINTProcessing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS. . exported "SCOTT"."DEPT" 5.929 KB 4 rows. . exported "SCOTT"."EMP" 8.562 KB 14 rows. . exported "SCOTT"."SALGRADE" 5.859 KB 5 rows. . exported "SCOTT"."TABLE1" 5.835 KB 2 rows. . exported "SCOTT"."TEST" 5.421 KB 1 rows. . exported "SCOTT"."BONUS" 0 KB 0 rowsMaster table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded******************************************************************************Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is: +DATA/backup/scott.dmpJob "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at 04:51:03[oracle@sam1 ~]$ ls -l expdp_scott.log-rw-r--r-- 1 oracle asmadmin 2080 Feb 24 04:51 expdp_scott.log
到此,关于"怎么将Expdp备份数据转到ASM中"的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!
备份
数据
学习
日志
空间
系统
成功
更多
问题
帮助
测试
充足
实用
可不
接下来
这样一来
一来
不够
人员
位置
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
江西工信厅网络安全处
网络安全工作年度总结报告
网络技术专业国有企业
s7通讯服务器和客户端怎么选择
嵌入式软件开发审核要点
使命召唤战区俄罗斯是哪个服务器
四川便民平台软件开发公司
威海电商软件开发公司
湖北互联网养老软件开发系统
服务器启动中需要多久
白山政务软件开发多少钱
花开半夏是什么游戏服务器名字
五粮液服务器
数据库如何加入三个字段
计算机网络技术认证书
服务器一个区多少人
南京品牌网络技术怎么样
批发市场管理软件开发
服务器零预存免预存
互联网科技公司税费
小学生网络安全知识标语
服务器00000f
医院体检数据库申请模板
猫头鹰网络安全
期货软件开发时间
牡丹江大学计算机网络技术课程表
数据库备份未授权
成都软件开发公司是否专业
php存时间到数据库
gears5怎么连接不上服务器