1. 程式人生 > >oracle 資料庫imp操作匯入dmp檔案時表空間問題

oracle 資料庫imp操作匯入dmp檔案時表空間問題

轉:http://blog.csdn.net/zhuxiaowei716/article/details/44651465

一:

假設資料使用者USER1使用預設表空間TS1,使用者USER2使用預設表空間TS2,現在將USER1的資料匯入到USER2,要求使用表空間TS2。通過IMP命令引數tablespaces指定表空間是不行的,其他複雜方法要修改配額什麼的,麻煩。整理了一下,大致有以下幾種方法可以:
1. 有一個簡單的方法,適用於資料比較少的情況:直接使用UltraEdit打方DMP檔案,預設是16進位制,切換成文字模式,將裡面的:TABLESPACE "TS1"全部替換成TABLESPACE "TS2",然後再匯入,不用加什麼tablespaces=TS2之類的引數即可,當然加了也無所所謂。


C:\>IMP USER2/USER2 log=C:\plsimp.log file=D:\database\USER1.dmp fromuser=USER1 touser=USER2 ignore=yes tablespaces=TS2

不過有個缺點,如果DMP檔案有幾百M甚至幾G,嘿嘿嘿嘿,不知道UltraEdit有啥反應?

2. 還有另外一種比較好的方法。基本思路都是先從USER1匯出表結構(DMP或者SQL指令碼),然後在USER2使用者下建立空的資料庫表(如果是DMP,則參見方法1;如果是SQL指令碼,則稍作修改後以USER2使用者執行即可),再將包括資料的DMP匯入,注意要設IGNORE=Y,並指定FROMUSER和TOUSER。具體實現方法為:
(1)
先用工具匯出USER1的表結構(不要匯出CHECK和FK,特別是FK!),TOAD和PL/SQL都有此功能。PL/SQL Developer匯出表結構:Tools-->Export User Objects(匯出使用者物件) -->選擇要匯出的表(包括Sequence等)-->.sql檔案,匯出的都為sql檔案。或者使用imp的indexfile選項生成表結構的SQL指令碼。
(2)在USER2使用者下建立相同的表結構
(3)匯入完整的資料

PS:
PL/SQL Developer工具操作步驟:
(1)匯出表結構:
Tools-->Export User Objects(匯出使用者物件) -->選擇要匯出的表(包括Sequence等)-->.sql檔案,匯出的都為sql檔案
(這一步也可以匯出一個只包括表結構的DMP檔案。)

(2)匯出表資料:
Tools-->Export Tables-->選擇表,選擇SQL Inserts-->.sql檔案
(這一步也可以匯出一個包括表結構和資料或者只有資料沒有表結構圖的DMP檔案。)

(3)匯入表結構:
執行剛剛匯出的sql檔案,記住要刪掉table前的使用者名稱,比如以前這表名為sys.tablename,必須刪除sys
(如果是隻包括表結構的DMP檔案,則使用UltraEdit修改表空間,再匯入。如方法1)

(4)匯入表資料:
執行剛剛匯出的sql檔案
(如果是DMP檔案,則直接匯入即可,注意要設IGNORE=Y,並指定FROMUSER和TOUSER。)

IMP命令操作步驟:

首先:exp user/pw file=file.dmp owner=yourUser1
然後:imp user/pw file=file.dmp indexfile=xxxx.sql fromuser=yourUser1 touser=yourUser2
隨後:修改xxxx.sql中的關於有表空間設定的地方為新的表空間,並去掉相關的註釋(rem),然後執行xxxx.sql建立相關物件。
最後:imp user/pw file=file.dmp fromuser=yourUser1 touser=yourUser2 ignore=y

一直以來,我都認為只要指定使用者的預設表空間,向該使用者匯入資料時,會自動進入到預設表空間。後來發現從System匯出的dmp檔案在匯入時,即使指定新使用者的預設表空間,還是要往System表空間中導資料。

