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博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-613577/
,如需转载,请注明出处,否则将追究法律责任。