Oracle manual database creation

Source: Internet
Author: User

Manual database creation

1. manually create a database

1. Create a folder. (Based on the directory in/u01/app/Oracle/admin/orcl, we also created it)
$ Mkdir-p/u01/app/oracle/admin/mydb/adump
$ Mkdir-p/u01/app/oracle/admin/mydb/bdump
$ Mkdir-p/u01/app/oracle/admin/mydb/udump
$ Mkdir-p/u01/app/oracle/admin/mydb/cdump
$ Mkdir-p/u01/app/oracle/admin/mydb/pfile
$ Mkdir-p/u01/app/oracle/admin/mydb/script
$ Mkdir/u01/app/oracle/oradata/mydb
Three of them must be:
Bdump (backup_dump_list)
Udump (user_dump_list)
Cdump (core_dump_list) Core trace file, system process, and kernel trace file
Other options: Adump (audit_dump_list) audit file
 
2. Create a parameter file. In fact, the content of each database in the parameter file is similar. We only need to change some content in the middle, so we Copy the orcl parameter file, to what we need.
$ Cp/u01/app/oracle/admin/orcl/scripts/init. ora
/U01/app/oracle/admin/mydb/pfile
$ Vi/u01/app/oracle/admin/mydb/pfile/init. ora
Modify init. ora as shown in the preceding figure:
######################################## ###
# Copyright (c) 1991,200 1, 2002 by Oracle Corporation
######################################## ###
 
######################################## ###
# Cache and I/O
######################################## ###
DB _ block_size = 8192
Db_file_multiblock_read_count = 16
 
######################################## ###
# Cursors and Library Cache
######################################## ###
Open_cursors = 300
 
######################################## ###
# Database Identification
######################################## ###
Db_domain = ""
Db_name = mydb
 
######################################## ###
# Diagnostics and Statistics
######################################## ###
Background_dump_dest =/u01/app/oracle/oradata/mydb/bdump
Core_dump_dest =/u01/app/oracle/oradata/mydb/cdump
User_dump_dest =/u01/app/oracle/oradata/mydb/udump
 
######################################## ###
# File Configuration
######################################## ###
Control_files = ("/u01/app/oracle/oradata/mydb/control01.ctl ",
"/U01/app/oracle/oradata/mydb/control02.ctl ",
"/U01/app/oracle/oradata/mydb/control03.ctl ")
Db_recovery_file_dest =/u01/app/oracle/flash_recovery_area
Db_recovery_file_dest_size = 2147483648
 
######################################## ###
# Job Queues
######################################## ###
Job_queue_processes = 10
 
######################################## ###
# Miscellaneous
######################################## ###
Compatible = 10.2.0.1.0
 
######################################## ###
# Processes and Sessions
######################################## ###
Processes = 150
 
######################################## ###
# SGA Memory
######################################## ###
Sga_target = 262144000
 
######################################## ###
# Security and Auditing
######################################## ###
Audit_file_dest =/u01/app/oracle/admin/mydb/adump
Remote_login_passwordfile = EXCLUSIVE
 
######################################## ###
# Sort, Hash Joins, Bitmap Indexes
######################################## ###
Pga_aggregate_target = 87031808
 
######################################## ###
# System Managed Undo and Rollback Segments
######################################## ###
Undo_management = AUTO
Undo_tablespace = UNDOTBS1

  • 1
  • 2
  • Next Page

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.