> 데이터 베이스 > MySQL 튜토리얼 > Windows下Oracle 11g 手动创建数据库

Windows下Oracle 11g 手动创建数据库

WBOY
풀어 주다: 2016-06-07 17:27:19
원래의
1394명이 탐색했습니다.

1、创建必要的相关目录 D:\app\Administrator\admin\jxg12_20104350121 2.在oradata下创建数据库文件存放目录 D:\app\Administra

1、创建必要的相关目录

D:\app\Administrator\admin\jxg12_20104350121


2.在oradata下创建数据库文件存放目录

D:\app\Administrator\oradata


3.创建初始化参数文件D:\app\Administrator\admin\jxg12_20104350121\scripts\init.ora

##############################################################################

# Copyright (c) 1991, 2001, 2002 by Oracle Corporation

##############################################################################

 

###########################################

# Shared Server

###########################################

dispatchers="(PROTOCOL=TCP) (SERVICE=jxg1XDB)"

 

###########################################

# Miscellaneous

###########################################

compatible=11.2.0.0.0

db_unique_name=jxg12_20104350121

diagnostic_dest=D:\app\Administrator

memory_target=1287651328

 

###########################################

# Security and Auditing

###########################################

audit_file_dest=D:\app\Administrator\admin\jxg12_20104350121\adump

audit_trail=db

remote_login_passwordfile=EXCLUSIVE

 

###########################################

# Database Identification

###########################################

db_domain=usc.edu.cn

db_name=jxg12_20

 

###########################################

# File Configuration

###########################################

control_files=("D:\app\Administrator\oradata\jxg12_20104350121\control01.ctl", "D:\app\Administrator\flash_recovery_area\jxg12_20104350121\control02.ctl")

db_recovery_file_dest=D:\app\Administrator\flash_recovery_area

db_recovery_file_dest_size=4039114752

 

###########################################

# Cursors and Library Cache

###########################################

open_cursors=300

 

###########################################

# System Managed Undo and Rollback Segments

###########################################

undo_tablespace=UNDOTBS1

 

###########################################

# Processes and Sessions

###########################################

processes=150

 

###########################################

# Cache and I/O

###########################################

db_block_size=8192

3、打开命令行,,设置环境变量oracle_sid


4、创建实例服务(即后台控制windows服务)

命令:oradim -new -sid  jxg12_20104350121


服务已经创建:


5、创建口令文件


命令为:orapwd                    file=D:\app\Administrator\product\11.2.0\dbhome_4\database\jxg12_20104350121 password=root  entries=2


6、启动数据库到nomount(实例)状态

注意:先要关闭连接。(shutdown abort)

linux

관련 라벨:
or
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
최신 이슈
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