LOS ANGELES (AP) _ Emmy award-winning producer David Victor, who drew on his childhood desire to be a doctor to produce TV's ''Marcus Welby, M.D.'' and ''Dr. Kildare'' died of a heart attack in Virginia. He was 79.

Victor, vacationing in Williamsburg, Va., when he died Wednesday, also produced ''The Man From U.N.C.L.E.'' and its spinoff ''The Girl From U.N.C.L.E,'' ''Lucas Tanner,'' ''Owen Marshall, Counselor at Law'' and ''Women in White.''

The Russian-born Victor came to this country from Odessa when he was 13 with the hopes of becoming a doctor, but he abandoned his medical interest during the Depression.

He later studied Latin and literature, and applied his interest in words by writing scripts for such radio programs as the mystery series ''Let George Do It'' and the situation comedy ''The Mel Blanc Show.''

Victor moved to television as a writer and associate producer on ''The Rebel'' series and wrote episodes of ''Daniel Boone,'' ''Rawhide'' and ''The Texan.''

He produced such television films and miniseries as ''The Woman I Love,'' ''Vanished'' and ''Little Women.'' His ''Portrait: The Man Whose Name Was John,'' starring Raymond Burr as Pope John, won the International Silver Dove Award in Monte Carlo.

The Emmy-winning ''Marcus Welby, M.D.'' was born out of Victor's desire to expand his ''Dr. Kildare'' series by moving the internist from his hospital to private practice to give the show a wider range of stories.

Orders against tampering with the successful show led to the creation of the long-running ''Marcus Welby, M.D.,'' starring Robert Young as a general practitioner.

Victor is survived by his wife, Florence, who was with him when he died, a daughter, a son and four grandchildren, one of whom is a physician.