The best thing to do is speak to your country's consulate to the UAE. They will give you all details for the visa application to Dubai. Expect it to be rather stringent though, that's the impression I get from that state. Foreigners not welcome unless they have cash to spend.
Yes, Dubai is not an easy place to get long term visa, but a tourist visa can be obtained through the consulate, or even at the airport for certain nationalities.