tags:

views:

2444

answers:

1

hi, i need to crate a batch file.(batch.bat) When we execte this bathch.bat file, 1)it will open sqlplus 2)it will call file1.sql file.

file1.sql contains the creation and insertion scripts for a particular user.

i am having file.sql file... so, what i need to know is.. how to Creat a batch file to perform this functions..??

Thanks in advance...

+1  A: 

A little test script (stored in file named test.sql):

select 1 from dual;

exit;

... and to execute it:

sqlplus user/password @test.sql
andri
i need to create a new schema in that batch file itself..so, pls tel me what is the command to creat new schema?
with CREATE USER: http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_8003.htm#i2065278
andri

related questions