exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 15 discussion

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

Examine this command:

Which two statements are true? (Choose two.)

  • A. DML may be performed on tables with one or more extents in this data file during the execution of this command.
  • B. The tablespace containing SALES1.DBF must be altered READ ONLY before executing the command.
  • C. The tablespace containing SALES1.DBF must be altered OFFLINE before executing the command.
  • D. If Oracle Managed Files (OMF) is used, then the file is renamed but moved to DB_CREATE_FILE_DEST.
  • E. The file is renamed and stored in the same location
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
Rivaldo11
Highly Voted 3 years, 11 months ago
I would say A and E.
upvoted 26 times
NowOrNever
3 years, 11 months ago
Yes, BCD is wrong D - like in the posted link descirbed it will be moved to DB_CREATE_FILE_DEST location only, when TO is omitted So AE is correct
upvoted 5 times
...
...
khalilshahin01
Highly Voted 3 years, 11 months ago
answer is A & E Queries and DML and DDL operations can be performed while the data file is being moved, for example: 1-SELECT statements against tables and partitions 2-Creation of tables and indexes 3- Rebuilding of indexes Other notes: 1- If objects are compressed while the data file is moved, the compression remains the same. 2- You do not have to shut down the database or take the data file offline while you move a data file to another location, disk, or storage system. 3- You can omit the TO clause only when an Oracle-managed file is used. In this case, the DB_CREATE_FILE_DEST initialization parameter should be set to indicate the new location. 4-If the REUSE option is specified, the existing file is overwritten. note: The REUSE keyword indicates the new file should be created even if it already exists. 5-If the KEEP clause is specified, the old file will be kept after the move operation. The KEEP clause is not allowed if the source file is an Oracle-managed file.
upvoted 17 times
...
HassanShami
Most Recent 1 month, 2 weeks ago
Selected Answer: AE
No need to alter ts read only
upvoted 1 times
...
nautil2
9 months, 3 weeks ago
Selected Answer: AE
See documentation "14.5.1 Renaming and Relocating Online Data Files" in Release 19 Database Administrator’s Guide See documentation "ALTER DATABASE" in Release 19 SQL Language Reference A - TRUE; ALTER DATABASE MOVE DATAFILE ... This statement enables you to rename or relocate a data file while the database is open and users are accessing the data file." B - FALSE; There is no condition to alter moved datafile READ ONLY before executing ALTER ... MOVE command. C - FALSE; The datafile is online during the movement, see answer A. D - FALSE; the file will be moved to specified folder only if TO is omitted. If TO is not omitted, Oracle will create specified file. "If you are using Oracle Managed Files, then you can omit the TO clause. In this case, Oracle Database creates a unique name for the data file and saves it in the directory specified by the DB_CREATE_FILE_DEST initialization parameter." E - TRUE; its obvious from the command listed in question
upvoted 2 times
...
doyinbare
9 months, 3 weeks ago
A and E are correct answers. The Alter tablespace MOVE command works just like the linux mv command which either renames the file or moves the file to the specified location if it doesnt exist there. Note, while this movement is ongoing, DML operations are allowed. Also, the tablespace does not have to be in OFFLINE mode or READ ONLY mode for this operation to be performed.
upvoted 1 times
...
Oracle2020
10 months, 2 weeks ago
The correct answers are C,E, for Oracle 12c I understand C is correct because to rename a datafile you have to put it offline. Due to the fact that it is a physical Windows file and if it is in use it does not allow you to rename it. Same as any other file you want to rename in windows E is correct , because it is not just moving the datafile and renaming it For Oracle 19 the correct answer is A,E. Could be?
upvoted 1 times
...
trgbighero
1 year, 8 months ago
Selected Answer: AE
AE is correct
upvoted 2 times
...
cratostt
2 years, 3 months ago
The is no rename in move datafile. The only options are A,B
upvoted 1 times
...
emburria
2 years, 5 months ago
A, E. It's an online operation
upvoted 1 times
...
ryuah
2 years, 6 months ago
A,E is correct
upvoted 1 times
...
gabriel3600
3 years ago
A and E
upvoted 2 times
...
Ekos
3 years, 6 months ago
the answer is A and E
upvoted 4 times
...
SimoneF
3 years, 7 months ago
It's funny how A and B are actually contradicting one another... if the datafile is Read Only, how can you execute any DML on tables residing there? Considering the ability of renaming datafiles online from 12c, I would say the more correct answers are A and E. D is wrong because, evn with OMF, you can still force the creation of a datafile with a custom name on filesystem if you give the full path. If you only gave the file name, on the contrary, it would in fact create the new datafile on the default location.
upvoted 4 times
...
elvegaa
3 years, 7 months ago
For old folks, note that "ALTER DATABASE MOVE..." syntax replaces "ALTER DATABASE RENAME..." (pre-12c era), so is no longer to set the tablespace offline and DML operations can be performed.
upvoted 4 times
...
avanand
3 years, 10 months ago
A E ALTER DATABASE MOVE DATAFILE ( 'filename' | 'ASM_filename' | file_number ) [ TO ( 'filename' | 'ASM_filename' ) ] [ REUSE ] [ KEEP ] The source file can be specified using the file number or name, while the destination file must be specified by the file name. The REUSE keyword indicates the new file should be created even if it already exists. The KEEP keyword indicates the original copy of the datafile should be retained. When the source file is an OMF file the KEEP option can not be used. If the destination file is an OMF file, the TO clause can be omitted and the file will be created with an OMF name in the DB_CREATE_FILE_DEST location.
upvoted 8 times
...
you1234
4 years ago
ama, which one is correct? Plase suggest
upvoted 1 times
ama
4 years ago
I would take A, D See below https://oracle-base.com/articles/12c/online-move-datafile-12cr1
upvoted 2 times
NiciMilo
4 years ago
Why D but not E? if it were OMF, i think we dont need the TO clause
upvoted 2 times
elvegaa
3 years, 7 months ago
But in the question they're defining a destination in the TO clause, hence the datafile would be created in that destination, not in the OMF destination.
upvoted 3 times
SimoneF
3 years, 7 months ago
I agree, and so I also think it's A and E
upvoted 3 times
...
...
...
...
...
ama
4 years ago
Why B is correct ? according to the Oracle documentation, Move Option is new and only possible in 12c and can be executed ONLINE without taking anything offline https://oracle-base.com/articles/12c/online-move-datafile-12cr1
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