![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I know that I can execute a script file (ex. filename.sql) from a batch or SqlPlus console with the command @filename.sql There is a command to execute many .sql script files without launch them one to the time? Thank you for the help and sorry for my poor english... |
#3
| |||
| |||
|
|
cavalcantipino (AT) yahoo (DOT) it wrote: I know that I can execute a script file (ex. filename.sql) from a batch or SqlPlus console with the command @filename.sql There is a command to execute many .sql script files without launch them one to the time? Thank you for the help and sorry for my poor english... Wrap the script files in another script. So you might have a script called "wrapper.sql" which contains the following lines: @script1.sql @script2.sql @script3.sql ... @scriptN.sql Then just run "@wrapper" in SQL*Plus. It will execute the scripts in order. HTH, Brian |
#4
| |||
| |||
|
|
Brian Peasland wrote: cavalcantip... (AT) yahoo (DOT) it wrote: I know that I can execute a script file (ex. filename.sql) from a batch or SqlPlus console with the command @filename.sql There is a command to execute many .sql script files without launch them one to the time? Thank you for the help and sorry for my poor english... Wrap the script files in another script. So you might have a script called "wrapper.sql" which contains the following lines: @script1.sql @script2.sql @script3.sql ... @scriptN.sql Then just run "@wrapper" in SQL*Plus. It will execute the scripts in order. HTH, Brian In addition they can be run as external jobs using DBMS_SCHEDULER if you have 10g or above. -- Daniel A. Morgan University of Washington damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org |
#5
| |||
| |||
|
|
On 6 Set, 15:39, DA Morgan <damor... (AT) psoug (DOT) org> wrote: Brian Peasland wrote: cavalcantip... (AT) yahoo (DOT) it wrote: I know that I can execute a script file (ex. filename.sql) from a batch or SqlPlus console with the command @filename.sql There is a command to execute many .sql script files without launch them one to the time? Thank you for the help and sorry for my poor english... Wrap the script files in another script. So you might have a script called "wrapper.sql" which contains the following lines: @script1.sql @script2.sql @script3.sql ... @scriptN.sql Then just run "@wrapper" in SQL*Plus. It will execute the scripts in order. HTH, Brian In addition they can be run as external jobs using DBMS_SCHEDULER if you have 10g or above. -- Daniel A. Morgan University of Washington damor...@x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Groupwww.psoug.org Thank you Brian for wrapper solution. Daniel, where can I find something about using DBMS_SCHEDULER? Thank you again! |
![]() |
| Thread Tools | |
| Display Modes | |
| |