Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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

  




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 Khokhar843
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi268
  neeraj sharma252
  Ramesh Jois245
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software