The invention relates to oxime compounds of Formula (I) and pharmaceutically acceptable salts, prodrugs, or solvates thereof, wherein X is hydrogen, optionally substituted aryl, optionally substituted heteroaryl or the like; Y is CO, SO2, CR3R4 or the like; Z is optionally substituted lower alkyl, optionally substituted aryl or the like; W is optionally substituted lower alkylene or optionally substituted lower alkenylene, R3 and R4 are each independently hydrogen, lower alkyl or the like; p is 0, 1, or 2 and q is 0, 1 or 2. The invention is also directed to the use compounds of Formula I to treat, prevent or ameliorate a disorder responsive to the blockade of calcium channels, and particularly N-type calcium channels. Compounds of the present invention are especially useful for treating pain.