最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

oracle表空間的創(chuàng)建及dmp 文件的導入(推薦)

 更新時間:2017年08月07日 17:12:37   作者:空之極  
這篇文章主要介紹了oracle表空間的創(chuàng)建及dmp 文件的導入,需非常不錯,具有參考借鑒價值,要的朋友可以參考下

--用oracle系統(tǒng)權限的賬號 登陸

-- 1.創(chuàng)建用戶
create user u_name identified by "u_password";
--2.賦予權限
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.賦予目錄權限
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.導入數據
-簡單版 
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;
--高級版
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]

總結

以上所述是小編給大家介紹的oracle表空間的創(chuàng)建及dmp 文件的導入,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!

相關文章

最新評論

长海县| 沁阳市| 格尔木市| 灵丘县| 西青区| 天津市| 隆尧县| 安阳县| 海安县| 凤凰县| 龙江县| 赤水市| 多伦县| 泰安市| 牟定县| 贵溪市| 封开县| 西畴县| 霍州市| 建德市| 平邑县| 饶平县| 大港区| 永泰县| 浠水县| 汕尾市| 利川市| 金川县| 镇原县| 马公市| 准格尔旗| 寻乌县| 阳朔县| 广东省| 武汉市| 婺源县| 辉南县| 阿城市| 邢台市| 温州市| 离岛区|