首先运行以下语句获得所有用户表的grant 语句,其中cdb为欲导入的用户名
select 'grant select on '||TABLE_NAME||' to cdb' from user_tables ;
结果如下:
grant select on AA_ESPC_USER to cdb
grant select on ALARM_COMMS to cdb
grant select on ALERTVALUE to cdb
grant select on BARN_BASE to cdb
grant select on BASEDATA to cdb
grant select on BRUTE_DYNAMIC_MANAGE_BODY to cdb
grant select on BRUTE_DYNAMIC_MANAGE_HEAD to cdb
然后运行获得的结果;之后既可在cdb用户中应用此用户中的表。当然用的时候前面要加此用户的名称。
例如: insert into user select * from 此用户名.user;