這篇文章主要介紹Oracle如何備份還原,文中介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們一定要看完!
創(chuàng)建表分區(qū)
create tablespace apps datafile '&1\apps.dbf' size 10m autoextend on next 8m; create tablespace appsys datafile '&1\appsys.dbf' size 10m autoextend on next 8m;創(chuàng)建分區(qū)表空間
create tablespace APPS_00 datafile '&1\APPS_00.dbf' size 10M autoextend on next 8M; create tablespace APPSYS_00 datafile '&1\APPSYS_00.dbf' size 10M autoextend on next 8M;刪除用戶
drop user apps cascade; drop user appsys cascade;創(chuàng)建用戶
create user apps identified by cape default tablespace apps; create user appsys identified by cape default tablespace appsys;授權(quán)
grant dba to apps with admin option; grant dba to appsys; grant create any table to apps; grant alter any table to apps; grant drop any table to apps; grant create any index to apps; grant drop any index to apps;創(chuàng)建目錄
create or replace directory expdp_wms_dir as 'D:\data_bak\'; grant read, write on directory expdp_wms_dir to APPS;EXP/IMP備份與還原
exp user/pwd@SID file=d:\db_20101010.dmp log=d:\db_20101010.log owner=(apps,appsys) imp user/pwd@SID file=D:\db_20101010.dmp log=D:\db_20101010.log fromuser=apps touser=apps fromuser=appsys touser=appsys ignore=yEXPDP/IMPDP備份還原
expdp user/pwd@SID dumpfile=DB20141216.dmp logfile=DB20141216.log schemas=(apps,appsys) directory=expdp_dir job_name=expdp_job version=11.1.0.2 impdp user/pwd@SID dumpfile=DB20141216.DMP logfile=DB20141216.log schemas=(apps,appsys) directory=impdp_dir job_name=impdp_job表空間映射
impdp user/pwd@SID dumpfile=DB20141216.DMP logfile=DB20141216.log remap_schema=QA_SOA:SNPW remap_tablespace=DEV_ODI_USER:JJE_ODI_USER directory=impdp_dir job_name=impdp_job忘記ORACLE的管理員sys用戶密碼
在服務器本地登錄,無須密碼
登陸之后更改密碼
使用DBA登陸,執(zhí)行下面的授權(quán)語句。
以上是“Oracle如何備份還原”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關知識,歡迎關注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
網(wǎng)頁題目:Oracle如何備份還原-創(chuàng)新互聯(lián)
鏈接地址:http://chinadenli.net/article18/egigp.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供微信小程序、靜態(tài)網(wǎng)站、云服務器、網(wǎng)站導航、品牌網(wǎng)站制作、電子商務
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容