免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
oracle使用九(備份和恢復(fù))

用戶之間導(dǎo)數(shù)據(jù):

       exp usertest/usertest@oralce file=usertestp  owner=usertest

導(dǎo)出整個(gè)數(shù)據(jù)庫對(duì)象

imp system/manager file=scott_table  fromuser=scott     touser=myuser     tables=(emp,dept)

導(dǎo)出用戶:

Exp username/password@databasename  file=filename  owner = owner

以表方式導(dǎo)出:

Exp user/pwd@dbname tables=(table1,table2)   file=filenam

/*********************************************************/

以下命令導(dǎo)出指定用戶模式下的所有對(duì)象。

exp yyaccp/yyaccp@oracle 

file=e:\oracleExport\accp_bak.dmp  owner=yyaccp

以下代碼演示了導(dǎo)出指定的表:

   exp yyaccp/yyaccp@oracle 

   tables=(mytable,product)  file=e:\oracleExport\yyaccptable.dmp

以下代碼演示了按表空間的方式導(dǎo)出數(shù)據(jù):

   exp yyaccp/yyaccp@oracle 

   tablespaces=(yyaccp)

   file=e:\oracleExport\yyaccptablespace_bak.dmp

以下代碼演示了參數(shù)文件的使用:

   Exp parfile=’e:\oracleExport\dbinfo.txt’

用戶之導(dǎo)數(shù)據(jù):

imp system/manager@oracle file=e:\oracleExport\yyaccp_user.dmp fromuser=yyaccp  touser=system tables=(divisions,jobs,employees2)

 查看歸檔日志命令:

Connect system/manager as sysdba;

Archive log list;

更改成歸檔日志方式后執(zhí)行以下命令:

   alter tablespace yyaccp begin backup;

   再手工備份 DBF 數(shù)據(jù)文件

alter tablespace yyaccp  end  backup;

再切換聯(lián)機(jī)日志文件:

Alter system archive log current;

Alter system switch logfile;

Alter system switch logfile;

停止服務(wù):

Shutdown immediate;

刪除 yyaccp  的 數(shù)據(jù)文件

Select * from v$recover_file;  顯示錯(cuò)誤信息。

Alter database datafile 6 offline drop;

Alter database open;

 再把備份的數(shù)據(jù)文件COPY 過來。

Recover datafile6;

指定 auto

Alter database datafile 6 online 

創(chuàng)建一個(gè)表空間 和一個(gè)用戶:

create tablespace yyaccp datafile ''D:\oracle9iInstall\ora90\oradata\oracle\yyaccp.DBF''

size 5M autoextend on

/

創(chuàng)建一個(gè)用戶并且分配表空間:

create user yyaccp identified by yyaccp

default tablespace yyaccp

temporary tablespace temp;

分配權(quán)限:

grant create session to yyaccp;

grant dba to yyaccp;  

配制OEM 操作:

刪除以下文件:

 D:\oracle\ora90\network\ADMIN\snmp_ro.ora

 D:\oracle\ora90\network\ADMIN\snmp_rw.ora

 D:\oracle\ora90\network\agent\ services.ora

 刪除D:\oracle\ora90\network\agent 目錄下的所有 .q 文件

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Oracle學(xué)習(xí)筆記十四:備份與恢復(fù)案例
oracle快速創(chuàng)建用戶、imp/exp導(dǎo)入導(dǎo)出dmp文件
單實(shí)例數(shù)據(jù)庫遷移到rac環(huán)境——RAMN
Oracle中表空間的創(chuàng)建,修改,刪除
oracle創(chuàng)建表空間和用戶授權(quán) - - JavaEye技術(shù)網(wǎng)站
Oracle 數(shù)據(jù)庫復(fù)制
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服