Purana Jyotisha Sangraha · by Vyasa
Chapter 8 · Dreams and Eclipse Rules
ब्रह्मवैवर्तपुराणम् : शुभाशुभस्वप्नाः ग्रहणनियमाश्च
शुचिः पूर्वमुखः प्राज्ञो दशकृत्वश्च यो जपेत् ।निष्पापोऽपि भवेत्सोऽपि दुःस्वप्नः शुभवान् भवेत् ॥ ४५ ॥
From the Brahmavaivarta Purana, print Krishna-janma Khanda ch 82, verse 45.
A wise man, pure and facing east, who repeats them ten times becomes sinless. His bad dream turns good.
Simple meaning: Repeating the eight names ten times, facing east, is said to turn a bad dream good.
Classical view, not medical advice.
विष्णुं नारायणं कृष्णं माधवं मधुसूदनम् ।
The text gives ten holy names of Vishnu.
भक्त्या चेमानि नामानि दश भद्राणि यो जपेत् ।
Repeating the ten holy names a hundred times is said to bring health.
लक्षधा हि जपेद्यो हि बन्धनान्मुच्यते ध्रुवम् ।
Repeating the names a lakh of times is said to bring freedom, a child to a childless woman, or wealth.