Enabling view programmatically
Based on your question I honestly think you are doing something wrong, but if you really do have a legit use case I think you can just do this:

$view = views_get_view('machine-name-of-view');
views_export_status($view, TRUE);
views_save_view($view);