I am excuting the following command on my Oracle server and it has been running for over two hours now (the server is doing 100% CPU):
select permid from iinstrumentsectorhist where permid not in (select permid from iinstrumentidmaster);
If I do the same command on the same database (but hosted by MS SQL) it takes 5 mins. I have increased my SGA to 356 MB but to no avail.
The tables, iinstrumentsectorhist and iinstrumentidmaster hold 252344 and 298602 rows respectively.
select permid from iinstrumentsectorhist where permid not in (select permid from iinstrumentidmaster);
If I do the same command on the same database (but hosted by MS SQL) it takes 5 mins. I have increased my SGA to 356 MB but to no avail.
The tables, iinstrumentsectorhist and iinstrumentidmaster hold 252344 and 298602 rows respectively.