国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > Oracle > 正文

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

2020-07-26 14:04:33
字體:
供稿:網(wǎng)友

--用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)建目錄 dictionarycreate 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_namedatafile 'D:/oracleEnv/Oracle/product/11.2.0/dbhome_1/oradata/table_space_name.DBF'size 2500Mautoextend 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)入,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)武林網(wǎng)網(wǎng)站的支持!

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 东台市| 叶城县| 红河县| 铁岭市| 曲麻莱县| 甘孜县| 松溪县| 富宁县| 金乡县| 赤城县| 祁门县| 鱼台县| 法库县| 龙南县| 阿拉善右旗| 耒阳市| 濮阳县| 平遥县| 元阳县| 翼城县| 独山县| 唐山市| 昭觉县| 科技| 鄂州市| 高阳县| 将乐县| 海阳市| 十堰市| 祁东县| 寿宁县| 新野县| 永吉县| 新竹市| 天柱县| 中牟县| 隆昌县| 盐山县| 汾西县| 新闻| 湄潭县|