Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Oracle export compression routine
@ 1996-02-26  5:00 Bob McGuire
  1996-02-26  5:00 ` Pat Rankin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bob McGuire @ 1996-02-26  5:00 UTC (permalink / raw)



Greetings.

Anyone out in NetLand using Oracle on an Alpha running OpenVMS?

If so, here's a question I've got for you.

I'm running with OpenVMS 6.1, Oracle 6.0.37 (soon to be V7)

My export files are getting rather large and I tried to use the ZIP routine 
from the freeware CD.  It zipped nicely.   

      zip bob.zip -V expdat.dmp
      adding expdat.dmp (in=40960) (out=3396) (deflated 92%)
      total bytes=40960, compressed=3396 -> 92% savings

But.....  When I went to unzip the file and use it as an import to a test 
database, I get the following....

Import file: DKA100:[BOBMC.HOLD]EXPDAT.DMP > bob.dmp
IMP-00010: not a valid export file, header failed verification
IMP-00000: Import terminated with error

When I do a d/fu on the files everything is identical with the two exceptions:

Original dmp file - non zipped...
File attributes:    Allocation: 81, Extend: 256, Global buffer count: 0
                    No version limit
Record format:      Fixed length 4096 byte records     
Record attributes:  None   

Unzipped dmp file....
File attributes:    Allocation: 81, Extend: 0, Global buffer count: 0
                    No version limit
Record format:      Stream_LF
Record attributes:  Carriage return carriage control

So....  What am I doing wrong?
        What do the above differences mean?
        Can I compress dmp files or should I just get more dasd?
       
My goal is to keep 5 days of export files on the system for nemerous reasons.

Any help/insights/ideas greatly appreciated.

Thanks,
Bob Mc.

------------------------------------------------------------------------------
Bob McGuire
Database Adminstrator
Groundwater Technology, Inc.
Voice - (617) 769-7600 x381   Fax - (617) 769-7992  
Email -  bmcguire@gtionline.com





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Oracle export compression routine
  1996-02-26  5:00 Oracle export compression routine Bob McGuire
@ 1996-02-26  5:00 ` Pat Rankin
  1996-02-27  5:00 ` Mike Madland
  1996-02-28  5:00 ` Rob Spencer
  2 siblings, 0 replies; 5+ messages in thread
From: Pat Rankin @ 1996-02-26  5:00 UTC (permalink / raw)


In newsgroup vmsnet.alpha, article <NEWTNews.825364805.14475.Bob@bobmc.gtionline.com>,\
 Bob McGuire <bmcguire@GTIONLINE.COM> writes...
[...]
>      zip bob.zip -V expdat.dmp
>      adding expdat.dmp (in=40960) (out=3396) (deflated 92%)
>      total bytes=40960, compressed=3396 -> 92% savings
[...]
> So....  What am I doing wrong?

     Try putting "-V" in quotes to prevent the C run-time library
startup code from converting it into lower case before the zip
program ever sees it.  The fact that you got verbose output ("-v")
ought to have been a tip off that you're weren't getting the
"preserve VMS file attributes" option, even before examination
of the resulting file(s) confirmed that.

		Pat Rankin, rankin@eql.caltech.edu



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Oracle export compression routine
  1996-02-26  5:00 Oracle export compression routine Bob McGuire
  1996-02-26  5:00 ` Pat Rankin
@ 1996-02-27  5:00 ` Mike Madland
  1996-02-29  5:00   ` wischow
  1996-02-28  5:00 ` Rob Spencer
  2 siblings, 1 reply; 5+ messages in thread
From: Mike Madland @ 1996-02-27  5:00 UTC (permalink / raw)


Bob McGuire <bmcguire@GTIONLINE.COM> wrote:


>Greetings.

>Anyone out in NetLand using Oracle on an Alpha running OpenVMS?

>If so, here's a question I've got for you.

>I'm running with OpenVMS 6.1, Oracle 6.0.37 (soon to be V7)

