oracle表空間的創(chuàng)建及dmp 文件的導(dǎo)入(推薦)
--用oracle系統(tǒng)權(quán)限的賬號(hào) 登陸
-- 1.創(chuàng)建用戶 create user u_name identified by "u_password"; --2.賦予權(quán)限 grant dba, resource, connect to u_name; grant create session to u_name; grant create table to u_name; grant create view to u_name; grant create tablespace to u_name; grant unlimited tablespace to u_name; grant select any table to u_name; grant select any dictionary to u_name; --3.創(chuàng)建目錄 dictionary create directory directory_name as 'D:\oracleEnv\Oracle\product\11.2.0\db\backup'; --路徑可以自己指定 --4.賦予目錄權(quán)限 GRANT read,write ON DIRECTORY directory_name TO u_name; --5.創(chuàng)建表空間 create tablespace table_space_name datafile 'D:\oracleEnv\Oracle\product\11.2.0\dbhome_1\oradata\table_space_name.DBF' size 2500M autoextend on next 500M maxsize 12000M; --6.修改表空間配置 ALTER USER table_space_name DEFAULT TABLESPACE u_name; --8.查看表空間 select tablespace_name , file_id,bytes from dba_data_files where tablespace_name='my_table_space_name'; -- 9.導(dǎo)入數(shù)據(jù) -簡(jiǎn)單版 impdp u_name/u_password@ORCL dumpfile=file_path full=y table_exists_action=replace --常用版 impdp u_name/u_password@ip_address/space_name directory=my_director full=y dumpfile=my_dmp_file.DMP logfile=my_dmp_file.log table_exists_action=replace; --高級(jí)版 impdp u_name/u_password@ip_address/space_name directory=my_director full=y dumpfile=my_dmp_file.DMP logfile=my_dmp_file.log [remap_schema=user_1:user_2] [remap_tablespace =table_space_1:table_space_2] [table_exists_action=replace]
總結(jié)
以上所述是小編給大家介紹的oracle表空間的創(chuàng)建及dmp 文件的導(dǎo)入,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
相關(guān)文章
詳細(xì)聊聊Oracle表碎片對(duì)性能有多大的影響
當(dāng)針對(duì)一個(gè)表的刪除操作很多時(shí),表會(huì)產(chǎn)生大量碎片,下面這篇文章主要給大家介紹了關(guān)于Oracle表碎片對(duì)性能影響的相關(guān)資料,文中通過(guò)實(shí)例代碼介紹的非常詳細(xì),需要的朋友可以參考下2022-03-03
RAC cache fusion機(jī)制實(shí)現(xiàn)原理分析
本文將詳細(xì)介紹RAC cache fusion機(jī)制實(shí)現(xiàn)原理,需要了解更多的朋友可以參考下2012-12-12
利用函數(shù)返回oracle對(duì)象表的三種方法
這篇文章主要為大家詳細(xì)介紹了利用函數(shù)返回oracle對(duì)象表的三種方法,感興趣的小伙伴們可以參考一下2016-07-07
Oracle9i的全文檢索技術(shù)開(kāi)發(fā)者網(wǎng)絡(luò)Oracle
Oracle9i的全文檢索技術(shù)開(kāi)發(fā)者網(wǎng)絡(luò)Oracle...2007-03-03
巧妙解決Oracle NClob讀寫(xiě)問(wèn)題(經(jīng)驗(yàn)分享)
下面小編就為大家?guī)?lái)一篇巧妙解決Oracle NClob讀寫(xiě)問(wèn)題(經(jīng)驗(yàn)分享)。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-10-10

