Let be a locally Noetherian scheme and let be a rational function on (i.e. the equivalence class of a pair , where and contains the associated points of , under obvious equivalence relation).
While reading Vakil's notes I wondered how could we define poles of such a rational function. After some thought I came up with the following definition: I'd say that a regular codimension one point is a pole if it's not in the domain of definition of . If is also an integral scheme (or at least if all the stalks of are integral domains, in which case we can cover with integral schemes), then this definition would coincide with the usual one, namely using the discrete valuation at .
But there is something unnatural about my definition, since I was not able to relate the rational function with the discrete valuation on and consequently was not able to determine the order of the pole. So I'd like to know if it's possible to define a meaningful notion of poles for rational functions on locally Noetherian schemes and how would it relate to my definition. By extension, consider the same question about zeros.