Can i use 12 v solenoid valve directly connect with the 12 v battery?
Yes, but you might want to connect a reverse biased diode across it to allow the current through the coil a path to flow when the battery is disconnected, else you can generate some very high voltages (and sparks!) on disconnection.

typical circuit:







simulate this circuit &ndash; Schematic created using CircuitLab