is it necessary to have 12 from uttarpradesh to apply for its state quota even if i have domicile of Uttar Pradesh
No it is not necessary, you can be a domicile of UP if you have the certificate, even if you have completed your class 12th from Tamil Nadu.
Do not worry.
For which examination's state quota are you applying to? Please answer this, I would be able to help you better.
All the Best!!!