這篇文章主要介紹“怎么將Expdp備份數(shù)據(jù)轉(zhuǎn)到ASM中”,在日常操作中,相信很多人在怎么將Expdp備份數(shù)據(jù)轉(zhuǎn)到ASM中問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”怎么將Expdp備份數(shù)據(jù)轉(zhuǎn)到ASM中”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
創(chuàng)新互聯(lián)建站專(zhuān)注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于網(wǎng)站設(shè)計(jì)、成都網(wǎng)站制作、肅州網(wǎng)絡(luò)推廣、微信小程序、肅州網(wǎng)絡(luò)營(yíng)銷(xiāo)、肅州企業(yè)策劃、肅州品牌公關(guān)、搜索引擎seo、人物專(zhuān)訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);創(chuàng)新互聯(lián)建站為所有大學(xué)生創(chuàng)業(yè)者提供肅州建站搭建服務(wù),24小時(shí)服務(wù)熱線:18982081108,官方網(wǎng)址:jinyejixie.com
一、問(wèn)題描述
需求要使用expdp備份數(shù)據(jù),檢查系統(tǒng)空間很小,不夠放備份文件。直接給系統(tǒng)加空間不就得了,可是這樣一來(lái)就要耽誤時(shí)間,還要聯(lián)系一大堆人員。此時(shí)ASM空間是很充足的,可不可以使用呢。接著就有以下的操作了。
二、實(shí)驗(yàn)
1.數(shù)據(jù)庫(kù)建立directory
SYS@PROD1 > create directory databk as '+data/backup'; Directory created. . [oracle@sam1 ~]$ expdp system/oracle direcotry=databk dumpfile=all.dmp full=y LRM-00101: unknown parameter name 'direcotry' [oracle@sam1 ~]$ expdp system/oracle directory=databk dumpfile=all.dmp full=y Export: Release 11.2.0.3.0 - Production on Sat Feb 15 08:13:57 2020 Copyright (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 Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options ORA-39002: invalid operation ORA-39070: Unable to open the log file. ORA-29283: invalid file operation ORA-06512: at "SYS.UTL_FILE", line 536 ORA-29283: invalid file operation
此時(shí)會(huì)有以上報(bào)錯(cuò),原因是日志無(wú)法寫(xiě)入ASM當(dāng)中導(dǎo)致。可以以下兩種方式解決:
A.使用NOLOGFILE=YES選項(xiàng)禁用日志。
B.將日志指定到系統(tǒng)的目錄。
2.測(cè)試NOLOGFILE=YES 成功完成備份
[oracle@sam1 ~]$ expdp system/oracle directory=databk dumpfile=all.dmp full=y NOLOGFILE=YES Export: Release 11.2.0.3.0 - Production on Mon Feb 24 01:22:35 2020 Copyright (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 Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Starting "SYSTEM"."SYS_EXPORT_FULL_01": system/******** directory=databk dumpfile=all.dmp full=y NOLOGFILE=YES Estimate in progress using BLOCKS method... Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA Total estimation using BLOCKS method: 4.809 GB Processing object type DATABASE_EXPORT/TABLESPACE Processing object type DATABASE_EXPORT/PROFILE Processing object type DATABASE_EXPORT/SYS_USER/USER Processing object type DATABASE_EXPORT/SCHEMA/USER Processing object type DATABASE_EXPORT/ROLE Processing 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 rows Master table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded ****************************************************************************** Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is: +DATA/backup/all.dmp Job "SYSTEM"."SYS_EXPORT_FULL_01" completed with 1 error(s) at 01:25:42
3.測(cè)試將log寫(xiě)到其他位置 成功完成備份
需要建立一個(gè)放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.log Export: Release 11.2.0.3.0 - Production on Mon Feb 24 04:50:37 2020 Copyright (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 Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** directory=databk dumpfile=scott.dmp schemas=scott logfile=logdump:expdp_scott.log Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 320 KB Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/SYSTEM_GRANT Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Processing object type SCHEMA_EXPORT/TABLE/TABLE Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT Processing 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 rows Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded ****************************************************************************** Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is: +DATA/backup/scott.dmp Job "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
到此,關(guān)于“怎么將Expdp備份數(shù)據(jù)轉(zhuǎn)到ASM中”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!
當(dāng)前名稱:怎么將Expdp備份數(shù)據(jù)轉(zhuǎn)到ASM中
文章分享:http://jinyejixie.com/article48/ggepep.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供面包屑導(dǎo)航、企業(yè)建站、網(wǎng)站改版、電子商務(wù)、靜態(tài)網(wǎng)站、網(wǎng)站營(yíng)銷(xiāo)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)