TNSPING and SQLPlus is working perfectly but when I try to connect through SQL developer it is giving error.
You will have to set the tnsnames.ora location in the SQL developer configuration
How to Set it?
Goto Tools -> Preference menu
Expand the database Menu
Click on advanced and set correct value for the TNSnames Directory text box.
Also check the Use Oracle Client.
The above steps will make the SQL Developer works with TNS.