I tried to use Oracle thin jdbc driver. the following segment is what I used:
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl", "scott", "tiger");
When I tried to run the program, it is said "Connection refused, no further information". Actually I dont really understand the 1521 and orcl. How do I find the oracle server port on my machine? what is oracle sid? what is orcl here?
thanks in advance