It doesn’t matter whether you are coming to Germany with a research grant or have successfully applied for a job, or whether you are staying for a few months or several years: a research stay in another country usually requires some preparations and many things have to be considered:
Which entry and visa regulations apply?
Will I need a work permit?
Will my qualifications be recognised?
And how will I find accommodation?
The Plan your stay section offers some useful information: