forked from microsoftarchive/data-access-application-block
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Regions table from Northwind to Oracle db, so Oracle tests in Dat…
…a solution pass. #5
- Loading branch information
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
BVT/Data.BVT/DatabaseSetupScripts/OracleDBScripts/1.Table/Region.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
CREATE TABLE REGION | ||
( | ||
REGIONID INTEGER NOT NULL, | ||
REGIONDESCRIPTION VARCHAR2 (50 BYTE) NOT NULL | ||
) | ||
TABLESPACE USERS | ||
PCTUSED 0 | ||
PCTFREE 10 | ||
INITRANS 1 | ||
MAXTRANS 255 | ||
STORAGE ( | ||
INITIAL 64K | ||
MINEXTENTS 1 | ||
MAXEXTENTS 2147483645 | ||
PCTINCREASE 0 | ||
BUFFER_POOL DEFAULT | ||
); | ||
|
||
|
||
CREATE UNIQUE INDEX REGION_PK ON REGION | ||
(REGIONID) | ||
TABLESPACE USERS | ||
PCTFREE 10 | ||
INITRANS 2 | ||
MAXTRANS 255 | ||
STORAGE ( | ||
INITIAL 64K | ||
MINEXTENTS 1 | ||
MAXEXTENTS 2147483645 | ||
PCTINCREASE 0 | ||
BUFFER_POOL DEFAULT | ||
); | ||
|
||
|
||
ALTER TABLE REGION ADD ( | ||
CONSTRAINT REGION_PK | ||
PRIMARY KEY | ||
(REGIONID) | ||
USING INDEX | ||
TABLESPACE USERS | ||
PCTFREE 10 | ||
INITRANS 2 | ||
MAXTRANS 255 | ||
STORAGE ( | ||
INITIAL 64K | ||
MINEXTENTS 1 | ||
MAXEXTENTS 2147483645 | ||
PCTINCREASE 0 | ||
)); | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
BVT/Data.BVT/DatabaseSetupScripts/OracleDBScripts/4.Data/Region.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Insert Into Region Values (1,'Eastern'); | ||
Insert Into Region Values (2,'Western'); | ||
Insert Into Region Values (3,'Northern'); | ||
Insert Into Region Values (4,'Southern'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters