- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Partitioned Tables in Oracle8.1.6 on HPUX11.0
Operating System - HP-UX
1753809
Members
8727
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 12:56 PM
тАО12-12-2001 12:56 PM
Hi
Does anybody know why when I create a partitioned table it doesnt belong to any tablespace.
export ORACLE_SID=objdev
sqlplus objdev/objdev
CREATE TABLE Hierarchy (ObjectId NUMBER(12) NOT NULL,ParentId NUMBER(12) NOT NULL,TypeCd VARCHAR2(8) NOT NULL,Category NUMERIC(3) NOT NULL,Path VARCHAR2(128) NULL,Name VARCHAR2(66) NULL,Flag NUMBER(1) NOT NULL) PARALLEL (DEGREE DEFAULT) NOLOGGING partition by range (category)
(partition PH values less than (194),
partition LOC values less than (196),
partition FE values less than (197));
ALTER TABLE Hierarchy ADD(PRIMARY KEY(ObjectId)) PARALLEL (DEGREE DEFAULT) NOLOGGING;
QL> select table_name,tablespace_name,owner,PARTITIONED from dba_all_tables where table_name ='HIERARCHY';
TABLE_NAME TABLESPACE_NAME OWNER PAR
HIERARCHY SYSTEM YES
HIERARCHY OBJDEV YES
Thanks in advance
Reynaldo
Does anybody know why when I create a partitioned table it doesnt belong to any tablespace.
export ORACLE_SID=objdev
sqlplus objdev/objdev
CREATE TABLE Hierarchy (ObjectId NUMBER(12) NOT NULL,ParentId NUMBER(12) NOT NULL,TypeCd VARCHAR2(8) NOT NULL,Category NUMERIC(3) NOT NULL,Path VARCHAR2(128) NULL,Name VARCHAR2(66) NULL,Flag NUMBER(1) NOT NULL) PARALLEL (DEGREE DEFAULT) NOLOGGING partition by range (category)
(partition PH values less than (194),
partition LOC values less than (196),
partition FE values less than (197));
ALTER TABLE Hierarchy ADD(PRIMARY KEY(ObjectId)) PARALLEL (DEGREE DEFAULT) NOLOGGING;
QL> select table_name,tablespace_name,owner,PARTITIONED from dba_all_tables where table_name ='HIERARCHY';
TABLE_NAME TABLESPACE_NAME OWNER PAR
HIERARCHY SYSTEM YES
HIERARCHY OBJDEV YES
Thanks in advance
Reynaldo
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 07:03 PM
тАО12-12-2001 07:03 PM
Re: Partitioned Tables in Oracle8.1.6 on HPUX11.0
Hi,
Partition table can span in many tablespace.
see following statement.
CREATE TABLE sales
( invoice_no NUMBER,
sale_year INT NOT NULL,
sale_month INT NOT NULL,
sale_day INT NOT NULL )
PARTITION BY RANGE ( sale_year, sale_month, sale_day)
( PARTITION sales_q1 VALUES LESS THAN ( 1998, 04, 01 )
TABLESPACE tsa,
PARTITION sales_q2 VALUES LESS THAN ( 1998, 07, 01 )
TABLESPACE tsb,
PARTITION sales_q3 VALUES LESS THAN ( 1998, 10, 01 )
TABLESPACE tsc,
PARTITION sales q4 VALUES LESS THAN ( 1999, 01, 01 )
TABLESPACE tsd);
--------------------
Creating a partitioned table is very similar to creating a table or index: you must use
the CREATE TABLE statement with the PARTITION by clause. Also, you must
specify the tablespace name for each partition.
Partition table can span in many tablespace.
see following statement.
CREATE TABLE sales
( invoice_no NUMBER,
sale_year INT NOT NULL,
sale_month INT NOT NULL,
sale_day INT NOT NULL )
PARTITION BY RANGE ( sale_year, sale_month, sale_day)
( PARTITION sales_q1 VALUES LESS THAN ( 1998, 04, 01 )
TABLESPACE tsa,
PARTITION sales_q2 VALUES LESS THAN ( 1998, 07, 01 )
TABLESPACE tsb,
PARTITION sales_q3 VALUES LESS THAN ( 1998, 10, 01 )
TABLESPACE tsc,
PARTITION sales q4 VALUES LESS THAN ( 1999, 01, 01 )
TABLESPACE tsd);
--------------------
Creating a partitioned table is very similar to creating a table or index: you must use
the CREATE TABLE statement with the PARTITION by clause. Also, you must
specify the tablespace name for each partition.
enjoy any little thing in my life
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2001 01:14 AM
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP