All depends on the context of the sentence, but in general, one can assume the following:
1. The simple aspect of tenses imply: (state, fact)
a) that the action is permanent
b) that the action is finished
"I have lived here for 9 years" could therefore imply:
a) I have lived here for 9 years, I don't live here anymore and I want to emphasise that it is a rather permanent situation.
b) I have lived here for 9 years. I don't live here anymore. I'm sad to be leaving today.
2. the continuous or progressive aspect of tenses imply: (stress on durational aspect)
a) the situation is in progress, unfinished.
b) the situation is temporary
"I have been living here for 9 years", could therefore imply:
a) I have been living here for 9 years, so my residence is still here, I still live here.
b) I have been living here for 9 years, but I'm not really planning to stay here. This isn't permanent.
The idea behind tenses and aspect is almost philosophical in nature, in the sense that one sentence written in one tense could be interpreted in many different ways. That's why I started my answer with stressing the importance of the context of the sentence. For instance, if I'm walking around with a friend and suddenly I say: "I hate this place, I have been living here for 9 years." This means I want to change something about my situation and so I stress that the situation isn't permanent by using the progressive/continuous aspect.
Summary: Present perfect will always describe a general state (with non-specific time, e.g. yesterday or 5 pm --> that's for simple past), whereas present perfect progressive will always stress the durational aspect of the sentence.
I hope this answers your question.