- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Export partial data
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
тАО02-10-2005 04:16 AM
тАО02-10-2005 04:16 AM
Export partial data
How to export partial data of a table using EXP80.
I need to export only data between '01-DEC-2004'
and '31-DEC-2004'.
Seems EXP80 doesnt support "query" option
exp80 query=\"where as_of_date \>\=\'01-DEC-2004\' and as_of_date\<\=\'31-DEC-2004\' \" tables=MYTABLE admin/manager@emps
I DONT want to do the following for official constraints/policies..
1)
Create table abc as Select * from mytable where
date between <1-dec-2004> and <31-dec-2004>....
2) Create a view
Please help.
Thanks
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 04:36 AM
тАО02-10-2005 04:36 AM
Re: Export partial data
We are just lowly Sys Admins here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 04:38 AM
тАО02-10-2005 04:38 AM
Re: Export partial data
export cannot be used to export a subset of a table, unless you're talking exporting a partition.
To solve this you could run a query to dump the data into a flat file and then upload into a different database with SQlloader.
Regards
Jean-Luc
PS : by the way where did you see the "query" option ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 04:46 AM
тАО02-10-2005 04:46 AM
Re: Export partial data
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 12:22 PM
тАО02-10-2005 12:22 PM
Re: Export partial data
As brian mentioned, the "QUERY" option to the export utility is an Oracle8i feature. It's introduced form 8.1.5 and higher release version.
If you do not have these higher version, then there are few ways around.
1. To select into a temporary table or view which you do not want to do.
2. You could use a database link if you were intending to insert this data into another table.
3. You can select the data for the condition and output into a flat file
4. Use TOAD a free trial version and export the data with the condition and this will create a file with insert statements.
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 05:00 PM
тАО02-10-2005 05:00 PM
Re: Export partial data
as mentioned above you cannot use the QUERY option to export tables unless you are using 8i and above.
type: exp80 help=yes
to get a list of supported option.
bad luck.
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2005 06:09 PM
тАО02-10-2005 06:09 PM
Re: Export partial data
you can export partitions! So if you (have) put every year in a separate partition you can:
exp80 tables=schemaname.tablename:partitionname ...
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2005 09:56 PM
тАО02-12-2005 09:56 PM
Re: Export partial data
Create a temporary table and insert the data you want (1.1.2004 - 31.12.2004) into that table.
Then you can use export to export that temporary table.
Then you clean up the temp table and optionally the data in the source table with date 1.1.2004-31.12.2004.
Regards,
Bob