上網搜了一下,還是有解決方法的,常見的方法如下:

SQL> create user myhuang identified by myhuang default tablespace myhuang;

SQL> grant resource,connect to myhuang;

SQL> grant dba to myhuang;//賦DBA許可權

SQL> revoke unlimited tablespace from myhuang;//撤銷此許可權

SQL> alter user myhuang quota 0 on system;//將使用者在System表空間的配額置為0

SQL> alter user myhuang quota unlimited on myhuang;//設定在使用者在myhuang表空間配額不受限。

經過上述設定後,就可以用imp匯入資料,資料將會進入指定的myhuang表空間:

C:\Documents and Settings\myhuang>imp system/[email protected] fromuser=lnxh tous

er=myhuang file=G:\myhuang\lnxh.dmp ignore=y grants=n

順便說兩個小問題:

(1)IMP-00003: 遇到 Oracle 錯誤 1658

ORA-01658: 無法為表空間 MYHUANG 中的段建立 INITIAL 區

通常這個問題可以通過Resize增加表空間資料檔案大小來解決。

(2)刪除表空間

SQL> drop tablespace myhuang including contents and datafiles;

在10g中實驗,drop表空間之後,仍然需要手動去刪除資料檔案。


//2008-08-24補充————————————————————————
另一種比較好的方法:

Create tablespace {tbs_name} datafile ‘{file_path}’ size 500M autoextend on next 10M;

Create user {u_name} identified by {u_pwd} default tablespace {tbs_name} quota unlimited on {tbs_name};

Grant connect,imp_full_database to {u_name};

Imp {u_name}/{u_pwd}@{local_svrname} fromuser={from_user} touser={u_name} file={dmp_file_path} ignore=y tablespaces={tbs_name};

此方法不需要授予新使用者DBA許可權。
此方法的存在的問題是:可能導致包含BLOB、CLOB欄位的表匯入失敗,這種情況下可以先用sql指令碼將表結構建立起來,再匯入相應的資料。

方法二:

一直以來,我都認為只要指定使用者的預設表空間,向該使用者匯入資料時,會自動進入到預設表空間。後來發現從System匯出的dmp檔案在匯入時,即使指定新使用者的預設表空間,還是要往System表空間中導資料。

上網搜了一下,還是有解決方法的,常見的方法如下:

SQL> create user myhuang identified by myhuang default tablespace myhuang;

SQL> grant resource,connect to myhuang;

SQL> grant dba to myhuang;//賦DBA許可權

SQL> revoke unlimited tablespace from myhuang;//撤銷此許可權

SQL> alter user myhuang quota 0 on system;//將使用者在System表空間的配額置為0

SQL> alter user myhuang quota unlimited on myhuang;//設定在使用者在myhuang表空間配額不受限。

經過上述設定後,就可以用imp匯入資料,資料將會進入指定的myhuang表空間:

C:\Documents and Settings\myhuang>imp system/[email protected] fromuser=lnxh tous

er=myhuang file=G:\myhuang\lnxh.dmp ignore=y grants=n

順便說兩個小問題:

(1)IMP-00003: 遇到 ORACLE 錯誤 1658

ORA-01658: 無法為表空間 MYHUANG 中的段建立 INITIAL 區

通常這個問題可以通過Resize增加表空間資料檔案大小來解決。

(2)刪除表空間

SQL> drop tablespace myhuang including contents and datafiles;

在10g中實驗,drop表空間之後,仍然需要手動去刪除資料檔案。

 
//2008-08-24補充————————————————————————
另一種比較好的方法:

Create tablespace {tbs_name} datafile ‘{file_path}’ size 500M autoextend on next 10M;

Create user {u_name} identified by {u_pwd} default tablespace {tbs_name} quota unlimited on {tbs_name};

Grant connect,imp_full_database to {u_name};

