The German Trade Register (Handelsregister) is a database of German businesses. Businesses that are in the Handelsregister get a Handelsregisternummer.
Most businesses must be listed in the Handelsregister, but there are exceptions for freelancers and small businesses.