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!

How to Run "all" scripts present in a folder !!

AnkitVDec 21 2011 — edited Dec 22 2011
Hi People

I have generated role, table space , views etc scripts from a schema.
I have the role scripts in a role folder (.sql extension), view scripts in views folder (.vw extension) etc.
Now I want to run them in another database.

But when I do like following, I get error in SQL*PLUS :

SQL> @C:\temp\Copy_WMGIS_DWH\2Roles\*.*
SP2-0556: Invalid file name.
SQL> @C:\temp\Copy_WMGIS_DWH\2Roles\*.sql
SP2-0556: Invalid file name.
SQL>

In SQL developer, I get following message:

@C:\temp\Copy_WMGIS_DWH\2Roles\*.*
Error report:
Unable to open file: "C:\temp\Copy_WMGIS_DWH\2Roles\*.*"

Please suggest me the correct way in which I can get all the scripts executed present in a folder.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2012
Added on Dec 21 2011
7 comments
8,012 views