I'm having an SQL script as below that consists of 65000 insert statements.
SET DEFINE OFF;
SET AUTOCOMMIT 1000;
SET FEEDBACK OFF;
Insert into table (col1,..col20) values ('val1',...'val2');
Insert into table (col1,..col20) values ('val1',...'val2');
...
...
When I run this script through sqlplus through my command prompt(sqlplus usr/pwd@DB @script.sql) it took for me around 4 hours to complete.
But when I run the same script by logging to putty connecting the Server and run the script through sqlplus (sqlplus usr/pwd@DB @script.sql) it took only one minute to complete.
Could you please let me know why this difference is caused
begin ... end;around the entire list of inserts? (Also, why are you doing 65,000 individual inserts in the first place - where are those values coming from?) - Alex Poole