From Coffman Commentaries on the Old and New Testament:
Ecc 7:1 "A good name is better than precious ointment..."
this simply means,Honor is better than vanity.
Some renditions have attempted to duplicate the alliteration found in the Hebrew: Better is name than nard; and, Fair fame is better than fine perfume. We might paraphrase it by saying, A good reputation smells better than the most expensive perfume.
Ecc 7:1 "...and the day of death than the day of one's birth".
Understanding why Job said these in the following verses
might give us insight to what solomon had said.
Job 3:3 Let the day perish wherein I was born...
Job 3:11 Why died I not from the womb? why did I not give up the ghost when I came out of the belly?
Job 3:12 Why did the knees prevent me? or why the breasts that I should suck?
Job 3:13 For now should I have lain still and been quiet, I should have slept: then had I been at rest,
Job 3:17 There the wicked cease from troubling; and there the weary be at rest.
Job 3:18 There the prisoners rest together; they hear not the voice of the oppressor.
Job 3:19 The small and great are there; and the servant is free from his master.
Job 3:20 Wherefore is light given to him that is in misery, and life unto the bitter in soul;
Job 3:21 Which long for death, but it cometh not; and dig for it more than for hid treasures;
Job 3:22 Which rejoice exceedingly, and are glad, when they can find the grave?
Job 3:23 Why is light given to a man whose way is hid, and whom God hath hedged in?
Job 3:24 For my sighing cometh before I eat, and my roarings are poured out like the waters.
Job 3:25 For the thing which I greatly feared is come upon me, and that which I was afraid of is come unto me.
Job 3:26 I was not in safety, neither had I rest, neither was I quiet; yet trouble came.
Were they not speaking out of despair, Solomon over his backslidden life and Job over his losses, pain, and sorrows.