From 18c documentation:https://docs.oracle.com/en/database/oracle/oracle-database/18/sbydb/managing-oracle-data-guard-physical-standby-database…
"DDL Operations
Global temporary tables can be created on, and dropped from, Active Data Guard standby databases. The DDL for these operations is transparently redirected to the primary database. The Active Data Guard session then waits until the corresponding changes are shipped and applied to the Active Data Guard standby"
1. Set temp_undo_enabled=true on primary database:
SQL> alter system set temp_undo_enabled=true;
2. Tried to create global temporary table on standby database:
SQL> CREATE GLOBAL TEMPORARY TABLE tab2(c1 number, c2 varchar(10)) ON COMMIT PRESERVE ROWS;
CREATE GLOBAL TEMPORARY TABLE tab2(c1 number, c2 varchar(10)) ON COMMIT PRESERVE ROWS
*
ERROR at line 1:
ORA-16000: database or pluggable database open for read-only access
Something is not working, I am not able to create Global Temporary Table on the standby database.