Oximes (whether aldoximes or ketoximes) can be synthesized by a condensation reaction of an aldehyde or a ketone with hydroxylamine.
Since hydroxylamine H2N-OH is reactive & cannot be stored well in the laboratories, it is usually supplied as a salt (NH2OH.HCl).
For successful & trouble-free reaction, the chemist removes HCl by a reaction with a base. Although books talk about NaOH, a basic salt (such as sodium acetate) does a good job.
Once H2N-OH is made, it will react directly with an aldehyde or ketone. Little heating and/ or little acidic catalysis may be needed. You will, hopefully, get products relatively easily but please be patient.
The method for the preparation of oxime compounds having carbonyl groupby stirring the carbonyl compd. & hydroxyl amine hydrochloride in an equimolar proportion in ethanol at low temperature till one gets oxime in the form of solid.