Imp {u_name}/{u_pwd}@{local_svrname} fromuser={from_user} touser={u_name} file={dmp_file_path} ignore=y tablespaces={tbs_name};

此方法不需要授予新使用者DBA許可權。
此方法的存在的問題是:可能導致包含BLOB、CLOB欄位的表匯入失敗,這種情況下可以先用sql指令碼將表結構建立起來,再匯入相應的資料。

轉:http://blog.itpub.net/9252210/viewspace-624829/

 今天同事問了一個問題,在imp的時候,為了加快速度,想先匯入資料,最後再建立index或者啟用約束,該如何操作?做了一些測試,得出如下結論:

1. 在imp的時候,是先imp資料,然後再建立index和建立約束的。(我以前一直認為先建立約束,禁用,然後imp完資料以後再啟用),結論是約束在imp完資料以後再建立,如果違反了約束則會報錯。

2. 如果exp中的約束是通過
    alter table table1 add(constraint ck_name unique(name) deferrable novalidate); 來建立的,即不驗證原始資料,那麼在imp的時候會報錯:
IMP-00003: ORACLE error 2299 encountered
ORA-02299: cannot validate (ECC_VIEW.CK_NAME) - duplicate keys found

3. exp時只定了tables,則其他物件(e.g.view,procedure)不會exp,但是indexes和constraint會exp.

4. 實驗結果
--1. 建立表空間
SQL> conn sys/[email protected]
SQL> CREATE TABLESPACE "LEIZ" LOGGING DATAFILE '/u02/oradata/nfdb/LEIZ.dbf' SIZE 5M 

--2. 建立測試使用者    
SQL> create user zhanglei identified by ecc default tablespace leiz
SQL> create user ecc_view identified by ecc default tablespace data

--3. 授權
SQL> grant create session to zhanglei;
Grant succeeded
SQL> grant create table to zhanglei;
Grant succeeded
SQL> alter user ecc_view quota 1m on leiz ;
使用者已更改。
SQL> alter user ecc_view quota 1m on data ;
使用者已更改。

--4. user zhanglei exp 
SQL> conn zhanglei/[email protected] 
SQL> create table table1 (id varchar2(10), name varchar2(10));
Table created
SQL> insert into table1 values(1,a);
SQL> insert into table1 values(1,b);
SQL> insert into table1 values(1,c);
SQL> insert into table1 values(1,d);
SQL> insert into table1 values(2,e);
SQL> insert into table1 values(2,f);
SQL> insert into table1 values(2,g);
SQL> insert into table1 values(3,h);
SQL> insert into table1 values(3,i);
SQL> insert into table1 values(3,j);
SQL> insert into table1 values(4,k);
SQL> commit;
Commit complete

SQL> select * from table1;
ID      NAME
---     ----
1 a
1 b
1 c
1 d
2 e
2 f
2 g
3 h
3 i
3 j
4 k
11 rows selected

SQL> create index index1 on table1(id) tablespace leiz;
Index created

SQL> create index index2 on table1(name) tablespace data;
INDEX created
 
SQL> ALTER TABLE "ZHANGLEI"."TABLE1" ADD (CONSTRAINT "CK_ID" CHECK(id<10))

[[email protected] ~]$ exp zhanglei/[email protected] file=./table1.dmp 
Export: Release 10.2.0.1.0 - Production on Mon Jan 11 11:08:56 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user ZHANGLEI 
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user ZHANGLEI 
About to export ZHANGLEI's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export ZHANGLEI's tables via Conventional Path ...
. . exporting table                         TABLE1         11 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.

--5. user ecc_view imp 
SQL> conn sys/[email protected] as sysdba 
SQL> alter user ecc_view quota 1m on leiz ;
使用者已更改。
SQL> alter user ecc_view quota 1m on data ; 
 
