472,374 Members | 1,263 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

How to get partition script for a table ?

Hello,

I need to get partition script for a table.
As we get create table script , i need a table's Partition script.
please help me with your expertise.
Sep 17 '07 #1
7 19207
amitpatel66
2,367 Expert 2GB
Hello,

I need to get partition script for a table.
As we get create table script , i need a table's Partition script.
please help me with your expertise.
Find about creating partition tables here and here
Sep 17 '07 #2
Find about creating partition tables here and here

Hello Amit,

Thanks for the informative reply.
Is it possible to get table partition script ?
If Yes, how can i get it ?

because i have not created the table partition, and i need the table partition script to create it some other db.
please send me your thoughts.
Sep 17 '07 #3
amitpatel66
2,367 Expert 2GB
Hello Amit,

Thanks for the informative reply.
Is it possible to get table partition script ?
If Yes, how can i get it ?

because i have not created the table partition, and i need the table partition script to create it some other db.
please send me your thoughts.
You can make use of the logic that is given in the links that I have provided you in the pervious POST to create a table with partitions
Sep 17 '07 #4
You can make use of the logic that is given in the links that I have provided you in the pervious POST to create a table with partitions
Thanks for the reply. I did not get answers to my questions.
It's okay..!! i'l find it out.
Sep 17 '07 #5
amitpatel66
2,367 Expert 2GB
Thanks for the reply. I did not get answers to my questions.
It's okay..!! i'l find it out.
Please be more specific to your requirement.
You want to create a table with partition?
or
you want to partition an existing table? (If this is the requirement, then you CANNOT partition the existing table)
Sep 17 '07 #6
Please be more specific to your requirement.
You want to create a table with partition?
or
you want to partition an existing table? (If this is the requirement, then you CANNOT partition the existing table)

OK, i'l be more specific.
I already have a table with partition.
now, i want to get only the partition script of the table. Is it possible?
Sep 17 '07 #7
Saii
145 Expert 100+
If you work on some IDE like Toad, you can eaily get the script from there.

Else you can use dbms_metadata package.

select dbms_metadata.get_ddl('TABLE','<tab-name>','<schema>') from dual;

Just check if it works for partitioned table too.
Hope that helps!!!
Sep 17 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: sameer_deshpande | last post by:
Hi, I need to create a partition table but the column on which I need to create a partition may not have any logical ranges. So while creating or defining partition function I can not use any...
25
by: John Salerno | last post by:
Forgive my excitement, especially if you are already aware of this, but this seems like the kind of feature that is easily overlooked (yet could be very useful): Both 8-bit and Unicode strings...
1
by: Laurence | last post by:
Hi folks, As I konw: database partition (aka data partition?), the database can span multiple machines; table partition, the data within a table can seperate by certain condition. How about...
1
by: rajanbabu23 | last post by:
dear friends, If i insert a row into table SALES ...If created_dt , Jan or Feb or Mar ...it will store separate partition...I tried the below script ..it's was not working., Script : CREATE...
3
by: nbajrach | last post by:
how to partition on a table if table already exits without any partition. This is what i tried but gave me error SQL> alter table sip add partition by range(si_id) 2 partition p1_si...
0
by: Vinod Sadanandan | last post by:
Table Partition Performance analysis ============================================ Collection of Statistics for Cost-Based Optimization/DBMS_STATS vs. ANALYZE The cost-based approach relies on...
0
debasisdas
by: debasisdas | last post by:
SAMPLE CODE TO CREATE SUB PARTITIONS ======================================= RANGE-HASH-9i ------------------------- CREATE TABLE SUBPART ( ID NUMBER(10) PRIMARY KEY, NAME VARCHAR2(20) )
0
debasisdas
by: debasisdas | last post by:
USING PARTITION =================== PARTITION BY RANGE-as per Oracle 8 -------------------------------------- CREATE TABLE RANGEPART ( ID NUMBER(2) PRIMARY KEY, NAME VARCHAR2(20) )
3
by: Justin | last post by:
Is there a way to attach a partition to an existing table that already has partitions (without loading data)? For example, the syntax of the attach partition is documented below: alter table...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.