logfile group 1 ('$ORACLE_BASE/oradata/vfast/redo01.log')>
group 2 ('$ORACLE_BASE/oradata/vfast/redo02.log')>
group 3 ('$ORACLE_BASE/oradata/vfast/redo03.log')> maxlogfiles 10
maxlogmembers 5
maxloghistory 5
maxdatafiles 100
maxinstances 1
character set zhs16gbk
national character set al16utf16
datafile '$ORACLE_BASE/oradata/vfast/system01.dbf'>
sysaux datafile '$ORACLE_BASE/oradata/sysaux01.dbf'>
default temporary tablespace temp01 tempfile '$ORACLE_BASE/oradata/vfast/temp01.dbf'>
undo tablespace undotbs1 datafile '$ORACLE_BASE/oradata/vfast/undotbs01.dbf'> 写到以上配置文件里
执行以上脚本
@/home/oracle/createDB.sql 执行后会报错
ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00200: control file could not be created
ORA-00202: control file: '/oracle/app/oradata/pengchen/control01.ctl'
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
意思是找不到 pengchen 这个目录
去/oracle/app/oradata下创建一个名字 pengchen目录然后在从新执行
@/home/oracle/createDB.sql
提示Database created.
查询一下select name from v$database
NAME
---------
PENGCHEN
8.创建数据字典视图
@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql 各种等
9.创建存储过程包
@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql各种等
18_彭臣