• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Interesting connection problem

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well to me atleast...
Suppose I want to connect to a database type (Oracle, mySql etc...) and then create a DB through JDBC. Is this even possible? After all I am not giving a DB name for the URL.
I feel this concept would be pretty powerful if it is possible.
Any ideas?
Thank You
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, first off i don't know
But you connect to an 'instance' not the database, so if you can find a way to connect 'as sysdba' then i guess the rest should be easy?
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried this:
Create user ddd identified by ddd
through JDBC for Oracle database and it worked
But when I fired
Grant all privileges to ddd
I got an exception:
java.sql.SQLException: ORA-01003: no statement parsed
But I am able to create table etc, in that db
through JDBC and also Oracle SQL *Plus
 
A berm makes a great wind break. And Iwe all like to break wind once in a while. Like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!