a. 正常匯入
[[email protected] ~]$ imp ecc_view/[email protected] file=./table1.dmp fromuser=zhanglei touser=ecc_view;
Import: Release 10.2.0.1.0 - Production on Mon Jan 11 11:16:47 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
CONNECTED to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by ZHANGLEI, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. . importing table                       "TABLE1"         11 rows imported
About to enable constraints...
Import terminated successfully without warnings.

b. INDEXES=N
[[email protected] ~]$ imp ecc_view/[email protected] file=./table1.dmp fromuser=zhanglei touser=ecc_view INDEXES=N;
Import: Release 10.2.0.1.0 - Production on Mon Jan 11 11:17:41 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
CONNECTED to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by ZHANGLEI, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. . importing table                       "TABLE1"         11 rows imported
About to enable constraints...
Import terminated successfully without warnings.

c. CONSTRAINTS=N
[[email protected] ~]$ imp ecc_view/[email protected] file=./table1.dmp fromuser=zhanglei touser=ecc_view CONSTRAINTS=N;
Import: Release 10.2.0.1.0 - Production on Mon Jan 11 11:19:20 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
CONNECTED to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by ZHANGLEI, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. . importing table                       "TABLE1"         11 rows imported
About to enable constraints...
Import terminated successfully without warnings.
驗證約束是否匯入:
SQL> SELECT * FROM USER_CONSTRAINTS;
     0 rows selected

d. 異常情況

(1) 表空間不足

SQL> conn sys/[email protected] as sysdba 
SQL> alter user ecc_view quota 0m on data ; 
使用者已更改。

[[email protected] ~]$ imp ecc_view/[email protected] file=./table1.dmp fromuser=zhanglei touser=ecc_view
......Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by ZHANGLEI, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. . importing table                       "TABLE1"         11 rows imported
IMP-00017: following statement failed with ORACLE error 1536:
 "CREATE INDEX "INDEX2" ON "TABLE1" ("NAME" )  PCTFREE 10 INITRANS 2 MAXTRANS"
 " 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAUL"
 "T)                    LOGGING"
IMP-00003: ORACLE error 1536 encountered
ORA-01536: space quota exceeded for tablespace 'DATA'
IMP-00017: following statement failed with ORACLE error 20000:
 "BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"INDEX2"',NULL,NULL,NULL,11,1,4,1,1"
 ",1,0,0); END;"
IMP-00003: ORACLE error 20000 encountered
ORA-20000: INDEX "ECC_VIEW"."INDEX2" does not exist or insufficient privileges
ORA-06512: at "SYS.DBMS_STATS", line 2121
ORA-06512: at "SYS.DBMS_STATS", line 5393
ORA-06512: at line 1
Import terminated successfully with warnings.

(2) 表中存在NOVALIDATE的約束
SQL> conn sys/[email protected] as sysdba 
SQL> ALTER TABLE "ZHANGLEI"."TABLE1" ADD (CONSTRAINT "CK_NAME" UNIQUE("NAME") DEFERRABLE  NOVALIDATE) ;
使用者已更改。

    
[[email protected] ~]$ imp ecc_view/[email protected] file=./table1.dmp fromuser=zhanglei touser=ecc_view
Import: Release 10.2.0.1.0 - Production on Mon Jan 11 11:12:43 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by ZHANGLEI, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. . importing table                       "TABLE1"         11 rows imported
IMP-00017: following statement failed with ORACLE error 2299:
 "ALTER TABLE "TABLE1" ADD  CONSTRAINT "CK_NAME" UNIQUE ("NAME") DEFERRABLE U"
 "SING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELIS"
 "TS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "LEIZ" LOGGING ENABL"
 "E "
IMP-00003: ORACLE error 2299 encountered
ORA-02299: cannot validate (ECC_VIEW.CK_NAME) - duplicate keys found
About to enable constraints...
Import terminated successfully with warnings.

