Get the App
SLTechnology News&Howtos  ›  Database  › 

ORACLE command line to delete the database, will you?

Shulou Source: shulou.com Published: 2022-06-01 18:49:26 11月16日 Update

I. description of the environment

Friday to tell customers about 11g OCP, do a delete database test in advance, record as follows, knowledge points of your own get ~. There is really a big difference between work and lectures. we should not only know what it is about all kinds of knowledge, but also why it is much more demanding in theory. Come on!

II. Specific operation

There are two main ways to delete a database

1. Use DBCA

2. Use DROP DATABASE

Use the second method to delete the database as follows:

[root@11g-ocp] # su-oracle$export ORACLE_SID=orcl12345678 $sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Tue Dec 11 18:36:28 2018Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit ProductionWith the Partitioning, Automatic Storage Management, OLAP and Real Application Testing optionsSQL > shutdown immediate;Database closed.Database dismounted.ORACLE instance shut down.SQL > startup restrict exclusive force mount;ORACLE instance started.Total System Global Area 1870647296 bytesFixed Size 2254304 bytesVariable Size 503319072 bytesDatabase Buffers 1358954496 bytesRedo Buffers 6119424 bytesDatabase mounted.SQL > drop database Database dropped.Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-64bit ProductionWith the Partitioning, Automatic Storage Management, OLAP and Real Application Testing optionsSQL >

You can consider which files have been deleted and which files have not been deleted, and why delete them in the mount state? You can leave me a message.

Tags: Data database file method knowledge knowledge point big know why know it customer state environment theory process work test command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info Shulou Information Xiaomi Apple