@linux
mkdir /oracle/oradata/purple
mkdir /oracle/admin/purple
mkdir /oracle/admin/purple/bdump
mkdir /oracle/admin/purple/udump
mkdir /oracle/admin/purple/cdump
l 建立初始化引數檔案
vi /oacle/10.2/dbs/initpurple.ora
db_name=purple
control_files=("/oracle/oradata/purple
/control01.ctl","/oracle/oradata/purple/control02.ctl", "/oracle/oradata/purple/control03.ctl")
undo_management=auto
undo_tablespace=undotbs
background_dump_dest=/oracle/admin/purple/bdump
core_dump_dest=/oracle/admin/purple/cdump
user_dump_dest=/oracle/admin/purple/udump
l 建立口令檔案
orapwd file=orapwpurple password=oracle entries=30
l 啟動資料庫到nomount(例項)狀態
startup nomount pfile=/oracle/10.2/dbs/init.ora--
create spfile from pfile='/oracle/10.2/dbs/init.ora';--建立spfile檔案
l 執行建庫指令碼
create database purple
user sys identified by oracle
user system identified by oracle
logfile group 1 ('/oracle/oradata/purple/redo01.log') size 100m,
group 2 ('/oracle/oradata/purple/redo02.log') size 100m,
group 3 ('/oracle/oradata/purple/redo03.log') size 100m
maxlogfiles 5
maxlogmembers 5
maxloghistory 1
maxdatafiles 100
maxinstances 1
character set zhs16gbk
national character set al16utf16
datafile '/oracle/oradata/purple/system01.dbf' size 325m reuse
extent management local
sysaux datafile '/oracle/oradata/purple/sysaux01.dbf' size 325m reuse
default temporary tablespace tempts1
tempfile '/oracle/oradata/purple/temp01.dbf'
size 200m reuse
undo tablespace undotbs
datafile '/oracle/oradata/purple/undotbs01.dbf'
size 200m autoextend on maxsize unlimited;
l 建立資料字典
@?/rdbms/admin/catalog.sql --用來建立資料庫的資料字典檔案
@?/rdbms/admin/catproc.sql --用來建立資料庫的基本過程和包
oracle手工建庫
相對來說,oracle中平時我們大多採用dbca圖形化建庫方式,所以手工建庫或許比較有些難度,這個也是ocm考試中需要關注的地方,特別做了測試,主要是9i,對於10g可宜採用同樣的步驟實現。1.修改 etc oratab oral opt oracle database n 2.建立sys口令認證檔...
Oracle 手工建庫步驟
sid welson 1 在 oracle base sid 建立dump資料夾,設定日誌存放目錄 cd oracle base mkdir welson cd welson mkdir adump mkdir bdump mkdir cdump mkdir udump2 設定資料檔案存放目錄 cd...
oracle手工建庫步驟
1 建立audit目錄 2 配置引數檔案 注引數檔案裡面不能有中文字元 audit file dest audit trail db control files data pbrac controlfile control01.ctl data pbrac controlfile control02...