What are the steps to manually create a database in Oracle?

Source: Internet
Author: User

We all know that in addition to the built-in DBCA, Oracle can create databases. In addition, there is another way to create a database, that is, manually create a database in Oracle, this is what DBAs must master. The following describes how to manually create a database:

Manual Oracle database creation usually includes the following steps:

1. Confirm the new database name and Instance name;

2. Determine the authentication method of the database administrator;

3. Create an initialization parameter file;

4. Create an instance;

5. Connect and start the instance;

6. Use the create database statement to create a database in Oracle;

7. Create additional tablespaces;

8. Run the script to create a data dictionary view;

The following describes how to create a database named "MYNEWDB ".

1. Determine the Database Name and Instance name;

 
 
  1. DB_NAME=MYNEWDB 
  2. SID=MYNEWDB 

2. Determine the authentication method of the database administrator;

The Administrator authentication methods include operating system authentication and password authentication. In this example, operating system authentication is used.

3. Create an initialization parameter file;

The initialization parameter sample file provided by Oracle is located in initsmpl. ora in the $ ORACLE_HOME \ admin \ sample \ pfile directory.

We use the sample modification method. The name of the created parameter is initMYNEWDB. ora, which is stored in D: \ oracle \ ora92.

\ Database \ initMYNEWDB. ora. The main content is set as follows:

Shared Server Settings

 
 
  1. dispatchers="(PROTOCOL=TCP)(SERVICE=MYNEWDBXDB) 

Database instance name settings

 
 
  1. instance=MYNEWDB 

Security and audit settings

 
 
  1. remote_login_passwordfile=EXCLUSIVE 

Sorting area size settings

 
 
  1. pga_aggregate_target=25165824 
  2. sort_area_size=524288 

Global Database Name settings

 
 
  1. db_domain="" 
  2. db_name=MYNEWDB 

Control File Settings

 
 
  1. control_files=("D:\oracle\oradata\MYNEWDB\CONTROL01.CTL",  
  2. "D:\oracle\oradata\MYNEWDB\CONTROL02.CTL",  
  3. "D:\oracle\oradata\MYNEWDB\CONTROL03.CTL")  

SGA zone settings

 
 
  1. java_pool_size =33554432 
  2. large_pool_size=8388608 
  3. shared_pool_size=50331648   

The above content is an introduction to the steps for creating a database in Oracle. I hope you will find some gains.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.