>My export files are getting rather large and I tried to use the ZIP routine 
>from the freeware CD.  It zipped nicely.   

>      zip bob.zip -V expdat.dmp
>      adding expdat.dmp (in=40960) (out=3396) (deflated 92%)
>      total bytes=40960, compressed=3396 -> 92% savings

>But.....  When I went to unzip the file and use it as an import to a test 
>database, I get the following....

>Import file: DKA100:[BOBMC.HOLD]EXPDAT.DMP > bob.dmp
>IMP-00010: not a valid export file, header failed verification
>IMP-00000: Import terminated with error

>When I do a d/fu on the files everything is identical with the two exceptions:

>Original dmp file - non zipped...
>File attributes:    Allocation: 81, Extend: 256, Global buffer count: 0
>                    No version limit
>Record format:      Fixed length 4096 byte records     
>Record attributes:  None   

>Unzipped dmp file....
>File attributes:    Allocation: 81, Extend: 0, Global buffer count: 0
>                    No version limit
>Record format:      Stream_LF
>Record attributes:  Carriage return carriage control

I haven't used VMS in a while, but I think you can convert the record
format back to Fixed/4096.  Sorry - I don't remember the command, it
might actually be called convert.


>So....  What am I doing wrong?
>        What do the above differences mean?
>        Can I compress dmp files or should I just get more dasd?
>       
>My goal is to keep 5 days of export files on the system for nemerous reasons.

>Any help/insights/ideas greatly appreciated.

>Thanks,
>Bob Mc.

>------------------------------------------------------------------------------
>Bob McGuire
>Database Adminstrator
>Groundwater Technology, Inc.
>Voice - (617) 769-7600 x381   Fax - (617) 769-7992  
>Email -  bmcguire@gtionline.com







^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Oracle export compression routine
  1996-02-26  5:00 Oracle export compression routine Bob McGuire
  1996-02-26  5:00 ` Pat Rankin
  1996-02-27  5:00 ` Mike Madland
@ 1996-02-28  5:00 ` Rob Spencer
  2 siblings, 0 replies; 5+ messages in thread
From: Rob Spencer @ 1996-02-28  5:00 UTC (permalink / raw)


Bob McGuire wrote:
> 
>       zip bob.zip -V expdat.dmp
>       adding expdat.dmp (in=40960) (out=3396) (deflated 92%)
>       total bytes=40960, compressed=3396 -> 92% savings
> 

Bob,

Your problem is that OpenVMS lowercases all command line arguments when 
it passes them to a c program. You are using a "verbose" switch rather 
than a "save VMS file attributes" switch. You will need to quote it for 
it to work correctly.

eg. zip bob.zip "-V" expdat.dmp

If you really need to get the file back, you could try either convert 
(which will change the structure of the file and the file attributes) or 
a utility called file which is available from several web and ftp sites 
(it will only change the file header so that it thinks it has the 
correct structure). Try convert first (as you should have that already).

Rob Spencer



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Oracle export compression routine
  1996-02-27  5:00 ` Mike Madland
@ 1996-02-29  5:00   ` wischow
  0 siblings, 0 replies; 5+ messages in thread
From: wischow @ 1996-02-29  5:00 UTC (permalink / raw)



To set the RMS file characteristics, look at the SET FILE/ATTR command.
I believe that you can set "almost" any RMS characteric.
-- 
.............................................................................
                Perry Bret Wischow - Naval Research Laboratory
                Mapping, Charting & Geodesy Branch, Code 7441
                     Stennis Space Center, MS 39529-5004
                           wischow@nrlssc.navy.mil
                        601.688.4449, fax 601.688.4853



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-02-29  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-26  5:00 Oracle export compression routine Bob McGuire
1996-02-26  5:00 ` Pat Rankin
1996-02-27  5:00 ` Mike Madland
1996-02-29  5:00   ` wischow
1996-02-28  5:00 ` Rob Spencer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox