Best way to handle LOBs in Oracle distributed databases

前端 未结 6 964
傲寒
傲寒 2021-02-04 07:08

If you create an Oracle dblink you cannot directly access LOB columns in the target tables.

For instance, you create a dblink with:

create database link          


        
6条回答
  •  终归单人心
    2021-02-04 07:50

    Yeah, it is messy, I can't think of a way to avoid it though.
    You could hide some of the messiness from the client by putting the temporary table creation in a stored procedure (and using "execute immediate" to create they table)
    One thing you will need to watch out for is left over temporary tables (should something fail half way through a session, before you have had time to clean it up) - you could schedule an oracle job to periodically run and remove any left over tables.

提交回复
热议问题