[Ocfstest-commits] colinzhu commits r14 - trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Feb 21 21:25:27 CST 2005


Author: colinzhu
Date: 2005-02-21 21:25:25 -0600 (Mon, 21 Feb 2005)
New Revision: 14

Added:
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_create_tablespace.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_drop_tablespace.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test13_define.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test14_define.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test2_define.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test7_define.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/define.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tables.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tablespace.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_drop_tablespace.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test1.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test2.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/run_arch_test.sql
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/runall.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb1.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb2.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb3.sh
   trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb4.sh
Log:
Added tpdatabase cases



Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_create_tablespace.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_create_tablespace.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_create_tablespace.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,17 @@
+--
+-- Create tablespace alterdbf_test1 with 1 datafile, 1M initial allocation, 256k autoextend.
+--
+drop tablespace alterdbf_test1 including contents and datafiles cascade constraints
+/
+create tablespace alterdbf_test1
+   datafile '&&ALTERDBF_DBF1' size &&ALTERDBF_SIZE_DBF1 reuse autoextend on next &&ALTERDBF_NEXT_DBF1
+/
+--
+--
+-- Create tablespace alterdbf_test2 with 1 datafile, 1M initial allocation, 256k autoextend.
+--
+drop tablespace alterdbf_test2 including contents and datafiles cascade constraints
+/
+create tablespace alterdbf_test2
+   datafile '&&ALTERDBF_DBF2' size &&ALTERDBF_SIZE_DBF2 reuse autoextend on next &&ALTERDBF_NEXT_DBF2
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_drop_tablespace.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_drop_tablespace.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/alterdbf_drop_tablespace.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,11 @@
+--
+-- Drop tablespace alterdbf_test1 after the run is completed.
+--
+drop tablespace alterdbf_test1 including contents and datafiles cascade constraints
+/
+--
+--
+-- Drop tablespace alterdbf_test2 after the run is completed.
+--
+drop tablespace alterdbf_test2 including contents and datafiles cascade constraints
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test13_define.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test13_define.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test13_define.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,47 @@
+-- whenever sqlerror exit failure;
+-- whenever oserror exit failure;
+
+--
+-- Definitions to test database files with small allocation and
+-- autoextension. A test should force allocation of thousands
+-- of small extends. Test should run on 2 nodes.
+-- script name suffix : ext_
+--
+define EXT_DBF1 = "/oastdbf1/oradata/oast200w/test_dbf1.dbf"
+define EXT_DBF2 = "/oastdbf2/oradata/oast200w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast150w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf1/oradata/oast150w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast100w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf2/oradata/oast100w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast120w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastlog/oradata/oast120w/test_dbf2.dbf"
+--
+define EXT_SIZE_DBF1 = "1M"
+define EXT_SIZE_DBF2 = "1M"
+define EXT_NEXT_DBF1 = "128K"
+define EXT_NEXT_DBF2 = "256M"
+--
+-- Definition to test a tablespace with 10 small datafiles with 
+-- autoextension. A test should force allocation of thousands of
+-- smal extends on all datafiles. It should run from at least 2 
+-- nodes.
+-- script name prefix : multext_
+--
+--
+-- Definition to test tablespace resize. 2 tablespaces are
+-- created and resized simultaneously in the same filesystem.
+-- script name prefix : alterdbf_
+--
+define ALTERDBF_DBF1="/oastdbf1/oradata/oast200w/resize_dbf1.dbf"
+define ALTERDBF_DBF2="/oastdbf2/oradata/oast200w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast150w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf1/oradata/oast150w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast100w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf3/oradata/oast100w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast120w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastlog/oradata/oast120w/resize_dbf2.dbf"
+--
+define ALTERDBF_SIZE_DBF1 = "1M"
+define ALTERDBF_SIZE_DBF2 = "1M"
+define ALTERDBF_NEXT_DBF1 = "128K"
+define ALTERDBF_NEXT_DBF2 = "256M"

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test14_define.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test14_define.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test14_define.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,47 @@
+-- whenever sqlerror exit failure;
+-- whenever oserror exit failure;
+
+--
+-- Definitions to test database files with small allocation and
+-- autoextension. A test should force allocation of thousands
+-- of small extends. Test should run on 2 nodes.
+-- script name suffix : ext_
+--
+define EXT_DBF1 = "/oastdbf1/oradata/oast200w/test_dbf1.dbf"
+define EXT_DBF2 = "/oastdbf2/oradata/oast200w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast150w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf1/oradata/oast150w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast100w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf2/oradata/oast100w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast120w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastlog/oradata/oast120w/test_dbf2.dbf"
+--
+define EXT_SIZE_DBF1 = "1M"
+define EXT_SIZE_DBF2 = "1M"
+define EXT_NEXT_DBF1 = "128K"
+define EXT_NEXT_DBF2 = "256M"
+--
+-- Definition to test a tablespace with 10 small datafiles with 
+-- autoextension. A test should force allocation of thousands of
+-- smal extends on all datafiles. It should run from at least 2 
+-- nodes.
+-- script name prefix : multext_
+--
+--
+-- Definition to test tablespace resize. 2 tablespaces are
+-- created and resized simultaneously in the same filesystem.
+-- script name prefix : alterdbf_
+--
+define ALTERDBF_DBF1="/oastdbf1/oradata/oast200w/resize_dbf1.dbf"
+define ALTERDBF_DBF2="/oastdbf2/oradata/oast200w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast150w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf1/oradata/oast150w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast100w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf3/oradata/oast100w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast120w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastlog/oradata/oast120w/resize_dbf2.dbf"
+--
+define ALTERDBF_SIZE_DBF1 = "1M"
+define ALTERDBF_SIZE_DBF2 = "1M"
+define ALTERDBF_NEXT_DBF1 = "128K"
+define ALTERDBF_NEXT_DBF2 = "256M"

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test2_define.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test2_define.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test2_define.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,47 @@
+-- whenever sqlerror exit failure;
+-- whenever oserror exit failure;
+
+--
+-- Definitions to test database files with small allocation and
+-- autoextension. A test should force allocation of thousands
+-- of small extends. Test should run on 2 nodes.
+-- script name suffix : ext_
+--
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast200w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf2/oradata/oast200w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast150w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf1/oradata/oast150w/test_dbf2.dbf"
+define EXT_DBF1 = "/oastdbf1/oradata/oast100w/test_dbf1.dbf"
+define EXT_DBF2 = "/oastdbf2/oradata/oast100w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast120w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastlog/oradata/oast120w/test_dbf2.dbf"
+--
+define EXT_SIZE_DBF1 = "1M"
+define EXT_SIZE_DBF2 = "1M"
+define EXT_NEXT_DBF1 = "128K"
+define EXT_NEXT_DBF2 = "256M"
+--
+-- Definition to test a tablespace with 10 small datafiles with 
+-- autoextension. A test should force allocation of thousands of
+-- smal extends on all datafiles. It should run from at least 2 
+-- nodes.
+-- script name prefix : multext_
+--
+--
+-- Definition to test tablespace resize. 2 tablespaces are
+-- created and resized simultaneously in the same filesystem.
+-- script name prefix : alterdbf_
+--
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast200w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf2/oradata/oast200w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast150w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf1/oradata/oast150w/resize_dbf2.dbf"
+define ALTERDBF_DBF1="/oastdbf1/oradata/oast100w/resize_dbf1.dbf"
+define ALTERDBF_DBF2="/oastdbf3/oradata/oast100w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast120w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastlog/oradata/oast120w/resize_dbf2.dbf"
+--
+define ALTERDBF_SIZE_DBF1 = "1M"
+define ALTERDBF_SIZE_DBF2 = "1M"
+define ALTERDBF_NEXT_DBF1 = "128K"
+define ALTERDBF_NEXT_DBF2 = "256M"

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test7_define.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test7_define.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ca-test7_define.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,47 @@
+-- whenever sqlerror exit failure;
+-- whenever oserror exit failure;
+
+--
+-- Definitions to test database files with small allocation and
+-- autoextension. A test should force allocation of thousands
+-- of small extends. Test should run on 2 nodes.
+-- script name suffix : ext_
+--
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast200w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf2/oradata/oast200w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast150w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf1/oradata/oast150w/test_dbf2.dbf"
+define EXT_DBF1 = "/oastdbf1/oradata/oast100w/test_dbf1.dbf"
+define EXT_DBF2 = "/oastdbf2/oradata/oast100w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast120w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastlog/oradata/oast120w/test_dbf2.dbf"
+--
+define EXT_SIZE_DBF1 = "1M"
+define EXT_SIZE_DBF2 = "1M"
+define EXT_NEXT_DBF1 = "128K"
+define EXT_NEXT_DBF2 = "256M"
+--
+-- Definition to test a tablespace with 10 small datafiles with 
+-- autoextension. A test should force allocation of thousands of
+-- smal extends on all datafiles. It should run from at least 2 
+-- nodes.
+-- script name prefix : multext_
+--
+--
+-- Definition to test tablespace resize. 2 tablespaces are
+-- created and resized simultaneously in the same filesystem.
+-- script name prefix : alterdbf_
+--
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast200w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf2/oradata/oast200w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast150w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf1/oradata/oast150w/resize_dbf2.dbf"
+define ALTERDBF_DBF1="/oastdbf1/oradata/oast100w/resize_dbf1.dbf"
+define ALTERDBF_DBF2="/oastdbf3/oradata/oast100w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast120w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastlog/oradata/oast120w/resize_dbf2.dbf"
+--
+define ALTERDBF_SIZE_DBF1 = "1M"
+define ALTERDBF_SIZE_DBF2 = "1M"
+define ALTERDBF_NEXT_DBF1 = "128K"
+define ALTERDBF_NEXT_DBF2 = "256M"

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/define.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/define.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/define.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,47 @@
+-- whenever sqlerror exit failure;
+-- whenever oserror exit failure;
+
+--
+-- Definitions to test database files with small allocation and
+-- autoextension. A test should force allocation of thousands
+-- of small extends. Test should run on 2 nodes.
+-- script name suffix : ext_
+--
+define EXT_DBF1 = "/oastdbf1/oradata/oast200w/test_dbf1.dbf"
+define EXT_DBF2 = "/oastdbf2/oradata/oast200w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast150w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf1/oradata/oast150w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast100w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastdbf2/oradata/oast100w/test_dbf2.dbf"
+-- define EXT_DBF1 = "/oastdbf1/oradata/oast120w/test_dbf1.dbf"
+-- define EXT_DBF2 = "/oastlog/oradata/oast120w/test_dbf2.dbf"
+--
+define EXT_SIZE_DBF1 = "1M"
+define EXT_SIZE_DBF2 = "1M"
+define EXT_NEXT_DBF1 = "128K"
+define EXT_NEXT_DBF2 = "256M"
+--
+-- Definition to test a tablespace with 10 small datafiles with 
+-- autoextension. A test should force allocation of thousands of
+-- smal extends on all datafiles. It should run from at least 2 
+-- nodes.
+-- script name prefix : multext_
+--
+--
+-- Definition to test tablespace resize. 2 tablespaces are
+-- created and resized simultaneously in the same filesystem.
+-- script name prefix : alterdbf_
+--
+define ALTERDBF_DBF1="/oastdbf1/oradata/oast200w/resize_dbf1.dbf"
+define ALTERDBF_DBF2="/oastdbf2/oradata/oast200w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast150w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf1/oradata/oast150w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast100w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastdbf3/oradata/oast100w/resize_dbf2.dbf"
+-- define ALTERDBF_DBF1="/oastdbf1/oradata/oast120w/resize_dbf1.dbf"
+-- define ALTERDBF_DBF2="/oastlog/oradata/oast120w/resize_dbf2.dbf"
+--
+define ALTERDBF_SIZE_DBF1 = "1M"
+define ALTERDBF_SIZE_DBF2 = "1M"
+define ALTERDBF_NEXT_DBF1 = "128K"
+define ALTERDBF_NEXT_DBF2 = "256M"

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tables.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tables.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tables.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,14 @@
+--
+-- create table test1 in the tablespace ext_test1
+--
+create table test1
+       tablespace ext_test1
+       as select * from dba_objects
+/
+--
+-- Create table test2 in the tablespace ext_test2
+--
+create table test2
+       tablespace ext_test2
+       as select * from dba_extents
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tablespace.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tablespace.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_create_tablespace.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,17 @@
+--
+-- Create tablespace ext_test1 with 1 datafile, 1M initial allocation, 256k autoextend.
+--
+drop tablespace ext_test1 including contents and datafiles cascade constraints
+/
+create tablespace ext_test1
+   datafile '&&EXT_DBF1' size &&EXT_SIZE_DBF1 reuse autoextend on next &&EXT_NEXT_DBF1
+/
+--
+--
+-- Create tablespace ext_test2 with 1 datafile, 1M initial allocation, 256k autoextend.
+--
+drop tablespace ext_test2 including contents and datafiles cascade constraints
+/
+create tablespace ext_test2
+   datafile '&&EXT_DBF2' size &&EXT_SIZE_DBF2 reuse autoextend on next &&EXT_NEXT_DBF2
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_drop_tablespace.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_drop_tablespace.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_drop_tablespace.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,11 @@
+--
+-- Drop tablespace ext_test1 after the test is completed.
+--
+drop tablespace ext_test1 including contents and datafiles cascade constraints
+/
+--
+--
+-- Drop tablespace ext_test2 after the test is completed.
+--
+drop tablespace ext_test2 including contents and datafiles cascade constraints
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test1.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test1.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test1.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,398 @@
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+commit
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+insert into test1 select * from dba_objects
+/
+commit
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test2.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test2.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/ext_ins_test2.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,396 @@
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+commit
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+insert into test2 select * from dba_extents
+/
+commit
+/

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/run_arch_test.sql
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/run_arch_test.sql	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/run_arch_test.sql	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,15 @@
+delete from test_source;
+commit;
+insert into test_source select * from source$;
+commit;
+delete from test_source;
+insert into test_source select * from source$;
+commit;
+delete from test_source;
+commit;
+insert into test_source select * from source$;
+commit;
+delete from test_source;
+insert into test_source select * from source$;
+commit;
+

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/runall.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/runall.sh	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/runall.sh	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,20 @@
+#!/bin/bash
+#
+if [ $# -eq 0 ]; then
+   echo -e "Usage : ${0} <hostname>";
+   exit 1;
+fi;
+/home/mmatsuna/Tests/OCFS/bin/ext_run.sh -c 5 -n ${1}
+/home/mmatsuna/Tests/OCFS/bin/crfiles.sh -i 3 -c 500 -d /oastlog/crfiles -f testfile 
+rm -fr /oastlog/crfiles
+/home/mmatsuna/Tests/OCFS/bin/hang_arch.sh
+/home/mmatsuna/Tests/OCFS/bin/lock_contention.sh -b 1M -bn 20 -d /oastlog -c 800 -n ${1}
+/home/mmatsuna/Tests/OCFS/bin/cross_delete.sh -n ${1} -b /oastlog -l 16 -f /home/mmatsuna/Tests/OCFS/workfiles/linuxsrc.tar.gz
+rm -fr /oastlog/y1
+/home/mmatsuna/Tests/OCFS/bin/alterdbf_run.sh -c 15 -n ${1} -min 10 -max 12000
+# ca-test14
+/home/mmatsuna/Tests/OCFS/bin/trunk.sh -n ${1} -min 10 -max 1200000 -raw /dev/raw/raw1 -b /oastlog -c 200
+# ca-test7
+#/home/mmatsuna/Tests/OCFS/bin/trunk.sh -n ${1} -min 10 -max 1200000 -raw /dev/raw/raw10 -b /oastlog -c 200
+/home/mmatsuna/cbin/stop all
+/home/mmatsuna/Tests/OCFS/bin/renamedbf_run.sh -d1 /oastdbf2 -d2 /oastdbf3 -p $ORACLE_HOME/dbs/initoastoltp1.ora 


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/runall.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb1.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb1.sh	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb1.sh	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,187 @@
+#!/bin/bash
+#
+# alterdbf_run.sh
+#
+# Script to test datafile resize on ocfs.
+#
+# This script will start 2 sqlplus sessions in parallel on each node.
+# The only argument accept by this script is to set how many times the
+# rezise job should be executed. If none is passed, it will execute
+# the jobs 5 times.
+#
+Usage()
+{
+echo -e "$0 Usage: $0 -c <count> -n <nodename> -min <min_size in MB> -max <max_size in MB> -h";
+exit 1;
+}
+#
+CreateObjects()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+set echo on
+set termout off
+spool ${BASEDIR}/logs/${HOSTNAME}_alterdbf_create_objects.log
+-- whenever sqlerror exit failure;
+-- whenever oserror exit failure;
+ at alterdbf_create_tablespace.sql
+spool off
+exit
+EOF
+RC=$?;
+echo " ${HOSTNAME} - Create Objects - Start" >> ${LOGFILE};
+cat ${BASEDIR}/logs/${HOSTNAME}_alterdbf_create_objects.log >> ${LOGFILE};
+echo " ${HOSTNAME} - Create Objects - End" >> ${LOGFILE};
+rm -f ${BASEDIR}/logs/${HOSTNAME}_alterdbf_create_objects.log;
+if [ ${RC} -ne 0 ]; then
+   echo -e "Failed to create tablespaces";
+   exit ${RC}; 
+fi;
+
+}
+#
+DropObjects()
+{
+sleep 30
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+set echo on
+set termout off
+spool ${BASEDIR}/logs/${HOSTNAME}_alterdbf_drop_objects.log
+ at alterdbf_drop_tablespace.sql
+spool off
+exit
+EOF
+echo " ${HOSTNAME} - Create Objects - Start" >> ${LOGFILE};
+cat ${BASEDIR}/logs/${HOSTNAME}_alterdbf_drop_objects.log >> ${LOGFILE};
+echo " ${HOSTNAME} - Create Objects - End" >> ${LOGFILE};
+rm -f ${BASEDIR}/logs/${HOSTNAME}_alterdbf_drop_objects.log;
+}
+#
+GenRandom()
+{
+RANDMAX=32767
+DBFSIZE=$(( ${LO} + (${HI} * ${RANDOM}) / ($RANDMAX + 1) ))
+}
+#
+GenScript()
+{
+NAME=/tmp/run$$_${1}.sh
+echo "#!/bin/bash" > ${NAME};
+echo "ORACLE_HOME=${ORACLE_HOME};" >> ${NAME};
+echo "ORACLE_SID=${ORACLE_SID};" >> ${NAME};
+echo "PATH=${ORACLE_HOME}/bin:\$PATH;" >> ${NAME};
+echo "export ORACLE_HOME ORACLE_SID PATH" >>${NAME};
+echo ". ${OASTENV}" >>${NAME};
+echo "cd ${BASEDIR}/sqllib">> ${NAME};
+echo "$ORACLE_HOME/bin/sqlplus -s /nolog << EOF" >> ${NAME};
+echo "connect / as sysdba " >> ${NAME};
+echo "@${BASEDIR}/sqllib/define " >> ${NAME};
+echo "set echo on " >> ${NAME};
+echo "set termout off " >> ${NAME};
+echo "whenever sqlerror exit failure;">> ${NAME};
+echo "whenever oserror exit failure;">> ${NAME};
+echo "spool ${BASEDIR}/logs/${HOSTNAME}_alerdbf_cli_${1}.log" >> ${NAME};
+i=0;
+for (( i=0; i < ${COUNT}; i++))
+do
+   GenRandom ${3} ${4};
+   echo "alter database datafile '&&ALTERDBF_DBF${1}' resize ${DBFSIZE}M" >> ${NAME};
+   echo "/" >> ${NAME};
+done;
+echo "spool off" >> ${NAME};
+echo "exit" >> ${NAME};
+echo "EOF" >> ${NAME};
+echo "RC=$?";
+echo "echo \" ${HOSTNAME} - Client ${1} - Start\" >> ${LOGFILE}" >>${NAME};
+echo "cat ${BASEDIR}/logs/${HOSTNAME}_alerdbf_cli_${1}.log >> ${LOGFILE}" >>${NAME};
+echo "echo \" ${HOSTNAME} - Client ${1} - End\" >> ${LOGFILE}" >>${NAME};
+echo "rm -f ${BASEDIR}/logs/${HOSTNAME}_alerdbf_cli_${1}.log " >>${NAME};
+echo "exit ${RC}" >> ${NAME};
+}
+RunServer()
+{
+CreateObjects;
+ssh ${LOCALNODE} "${BASEDIR}/bin/alterdbf_run.sh -x -o ${LOGFILE} -c ${COUNT} -min ${LO} -max ${HI}" &
+if [ ${SINGLE} -eq 1 ]; then
+   ssh ${NODE} "${BASEDIR}/bin/alterdbf_run.sh -x -o ${LOGFILE} -c ${COUNT} -min ${LO} -max ${HI}" &
+fi;
+wait;
+DropObjects;
+echo "Run Ended.";
+}
+#
+RunClient()
+{
+GenScript 1;
+Run1=${NAME}
+GenScript 2;
+Run2=${NAME}
+/bin/bash ${Run1} &
+/bin/bash ${Run2} &
+wait;
+echo -e "\n Run Completed - `hostname -s`. Cleaning Up." |tee -a ${LOGFILE};
+rm -f ${Run1} ${Run2};
+echo -e "Cleanup done." |tee -a ${LOGFILE};
+}
+#
+LOCALDIR=`dirname ${0}`
+if [ "${LOCALDIR}" == "." ]; then
+   LOCALDIR=`pwd`;
+fi;
+BASEDIR=`dirname ${LOCALDIR}`
+LOCALNODE=`hostname -s`
+COUNT=5
+SINGLE=0
+LOGFILE=alterdbf.log
+MASTER=0;
+LOGFILE=${BASEDIR}/logs/alterdbf_$$.log
+
+ID=$$;
+#
+if [ $# -eq 0 ]; then
+   Usage;
+fi;
+#
+while [ $# -gt 0 ]
+do
+  case ${1} in
+     -c ) COUNT=${2};
+          shift 2;
+          ;;
+     -n ) NODE=${2};
+          SINGLE=1;
+          shift 2;
+          ;;
+     -min ) LO=${2};
+          shift 2;
+          ;;
+     -max ) HI=${2};
+          shift 2;
+          ;;
+     -o ) LOGFILE=${2};
+          shift 2;
+          ;;
+     -x   ) MASTER=1;
+          shift;
+          ;;
+     -h   ) Usage;
+          ;;
+     *    ) Usage;
+          ;;
+  esac;
+done;
+#
+echo -e "Starting Datafile resize test.";
+if [ ! -f ${LOGFILE} ]; then
+   echo -e "Creating logfile ${LOGFILE}" |tee -a ${LOGFILE};
+fi;
+#
+if [ ${MASTER} -eq 0 ]; then
+   RunServer;
+else
+   RunClient;
+fi;
+exit;


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb1.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb2.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb2.sh	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb2.sh	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,150 @@
+#!/bin/bash
+#
+# ext_run.sh
+#
+# Script to test autoextend on ocfs.
+#
+# This script will start 2 sqlplus sessions in parallel on each node.
+# The only argument accept by this script is to set how many times the
+# insert job should be executed. If none is passed, it will execute
+# the jobs 20 times and end.
+#
+Usage()
+{
+echo -e "$0 Usage: $0 -c <count> -n <nodename> -o <logfile> -h";
+exit 1;
+}
+#
+CreateObjects()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus -s /nolog << EOF
+conn / as sysdba
+@${HOSTNAME}_define.sql
+set echo on
+set termout off
+spool ${BASEDIR}/logs/${HOSTNAME}_ext_create_objects.log
+ at ext_create_tablespace.sql
+ at ext_create_tables.sql
+spool off
+exit
+EOF
+}
+#
+DropObjects()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus -s /nolog << EOF
+conn / as sysdba
+@${HOSTNAME}_define.sql
+set echo on
+set termout off
+spool ${BASEDIR}/logs/${HOSTNAME}_ext_drop_objects.log
+ at ext_drop_tablespace.sql
+spool off
+exit
+EOF
+}
+GenScript()
+{
+NAME=/tmp/run$$_${1}.sh
+echo "#!/bin/bash" > ${NAME};
+echo "echo -e \"\n \`hostname -s\` - Starting run - ${NAME}.\"" >> ${NAME};
+echo "ORACLE_HOME=${ORACLE_HOME};" >> ${NAME};
+echo "ORACLE_SID=${ORACLE_SID};" >> ${NAME};
+echo "PATH=${ORACLE_HOME}/bin:\$PATH;" >> ${NAME};
+echo "export ORACLE_HOME ORACLE_SID PATH" >>${NAME};
+echo ". ${OASTENV}" >>${NAME};
+echo "cd ${BASEDIR}/sqllib">> ${NAME};
+echo "$ORACLE_HOME/bin/sqlplus -s /nolog << EOF" >> ${NAME};
+echo "connect / as sysdba " >> ${NAME};
+echo "set echo on" >> ${NAME};
+echo "set termout off" >> ${NAME};
+echo "spool ${BASEDIR}/logs/${HOSTNAME}_ext_ins_test${1}.log" >> ${NAME};
+i=0;
+for (( i=0; i < ${COUNT}; i++))
+do
+   echo "@ext_ins_test${1}.sql" >> ${NAME};
+done;
+echo "spool off" >> ${NAME};
+echo "exit" >> ${NAME};
+echo "EOF" >> ${NAME};
+echo "exit $?" >> ${NAME};
+echo "echo -e \"\n \`hostname -s\` - Run Completed - ${NAME}.\"" >> ${NAME};
+}
+#
+#
+RunServer()
+{
+CreateObjects;
+ssh ${LOCALNODE} "${BASEDIR}/bin/ext_run.sh -x -c ${COUNT} -o ${LOGFILE}" &
+if [ "${SINGLE}" == "1" ]; then
+   ssh ${NODE} "${BASEDIR}/bin/ext_run.sh -x -c ${COUNT} -o ${LOGFILE}" &
+fi;
+wait
+sleep 30
+DropObjects;
+echo "Run Ended."
+}
+RunClient()
+{
+echo -e " `hostname` - Client run starting";
+GenScript 1;
+Run1=${NAME}
+GenScript 2;
+Run2=${NAME}
+/bin/bash ${Run1} &
+/bin/bash ${Run2} &
+wait;
+echo -e "`hostname` - Cleaning up."
+rm -f ${Run1} ${Run2};
+echo -e "`hostname` - Cleanup done."
+}
+#
+LOCALDIR=`dirname ${0}`
+if [ "${LOCALDIR}" == "." ]; then
+   LOCALDIR=`pwd`;
+fi;
+BASEDIR=`dirname ${LOCALDIR}`
+LOCALNODE=`hostname -s`
+SINGLE=0
+MASTER=0;
+LOGFILE=${BASEDIR}/logs/alterdbf_$$.log
+ID=$$;
+#
+echo -e " `hostname` - Starting test run - Datafile autoextension."
+#
+if [ $# -eq 0 ]; then
+   Usage;
+fi;
+#
+while [ $# -gt 0 ]
+do
+  case ${1} in
+     -c ) COUNT=${2};
+          shift 2;
+          ;;
+     -n ) NODE=${2};
+          SINGLE=1;
+          shift 2;
+          ;;
+     -o ) LOGFILE=${2};
+          shift 2;
+          ;;
+     -x   ) MASTER=1;
+          shift;
+          ;;
+     -h   ) Usage;
+          ;;
+     *    ) Usage;
+          ;;
+  esac;
+done;
+
+#
+if [ ${MASTER} -eq 0 ]; then
+   RunServer;
+else
+   RunClient;
+fi;
+exit $?;


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb2.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb3.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb3.sh	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb3.sh	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# hang_arch.sh
+#
+CNT=1
+while [ $CNT -lt 250 ]
+do
+  #echo $CNT
+  #FNAME=$CNT$END
+  #echo $FNAME
+  #touch $FNAME
+  #sqlplus -s /nolog << !
+  sqlplus /nolog << !
+    connect / as sysdba
+    set echo on;
+    set termout on;
+    set feedback on;
+    whenever sqlerror exit failure;
+    whenever oserror exit failure;
+    alter system archive log current;
+    exit success;
+!
+  if [ $? != 0 ]
+      then
+        exit 1
+  fi;
+  CNT=`expr $CNT + 1`
+  sleep 5
+done


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb3.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb4.sh
===================================================================
--- trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb4.sh	2005-02-22 03:24:20 UTC (rev 13)
+++ trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb4.sh	2005-02-22 03:25:25 UTC (rev 14)
@@ -0,0 +1,215 @@
+#!/bin/bash
+#
+# renamedbf_run.sh
+#
+# Script to test move datafile among filesystems.
+#
+# This script will perform the following tasks:
+#   1.  Startup the database.
+#   2.  Create a tablespace MOVE with a datafile on an ocfs.
+#   3.  Create a couple of test tables in the MOVE tablespace.
+#   4.  Shutdown the database normally.
+#   5.  Move the database file belonging to the tablespace MOVE
+#       to another ocfs filesystem using o_direct.
+#   6.  Startup mount the database.
+#   7.  Rename the database file.
+#   8.  Open the database.
+#   9.  Perform updates in the test tables.
+#   10. Drop the tablespace MOVE.
+#   11. Shutdown the database.
+#
+Usage()
+{
+echo -e "$0 Usage: $0 -d1 <1st directory> -d2 <second directory> -p <init file>";
+echo -e "             -o <logfile>";
+exit 1;
+}
+#
+Startup()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+startup pfile=${INITFILE}
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error during database startup";
+   exit ${RC};
+fi;
+}
+#
+Shutdown()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+shutdown immediate;
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error during database shutdown";
+   exit ${RC};
+fi;
+}
+#
+CreateTablespaceMove()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+CREATE TABLESPACE move DATAFILE '${DIR1}/move_0.dbf' SIZE 20M autoextend on next 256k;
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error creating tablespace MOVE.";
+   exit ${RC};
+fi;
+}
+#
+CreateTables()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+CREATE TABLE test1 TABLESPACE move AS SELECT * FROM dba_objects;
+CREATE TABLE test2 TABLESPACE move AS SELECT * FROM dba_source;
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error creating test tables.";
+   exit ${RC};
+fi;
+}
+#
+MoveDbf()
+{
+pmonup=`ps -ef|grep ora_pmon|grep -v grep|wc -l`;
+if [ ${pmonup} -eq 0 ]; then
+   mv --o_direct=read,write ${DIR1}/move_0.dbf ${DIR2}/move_0.dbf;
+   chmod 775 ${DIR2}/move_0.dbf;
+   chgrp oracle ${DIR2}/move_0.dbf;
+else 
+   echo -e "Oracle Instance is still up";
+   echo -e "Cannot move file.";
+   exit 1;
+fi;
+}
+#
+UpdateTables()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+INSERT INTO test1 SELECT * FROM dba_objects;
+INSERT INTO test2 SELECT * FROM dba_source;
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error during test tables update.";
+   exit ${RC};
+fi;
+}
+#
+RenameDbf()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+startup mount pfile=${INITFILE}
+alter database rename file '${DIR1}/move_0.dbf' to '${DIR2}/move_0.dbf';
+alter database open;
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error during datafile rename";
+   exit ${RC};
+fi;
+}
+#
+DropTablespaceMove()
+{
+cd ${BASEDIR}/sqllib;
+${ORACLE_HOME}/bin/sqlplus /nolog << EOF
+conn / as sysdba
+whenever sqlerror exit failure;
+whenever oserror exit failure;
+DROP TABLESPACE move INCLUDING CONTENTS AND DATAFILES;
+exit
+EOF
+RC=$?;
+if [ ${RC} -ne 0 ]; then
+   echo "Error dropping tablespace MOVE.";
+   exit ${RC};
+fi;
+}
+#
+LOCALDIR=`dirname ${0}`
+if [ "${LOCALDIR}" == "." ]; then
+   LOCALDIR=`pwd`;
+fi;
+BASEDIR=`dirname ${LOCALDIR}`
+LOCALNODE=`hostname -s`
+LOGFILE=movedbf.log
+LOGFILE=${BASEDIR}/logs/movedbf$$.log
+ID=$$;
+#
+if [ $# -eq 0 ]; then
+   Usage;
+fi;
+#
+while [ $# -gt 0 ]
+do
+  case ${1} in
+     -d1 ) DIR1=${2};
+          shift 2;
+          ;;
+     -d2 ) DIR2=${2};
+          shift 2;
+          ;;
+     -p ) INITFILE=${2};
+          shift 2;
+          ;;
+     -o ) LOGFILE=${2};
+          shift 2;
+          ;;
+     -h   ) Usage;
+          ;;
+     *    ) Usage;
+          ;;
+  esac;
+done;
+#
+echo -e "Starting Datafile Rename test.";
+if [ ! -f ${LOGFILE} ]; then
+   echo -e "Creating logfile ${LOGFILE}" |tee -a ${LOGFILE};
+fi;
+#
+Startup;
+CreateTablespaceMove;
+CreateTables;
+Shutdown;
+MoveDbf;
+RenameDbf;
+UpdateTables;
+DropTablespaceMove;
+Shutdown;
+exit;


Property changes on: trunk/ocfs2test/src/TestSuites/ocfs2test/tset/tpdatabase/tpdatabasedb4.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the Ocfstest-commits mailing list