Executing multiple SQL scripts in a batch

Discussion in 'Oracle' started by sbh, Jan 24, 2011.

  1. sbh

    sbh New Member

    Joined:
    Jan 5, 2011
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Database R&D
    Location:
    Bangalore
    Hi All,

    I need your help in executing multiple scripts together. I found several discussions but could not find an appropriate one.

    I have around hundred(s) of SQL scripts in Development database. These scripts are meant to create whole schema (including table, db objects, DBA scripts and all). Now I have to install or create same schema in other global databases. For example

    CRT_TAB1.SQL
    CRT_TAB2.SQL
    ...
    ...
    CRT_TAB98.SQL
    CRT_PROC1.SQL
    ...
    ...
    CRT_PROC30.SQL
    CRT_PKG_SPEC1.SQL
    CRT_PKS_BODY1.SQL
    ...
    ...and so on

    One option is to create a master script and include all the scripts, which is quite tedious.
    Is there any other way to create Scripts Package or Batch file or something, which can be handly in executing all the scripts in other databases.

    I searched a few like Script Manager in TOAD, but don't have much hands on on it. Request you to please suggest a solution on this.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice