5、通过oradim.exe命令,在服务里生成一个新的实例管理服务,启动方式为手工 set oracle_sid=test d:/oracle/ora81/bin/oradim -new -sid test -startmode manual -pfile "d:/oracle/admin/test/pfile/inittest.ora"
6、生成各种数据库对象 d:/>svrmgrl
--创建数据库 connect internal/oracle startup nomount pfile="d:/oracle/admin/test/pfile/inittest.ora" create database test logfile 'd:/oracle/oradata/test/redo01.log' size 2048k, 'd:/oracle/oradata/test/redo02.log' size 2048k, 'd:/oracle/oradata/test/redo03.log' size 2048k maxlogfiles 32 maxlogmembers 2 maxloghistory 1 datafile 'd:/oracle/oradata/test ystem01.dbf' size 58m reuse autoextend on next 640k maxdatafiles 254 maxinstances 1 character set zhs16gbk national character set zhs16gbk;
控制文件、日志文件在上面语句执行时生成
connect internal/oracle --修改系统表空间 alter tablespace system default storage ( initial 64k next 64k minextents 1 maxextents unlimited pctincrease 50); alter tablespace system minimum extent 64k;
--创建回滚表空间 create tablespace rbs datafile 'd:/oracle/oradata/test/rbs01.dbf' size 256m reuse autoextend on next 5120k minimum extent 512k default storage ( initial 512k next 512k minextents 8 maxextents 4096);
--创建用户表空间 create tablespace users datafile 'd:/oracle/oradata/test/users01.dbf' size 128m reuse autoextend on next 1280k minimum extent 128k default storage ( initial 128k next 128k minextents 1 maxextents 4096 pctincrease 0);
--创建临时表空间 create tablespace temp datafile 'd:/oracle/oradata/test/temp01.dbf' size 32m reuse autoextend on next 640k minimum extent 64k default storage ( initial 64k next 64k minextents 1 maxextents unlimited pctincrease 0) temporary;
--创建工具表空间 create tablespace tools datafile 'd:/oracle/oradata/test/tools01.dbf' size 64m reuse autoextend on next 320k minimum extent 32k default storage ( initial 32k next 32k minextents 1 maxextents 4096 pctincrease 0);
--创建索引表空间 create tablespace indx datafile 'd:/oracle/oradata/test/indx01.dbf' size 32m reuse autoextend on next 1280k minimum extent 128k default storage ( initial 128k next 128k minextents 1 maxextents 4096 pctincrease 0);