ORCLE匯出資料

2021-10-02 01:58:23 字數 1124 閱讀 9108

-- 方法一

exp scf_sit_tgt/[email protected]:1521

/fgdbat file

=e:\data\20200108_scf.dmp owner=scf_sit_tgt

-- 方法二

expdp scf_sit_tgt/[email protected]:1521

/fgdbat directory=e:\data

dumpfile

=test_scf_sit_tgt_0108.dmp logfile=test_scf_sit_tgt_0108.log schemas=scf_sit_tgt

sqlplus /nolog    -- 進入sqlplus環境,nolog引數表示不登入:

sqlplus sys as sysdba

conn scf_sit_tgt/[email protected]:1521

/fgdbat as sysdba -- 登入遠端伺服器

show parameter log_archive_dest;

archive log list;

select

*from v$flash_recovery_area_usage;

-- 檢視日誌目錄的配置大小

show parameter recover;

--檢視日誌目錄

-- 刪除日誌檔案使用rman

rman target /

-- 進入

crosscheck archivelog all

;-- 檢查無用的日誌

delete expired archivelog all

;-- 刪除過期日誌

delete archivelog until time

'sysdate-7'

;-- 刪除7天前的日誌

shutdown immediate;

startup;

-- 修改日誌檔案容量大小

alter system set db_recovery_file_dest_size=

10g scope=both

ORCLE資料匯入匯出

本地安裝號資料庫軟體,並建立資料庫orcl 在建表空間的時候,建議命名與資料來源資料庫的表空間一致,不然後續匯入會出現問題 第1步 建立臨時表空間 create temporary tablespace qq temp tempfile d oracle data qq temp.dbf size ...

orcle之PLSQL匯入資料

在用以前,敲機房的時候都是用sql server中一條一條的寫 可是在用敲用了pd以後就不能那麼傻不拉幾的區一行一行的敲了,畢竟有了工具,今天就總結一下匯入sql指令碼。首先單機file,然後選擇new commond window,如下圖 然後在開啟的視窗中輸入 d share 05 drp sq...

orcle匯入資料檔案

在bj上班已經2個月了,感覺一直沒有進入狀態,只有強迫自己進入了。為了不荒廢之前學過的東西,計畫從資料庫開始繼續深入了解。於是從某處拷了個3.xg的資料庫檔案,回來恢復,然後搞搞效能優化。匯入步驟 1 建立 臨時 表空間 create tablespace ts a datafile d oracl...