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ù) -簡單版 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)入,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
使用imp和exp命令對Oracle數(shù)據(jù)庫進(jìn)行導(dǎo)入導(dǎo)出操作詳解
這篇文章主要介紹了使用imp和exp命令對Oracle數(shù)據(jù)庫進(jìn)行導(dǎo)入導(dǎo)出操作詳解,文中通過示例介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-07-07解決Oracle?11g?導(dǎo)出數(shù)據(jù)報(bào)?“ORA-01455:?轉(zhuǎn)換列溢出整數(shù)數(shù)據(jù)類型”的問題
這篇文章主要介紹了Oracle?11g?導(dǎo)出數(shù)據(jù)報(bào)?“ORA-01455:?轉(zhuǎn)換列溢出整數(shù)數(shù)據(jù)類型”的問題,文中給大家介紹了ORACLE?11g?導(dǎo)出數(shù)據(jù)的操作步驟,需要的朋友可以參考下2021-12-12oracle 查詢當(dāng)天數(shù)據(jù)的sql條件寫法
這篇文章主要介紹了oracle 查詢當(dāng)天數(shù)據(jù)的sql條件寫法,需要的朋友可以參考下2017-04-04Oracle中sql語句(+)符號(hào)代表連接的使用講解
今天小編就為大家分享一篇關(guān)于Oracle中sql語句(+)符號(hào)代表連接的使用講解,小編覺得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編來看看吧2019-02-02web前端從Oracle數(shù)據(jù)庫加載動(dòng)態(tài)菜單所用到的數(shù)據(jù)表
這篇文章主要介紹了web前端從Oracle數(shù)據(jù)庫加載動(dòng)態(tài)菜單所用到的數(shù)據(jù)表,本文通過實(shí)例代碼給大家介紹的非常詳細(xì),需要的朋友可以參考下2018-04-04Oracle創(chuàng)建新undo表空間最佳實(shí)踐(包含段檢查)
這篇文章主要介紹了Oracle創(chuàng)建新undo表空間最佳實(shí)踐(包含段檢查),非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2019-04-04Oracle中行列轉(zhuǎn)換兩種實(shí)現(xiàn)方法
在Oracle中可以使用多種方法來實(shí)現(xiàn)行轉(zhuǎn)列和列轉(zhuǎn)行,這篇文章主要給大家介紹了關(guān)于Oracle中行列轉(zhuǎn)換的兩種實(shí)現(xiàn)方法,文中介紹的是用PIVOT和UNPIVOT函數(shù),需要的朋友可以參考下2023-11-11sql查詢給表起別名要點(diǎn)小結(jié)(涉及嵌套查詢)
通過使用 SQL,可以為表名稱或列名稱指定別名,下面這篇文章主要給大家介紹了關(guān)于sql查詢給表起別名要點(diǎn)(涉及嵌套查詢)的相關(guān)資料,文中通過實(shí)例代碼介紹的非常詳細(xì),需要的朋友可以參考下2022-09-09