This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 32330
    
213

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


[OCA 8 book] [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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Create an oracle database using JDBC
 
It's not a secret anymore!