Buscar

What is the correct way to delete a user in Oracle when the user owns objects in their schema? To delete a user in Oracle when the user owns objec...

What is the correct way to delete a user in Oracle when the user owns objects in their schema?

To delete a user in Oracle when the user owns objects in their schema, we must use the DROP CASCADE command.
When using DROP CASCADE, the user can be deleted even if they are connected to the database.
If the user owns objects in their schema, we cannot delete them without using CASCADE.
The error ORA-01922 occurs when trying to delete a user who owns objects in their schema without using CASCADE.
a) I and III are correct.
b) II and IV are correct.
c) I and IV are correct.
d) II and III are correct.

Essa pergunta também está no material:

SQL - Uma abordagem para bancos de dados Oracle - Casa do Codigo
356 pág.

Português Escola Colegio Estadual Barao Do Rio BrancoEscola Colegio Estadual Barao Do Rio Branco

💡 1 Resposta

User badge image

Ed Verified user icon

A alternativa correta é a letra C) I e IV estão corretas. Explicação: I - Para excluir um usuário no Oracle que possui objetos em seu esquema, é necessário usar o comando DROP CASCADE. IV - Se o usuário possuir objetos em seu esquema e tentarmos excluí-lo sem usar CASCADE, ocorrerá o erro ORA-01922.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais