免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1325 | 回复: 1
打印 上一主题 下一主题

ORACLE9I的两个脚本!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-04 18:26 |只看该作者 |倒序浏览
initoradb.ora文件:


db_name = oradb
instance_name = oradb
control_files = ('/opt/oracle/oradata/oradb/ora_control1.ctl', '/opt/oracle/oradata/oradb/ora_control2.ctl')

db_block_size = 8192

pga_aggregate_target = 50M
db_cache_size = 100M
shared_pool_size = 50M

processes = 200
sessions = 500
open_cursors = 500
db_writer_processes = 2

db_file_multiblock_read_count = 16

log_checkpoint_interval = 0
log_checkpoint_timeout = 0
log_buffer = 524288
log_archive_start = true
log_archive_dest_1 = "location=/opt/oracle/oradata/oradb/arch"
log_archive_format = %T_%S.dbf

background_dump_dest = /opt/oracle/admin/oradb/bdump
core_dump_dest = /opt/oracle/admin/oradb/cdump
user_dump_dest = /opt/oracle/admin/oradb/udump

undo_management = auto
undo_tablespace = tbsundo

parallel_automatic_tuning = true
#parallel_threads_per_cpu = 2

compatible = 9.0.0
optimizer_features_enable = 9.0.0

#db_domain =
#remote_login_passwordfile = exclusive


createdb.sh文件:

sqlplus /nolog <<EOF
connect / as sysdba
startup nomount pfile=${ORACLE_BASE}/admin/${ORACLE_SID}/pfile/init${ORACLE_SID}.ora

create database ${ORACLE_SID}
user sys identified by sys
user system identified by system
logfile group 1 ('${ORACLE_BASE}/oradata/${ORACLE_SID}/redo01.log') size 10M,
group 2 ('${ORACLE_BASE}/oradata/${ORACLE_SID}/redo02.log') size 10M,
group 3 ('${ORACLE_BASE}/oradata/${ORACLE_SID}/redo03.log') size 10M
maxlogfiles 5
maxlogmembers 5
maxloghistory 1
maxdatafiles 254
maxinstances 1
archivelog
character set ZHS32GB18030
national character set AL16UTF16
datafile '${ORACLE_BASE}/oradata/${ORACLE_SID}/system01.dbf' size 300M
default temporary tablespace tbstemp tempfile '${ORACLE_BASE}/oradata/${ORACLE_SID}/temp01.dbf' size 500M
undo tablespace tbsundo datafile '${ORACLE_BASE}/oradata/${ORACLE_SID}/undo01.dbf' size 500M;

connect sys/sys as sysdba
@${ORACLE_HOME}/rdbms/admin/catalog.sql
@${ORACLE_HOME}/rdbms/admin/catproc.sql
create spfile from pfile='${ORACLE_BASE}/admin/${ORACLE_SID}/pfile/init${ORACLE_SID}.ora';

connect system/system
@${ORACLE_HOME}/sqlplus/admin/pupbld.sql

exit
EOF

论坛徽章:
0
2 [报告]
发表于 2004-03-07 09:37 |只看该作者

ORACLE9I的两个脚本!!!

大家顶啊!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP