oracle join local table with remote table

oracle join local table with remote table
这是一件不好的事情, 最好不要这么做, 会把remote的表数据全拉到本地db, 然后再join, 试想如果远程数据很大, 岂不是很恐怖?

真的要这么做, 如果本地数据小, 而远程数据大的话, 可以在select上加上DRIVING_SITE(tab) hint, 告诉优化器, 远程是主,把本地数据拉到remote db做join, 然后返回结果集

http://www.orafaq.com/tuningguide/remote%20table.html
http://www.orafaq.com/tuningguide/hints.html
https://forums.oracle.com/forums/thread.jspa?threadID=884667

你可能感兴趣的:(oracle,jon remote)