aspose file tools*
The moose likes JDBC and the fly likes Create an oracle database using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Create an oracle database using JDBC" Watch "Create an oracle database using JDBC" New topic
Author

Create an oracle database using JDBC

Gustavo Alzate
Greenhorn

Joined: Feb 20, 2009
Posts: 2
Hello,

I need to know if, can i create an oracle databse using JDBC??.

everything i´ve seen indicates it isnt´t posible, i am using a tool called HENPLUS and i can run sql files, calling HENPLUS from my app, bu this one needs to know the sid name, but i am going to create.

Somebaody may help me???
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

Gustavo,
You could use Runtime.exec to create the database at the command line.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Gustavo Alzate
Greenhorn

Joined: Feb 20, 2009
Posts: 2
Thanks..

Now i wonder how?

Because my boss doesnt want that i use splplus what i can call it from Runtime.getRuntime.exec("sqlplus------");

also he doesnt want to call a bat or sh file.

it is posible?
 
Consider Paul's rocket mass heater.
 
subject: Create an oracle database using JDBC