It depends on what passport you have and what kind of visa you require. Visit visas can be issued at the airport on arrival and are valid for 30 days for many nationalities.
Work visas depend on who you are going to work for and what your profession is, and can only be processed after you have had a medical/ blood test. The process will take about 7-10 days usually.