Before increase the Open_cursor parameter,
How can I close open cursors?

I know there is command to close cached open cursors.
I tried to use the following command, but didn't work.

DECLARE
close_cursor Boolean;
BEGIN
DBMS_SESSION.set_close_cached_open_cursors (close_cursor , True);
end;
/
Any suggestion?