Win a copy of Spring Boot in Practice this week in the Spring forum!

Jaikiran mathukumalli

Greenhorn
+ Follow
since Sep 05, 2013
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jaikiran mathukumalli

thanks a lot it helped but now i am getting new errors,sorry but i really am new to java please help

java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at javaapp.JavaApplication1.insertToDatabase(JavaApplication1.java:61)
at javaapp.JavaApplication1.main(JavaApplication1.java:78)
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

at oracle.net.ns.NSProtocol.connect(NSProtocol.java:386)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
... 8 more
8 years ago
I am a beginner in java programming. I am trying to read response from url and insert it into database. I ran my program which is posted below and it came back with this error:




I have been trying to solve this issue on my own through research, but I could not solve it. I was wondering if anyone can help me. If you do need any other information about my program, please just ask. Thanks in advance!

here is the code i have written

8 years ago
What? No i do know how to insert them into database.The key's are already present in the database tables as header fields of the table.The table was created like.

Create table value_1(username1 char(10),........)

Now what i need to do is match the values with their respective keys and insert them in a way that they are under their key , which is what i am unable to figure out how.

Can you please write me down a code or just give me a rough idea on how to do it?
8 years ago
sorry....first time posting in a blog so i do not know all the rules,well here's the code i could write so far




(The url response would be like

username1=sudeep,username2=kiran,username3=jai,username4=jaikiran.......)



and the table would have username1,username2,username3,username4......as headers,i need to insert the values(i.e sudeep,kiran,jai...) according to their respective keys.

Now i have tried putting them into a map because i thought i could make them into key,values and insert the values into database with respect to their keys but i am unable to get any idea on how to do it.

Hope this information is enough,i will provide more if asked




8 years ago
 have been trying this program fr 2 days now please help someoneU have a url whose result is somewhat likeUsername1= xxx,username2=yyy.....40 values.....We need to read the response of the url and insert it in database....where already a table is present with all keys(username1,username2,..) as header fields...we need to insert their values dynamically...the keys may not be in the same order in database as in url response..... i was able to get response and store it in a string array but am unable to get any idea on how to insert only values dynamically ...............Ill be very thankful if someone can help
8 years ago