真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

[Oracle]腳本創(chuàng)建DB

C:\Users\Admin>set ORACLE_HOME=E:\oracle11g\product\11.2.0\dbhome_1
C:\Users\Admin>set ORACLE_SID=bruce

C:\Users\Admin>oradim -new -sid bruce
Instance created.


初始化參數(shù)文件內(nèi)容(11g):
db_name=bruce
audit_file_dest=E:\oracle11g
audit_trail =db
db_block_size=8192
control_files = ('E:\oracle11g\oradata\control01.ctl','E:\oracle11g\oradata\control02.ctl','E:\oracle11g\oradata\control03.ctl')
compatible =11.2.0

初始化參數(shù)文件內(nèi)容(10g):
db_name=bruce10g
audit_trail =db
db_block_size=8192
control_files = ('E:\oracle\product\oradata\control01.ctl','E:\oracle\product\oradata\control02.ctl','E:\oracle\product\oradata\control03.ctl')
compatible =10.2.0
undo_management=auto
undo_tablespace=undotbs1
background_dump_dest='E:\oracle\product\10.2.0\admin\bruce10g\bdump'
sga_target=419430400                          #如果沒有加這個參數(shù)會報(bào)

C:\Users\Admin>sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue May 23 13:47:12 2017

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area  150667264 bytes
Fixed Size                  1373152 bytes
Variable Size              92277792 bytes
Database Buffers           50331648 bytes
Redo Buffers                6684672 bytes

之后執(zhí)行如下腳本:
create database bruce
maxlogfiles 5
maxlogmembers 5
maxdatafiles 100
maxinstances 1
logfile
group 1 ('E:\oracle11g\oradata\redo1.log') size 10m,
group 2 ('E:\oracle11g\oradata\redo2.log') size 10m,
group 3 ('E:\oracle11g\oradata\redo3.log') size 10m
datafile 'E:\oracle11g\oradata\system.dbf' size 200m reuse
sysaux datafile 'E:\oracle11g\oradata\sysaux.dbf' size 100m
default tablespace users
datafile 'E:\oracle11g\oradata\userdata.dbf' size 100m
undo tablespace undotbs1 datafile 'E:\oracle11g\oradata\undotbs1.dbf' size 100m
default temporary tablespace temp
tempfile 'E:\oracle11g\oradata\temp01.dbf' size 100m reuse
character set al32utf8
;

完成后
SQL> select status from v$instance;

STATUS
------------
OPEN

完成后執(zhí)行如下三個腳本:
@$ORACLE_HOME/rdbms/admin/catalog.sql
@$ORACLE_HOME/rdbms/admin/catproc.sql
conn system/manager
@$ORACLE_HOME/sqlplus/admin/pupbld.sql 

當(dāng)前題目:[Oracle]腳本創(chuàng)建DB
網(wǎng)頁網(wǎng)址:http://weahome.cn/article/pcoipc.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部