Sei sulla pagina 1di 6

1.

Creating New Database in Command Line

Edit Initmalli.ora parameter file under below location.

$ Cd /u02/app/oracle/product/11.1.0/db_1/dbs

$ Cp init.ora initmalli.ora

Create new database name under the file systems.

Database Creation Page 1


Export the New Database and start the New Database in nomount stage.

Prepare script for creating new database & Run Database script for creating
new database

Database Creation Page 2


After executed database created scripts below database files are created.

Prepare run.sql script for createing the sytem tables,views and procedures.

Database Creation Page 3


Database Creation Page 4
How to drop RAC Database in Oracle 11g
As we’re all used since the advent of the “new” command “drop database” on oracle, that sometimes,
for a clean and total remove of oracle’s database it’s used. But if you try just use on a RAC environment,
it’s necessary a little trick.

The steps are:

1) on cluster (or on the instance it self) do a:

2) Startup on restrict mode:

3) The Trick !!! Change the parameter CLUSTER_DATABASE to false!!!

alter system set cluster_database=false scope=spfile;

4) restart it again restricted:

shutdown immediate;
startup mount restricted exclusive;

5) Finally: drop database !!! (becareful, it has no rollback!!!)

drop database;

Database Creation Page 5


6) Done !

Database Creation Page 6

Potrebbero piacerti anche