第一步:oradim -new -sid=prod 成功
第二步:sqlplus "sys/prod as sysdba" 成功
第三步:startup pfile=D:\oracl11g\admin\prod\initprod.ora nomount 成功
第四步:Create database prod
logfile group 1('d:\oracl11g\oradata\prod\redo01.log','d:\oracl11g\oradata\prod\redo02.log',
'd:\oracl11g\oradata\prod\redo03.log')size 10m,
group 2('d:\oracl11g\oradata\prod\redo11.log','d:\oracl11g\oradata\prod\redo12.log',
'd:\oracl11g\oradata\prod\redo13.log')size 10m
datafile 'd:\oralc11g\oradata\prod\system01.dbf' size 500m
autoextend on next 100m maxsize unlimited extent management local
sysaux datafile 'd:\oralc11g\oradata\prod\sysaux01.dbf' size 300m
undo tablespace undotbs datafile 'd:\oralc11g\oradata\prod\undotbs01.dbf' size 100m
default temporary tablespace temp
tempfile 'd:\oralc11g\oradata\prod\temp01.dbf' size 100m
default tablespace users
datafile 'd:\oralc11g\oradata\prod\users01.dbf' size 100m
character set zhs16gbk;
结果:ora-01501:CREATE DATABASE??
ora-00200:???????
ora-00202:?????????? ''D:\oracl11g\oradata\prod\control01.ora''
ora-27040:??????,?????
osd-04002:???????
o/s-Error:<os 3>?????????自己创建的参数文件如下:
##############################################################################
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
##############################################################################
###########################################
# Shared Server
###########################################
dispatchers="(PROTOCOL=TCP) (SERVICE=orclXDB)"
###########################################
# Miscellaneous
###########################################
compatible=11.1.0.0.0
diagnostic_dest=D:\oracl11g
memory_target=857735168
###########################################
# Security and Auditing
###########################################
audit_file_dest=D:\oracl11g\admin\prod\adump
audit_trail=db
remote_login_passwordfile=EXCLUSIVE
###########################################
# Database Identification
###########################################
db_domain=" "
db_name=prod
instance_name=prod
###########################################
# File Configuration
###########################################
control_files=("D:\oracl11g\oradata\prod\control01.ctl", "D:\oracl11g\oradata\prod\control02.ctl", "D:\oracl11g\oradata\prod\control03.ctl")db_recovery_file_dest_size=2147483648
###########################################
# 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
期待大家的良言!
第二步:sqlplus "sys/prod as sysdba" 成功
第三步:startup pfile=D:\oracl11g\admin\prod\initprod.ora nomount 成功
第四步:Create database prod
logfile group 1('d:\oracl11g\oradata\prod\redo01.log','d:\oracl11g\oradata\prod\redo02.log',
'd:\oracl11g\oradata\prod\redo03.log')size 10m,
group 2('d:\oracl11g\oradata\prod\redo11.log','d:\oracl11g\oradata\prod\redo12.log',
'd:\oracl11g\oradata\prod\redo13.log')size 10m
datafile 'd:\oralc11g\oradata\prod\system01.dbf' size 500m
autoextend on next 100m maxsize unlimited extent management local
sysaux datafile 'd:\oralc11g\oradata\prod\sysaux01.dbf' size 300m
undo tablespace undotbs datafile 'd:\oralc11g\oradata\prod\undotbs01.dbf' size 100m
default temporary tablespace temp
tempfile 'd:\oralc11g\oradata\prod\temp01.dbf' size 100m
default tablespace users
datafile 'd:\oralc11g\oradata\prod\users01.dbf' size 100m
character set zhs16gbk;
结果:ora-01501:CREATE DATABASE??
ora-00200:???????
ora-00202:?????????? ''D:\oracl11g\oradata\prod\control01.ora''
ora-27040:??????,?????
osd-04002:???????
o/s-Error:<os 3>?????????自己创建的参数文件如下:
##############################################################################
# Copyright (c) 1991, 2001, 2002 by Oracle Corporation
##############################################################################
###########################################
# Shared Server
###########################################
dispatchers="(PROTOCOL=TCP) (SERVICE=orclXDB)"
###########################################
# Miscellaneous
###########################################
compatible=11.1.0.0.0
diagnostic_dest=D:\oracl11g
memory_target=857735168
###########################################
# Security and Auditing
###########################################
audit_file_dest=D:\oracl11g\admin\prod\adump
audit_trail=db
remote_login_passwordfile=EXCLUSIVE
###########################################
# Database Identification
###########################################
db_domain=" "
db_name=prod
instance_name=prod
###########################################
# File Configuration
###########################################
control_files=("D:\oracl11g\oradata\prod\control01.ctl", "D:\oracl11g\oradata\prod\control02.ctl", "D:\oracl11g\oradata\prod\control03.ctl")db_recovery_file_dest_size=2147483648
###########################################
# 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
期待大家的良言!
Cause: It was not possible to create the controlfile.
Action: Check that there is sufficient disk space and no conflicts in filenames and try to create the controlfile again.ORA-00202: controlfile: 'string'
Cause: This message reports the name file involved in other messages.
Action: See associated error messages for a description of the problem.ORA-27040: file create error, unable to create file
Cause: create system call returned an error, unable to create file
Action: verify filename, and permissions