Reputation: 111
I am getting
ORA-01555: snapshot too old: rollback segment number 234 with name "_SYSSMU234_1378897836$"
too smal while selecting some data using dblink in oracle database.
select a,b from localtab a
union
select a,b from rmottab@remotedb;
Is there any way to override this error?
I have a situation to take this data in a periodical manner.
Upvotes: 1
Views: 2181
Reputation: 4461
You need to close the cursor when finished retrieving the data. Your problem is that you are holding the cursor open for too long. There are tons of reasons for that: - row-by-row processing on the client side. Will take forever to finish. (the database is waiting to deliver data to the client) Hint. arraysize (fetchsize) is set too low. An arraysize of 100-200 can speed things up. - there is a nice view hidden behind "rmotab" which takes > 30 minutes to return which is burning cpu (logical reads)
Basically, you have these options:
Upvotes: 2