You can use pgfplots instead:
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines=middle,samples=200]
\addplot[blue,domain=-3:1.85] {1/(x-2) +3 };
\addplot[blue,domain=2.15:6] {1/(x-2) + 3};
\draw[red!20,dashed] (axis cs:2,-4) -- (axis cs:2,10);
\end{axis}
\end{tikzpicture}
\end{document}

Adding some more labels:
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{every tick label/.style={inner sep=0pt,font=\scriptsize}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
samples=200,
xtick={-3,...,6},
ytick={-3,...,9}
]
\addplot[blue,domain=-3:1.85] {1/(x-2) +3 };
\addplot[blue,domain=2.15:6] {1/(x-2) + 3};
\draw[red!20,dashed] (axis cs:2,-4) -- (axis cs:2,10);
\end{axis}
\end{tikzpicture}
\end{document}
