Finely chop the onion and green onion.
Add cooking oil to a pan and stir-fry the green onion to bring out its aroma.
Add onion and carrot, then stir-fry.
Add the rice and mix well with the other ingredients while stir-frying.
Pour in oyster sauce and stir everything evenly.
Optionally, season with pepper or sesame oil to taste.