---二、数据导入Oracle12C --登录cpcdb $sqlplus sys/Oracleedw13@192.168.2.218:1531/hrdb as sysdba
--创建目录 create or replace directory exp_dir as '/oradata/dumpdir'; --授权 grant read,write on directory exp_dir to hradm;
--查询 select * from dba_directories;
--创建tbscpc表空间
create tablespace tbshr datafile '/oradata/edw/hrdb/hrdb-001.dbf' size 2G autoextend on next 64m maxsize 20G segment space management auto extent management local;
alter tablespace tbshr add datafile '/oradata/edw/hrdb/hrdb-002.dbf' size 2G autoextend on next 50m maxsize 20G;
alter tablespace tbshr add datafile '/oradata/edw/hrdb/hrdb-003.dbf' size 2G autoextend on next 50m maxsize 20G;
--给cpcadm和admin授权,并修改默认表空间 grant dba,resource to hradm; select * from dba_users where username='HRADM'; alter user hradm default tablespace tbshr;
alter database default tablespace tbshr;
create user admin identified by admin; grant connect,dba to admin;