SYS@test> @ cr.sql
CREATE CONTROLFILE REUSE DATABASE "TEST" NORESETLOGS ARCHIVELOG
*
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01163: SIZE clause indicates 12800 (blocks), but should match header 45840
ORA-01110: data file 10: 'D:\APP\ORACLE\ORADATA\TEST\TEST01P\EXAMPLE01.DBF'
C:\>oerr ora 01163
01163, 00000, "SIZE clause indicates %s (blocks), but should match header %s"
// *Cause: The size specified in bytes in the SIZE clause of the CREATE
// CONTROLFILE statement does not equate to the number of blocks
// recorded in the header.
// *Action: Specify the correct filename and size ( in bytes ).
C:\>dir D:\APP\ORACLE\ORADATA\TEST\TEST01P\EXAMPLE01.DBF
驱动器 D 中的卷没有标签。
卷的序列号是 0006-A37E
--//另外补充1点,不要忘记建立临时文件噢!!
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\ORACLE\ORADATA\TEST\TEMP01.DBF'
SIZE 100663296 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
ALTER SESSION SET CONTAINER = PDB$SEED;
ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\ORACLE\ORADATA\TEST\PDBSEED\PDBSEED_TEMP01.DBF'
SIZE 404750336 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
ALTER SESSION SET CONTAINER = TEST01P;
ALTER TABLESPACE TEMP ADD TEMPFILE 'D:\APP\ORACLE\ORADATA\TEST\TEST01P\TEST01P_TEMP01.DBF'
SIZE 406847488 REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
ALTER SESSION SET CONTAINER = CDB$ROOT;
-- End of tempfile additions.