linux导入dmp的oracle文件

hostnamectl set-hostname xxx linux修改主机名字
 
登录linux下的oracle方式:sqlplus / as sysdba
 
 
impdp scott/123@PROD(实列名字) file="ard2019-05-3003.dmp" cluster=N logfile=hljcz20180511.log encryption_password=********(1234567)
1 需要给导入用户授权 导入/导出权限
eg:grant IMP_FULL_DATABASE to scott;scott为用户名
grant EXP_FULL_DATABASEto scott;
 
2.unable to open dump file问题
 
./bin/mysqld --initialize --user=mysql --datadir=/data/mysql
 
oracle 创建表空间的语句
create tablespace arddb
 
logging
 
datafile '/data/app/oracle/admin/arddb'(指定表空间路径)
 
size 1024m
 
autoextend on
 
next 500m
 
extent management local;
 
创建用户 关联表空间语句
create user thams
 
identified by "123"
 
default tablespace arddb
 
profile DEFAULT
 
ACCOUNT UNLOCK;
 
分别给用户授dba权限和表空间授无限增长权限
grant dba to thams;
 
grant unlimited tablespace to ARDDB;
 
查看表空间语句:select * from v$tablespace;
 
切换数据库用户命令 :conn thams
 
 
查看表空间下的所有表
Select Table_Name, Tablespace_Name From Dba_Tables Where Tablespace_Name ='表空间名字';
查看某张表
select * from THAMS.X_D_FILE82;
posted @ 2020-02-06 10:20  黑魔法os  阅读(667)  评论(0编辑  收藏  举报