|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
专业性的服务。有的ASP商提供垂直型的应用服务,针对某一特定行业提供应用服务。创立|剧本|数据|数据库手工创立数据库的全体剧本及其申明
手工创立数据库的全体剧本及申明
体系情况:
1、操纵体系:Windows2000Server,呆板内存128M
2、数据库: Oracle8iR2(8.1.6)forNT企业版
3、安装路径:D:ORACLE
建库步骤:
1、手工创立相干目次
D:Oracleadmin est
D:Oracleadmin estadhoc
D:Oracleadmin estdump
D:Oracleadmin estcdump
D:Oracleadmin estcreate
D:Oracleadmin estexp
D:Oracleadmin estpfile
D:Oracleadmin estudump
D:Oracleoradata est
D:Oracleoradata estarchive
2、手工创立初始化启动参数文件:D:Oracleadmin estpfileinittest.ora,内容:
db_name="test"
instance_name=test
service_names=test
db_files=1024
control_files=("D:Oracleoradata estcontrol01.ctl","D:Oracleoradata estcontrol02.ctl","D:Oracleoradata estcontrol03.ctl")
open_cursors=200
max_enabled_roles=30
db_file_multiblock_read_count=8
db_block_buffers=4096
shared_pool_size=52428800
large_pool_size=78643200
java_pool_size=20971520
log_checkpoint_interval=10000
log_checkpoint_timeout=1800
processes=115
parallel_max_servers=5
log_buffer=32768
max_dump_file_size=10240
global_names=true
oracle_trace_collection_name=""
background_dump_dest=D:Oracleadmin estdump
user_dump_dest=D:Oracleadmin estudump
db_block_size=16384
remote_login_passwordfile=exclusive
os_authent_prefix=""
job_queue_processes=4
job_queue_interval=60
open_links=4
distributed_transactions=10
mts_dispatchers="(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
mts_dispatchers="(protocol=TCP)"
compatible=8.1.0
sort_area_size=65536
sort_area_retained_size=65536
#log_archive_start=true
#log_archive_dest_1="location=D:Oracleoradataoradbarchive"
#log_archive_format=%%ORACLE_SID%%T%TS%S.ARC
3、手工创立D:OracleOra81DATABASEinittest.ora文件,
内容:IFILE=’D:Oracleadmin estpfileinittest.ora’
4、利用orapwd.exe命令,创立D:OracleOra81DATABASEPWDtest.ora
命令:D:OracleOra81inorapwdfile=D:OracleOra81DATABASEPWDtest.orapassword=ORACLEentries=5
5、经由过程oradim.exe命令,在服务里天生一个新的实例办理服务,启动体例为手工
setORACLE_SID=test
D:OracleOra81inoradim-new-sidtest-startmodemanual-pfile"D:Oracleadmin estpfileinittest.ora"
6、天生各类数据库工具
D:>svrmgrl
--创立数据库
connectINTERNAL/oracle
startupnomountpfile="D:Oracleadmin estpfileinittest.ora"
CREATEDATABASEtest
LOGFILE’D:Oracleoradata estedo01.log’SIZE2048K,
’D:Oracleoradata estedo02.log’SIZE2048K,
’D:Oracleoradata estedo03.log’SIZE2048K
MAXLOGFILES32
MAXLOGMEMBERS2
MAXLOGHISTORY1
DATAFILE’D:Oracleoradata estsystem01.dbf’SIZE58MREUSEAUTOEXTENDONNEXT640K
MAXDATAFILES254
MAXINSTANCES1
CHARACTERSETZHS16GBK
NATIONALCHARACTERSETZHS16GBK;
把持文件、日记文件在下面语句实行时天生
connectINTERNAL/oracle
--修正体系表空间
ALTERTABLESPACESYSTEMDEFAULTSTORAGE(INITIAL64KNEXT64KMINEXTENTS1MAXEXTENTSUNLIMITEDPCTINCREASE50);
ALTERTABLESPACESYSTEMMINIMUMEXTENT64K;
--创立回滚表空间
CREATETABLESPACERBSDATAFILE’D:Oracleoradata estbs01.dbf’SIZE256MREUSE
AUTOEXTENDONNEXT5120K
MINIMUMEXTENT512K
DEFAULTSTORAGE(INITIAL512KNEXT512KMINEXTENTS8MAXEXTENTS4096);
--创立用户表空间
CREATETABLESPACEUSERSDATAFILE’D:Oracleoradata estusers01.dbf’SIZE128MREUSE
AUTOEXTENDONNEXT1280K
MINIMUMEXTENT128K
DEFAULTSTORAGE(INITIAL128KNEXT128KMINEXTENTS1MAXEXTENTS4096PCTINCREASE0);
--创立一时表空间
CREATETABLESPACETEMPDATAFILE’D:Oracleoradata est emp01.dbf’SIZE32MREUSE
AUTOEXTENDONNEXT640K
MINIMUMEXTENT64K
DEFAULTSTORAGE(INITIAL64KNEXT64KMINEXTENTS1MAXEXTENTSUNLIMITEDPCTINCREASE0)TEMPORARY;
--创立工具表空间
CREATETABLESPACETOOLSDATAFILE’D:Oracleoradata est ools01.dbf’SIZE64MREUSE
AUTOEXTENDONNEXT320K
MINIMUMEXTENT32K
DEFAULTSTORAGE(INITIAL32KNEXT32KMINEXTENTS1MAXEXTENTS4096PCTINCREASE0);
--创立索引表空间
CREATETABLESPACEINDXDATAFILE’D:Oracleoradata estindx01.dbf’SIZE32MREUSE
AUTOEXTENDONNEXT1280K
MINIMUMEXTENT128K
DEFAULTSTORAGE(INITIAL128KNEXT128KMINEXTENTS1MAXEXTENTS4096PCTINCREASE0);
--创立回滚段
CREATEPUBLICROLLBACKSEGMENTRBS0TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS1TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS2TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS3TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS4TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS5TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS6TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS7TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS8TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS9TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS10TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS11TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS12TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS13TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS14TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS15TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS16TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS17TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS18TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS19TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS20TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS21TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS22TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS23TABLESPACERBSSTORAGE(OPTIMAL4096K);
CREATEPUBLICROLLBACKSEGMENTRBS24TABLESPACERBSSTORAGE(OPTIMAL4096K);
--使回滚段在线
ALTERROLLBACKSEGMENT"RBS0"ONLINE;
ALTERROLLBACKSEGMENT"RBS1"ONLINE;
ALTERROLLBACKSEGMENT"RBS2"ONLINE;
ALTERROLLBACKSEGMENT"RBS3"ONLINE;
ALTERROLLBACKSEGMENT"RBS4"ONLINE;
ALTERROLLBACKSEGMENT"RBS5"ONLINE;
ALTERROLLBACKSEGMENT"RBS6"ONLINE;
ALTERROLLBACKSEGMENT"RBS7"ONLINE;
ALTERROLLBACKSEGMENT"RBS8"ONLINE;
ALTERROLLBACKSEGMENT"RBS9"ONLINE;
ALTERROLLBACKSEGMENT"RBS10"ONLINE;
ALTERROLLBACKSEGMENT"RBS11"ONLINE;
ALTERROLLBACKSEGMENT"RBS12"ONLINE;
ALTERROLLBACKSEGMENT"RBS13"ONLINE;
ALTERROLLBACKSEGMENT"RBS14"ONLINE;
ALTERROLLBACKSEGMENT"RBS15"ONLINE;
ALTERROLLBACKSEGMENT"RBS16"ONLINE;
ALTERROLLBACKSEGMENT"RBS17"ONLINE;
ALTERROLLBACKSEGMENT"RBS18"ONLINE;
ALTERROLLBACKSEGMENT"RBS19"ONLINE;
ALTERROLLBACKSEGMENT"RBS20"ONLINE;
ALTERROLLBACKSEGMENT"RBS21"ONLINE;
ALTERROLLBACKSEGMENT"RBS22"ONLINE;
ALTERROLLBACKSEGMENT"RBS23"ONLINE;
ALTERROLLBACKSEGMENT"RBS24"ONLINE;
--修正sys用户的一时表空间为TEMP
alterusersystemporarytablespaceTEMP;
--创立数据字典表
@D:OracleOra81Rdbmsadmincatalog.sql;
@D:OracleOra81Rdbmsadmincatexp7.sql
@D:OracleOra81Rdbmsadmincatproc.sql
@D:OracleOra81Rdbmsadmincaths.sql
connectsystem/manager
@D:OracleOra81sqlplusadminpupbld.sql
connectinternal/oracle
@D:OracleOra81Rdbmsadmincatrep.sql
exit
--天生SQL*Plus匡助体系
sqlplusSYSTEM/manager
@D:OracleOra81sqlplusadminhelphelpbld.sqlhelpus.sql
exit
--修正system用户默许表空间和一时表空间
svrmgrl
connectinternal/oracle
alterusersystemdefaulttablespaceTOOLS;
alterusersystemtemporarytablespaceTEMP;
exit
7、将test实例启动服务设置成主动启动体例
D:OracleOra81inoradim-edit-sidtest-startmodeauto对用户来说可预见费用、节约费用,可以做到花少钱办大事。由于省去了购买软件和硬件等的前期费用,用户可以租用较高级的应用软件。ASP的收费是根据软件的类型、客制化程度、用户数量、服务期限来定的,对客户来说这笔费用是可以预见的。方便于客户应用软件的升级。 |
|