אָמַר רָבָא מִיחַיַּיב אִינִישׁ לְבַסּוֹמֵי בְּפוּרַיָּא עַד דְּלָא יָדַע בֵּין אָרוּר הָמָן לְבָרוּךְ מָרְדֳּכַי רַבָּה
וְרַבִּי זֵירָא עֲבַדוּ סְעוּדַת פּוּרִים בַּהֲדֵי הֲדָדֵי אִיבַּסּוּם קָם רַבָּה שַׁחְטֵיהּ לְרַבִּי זֵירָא לְמָחָר בָּעֵי רַחֲמֵי וְאַחֲיֵיהּ לְשָׁנָה אֲמַר לֵיהּ נֵיתֵי מָר וְנַעֲבֵיד סְעוּדַת פּוּרִים בַּהֲדֵי הֲדָדֵי אֲמַר לֵיהּ לָא בְּכֹל שַׁעְתָּא וְשַׁעְתָּא מִתְרְחִישׁ נִיסָּא
Rava said: A person is obligated to become intoxicated with wine on Purim until he is so intoxicated that he does not know how to distinguish between cursed is Haman and blessed is Mordecai.
The Gemara relates that Rabba and Rabbi Zeira prepared a Purim feast with each other, and they became intoxicated to the point that Rabba arose and slaughtered Rabbi Zeira. The next day, when he became sober and realized what he had done, Rabba asked God for mercy, and revived him. The next year, Rabba said to Rabbi Zeira: Let the Master come and let us prepare the Purim feast with each other. He said to him: Miracles do not happen each and every hour, and I do not want to undergo that experience again.
(ב) חייב אינש לבסומי בפוריא עד דלא ידע בין ארור המן לברוך מרדכי: הגה וי"א דא"צ להשתכר כל כך אלא שישתה יותר מלימודו (כל בו) ויישן ומתוך שישן אינו יודע בין ארור המן לברוך מרדכי (מהרי"ל) ואחד המרבה ואחד הממעיט ובלבד שיכוין לבו לשמים
(2) 2. One is obligated to be intoxicated on Purim to the point where he does not know [the difference] between "accursed is Haman" and "blessed is Mordechai". RAMA: Some say it is not necessary to become drunk so much, but rather to drink more than he is used to, and to fall asleep, and while he sleeps he does not know [the difference] between "accursed is Haman" and "blessed is Mordechai" . Whether or not one drinks alot or a little, the important thing is that your intentions are for the sake of Heaven.

