Few tips for running large sql queries

Every time we try to run some sql queries, Oracle tries to read interpret queries to understand if user inputs is required. If the sql query is having (&) any where, then it will ask user for input. User below if do not want oracle to just run without reading.

set scan off;

If you are running large queries, its advised to put commit statement in the middle. I prefer to put it for every 500 insert query statements.

commit;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s