Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Export question - appending date to dmp file
Try exp ... file=expdat.`date +%j`.dmp ... or whatever format is desired. Note that those are NOT quote marks, but grave marks. They mean "the result of whatever command is inside them".
You might want to do something like this in a script:
JDATE=`date +%j'
exp ... file=expdat.${JDATE}.dmp ...
Of course, Julian date (%j) is not what you asked for. See: $ man date The possibities are endless.
-Don Granaman
[OraSaurus]
> RK - The system nicely timestamps the file automatically for you.
Isn't that
> good enough? Another idea - on Unix, tar several files and it will
keep the
> system timestamps on them.
> Dennis Williams
> DBA
> Lifetouch, Inc.
> dwilliams_at_lifetouch.com
>
> -----Original Message-----
> Sent: Tuesday, December 04, 2001 10:21 AM
> To: Multiple recipients of list ORACLE-L
>
>
> Hello All,
>
> I am trying to append date to dmp file while exporting it , no luck
any
> ideas..
>
> exp userid=user/passwd imp file=EXPDATA$DATE.dmp
>
> (I need to have system date and if possible time (TIMESTAMP )
appended to it
> .)
>
> TIA
> Cheers
> RK
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: DENNIS WILLIAMS
> INET: DWILLIAMS_at_LIFETOUCH.COM
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing
Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Don Granaman INET: granaman_at_home.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Dec 04 2001 - 16:22:00 CST
![]() |
![]() |