<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic export script with query option in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992871#M913069</link>
    <description>I run Oracle 8.1.6 on Hp-UX 11.0&lt;BR /&gt;kindly help me with an export script that would use the query option.&lt;BR /&gt;i want to backup: select * from actb where trn_dat between '01-jun-2003' and '10-jun-2003'.&lt;BR /&gt;Thanks aot.&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Jun 2003 23:02:19 GMT</pubDate>
    <dc:creator>Nago</dc:creator>
    <dc:date>2003-06-09T23:02:19Z</dc:date>
    <item>
      <title>export script with query option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992871#M913069</link>
      <description>I run Oracle 8.1.6 on Hp-UX 11.0&lt;BR /&gt;kindly help me with an export script that would use the query option.&lt;BR /&gt;i want to backup: select * from actb where trn_dat between '01-jun-2003' and '10-jun-2003'.&lt;BR /&gt;Thanks aot.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2003 23:02:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992871#M913069</guid>
      <dc:creator>Nago</dc:creator>
      <dc:date>2003-06-09T23:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: export script with query option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992872#M913070</link>
      <description>You aren't going to be able to do this with 8i.  This feature was added in 9i.  You could do something like the following (as a shell script):&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;sqlplus &lt;USER&gt;/&lt;PASS&gt; &amp;lt;&amp;gt; logfile.log&lt;BR /&gt;create table actb_temp as select * from actb where trn_dat between ...;&lt;BR /&gt;exit;&lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;exp userid=&lt;USER&gt;/&lt;PASS&gt; file=file.dmp tables=actb_temp&lt;BR /&gt;&lt;BR /&gt;sqlplus &lt;USER&gt;/&lt;PASS&gt; &amp;lt;&amp;gt; logfile.log&lt;BR /&gt;drop table actb_temp;&lt;BR /&gt;exit;&lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Brian&lt;/PASS&gt;&lt;/USER&gt;&lt;/PASS&gt;&lt;/USER&gt;&lt;/PASS&gt;&lt;/USER&gt;</description>
      <pubDate>Tue, 10 Jun 2003 03:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992872#M913070</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2003-06-10T03:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: export script with query option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992873#M913071</link>
      <description>Hi, you can also with 8.1.6&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exp user/password tables=actb query="'select \* from actb where trn_dat between \'01-jun-2003\' and \'10-jun-2003\''"&lt;BR /&gt;&lt;BR /&gt;You will have to play a little because the query must be enclose in single quotes ', but S.O. will try to expand, so you must wrap with duoble quotes and escape the wildchar * .&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jun 2003 05:13:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992873#M913071</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-10T05:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: export script with query option</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992874#M913072</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;instead of using:&lt;BR /&gt;&lt;BR /&gt;exp userid=useryd/passyd tables=actb query=\"where trn_dat between '01-jun-2003' and '10-jun-2003'\"&lt;BR /&gt;&lt;BR /&gt;i would prefer to use a parameter file, exp.par containing the following argument:&lt;BR /&gt;&lt;BR /&gt;query="trn_dat between '01-jun-2003' and '10-jun-2003'"&lt;BR /&gt;&lt;BR /&gt;and now use the command:&lt;BR /&gt;&lt;BR /&gt;exp userid=useryd/passyd tables=actb parfile=exp.par&lt;BR /&gt;&lt;BR /&gt;(this is easier especially when you can have cases when you will have to escape the QUERY strings)&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj&lt;BR /&gt;&lt;BR /&gt;PS. Review your query! You should always compare dates to dates, strings to strings, numbers to numbers and never anything other combination&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jun 2003 08:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/export-script-with-query-option/m-p/2992874#M913072</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-06-10T08:21:24Z</dc:date>
    </item>
  </channel>
</rss>

