MSSQL网页编程之手工创立数据库的全体剧本及申明
支持AIX、FreeBSD、HP-UX、Linux、MacOS、NovellNetware、OpenBSD、OS/2Wrap、Solaris、Windows等多种操作系统创立|剧本|数据|数据库手工创立数据库的全体剧本及申明
体系情况:
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,内容:
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
LOGFILED:Oracleoradata estedo01.logSIZE2048K,
D:Oracleoradata estedo02.logSIZE2048K,
D:Oracleoradata estedo03.logSIZE2048K
MAXLOGFILES32
MAXLOGMEMBERS2
MAXLOGHISTORY1
DATAFILED:Oracleoradata estystem01.dbfSIZE58MREUSEAUTOEXTENDONNEXT640K
MAXDATAFILES254
MAXINSTANCES1
CHARACTERSETZHS16GBK
NATIONALCHARACTERSETZHS16GBK;
把持文件、日记文件在下面语句实行时天生
connectINTERNAL/oracle
--修正体系表空间
ALTERTABLESPACESYSTEMDEFAULTSTORAGE(INITIAL64KNEXT64KMINEXTENTS1MAXEXTENTSUNLIMITEDPCTINCREASE50);
ALTERTABLESPACESYSTEMMINIMUMEXTENT64K;
--创立回滚表空间
CREATETABLESPACERBSDATAFILED:Oracleoradata estbs01.dbfSIZE256MREUSE
AUTOEXTENDONNEXT5120K
MINIMUMEXTENT512K
DEFAULTSTORAGE(INITIAL512KNEXT512KMINEXTENTS8MAXEXTENTS4096);
--创立用户表空间
CREATETABLESPACEUSERSDATAFILED:Oracleoradata estusers01.dbfSIZE128MREUSE
AUTOEXTENDONNEXT1280K
MINIMUMEXTENT128K
DEFAULTSTORAGE(INITIAL128KNEXT128KMINEXTENTS1MAXEXTENTS4096PCTINCREASE0);
--创立一时表空间
CREATETABLESPACETEMPDATAFILED:Oracleoradata est emp01.dbfSIZE32MREUSE
AUTOEXTENDONNEXT640K
MINIMUMEXTENT64K
DEFAULTSTORAGE(INITIAL64KNEXT64KMINEXTENTS1MAXEXTENTSUNLIMITEDPCTINCREASE0)TEMPORARY;
--创立工具表空间
CREATETABLESPACETOOLSDATAFILED:Oracleoradata est ools01.dbfSIZE64MREUSE
AUTOEXTENDONNEXT320K
MINIMUMEXTENT32K
DEFAULTSTORAGE(INITIAL32KNEXT32KMINEXTENTS1MAXEXTENTS4096PCTINCREASE0);
--创立索引表空间
CREATETABLESPACEINDXDATAFILED:Oracleoradata estindx01.dbfSIZE32MREUSE
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:OracleOra81qlplusadminpupbld.sql
connectinternal/oracle
@D:OracleOra81Rdbmsadmincatrep.sql
exit
--天生SQL*Plus匡助体系
sqlplusSYSTEM/manager
@D:OracleOra81qlplusadminhelphelpbld.sqlhelpus.sql
exit
--修正system用户默许表空间和一时表空间
svrmgrl
connectinternal/oracle
alterusersystemdefaulttablespaceTOOLS;
alterusersystemtemporarytablespaceTEMP;
exit
7、将test实例启动服务设置成主动启动体例
D:OracleOra81inoradim-edit-sidtest-startmodeauto
----------------init.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
提供用于管理、检查、优化数据库操作的管理工具。 还不是性能有问题!否则面向对象的数据库早就实现了!建议使用CLR的地方一般是和应用的复杂程度或操作系统环境有很高的耦合度的场景。如你想构建复杂的算法,并且用到了大量的指针和高级数据模型。 备份方面可能还是一个老大难的问题。不能单独备份几个表总是感觉不爽。灵活备份的问题不知道什么时候才能解决。 然后最好有实践机会,能够把实践到的和实践结合起来,其实理论思考是个非常困扰和痛苦的事情 光写几个SQL实在叫无知。 我是一个ERP初学者,对于前台运用基本熟悉,但对于后台SQLServer的运用一点也不懂,特想学习下相关资料。至少懂得一些基本的运用。希望各位能给于建议,小弟再谢过! 分区表是个亮点!从分区表也能看出微软要做大作强SQLServer的信心。资料很多,这里不详细说。但是重点了解的是:现在的SQLServer2005的表,都是默认为分区表的。因为它要支持滑动窗口的这个特性。这种特性对历史数据和实时数据的处理是很有帮助的。
页:
[1]