Solved

Java codes and Oracle SID

Posted on 2003-11-09
2
387 Views
Last Modified: 2010-03-31
Hi all,

Is it possible to create an Oracle SID using java codes. I was trying to install Oracle one time and saw that some of the scripts, i think, could be incorporated within java codes (like "create database ....") because they are just like normal sql lines (like "select * from ....").

The problem is that i must use the command prompt to create an sid (using "oradim -sid ..."). I wanted to know if it is possible to execute something like "oradim" from java codes. All i want to do is to create an automated installation of an application i made and an Oracle database having a specific SID.

Thanx very much.

spoj
0
Comment
Question by:spoj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
jimmack earned 250 total points
ID: 9712875
Well, I've no idea (yet ;-)) what and SID is, but you can call your command line using:

Runtime.getRuntime().exec("oradim -sid ...");
0
 
LVL 35

Expert Comment

by:girionis
ID: 9713343
 Here is a script: http://www.jlcomp.demon.co.uk/settsid.html Use jimmack's suggestion toi make it work.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question