OQL is SQL-like query language to query Java heap. OQL allows to filter/select information wanted from Java heap.
OQL is a powerful and easy-to-use SQL-like query language with special features dealing with complex objects, values and methods.
This link might help in getting stared with OQL.
OQL Tutorial