Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Run import data in batch file

545041May 26 2007 — edited Nov 13 2010
Hi

DOes anyone know how to run sqlplus and import command in a .bat file?

I am trying to import about 10 database dump files into a database, what I want to do is to run sql statement to create tablespace/user in a .bat file first and then run import command to import the database dump files.

I wrote the following scripts in batch file:

sqlplus sm03/sm03@smdb1 @c:\table.sql

where table.sql contain the sql to creat tablespace and user. THis part work fine when I tested it.

But I don't know how to get back to commandline and continue to run the import command after sqlplus command finish. I hope just one click the bat file and it will run sqlplus command and import comand as well

Any idea?

Thanks

Li




THanks

Li

Message was edited by:
user542038
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2010
Added on May 26 2007
13 comments
11,935 views