Uday Kumar

Greenhorn
+ Follow
since Jan 22, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Uday Kumar

I didnt see any code to set b to false inside the loop. Did you miss it in your application or just didnt post it here.
[ April 11, 2002: Message edited by: Uday Kumar ]
I need some help in migrating data (about 120,000 records) from Sql Server to Oracle. I have downloaded Weblogics JDBC driver for sql server but when I try to read the BLOB field, I get windows error. I did good research on this topic on internet but didnt find any help.
Anyone have any ideas as to how to read BLOB field from sql server and write to Oracle db.
Any help will be highly appreciated.
Thanks.
Thanks for your help Julio Carlos :-). Since, I was out of town, I could not reply sooner.
I need some help in connecting to my Oracle database. This db server is on a machine in my network and my java class runs on my laptop(WinNT) using JDK1.3 and latest JDBC drivers.
I have set my classpath to include classes111.zip and classes12.zip and imported oracle.jdbc.driver.* in my class code. The code compiles fine but when executed thru DOS prompt I get the following error:-

Exception in thread "main" java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Test.main(Test.java:15)
<code snippet>
String url = "jdbc.oracle.thin:@1.1.1.11:1521:aaaa";
String driver = "oracle.jdbc.driver.OracleDriver";
Class.forName(driver);
Connection conn= DriverManager.getConnection(url, "uid", "password");
</code snippet>

Any help would be highly appreciated.
Uday
PS: Keep in mind, I am brand new to Java.
[ March 28, 2002: Message edited by: Uday Kumar ]
You might want to check out introduction (or 1st, cant recollect now) chapter in "Java I/O" book.
Finally Tony got the answers he was looking for.
I read somewhere that we can declare an array with 0 length.
I guess you need "==" double equal to in the if condition.
We should be able to use any word as identifier which does not figure in "keyword" and "reserve word" list in Java.
How about Beginning Java from Wrox press? I find it very useful.
"In a file, there may be more than 1 top-level class,isn't it?
and cann't be private or protected?"
What could be the reason for a top-level class cannot be protected?
[ January 31, 2002: Message edited by: Uday Kumar ]
To make things more interesting you may want to add "default" case before case 1 with and without breaks;
I think in this case, we have to say s=null first before line 1 and try to execute all the statements. Then change the value to something other than null in the second run and then try to execute all the four statements.
So, whichever statement executes with both the values of s with out throwing exception will get struck off from the answer list.
[ January 30, 2002: Message edited by: Uday Kumar ]
Corey,
You can refer to this link. http://www.javaworld.com/javaworld/jw-05-2001/jw-0504-java101.html
Then search for singleton in the page.
You are correct Val. Thanks.