[OCP 21 Professional Study Guide] [OCP 17 Complete Study Guide] [OCP 17 Practice Tests] [OCP 11 Complete Study Guide] [OCP 11 Programmer I] [OCP 11 Programmer II] [OCP 11 Practice Tests] [OCA 8] [OCP 8] [OCP 8 Practice Tests Book] [Blog]
Originally posted by Scott Selikoff:
Are you sure your Oracle database is up and can you connect to it using a SQL client? Oracle is often the most complicated server to connect with a basic client. I'd verify you can connect with a program such as Toad before trying it out in java.
Afterwards, if that doesn't highlight your problem, I'd recommend posting what code you are using to connect.
If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
Originally posted by Jhakda Velu:
Hi
If you are usre that the DB is up and running,
Jhakda
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
If I become filthy rich, I'll sponsor research for painless dental treatment at Harvard Medical School. Thats why,I'm learning Java.I have 32 teeth, 22 are man made.
Originally posted by Jeanne Boyarsky:
Ankur,
You can view/start/stop services through the control panel. Select the admin folder and then services.
Originally posted by Jeanne Boyarsky:
Ankur,
You can view/start/stop services through the control panel. Select the admin folder and then services.
Originally posted by Jeanne Boyarsky:
Ankur,
You can view/start/stop services through the control panel. Select the admin folder and then services.
The selected file is not a microsoft management console document.
Originally posted by Romano Londt:
Ankur,
Assuming that Oracle is installed on the same machine as where you want to run JAVA.
You could also execute tnsping "DB_SID" from a command prompt. The result should be "OK".
If this was succesful try to connect using sqplus "username"/"password"@"DB_SID" from a command prompt.
If you get connected, you are sure the DB is up and running.
regards,
Romano
There is no admin folder in control panel.
I searched for services.msc file and found it in D:\WINDOWS\system32 folder. But when I click on this file, I get this message:
The selected file is not a microsoft management console document.
When I execute DB_SID and sqplus command from command prompt, I get 'Bad Command or file name' error. Which JAR shall I take into path?
This is to do with how you have configured your Windows start menu. Run services.msc from the Run... prompt or open the Control Panel from My Computer.
Sounds like you Windows install is a little flaky.
tnsping and sqlplus are on your path after you install Oracle client. Do you have Oracle installed? If you don't, you can't uses these tools (though you do not need Oracle installed to connect via JDBC)
Which version of Oracle are you using? I don't know of one that is supported on Windows 98.
services.msc will not run on Windows 98. As far as I can remember Windows 98 doesn't have the concept of managed services. How come you have services.msc on your machine at all?
sqlplus and tnsping are part of the Oracle install. If you have Oracle installed you should have these tools, but your PATH may be corrupt. Check this.
because I have both XP and 98 on my machine
But how sqlplus and tnsping can solve this problem?
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |