创建表空间及用户
create tablespace oracledbf
datafile ‘d:appzhoulxoradatabdcoracledbf.dbf’ size 100m autoextend on next 20m maxsize unlimited — 这里是你设置数据库存放的地方,可以自己选定位置
permanent
default storage(initial 64k minextents 1 maxextents 2147483645)
minimum extent 64k
logging
online
/
create user oracledbf identified by salis default tablespace oracledbf temporary tablespace temp;
/
grant dba to oracledbf with admin option
/
grant select any dictionary to oracledbf with admin option
/
grant select any sequence to oracledbf with admin option
/
grant select any table to oracledbf with admin option
/
grant select any transaction to oracledbf with admin option
/
grant unlimited tablespace to oracledbf with admin option
/
grant create session,resource to oracledbf with admin option
/
grant create any view to oracledbf
/
数据泵导入
查询目录
select * from dba_directories
创建目录
create directory database as ‘e:database’ –这一步可以忽略
——————————————————————————————————–
这一步在命令行输入
导入
impdp oracleuser/oracleuserpassword@oracle地址(例如:127.0.0.1) directory=’e:database’ dumpfile=oracledbf.dmp schemas=oracledbf — e:database 是你存放dbf文件的位置
–imp oracleuser/oracleuserpassword@oracle地址(例如:127.0.0.1) directory=’e:database’ dumpfile=oracledbf.dmp schemas=oracledbf — e:database 是你存放dbf文件的位置
导出
expdp oracleuser/oracleuserpassword@oracle地址(例如:127.0.0.1)directory=’e:database’ dumpfile=oracledbf.dmp schemas=oracledbf — e:database 是你存放dbf文件的位置
–exp oracleuser/oracleuserpassword@oracle地址(例如:127.0.0.1)directory=’e:database’ dumpfile=oracledbf.dmp schemas=oracledbf — e:database 是你存放dbf文件的位置
———————————————————————————————————
删除用户再创建
drop user oracledbf cascade;
/
create user oracledbf identified by salis default tablespace oracledbf temporary tablespace temp;
/
grant dba to oracledbf with admin option
/
grant select any dictionary to oracledbf with admin option
/
grant select any sequence to oracledbf with admin option
/
grant select any table to oracledbf with admin option
/
grant select any transaction to oracledbf with admin option
/
grant unlimited tablespace to oracledbf with admin option
/
grant create session,resource to oracledbf with admin option
/
grant create any view to oracledbf
/
需要了解更多数据库技术:Oracle 导入DBF故障存储文件,都可以关注数据库技术分享栏目—计算机技术网(www.ctvol.com)!
本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。
ctvol管理联系方式QQ:251552304
本文章地址:https://www.ctvol.com/dtteaching/797103.html