This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can we change the Tablespace in Oracle throught JDBC?
 
Similar Threads
how to create tablespace in java dbms
Using Java How to find a List of tablespaces in a database(Oracle,DB2,MSSQL)
Oracle JDBC Bug!
Restoring Oracle database
Problem with WebSphere App Server 4.0