Have you configured automatic failover of database in DG broker?. If not then it does not matter which way you shut it down
No.

do i have to use DG broker for shutting down the primary and standby or srvctl should be fine.If DG broker CLI,then i need to do the following .

example:
consider my RAC primary is "orcl_prim" nad RAC standby is "orcl_stdby" then
connecting to primary and running the below commands.

for shutdown
DGMGRL>EDIT DATABASE ORCL_STDBY SET STATE=OFFLINE;

does above command takes dg out of recovery mode and shutsdown the RAC standby database?

similary with the primary:
DGMGRL>EDIT DATABASE ORCL_PRIM SET STATE=OFFLINE;

and for the startup

startup RAC primary database with srvctl or the below command does startup the rac db?



DGMRL>EDIT DATABASE ORCL_PRIM SET STATE=online;


does the below command startup(mount) the phy standby in DG broker configuration and puts in recovery mode?

DGMGRL>EDIT DATABASE ORCL_STDBY SET STATE=online;



Are the above steps right?Its confusing can anyone please let me know the exact steps for shutting down the primary and standby with dg broker.