日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle表空间的创建及dmp 文件的导入

發布時間:2025/6/17 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle表空间的创建及dmp 文件的导入 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

用oracle系統權限的賬號 登陸

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 -- 1.創建用戶 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.創建目錄 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.創建表空間 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]

轉載于:https://www.cnblogs.com/activiti/p/7575109.html

總結

以上是生活随笔為你收集整理的oracle表空间的创建及dmp 文件的导入的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。