I have a rman cold backup script.

I cannot use alter database close which I believe internally does a shutdown and a startup mount.

I have tried within the rcv script to do
sql 'shutdown immediate' I get an error invalid sql statement.

Any ideas?