Hi,
I have two queries, these are related so posting one question
Query 1
We are doing migration of huge data in Oracle 10g.
Some of the tables contain a huge data e.g. 7 million records to be migrated.
The table structure of Source Database is different from the Target Database (Where we are doing the migration).
So we have made a use of temporary tables to collect the data from different tables using joins and populate the main table using INSERT INTO tableA SELECT * FROM tableZ
Now the problem statement.
Some of the queries take infinite time and data doesnt get inserted into the main tables. I have seen the explain plan and didnt find anything unusual. The same query works fine when we use date time stamp and restrict the data.
Do we have to look into the temporary and rollback segments?
Query 2
Please examine the screen shots attached for the explain plan of simple query.
I am surprised that using index hint (withhint.jpg) its taking more time. Again, is it because of the temporary and rollback segments?
Start Free Trial