Oracle如何備份還原-創(chuàng)新互聯(lián)

這篇文章主要介紹Oracle如何備份還原,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!

創(chuàng)新互聯(lián)公司作為成都網(wǎng)站建設(shè)公司,專注網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì),有關(guān)企業(yè)網(wǎng)站建設(shè)方案、改版、費(fèi)用等問(wèn)題,行業(yè)涉及門窗定制等多個(gè)領(lǐng)域,已為上千家企業(yè)服務(wù),得到了客戶的尊重與認(rèn)可。

創(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=y

EXPDP/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用戶密碼
      在服務(wù)器本地登錄,無(wú)須密碼

    sqlplus / as sysdba
    • 登陸之后更改密碼

    sql> alter user sys identified by sys;
  • user test lacks CREATE SESSION privilege; logon denied.
    • 使用DBA登陸,執(zhí)行下面的授權(quán)語(yǔ)句。

    • grant connect,resource to test;
    • grant create session to test;

以上是“Oracle如何備份還原”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

網(wǎng)頁(yè)題目:Oracle如何備份還原-創(chuàng)新互聯(lián)
鏈接地址:http://muchs.cn/article18/egigp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信小程序、靜態(tài)網(wǎng)站云服務(wù)器、網(wǎng)站導(dǎo)航、品牌網(wǎng)站制作電子商務(wù)

廣告

聲明:本網(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)

營(yíng)銷型網(wǎng)站建設(shè)