solaris 10_raw device_建立資料庫

wisdomone1發表於2009-08-30

su - oracle
vi .bash_profile
export DBCA_RAW_CONFIG=/oracle/raw.conf   --用於儲存資料檔案的配置資訊檔案

最好還是以oracle使用者建.bash_profile,防止 root:root,哈哈,


新添資料檔案(raw device方式)

1,新增硬碟
2,format
3,chown ora10g:oinstall /dev/rdsk/c0d1s5
4,su - ora10g
    cd /db
    ln -s /dev/rdsk/c0d1s5 zxy



5,
bash-3.00$ . ./.bash_profile
bash-3.00$ sqlplus '/as sysdba'

SQL*Plus: Release 10.2.0.2.0 - Production on Mon Aug 31 05:02:01 2009

Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> create tablespace zxy datafile '/oracle/db/zxy';  --注意這裡,沒有大小

Tablespace created.

SQL> create user zxy identified by system   -以上和檔案系統一樣了



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-613577/,如需轉載,請註明出處,否則將追究法律責任。

相關文章