compile/link the shader
get the uniform location for the tex unit
set the uniform.
when you want to use the texture call glActiveTexture(...) then glBindTexture(...).
This is what you normally would do. You can bind the texture objects to the texture units before the shaders are compiled, glUsed, etc ...and that shouldnt be affected by how you load the shaders and get the uniformlocations(later).