Manually create a database with the command prompt

With an instance of Oracle currently running on the server, we can manually create a database.

 

In this scenario we are connected to the system as an Oracle user with the first instance active. The first step is to decide on a name for the instance to be created.

Create a pfile called initcargo.orcl in the “/u01/app/oracle/product/10.2.0/db_1/dbs” path.

Configure the paths according to your requirements.

It’s necessary to create all of these folders and grant them the needed rights. If you haven’t already created an Oracle user:

Opening the database in nomount mode and creating an spfile.

If you get an error such as this one, there may be a problem with rights and/or paths.

 

By using the create database command we create the listed files:

– Redo Log files

– system.dbf and sysaux.dbf (files for SYSTEM tablespace)

– undo01.dbf file (for UNDO tablespace)

– temp_tbs.dbf file (for TEMPORARY tablespace)

– users.dbf (for DEFAULT PERMANENT tablespace)

The following scripts create views, synonyms and pl/sql packages.

After getting a “PL/SQL procedure successfully completed” message.

Use the following commands to restart the database.

Kategori seçin...