Привезли очередную 12.23 и ТЯ7.3.0.6, как обычно, минимум информации о составе дистрибутива и чуть больше о том, как создавать БД, при учете жестко пробитых путей в скриптах. Мягко говоря - безобразно. ЦФТ явно пытается завязаться на установку своими силами, а цены я видел, они не то, чтобы высокие, а просто безумные (вроде 90000 за установку Oracle). Итак, как создать БД.
Код:
CREATE DATABASE dev12
NOARCHIVELOG
MAXLOGFILES 255
MAXDATAFILES 1024
CHARACTER SET CL8ISO8859P5
DATAFILE '/db/dev12/system01.dbf' SIZE 500M AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M
SYSAUX DATAFILE '/db/dev12/sysaux01.dbf' SIZE 500M AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M
UNDO TABLESPACE UNDO DATAFILE
'/db/dev12/undo01.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M,
'/db/dev12/undo02.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M,
'/db/dev12/undo03.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M,
'/db/dev12/undo04.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M
DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE
'/db/dev12/temp01.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M,
'/db/dev12/temp02.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M,
'/db/dev12/temp03.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M,
'/db/dev12/temp04.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 1024M MAXSIZE 10240M
LOGFILE
GROUP 1 ('/db/dev12/redo_g1m1.dfb') SIZE 700M,
GROUP 2 ('/db/dev12/redo_g2m1.dbf') SIZE 700M,
GROUP 3 ('/db/dev12/redo_g3m1.dbf') SIZE 700M,
GROUP 4 ('/db/dev12/redo_g4m1.dbf') SIZE 700M,
GROUP 5 ('/db/dev12/redo_g5m1.dfb') SIZE 700M,
GROUP 6 ('/db/dev12/redo_g6m1.dbf') SIZE 700M,
GROUP 7 ('/db/dev12/redo_g7m1.dbf') SIZE 700M,
GROUP 8 ('/db/dev12/redo_g8m1.dbf') SIZE 700M;
@?/rdbms/admin/catalog.sql
@?/rdbms/admin/catblock.sql
@?/rdbms/admin/catproc.sql
@?/rdbms/admin/catoctk.sql
@?/rdbms/admin/owminst.plb
@?/rdbms/admin/catdbsyn.sql
@?/rdbms/admin/dbmspool.sql
@?/rdbms/admin/dbmspipe.sql
@?/rdbms/admin/prvtpool.plb
@?/rdbms/admin/catexp.sql
@?/rdbms/admin/catrep.sql
@?/rdbms/admin/utlrp.sql
@?/rdbms/admin/dbmsoctk.sql
@?/rdbms/admin/utlrp.sql
alter user sys identified by qqq;
connect system/manager
@?/sqlplus/admin/pupbld.sql
@?/sqlplus/admin/help/hlpbld.sql helpus.sql
connect / as sysdba
CREATE SMALLFILE TABLESPACE "I_AUD" LOGGING DATAFILE '/db/dev12/i_aud01.dbf' SIZE 5M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE SMALLFILE TABLESPACE "I_DICT" LOGGING DATAFILE '/db/dev12/i_dict01.dbf' SIZE 5M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE SMALLFILE TABLESPACE "I_USR" LOGGING DATAFILE '/db/dev12/i_usr01.dbf' SIZE 5M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE SMALLFILE TABLESPACE "T_AUD" LOGGING DATAFILE '/db/dev12/t_aud01.dbf' SIZE 5M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE SMALLFILE TABLESPACE "T_DICT" LOGGING DATAFILE '/db/dev12/t_dict01.dbf' SIZE 5M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE SMALLFILE TABLESPACE "T_USR" LOGGING DATAFILE '/db/dev12/t_usr01.dbf' SIZE 5M AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
CREATE SMALLFILE TABLESPACE "USERS" LOGGING DATAFILE '/db/dev12/users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
ALTER DATABASE DEFAULT TABLESPACE "USERS";
@?/rdbms/admin/catqm.sql change_on_install SYSAUX TEMP YES;
@?/rdbms/admin/catbundle.sql psu apply;