This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Can we change the Tablespace in Oracle throught JDBC? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Can we change the Tablespace in Oracle throught JDBC?" Watch "Can we change the Tablespace in Oracle throught JDBC?" New topic
Author

Can we change the Tablespace in Oracle throught JDBC?

Srinivas Ivaturi
Ranch Hand

Joined: Jan 28, 2003
Posts: 50
Hi

I want to change the size of the Tablespace in my administration module using JDBC. Is it possible if we can change Please tell me the query that I can use to change the size of TableSpace.

Thanks for your time and Help in advance
Srinivas Ivaturi
Rudy Dakota
Ranch Hand

Joined: Jul 27, 2002
Posts: 54
Hi Srinivas,
The actual statement shouldn't be too hard to find in the Oracle documentation. I have a clue that it is one of the options of the 'ALTER TABLESPACE' statement, but you can find it yourself if you do some searching at the Oracle site (I 'd have a link for you if I were at work. ).
For the rest, it seems a question of connecting to Oracle using your admin account and executing the statement (probably use Statement.execute() instead of Statement.executeQuery()).
Good riding,
Rudy.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Can we change the Tablespace in Oracle throught JDBC?
 
It's not a secret anymore!