This forum is currently locked. You can't register or post questions at this time. (read more)

Partition By Reference

All posts relating to Oracle database administration.

Moderator: Tim...

ranro
Member
Posts: 2
Joined: Mon Jan 21, 2013 11:15 am

Partition By Reference

Postby ranro » Mon Jan 21, 2013 11:35 am

1. table B was created with "of object" syntax
2. table A is range partitioned and is referenced by B
3. need to: add partition by reference of B-to-A

is it possible to do?
what would be the syntax?

alter table B add partition by reference (B_to_A_fk);

Thanks
Ranro

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Partition By Reference

Postby Tim... » Mon Jan 21, 2013 1:41 pm

Hi.

if B was not a partitioned table originally, you can't just make it one. You will either have to use exchange partition or use DBMS_REDEFINITION to partition it.

http://www.oracle-base.com/articles/mis ... tition.php
http://www.oracle-base.com/articles/mis ... -table.php

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog

ranro
Member
Posts: 2
Joined: Mon Jan 21, 2013 11:15 am

Re: Partition By Reference

Postby ranro » Mon Jan 21, 2013 2:01 pm

thanks a lot

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: Partition By Reference

Postby Tim... » Mon Jan 21, 2013 2:39 pm

:)
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog


Return to “Oracle Database Administration”

Who is online

Users browsing this forum: No registered users and 0 guests

cron