See Set up CLASSPATH
See Test Install with Samples
If you do not configure the default listener port numbers or database SID in your installation--such as ports 1521, 2481, and SID
orcl
--the samples will not work correctly. All the samples expect the default port numbers and database SID provided by an Oracle8i Typical install. If you have different values, specify the new port numbers as follows: