-
1
- #1
<<
CREATE TABLE CC_ACCOUNTS (
ACCOUNTNO NUMBER (20) NOT NULL,
ACCOUNTDESC VARCHAR2 (100),
FIRSTNAME VARCHAR2 (50) NOT NULL,
MIDDLENAME VARCHAR2 (50),
LASTNAME VARCHAR2 (50),
ADDRESS1 VARCHAR2 (100) NOT NULL,
CITYID NUMBER (20) NOT NULL,
EMAILID VARCHAR2 (40),
FAXNO VARCHAR2 (20),
CONSTRAINT PK_ACCOUNT
PRIMARY KEY ( ACCOUNTNO )
USING INDEX
TABLESPACE USR PCTFREE 10
STORAGE ( INITIAL 1000K NEXT 1000K PCTINCREASE 1 ))
TABLESPACE USR
PCTUSED 40
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 1024000
NEXT 1024000
PCTINCREASE 1
MINEXTENTS 1
MAXEXTENTS 1500
FREELISTS 1 FREELIST GROUPS 1 )
NOCACHE;
>>
We all generally create a table or other database objects like index by specifying the column names and the datatypoe alone rarely specifying the storage and other parameters. Can any expert tell me the meaning of these parameters and a rule to calculate these values.
CREATE TABLE CC_ACCOUNTS (
ACCOUNTNO NUMBER (20) NOT NULL,
ACCOUNTDESC VARCHAR2 (100),
FIRSTNAME VARCHAR2 (50) NOT NULL,
MIDDLENAME VARCHAR2 (50),
LASTNAME VARCHAR2 (50),
ADDRESS1 VARCHAR2 (100) NOT NULL,
CITYID NUMBER (20) NOT NULL,
EMAILID VARCHAR2 (40),
FAXNO VARCHAR2 (20),
CONSTRAINT PK_ACCOUNT
PRIMARY KEY ( ACCOUNTNO )
USING INDEX
TABLESPACE USR PCTFREE 10
STORAGE ( INITIAL 1000K NEXT 1000K PCTINCREASE 1 ))
TABLESPACE USR
PCTUSED 40
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 1024000
NEXT 1024000
PCTINCREASE 1
MINEXTENTS 1
MAXEXTENTS 1500
FREELISTS 1 FREELIST GROUPS 1 )
NOCACHE;
>>
We all generally create a table or other database objects like index by specifying the column names and the datatypoe alone rarely specifying the storage and other parameters. Can any expert tell me the meaning of these parameters and a rule to calculate these values.