oracle imp導入庫到指定表空間

2021-06-28 20:47:52 字數 935 閱讀 1721

1.建立表空間

create tablespace

example_tablespace

datafile 'e:\****.dbf' size 10m

reuse

autoextend on next 1m

maxsize unlimited;

2.建立使用者,指定表空間,臨時表空間

create user

username

identified by

password

default tablespace

usertablespace

temporary tablespace

temp;

3.imp匯入資料庫檔案注意

grant dba to

username

; dba許可權是必需的

一般預設匯入的表空間是匯出時候的表空間

revoke unlimited tablespace from

username;

alter user

username

quota 0 on

users

; 表空間限額設定

alter user

username

quota unlimited on

user_define_tablespace;

imp

username/

password file='e:\***.dbf' tablespaces=

tbsfromuser=

sourcename

touser=

targetname

log='e:\a.txt'

Oracle imp命令匯入資料到指定表空間

找了乙個幾百萬行資料的庫,準備匯入的本地oracle中 imp sam lee file d agent.dmp fromuser system touser sam sam使用者的預設表空間是sam,但是資料卻匯入到了system表空間。google了一下,應該這樣做 1.收回unlimited ...

Oracle imp匯入資料指定表空間

imp匯入資料指定表空間,大致有以下幾種方法可以 1.有乙個簡單的方法,適用於資料比較少的情況 直接使用ultraedit打方dmp檔案,預設是16進製制,切換成文字模式,將裡面的 tablespace ts1 全部替換成tablespace ts2 然後再匯入,不用加什麼tablespaces t...

oracle imp 匯入資料

首先,從乙個使用者下匯出資料 exp sys sys orcl as sysdba file d tmp.dmp tables tmpuser.tb1,tmpuser.tbs 然後將匯出的資料匯入另乙個使用者tmpuser2 c documents and settings administrato...