This is one of the common (well known) commands you can find on many Blogs. Copy the text below and paste it to your favourite text editor.
EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;