There  is  solution  for  TNS  write  packet  failure  error  .  follow  these  setps  to  resolve  the  issue1)  Uninstall  the  TCP/IP
2)  Export  the  registry
3)  remove  all  the  winsock  entry  from  registry
4)  restart  the  PC
5)  install  TCP/IP
6)  Try  to  connect  to  database  if  you  get  diffrent  error  (other  than  TNS  write  packet  error  )  then
7)  Uninstall  and  reinstall  the  SQL
This  steps  will  resolve  the  TNS  write  packet  failure  error  ..也有可能是防火墙引起的哦,总之错误的原因可能多样,仔细查看一下吧