The port isn't directly related to the database. The listener "hangs out" on that port (1521 is the typical port used) and listens for any network traffic related to any of the SIDs that are associated with that listener.