Topic: SQL*Plus and PL/SQL >> How to execute dos command through pl/sql
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: How to execute dos command through pl/sql |
| Jyoti |
Posted: Apr 28, 2005 07:10:48 AM |
Total Post: 13
Joined: Nov, 2004
|
I want to execute dos command through pl/sql procedure.
Requirement is depending certain conditions, I want to execute table creation script through pl/sql procedure? Is there any way to do this?
|
|
|
Vigyan |
| Posted: Apr 28, 2005 03:12:25 PM | |
|
Total Post: 386
Joined: May, 2001
|
I don’t think there is any straight method of doing it but it can be accomplished by using either external procedures or Java Stored Procedures.
Vigyan
|
|
|
|
|
RatnasekharNaidu |
| Posted: Aug 23, 2005 01:24:32 AM | |
|
Total Post: 5
Joined: Apr, 2005
|
From SQL prompt you can apply "HOST" Command to go for command mode.
And depending on certain conditions, if you want to execute table creation script then go thru the "DYNAMIC SQL" Concept.
There is a command EXECUTE_IMMEDIATE, using that you can create.
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 843 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 268 |
| neeraj sharma | 252 |
| Ramesh Jois | 245 |
| Bishal Khetan | 207 |
|
|