e. 說明:exp時指定table時,也會exp index和constraints
[[email protected] ~]$ exp zhanglei/[email protected] file=./table1.dmp tables=table1;
Export: Release 10.2.0.1.0 - Production on Mon Jan 11 14:53:49 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
CONNECTED to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export done in ZHS16GBK character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
. . exporting table                         TABLE1         12 rows exported
Export terminated successfully without warnings.

[[email protected] ~]$ imp ecc_view/[email protected] file=./table1.dmp fromuser=zhanglei touser=ecc_view;
Import: Release 10.2.0.1.0 - Production on Mon Jan 11 14:53:59 2010
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
CONNECTED to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Export file created by EXPORT:V10.02.01 via conventional path
Warning: the objects were exported by ZHANGLEI, not by you
import done in ZHS16GBK character set and AL16UTF16 NCHAR character set
. importing ZHANGLEI's objects into ECC_VIEW
. . importing table                       "TABLE1"         12 rows imported
About to enable constraints...
Import terminated successfully without warnings.


相關推薦

oracle 資料庫imp操作匯入dmp檔案空間問題

轉:http://blog.csdn.net/zhuxiaowei716/article/details/44651465 一: 假設資料使用者USER1使用預設表空間TS1,使用者USER2使用預設表空間TS2,現在將USER1的資料匯入到USER2,要求使用表空

oracle資料庫,plsql匯入dmp檔案中文亂碼

導庫的時候遇到的,匯入表後中文亂碼,修改了客戶端的編碼依舊亂碼, 參考了,添加了環境變數,解決。 1、regedit開啟登錄檔,我的編碼是這個: 2、參考原文,在我本機添加了環境變數:AMERICAN_AMERICA.ZHS16GBK 3、補充一下我查詢字符集

oracle資料庫通過cmd匯入dmp檔案

在開發專案和部署的過程中,經常會遇到要將dmp檔案匯入到自己的電腦上的問題,今天我們來聊一下匯入的簡單步驟: 第一步:win+R進入執行視窗,輸入cmd,開啟黑視窗. 第二步:進入到oracle的安裝路徑中的BIN目錄下,現在就可以執行匯入命令了.      ipm n

ORACLE 通過IMPDP匯入DMP檔案更改使用者及空間方法

impdp預設匯入expdp的dmp檔案時,是需要建立相同名稱的表空間及臨時表空間的;而且會自動建立相同名稱的使用者名稱。 但是有時候我們想更改這種預設設定,這個時候就要用到impdp的特殊引數remap_schema(更改使用者名稱)及remap_table

oracle資料庫exp匯出的dmp檔案存放在哪兒

------解決方案--------------------------------------------------------舉例講:Windows上如果【C:\Documents and Settings\Administrator>】下執行的exp,那麼匯出

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

找了一個幾百萬行資料的庫,準備匯入的本地Oracle中: imp sam/lee file=D:\agent.dmp FROMUSER=system TOUSER=SAM SAM使用者的預設表空間是SAM,但是資料卻匯入到了system表空間。Google了一下,應該這樣做: 1.收回unlimited

