As a 19.5 year Sun employee who "retired" in 2008, may I offer some free advice.
"This is not 2008." My mother was in failing health, and I could not get a decent job offer. So I had to rely on savings. But I was able to pay off my mortgage and go debt free. And I was crazy enough and able to dump all my remaining 401k assets into the stock market during the very darkest days when sentiment was totally negative. I have a triple in 9 years, a nice nest egg. TY Bernanke.
I do NOT recommend this for the currently laid off. The Oracle layoff of Sparc and Solaris is not coming from a horrible macro environment--it is a cynical business decision to get leaner and meaner.
In 2017, the stock market is bubbling up to new highs. Stocks are almost all overvalued due to years of FRB monetary accomodation. This will eventually revert to a mean, sooner or later, Keep a higher cash allocation (50% or more) and focus on your career, There should be lots of opportunity to make money through honest work, Dont bet the farm in equities.