Hi Ganesh,
I had the same issue after importing my JAVA system, When the configtool was trying to access the DB, it was giving me the same "ORA-1017 login denied error" i fixed the error by following this solution
i hope this will solve your problem too..