Option A is correct. Indexes can be created on global temporary tables, allowing for efficient data retrieval and manipulation.
Option D is correct. If the ON COMMIT clause is specified as transaction-specific (ON COMMIT DELETE ROWS), all rows in the global temporary table are automatically deleted after each COMMIT or ROLLBACK statement. This ensures that the table is cleared for the next transaction.
A D are correct:
D. If the ON COMMIT clause is transaction-specific, all rows in the table are deleted after each COMMIT OR ROLLBACK.
''all rows in the table are deleted'' = TRUNCATE
C isn't correct:
By default, Oracle stores the data of the global temporary table in the default temporary tablespace of the table’s owner.
But you can explicitly assign another tablespace to a global temporary table during table creation using the TABLESPACE clause
https://www.oracletutorial.com/oracle-basics/oracle-global-temporary-table/
AC is correct
D is wrong, because :
The ON COMMIT clause specifies whether data in the table is transaction-specific or session-specific:
The ON COMMIT DELETE ROWS clause specifies that the global temporary table is transaction-specific. It means that ORACLE TRUNCATE THE TABLE after each commit.
The ON COMMIT PRESERVE ROWS clause specifies that the global temporary table is session-specific, meaning that ORACLE TRUNCATE THE TABLE when you terminate the session, not when you commit a transaction.
Delete is DML, truncate is DDL
I Think A, D.
D -> If the ON COMMIT is transaction specific -> COMMIT, ROLLBACK delete rows.
NOT C-> Allocation of temporal segments are done on USER TEMP TABLESPACE, at time of use table, no always in the TEMP TABLESPACE of the OWNER.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
lucemqy
1 month, 3 weeks agoDobrySomsiad
3 months, 2 weeks agoHari1233535
3 months, 3 weeks agozouve
6 months, 3 weeks agoCMjer
8 months, 1 week agoKamiyl
9 months, 3 weeks agoSidoogle
11 months agoAveragenoob
11 months, 1 week agoSantiBZ_07032022_1744
11 months, 3 weeks agoViviana3184
1 year ago