--创建远程数据连接
create database link DB_MZDB11 connect to YTMZTWO identified by YTMZTWO909 using ‘MZDB11‘;
--创建本地目录
create directory db_mz as ‘c:‘;
--授权用户读写
grant read,write on directory db_mz to YTMZTWO,YTMZ;
--授权用户可以创建dblink
grant create database link to YTMZTWO,YTMZ;