12c容器資料庫匯入操作_筆記(Linux/oracle借用shell工具匯入資料檔案操作

Linux/oracle借用shell工具匯入資料檔案操作 一、使用shell工具,遠端連線到Linux下的oracle資料庫服務上 Xshell 6 (Build 0095) Copyright (c) 2002 NetSarang Computer, Inc. All rights reserved

oracle資料庫插入時間戳報錯;匯入dmp檔案亂碼

產生原因: 資料庫字符集跟電腦客戶端環境變數字符集不一致會導致時間戳插入報錯; 資料庫字符集跟電腦客戶端環境變數字符集不一致會導致使用PL_SQL工具匯入的sql檔案中的資訊在資料庫亂碼 解決辦法: 檢視資料庫字符集 select * from nls

建立資料庫,然後建立空間、建使用者、授權、用IMP匯入DMP檔案

1.最近做專案,要匯入Oracle的dmp檔案,很多年前用過oracle,該用的技術隨著時間都忘記的差不多了,現在標記在此,以免再次遇到同樣的問題而感到無措。 匯入dmp檔案,需要知道這個dmp檔案建立的使用者。因此需要先建立使用者,並授權給它。 (1)使用者的建立 首先,以system使用者登入Orac

oracle資料庫利用dos視窗匯入dmp檔案資料

用dos視窗把dmp檔案恢復資料庫時,資料庫中需要有已經存在的資料庫例項,使用者名稱和密碼。 可以匯入的本機的oracle資料庫也可以匯入到其他機器上的oracle 資料庫(所在的本機必須能連線上要匯入的安裝oracle 資料庫的機器)。 匯入的命令: imp 使用者名稱/

oracle匯入dmp檔案資料庫

完美的oracle匯入資料命令(切記結尾不要加分號!!!!!!!!)impdp user/pwd dumpfile=expdat.dmp remap_schema=oazmdc:hndj remap_tablespace=oav5:hndj_tbls當匯入dmp檔案到orac

使用windows命令建立Oracle新使用者並授權匯入dmp檔案

1.開啟資料庫驅動 sqlplus/nolog (此處切記不能有分號) 2.以管理員許可權登入 conn / as sysdba; 3.建立新使用者 create user 使用者名稱 identified by 密碼; 4.給使用者授權 grant resour

oracle 匯入dmp 檔案(易用)

第一種:使用配置oracle 客戶端監聽方式匯入 imp 使用者名稱/密碼@監聽名 file=檔案路徑 full=y ps: imp test/[email protected] file=f:\test.dmp 配置監聽 ORCL = (DE

Oracle資料庫的impdp匯入操作以及dba_directories使用方法

今天從同事那裡拿到了匯出的dmp檔案,當匯入時發現了很多問題,記下來以免以後忘記,以下是本人的操作過程:   1.首先是建立一個資料夾dump,用來存放dmp檔案,存放在E:\oracle\dump   2.然後是把同事那裡拿來的表空間指令碼執行完,我是用system

Oracle 匯入 dmp 檔案

1、首先,我們可以先建立自己的一個使用者表空間,建立表空間的格式如下: create tablespace test(表空間的名字)  datafile 'D:\oracle\product\10.2.0\userdata\test.dbf'  (這邊可以寫成oracle的

Oracle建立空間、建使用者、匯入dmp檔案

1、建立臨時表空間: create temporary tablespace user_temp   tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf'  size 50m   autoextend

docker匯入dmp檔案oracle容器

 這裡講下把 匯入的dmp檔案匯入到oracle容器中 1. 上傳檔案 把dmp檔案上傳到伺服器,然後在複製到oracle容器中 首先你先把檔案上傳到伺服器,然後在cp到容器中 docker cp /home/production/test.dmp 4480e9

oracle---cmd 命令列匯入sql檔案dmp檔案

命令列匯入sql檔案md 進入 命令視窗輸入:sqlplus 使用者名稱/密碼@ip地址:埠號/資料庫名稱(例項哈)進入後 輸入 :    @F:\R1TEST.sql(你的檔案的位置)直接回車 就ok了 命令列匯入dmp檔案imp 使用者名稱/密碼@ip地址:埠號/資料庫名

linux 下oracle匯入dmp檔案

最近要到某公司進行poc演示,整了個新專案,需要我資料庫修改專案,這才有了這篇部落格。 首先進入linux下oracle路徑下,使用者不是我建立的,所以我就不寫了,自行百度,想必也是十分簡單的事。 這就算已經登入上

oracle中用exp,imp命令匯出dmp檔案時候存在@特殊符號

今天用exp導oracle的dmp檔案的時候發現密碼中存在@特殊字元。匯出失敗,不識別特殊符號。在網上查到了相應的解決方法,方法如下 資料庫的使用者名稱:scott 資料庫密碼:  [email