Oracle 数据库提示从 DBLink 批量插入
Oracle database hints for bulk Insert from DBLink
我需要通过 DBLink 插入大约 50 个包含大量数据的表。我一般使用语句
insert into <table_name>
select * from <table_name>@DBLink
在某些情况下,插入时间过长。可以在此处使用哪些有用的数据库提示来加快该过程?
你可以使用ORACLE's
APPEND
提示
The APPEND hint tells the optimizer to perform a direct-path insert, which improves the performance of INSERT .. SELECT operations for a number of reasons:
Data is appended to the end of the table, rather than attempting to use existing free space within the table.
Data is written directly to the data files, by-passing the buffer cache.
Referential integrity constraints are not considered. *
No trigger processing is performed. *
语法:
INSERT /* + APPEND */ INTO YourTable
SELECT * FROM YourTable@DBLink
我需要通过 DBLink 插入大约 50 个包含大量数据的表。我一般使用语句
insert into <table_name>
select * from <table_name>@DBLink
在某些情况下,插入时间过长。可以在此处使用哪些有用的数据库提示来加快该过程?
你可以使用ORACLE's
APPEND
提示
The APPEND hint tells the optimizer to perform a direct-path insert, which improves the performance of INSERT .. SELECT operations for a number of reasons:
Data is appended to the end of the table, rather than attempting to use existing free space within the table.
Data is written directly to the data files, by-passing the buffer cache.
Referential integrity constraints are not considered. *
No trigger processing is performed. *
语法:
INSERT /* + APPEND */ INTO YourTable
SELECT * FROM YourTable@DBLink