exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 16 discussion

Actual exam question from Oracle's 1z0-082
Question #: 16
Topic #: 1
[All 1z0-082 Questions]

Which three statements are true about dropping and unused columns in an Oracle database? (Choose three.)

  • A. A primary key column referenced by another column as a foreign key can be dropped if using the CASCADE option.
  • B. An UNUSED column's space is reclaimed automatically when the block containing that column is next queried.
  • C. An UNUSED column's space is reclaimed automatically when the row containing that column is next queried.
  • D. Partition key columns cannot be dropped.
  • E. A DROP COLUMN command can be rolled back
  • F. A column that is set to UNUSED still counts towards the limit of 1000 columns per table
Show Suggested Answer Hide Answer
Suggested Answer: ADF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dotruonghan
Highly Voted 3 years, 11 months ago
• Answer A is RIGHT: Oders is Parent table with PRIMARY KEY ord_no, Order_items is child table which ord_no is REFERENCE KEY that reference ord_no of Parent table, now drop PRIMARY KEY on Orders by command: ALTER TABLE orders DROP COLUMN ORD_NO CASCADE CONSTRAINTS; • Answer D is RIGHT: ORA-12984: cannot drop partitioning column • Answer F is RIGHT: Unused Columns Count against 1000-column Table Limit Causing ORA-01792 on Compressed Table (Doc ID 2259600.1) and "ORA-01792: Maximum Number Of Columns In A Table Or View Is 1000" AND HIDDEN_COLUMN name is recreated with date and timestamp (Doc ID 2624150.1)
upvoted 20 times
Ekos
3 years, 6 months ago
i agree
upvoted 2 times
...
...
Rivaldo11
Highly Voted 3 years, 11 months ago
It should be A, D and F.
upvoted 8 times
NowOrNever
3 years, 11 months ago
i think so too F is true - i tested it BC are false A is true, but you have to add it to ALTER TABLE <table_mame> SET unused (<column_name>) CASCADE CONSTRAINTS; before you drop unused constraints E should be wrong, could not find a way to undo this with roll back, this seems already the case if it is set to unused
upvoted 2 times
...
...
HassanShami
Most Recent 1 month, 2 weeks ago
Selected Answer: ADF
Drop column cannot be rolled back
upvoted 1 times
...
nautil2
9 months, 3 weeks ago
Selected Answer: ADF
A - TRUE; e.g. ALTER TABLE departments DROP COLUMN deptno CASCADE CONSTRAINTS; B - FALSE; In Oracle Database 19c, the space occupied by an unused column is automatically reclaimed when the row containing that column is next updated. The space is released and becomes available for reuse within the block. C - FALSE; see B D - TRUE; partition key column cannot be dropped. When an attempt to drop the column is made, an error "ORA-12984: cannot drop partitioning column" occurs. E - TRUE; ALTER TABLE documentation says "Until you actually drop these columns, they continue to count toward the absolute limit of 1000 columns in a single table."
upvoted 1 times
nautil2
9 months, 3 weeks ago
I am sorry, last two options are E - FALSE; DDL commands cannot be rolled back F - TRUE; ALTER TABLE documentation says "Until you actually drop these columns, they continue to count toward the absolute limit of 1000 columns in a single table."
upvoted 1 times
...
...
0z0n3
1 year, 1 month ago
Selected Answer: ADF
D is correct, partition table will not work otherwise Same with A and F
upvoted 1 times
...
cristycool
1 year, 2 months ago
A is correct B is correct F is correct : Unused columns count against the 1000-column limit for tables in an Oracle database. The total count of columns that count against this limit can be obtained by getting a count from DBA_TAB_COLS
upvoted 1 times
...
alexbraga93
1 year, 7 months ago
Selected Answer: ADF
B is not correct, once, the data remains in the table, but not available for querying.
upvoted 1 times
...
trgbighero
1 year, 8 months ago
Selected Answer: ADF
ADF is correct
upvoted 1 times
...
Phineas
1 year, 11 months ago
Selected Answer: ADF
Its ADF
upvoted 1 times
...
mitosenoriko
2 years ago
Selected Answer: ADF
A and D and F
upvoted 1 times
...
emburria
2 years, 5 months ago
A, D and F
upvoted 1 times
...
ryuah
2 years, 6 months ago
A,D,F is correct
upvoted 1 times
...
gabriel3600
3 years ago
A,D e F
upvoted 1 times
...
dotruonghan
3 years, 11 months ago
F is true Unused Columns Count against 1000-column Table Limit Causing ORA-01792 on Compressed Table (Doc ID 2259600.1)
upvoted 2 times
...
NiciMilo
4 years ago
Is B really correct? According to: https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-tables.html#GUID-29CA8FDC-55FB-4BEF-AE4A-5D1B4D2BE1E1 "The ALTER TABLE...DROP UNUSED COLUMNS statement is the only action allowed on unused columns. It physically removes unused columns from the table and reclaims disk space. "
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago