Database Administration (MOSC)

MOSC Banner

Date and time stamp in export dump

edited Dec 3, 2014 1:48PM in Database Administration (MOSC) 10 commentsAnswered ✓

Hi,

can we append date and time stamp to export dump file name please.

i tried using the variable `date +%d%m%y_%T but no luck. Below is the error details for your reference.

Oracle version : 11.2.0.3 standared version.

OS details : windows 2008 R2

C:\Users\Administrator>expdp system/password directory=EXPORTDIR  dumpfile=tables_`date +%d%m%y_%T.dmp logfile=tables_date.log

Export: Release 11.2.0.3.0 - Production on Thu Oct 23 02:10:59 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Release 11.2.0.3.0 - 64bit Production

ORA-39001: invalid argument value

ORA-39000: bad dump file specification

ORA-39124: dump file name "+%d%m%y_%T.dmp" contains an invalid substitution variable

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center