Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The custom function dblink is listed in select in sql

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The original extraction method is to package the data in the b library oci, put the data into the local disk of the middleware, and then load it into the a library through sqlldr. SQL is as follows:

select column_name1,function_name(column_name2) from table_name;

This sql is executed in library b. The b library table_name has tens of millions of rows of data.

Then change this method to dblink mode, and the table name and function name appearing in sql need to be added with dblink. A library executes sql as follows:

insert into a.table_name select column_name1, function_name@dblink(column_name2) from b.table_name@dblink This will cause performance problems. For each row of data returned, you have to go to b library to call a custom function. You can consider creating the function locally.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report