SELECT dbms_lob.substr(dbms_metadata.get_ddl('INDEX', INDEX_NAME))||';' from dba_indexes where owner='需要导出所有索引的用户' refer to:https://www.cnblogs.com/lhrbest/p/8820438.html http://www.cnblogs.com/wlzhang/p/5035771.html
1.手动在本地建目录 E:\lvchengData 2.执行命令 create or replace directory data as 'E:\lvchengData\'; 3.为本地system用户建立权限 grant read, write on directory data to system; 4.建立link连接, lc为本地配置的远程oracle服务名 green5为远程oracle用户名.用户名 create public database link lc connect to