创建表空间及用户CREATE TABLESPACE oracleDBFDATAFILE "D:appzhoulxoradatadcOracleDBF.DBF" SIZE 100M AUTOEXTEND ON NEXT 20M MAXSIZ
创建表空间及用户
CREATE TABLESPACE oracleDBF
DATAFILE "D:appzhoulxoradatadcOracleDBF.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
/
--结束END--
本文标题: Oracle 导入DBF故障存储文件
本文链接: https://lsjlt.com/news/1878.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0