This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 31424
    
184

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?
 
jQuery in Action, 2nd edition
 
subject: Create an oracle database using JDBC