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

How to Query option in exp

All posts relating to Oracle database administration.

Moderator: Tim...

anthony
Member
Posts: 16
Joined: Sun May 01, 2011 2:58 pm

How to Query option in exp

Postby anthony » Sun Dec 02, 2012 7:05 am

Hi All,

I need to export one particular partitioned table partition with only first 1000 rows,We do not have primary key to export like below.

exp ..... query=\"where col1 \< 1000\"

By using this query i a m able to select rows.
select * from TMS2ADM.AC_BALANCES partition (SYS_P124) where rownum <=1000;

Could you please help me how to export first 1000 rows by using exp...

Tanks and Regards
Anthony.
Thanks and Regards
Anthony

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

Re: How to Query option in exp

Postby Tim... » Wed Dec 05, 2012 8:57 am

Hi.

Try:

Code: Select all

exp ... tables=owner.table:part_name  query=\"where col1 \< 1000\"


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


Return to “Oracle Database Administration”

Who is online

Users browsing this forum: No registered users and 2 guests