How to drop an oracle database?



How to drop an oracle database?..

Answer / Satish Chandra

To drop an Oracle database, you must first shut it down using the SQL*Plus command `SHUTDOWN IMMEDIATE`, then connect as SYSDBA (sysasm owner) and use the `DROP DATABASE` command.n```sqlnSQL> STARTUP MOUNT;
SQL> ALTER DATABASE OPEN READ ONLY;
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP NOMOUNT;
SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = '/your/destination';
SQL> CREATE DATABASE datafile1, datafile2, ...;
SQL> ALTER SYSTEM ARCHIVE LOG TRUNCATE;
SQL> ALTER SYSTEM SWITCH LOG FILE;
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP NOMOUNT EXCLUSIVE;
SQL> DROP DATABASE;```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle DBA (Database Administration) Interview Questions

What is the advantage of using rman?

1 Answers  


What is the difference between cold backup and hot backup?

1 Answers  


What are the main functions of dba?

1 Answers  


What is dump destination? What are bdump, cdump and udump?

1 Answers  


What are the requirements of simple database?

1 Answers  


A dba had to remove some archivelogs to free up space in filesystem. Nowwhen the rman job starts to backup archivelogs, it complains about missing archivelogs thatwere deleted by dba. To resolve the issue and continue backing up remainder of archivelogs,which rman command can be used so it wo not complain about missing archivelogs.

1 Answers  


How do I become a database administrator?

1 Answers  


What are the functions of administration?

1 Answers  


What do you understand by the term 'normalization'?

1 Answers  


When should you increase copy latches?

1 Answers  


Explain the wait events in statspack report 'db sequential real'?

1 Answers  


When using oracle export/import what character set concerns might come up? How do you handle them?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)