echo $ORACLE_HOME
export ORACLE_SID=testeis2
$ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwtesteis2 password=qqq entries=5
sqlplus / as sysdba startup nomount
create database testeis2 logfile group 1 ('/u04/testeis2/redo1.log') size 100M, group 2 ('/u04/testeis2/redo2.log') size 100M, group 3 ('/u04/testeis2/redo3.log') size 100M character set utf8 national character set utf8 datafile '/u04/testeis2/system.dbf' size 500M autoextend on next 10M maxsize unlimited extent management local sysaux datafile '/u04/testeis2/sysaux.dbf' size 100M autoextend on next 10M maxsize unlimited undo tablespace undotbs1 datafile '/u04/testeis2/undotbs1.dbf' size 100M default temporary tablespace temp tempfile '/u04/testeis2/temp01.dbf' size 100M; startup force;
@?/rdbms/admin/catalog.sql @?/rdbms/admin/catproc.sql
alter user sys identified by qqq; alter user system identified by qqq;
create tablespace eis2ls datafile '/u04/testeis2/eis2ls.dbf' size 5G; CREATE USER eis2ls identified by qqq DEFAULT TABLESPACE EIS2LS TEMPORARY TABLESPACE TEMP; CREATE USER eis2lsdev identified by qqq DEFAULT TABLESPACE EIS2LS TEMPORARY TABLESPACE TEMP;
spool cr_dwh_database.log STARTUP NOMOUNT CREATE DATABASE dwh NOARCHIVELOG MAXLOGFILES 255 MAXDATAFILES 1024 CHARACTER SET UTF8 DATAFILE '/oradata/tst10g/system01.dbf' SIZE 500M AUTOEXTEND ON NEXT 25M MAXSIZE 5024M SYSAUX DATAFILE '/oradata/tst10g/sysaux01.dbf' SIZE 500M AUTOEXTEND ON NEXT 25M MAXSIZE 5024M UNDO TABLESPACE UNDO DATAFILE '/oradata/tst10g/undo01.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/oradata/tst10g/undo02.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/oradata/tst10g/undo03.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/oradata/tst10g/undo04.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/oradata/tst10g/temp01.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/oradata/tst10g/temp02.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/oradata/tst10g/temp03.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/oradata/tst10g/temp04.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M LOGFILE GROUP 1 ('/oradata/tst10g/redo_g1m1.dbf') SIZE 400M, GROUP 2 ('/oradata/tst10g/redo_g2m1.dbf') SIZE 400M, GROUP 3 ('/oradata/tst10g/redo_g3m1.dbf') SIZE 400M, GROUP 4 ('/oradata/tst10g/redo_g4m1.dbf') SIZE 400M, GROUP 5 ('/oradata/tst10g/redo_g5m1.dbf') SIZE 400M, GROUP 6 ('/oradata/tst10g/redo_g6m1.dbf') SIZE 400M, GROUP 7 ('/oradata/tst10g/redo_g7m1.dbf') SIZE 400M, GROUP 8 ('/oradata/tst10g/redo_g8m1.dbf') SIZE 400M; spool off spool catalog.sql.log @?/rdbms/admin/catalog.sql spool off spool catproc.sql.log @?/rdbms/admin/catproc.sql spool off spool catdbsyn.sql.log @?/rdbms/admin/catdbsyn.sql spool off spool dbmspool.sql.log @?/rdbms/admin/dbmspool.sql spool off spool dbmspipe.sql.log @?/rdbms/admin/dbmspipe.sql spool off spool prvtpool.plb.log @?/rdbms/admin/prvtpool.plb spool off spool catexp.sql.log @?/rdbms/admin/catexp.sql spool off spool catrep.sql.log @?/rdbms/admin/catrep.sql spool off spool utlrp.sql.log @?/rdbms/admin/utlrp.sql spool off spool dbmsoctk.sql.log @?/rdbms/admin/dbmsoctk.sql spool off spool utlrp.sql.log @?/rdbms/admin/utlrp.sql spool off alter user sys identified by qqq; connect system/manager spool pupbld.sql.log @?/sqlplus/admin/pupbld.sql spool off -- connect system/manager -- spool hlpbld.sql.log -- @?/sqlplus/admin/help/hlpbld.sql helpus.sql spool off
@?/javavm/install/initjvm.sql @?/rdbms/admin/catjava.sql
CREATE DATABASE CO NOARCHIVELOG MAXLOGFILES 255 MAXDATAFILES 1024 CHARACTER SET cl8mswin1251 DATAFILE '/db1/system01.dbf' SIZE 500M AUTOEXTEND ON NEXT 25M MAXSIZE 5024M SYSAUX DATAFILE '/db1/sysaux01.dbf' SIZE 500M AUTOEXTEND ON NEXT 25M MAXSIZE 5024M UNDO TABLESPACE UNDO DATAFILE '/db1/undo01.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/db1/undo02.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/db1/undo03.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/db1/undo04.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/db1/temp01.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/db1/temp02.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/db1/temp03.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M, '/db1/temp04.dbf' SIZE 500M REUSE AUTOEXTEND ON NEXT 25M MAXSIZE 5024M LOGFILE GROUP 1 ('/db1/redo1.dbf') SIZE 1024M, GROUP 2 ('/db1/redo2.dbf') SIZE 1024M, GROUP 3 ('/db1/redo3.dbf') SIZE 1024M, GROUP 4 ('/db1/redo4.dbf') SIZE 1024M, GROUP 5 ('/db1/redo5.dbf') SIZE 1024M, GROUP 6 ('/db1/redo6.dbf') SIZE 1024M, GROUP 8 ('/db1/redo7.dbf') SIZE 1024M; vi $ORACLE_HOME/dbs/CO.ora *.db_name = CO *.instance_name = CO *.db_block_size = 8192 *.sga_target = 220G *.pga_aggregate_target = 5G *.processes = 1024 *.control_files = (/db1/control.ctl) *.undo_management = AUTO *.undo_tablespace = 'UNDO' *.remote_login_passwordfile='exclusive' $ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwCO password=qqq entries=5 CREATE TABLESPACE "USERS" DATAFILE '/db1/users.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+1.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+2.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+3.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+4.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+5.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+6.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+7.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+8.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/users+9.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO; CREATE TABLESPACE "IND" DATAFILE '/db1/ind.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+1.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+2.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+3.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+4.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+5.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+6.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+7.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+8.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G, '/db1/ind+9.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO; CREATE TABLESPACE "PERFSTAT_DATA" DATAFILE '/db1/perf.dbf' SIZE 1G AUTOEXTEND ON NEXT 10M MAXSIZE 10G EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO; select owner,object_name,object_type from dba_objects where status='INVALID';
create database P19CC014 logfile group 1 ('/u03/oradata/P19CC014/redo1.log') size 1G, group 2 ('/u03/oradata/P19CC014/redo2.log') size 1G, group 3 ('/u03/oradata/P19CC014/redo3.log') size 1G character set CL8MSWIN1251 national character set AL16UTF16 datafile '/u03/oradata/P19CC014/system.dbf' size 500M autoextend on next 10M maxsize 10G sysaux datafile '/u03/oradata/P19CC014/sysaux.dbf' size 100M autoextend on next 1G maxsize 10G undo tablespace undo datafile '/u03/oradata/P19CC014/undotbs1.dbf' size 1G default temporary tablespace temp tempfile '/u03/oradata/P19CC014/temp01.dbf' size 1G; create tablespace users datafile '/u03/oradata/P19CC014/users.dbf' size 100M autoextend on next 1G maxsize 10G; create tablespace indx datafile '/u03/oradata/P19CC014/indx.dbf' size 100M autoextend on next 1G maxsize 10G;