How to attach date time with dumpfile name taken with expdp in solaris
I have to write script for daily table backup which would run from crontab in solaris platform on daily basis. I am using expdp for the first time, the following command used to work with EXP
file=/anadbora13/Oracle_Backup/UIBS/dump/inter_UIBS_FM_`date +%d%m%y_%T`.dmp
But,
when I am using the following
dumpfile=inter_UIBS_FM_`date +%d%m%y_%T`.dmp
i am getting error :
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
Pls help....Thanks in advance
Hi,
You need to build the parfile commands first (using
server sysdate), and then pass the parfile to
Oracle:
touch /tmp/parfile.txt
Why bother with the 'touch'?
file=/anadbora13/Oracle_Backup/UIBS/dump/inter_UIBS_FM
_`date +%d%m%y_%T`.dmp >> /tmp/parfile.txt
Shouldn't that be 'echo file=.... > /tmp ....'
Why do you show the redirection to append into the temporary command file?
Now, execute the utility. . . .
expdp parfile=/tmp/parfile.txt
To see working details, try Jon Emmon's book "Oracle
Shell Scripting":
http://www.rampant-books.com/book_2007_1_shell_scripti
ng.htm
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference":
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm
Similar Messages
-
How to attach data to url of a jsf page in sun creator
Can somebody tell me how to attach data to url of a jsf page for example String url="http://w-ngphc-0672.ng.ad.ep.corp.local:8080/Questionnaire/QuestionnaireConnector.jsp?ticket_id="+C.getTicket_id(); accesing this url uses value of C.getTicket_id() and populate the jsp page. How can I achieve this using jsf page in sun creator .
I'm developing a workflow where url is sent to people and on clicking of the url it takes them to the form of the particular sender with its id attached to the url of the page.Here's how I do something similar:
<ui:hyperlink binding="#{dfrReviewPage.hyperlink4}" id="hyperlink4" style="text-decoration: line-through"
text="DFR #{currentRow.value['d1.replacesdfr']}"
url="/getReport/DFR#{currentRow.value['d1.replacesdfr']}.pdf?reportId=#{currentRow.value['d3.replacesformat']}&exportType=0&id=#{currentRow.value['d1.replacesdfr']}" visible="#{currentRow.value['d1.replacesdfr']!=null}"/>As you probably gathered from the currentRow var this is embedded in a table but it could be bound to any bean type object. -
How to keep data integrity with the two business service in OSB 10.3.1.0
How to keep data integrity with the two business service in OSB 10.3.1.0
In our customer system, customer want to keep data integerity between two businness service. I thinks this is XA transaction issue.
Basing customer requirment, I created a testcase but I can't keep data integerity, For detail information, please refer the attached docs.Can you please explain what you meant my data integrity in your use case?
Manoj -
How can I count time with labview7?
Hi
How can I count time with labview 7 and NI-DAQmx like I did with labview 6.1 and "count time-easy.vi" (count event or Time.vi).
I have a 6025E and labview 7.0
ThanksI am not sure what you want to do or why..
... but here goes (some suggestions)
If you want to count the time between two events, you have a choice, you may use the Tick Count. Inisitalize it first by getting a timestamp and then do a difference within a loop. The difference will give you the time elapsed in ms.
You can also use the Get Date/Time String or Get Date / Time in seconds and once again take a snapshot when a first even occurs and another snapshot at the next even (at a point where you want to measure elasped time). This method is particularly useful if you want to timestamp an event.
If I didn't answer your question, can you elaborate what you mean by "How can I count time".
Best of luck..
JLV -
How to print date & time stamp on photos?
How to print date & time stamp on photos?
Three methods:
File>process multiple files>labels. Be sure to uncheck "same as source", or the originals will be overwritten. It is best to work on duplicate files, esp. while learning.
Use the horizontal or vertical type tool to add the information manually to each picture file
If the same information is to be applied to several pictures, e.g. a copyright notice, use of a brush made in PSE is very efficient -
How to print date/time in report page footer?
Hi
I have a report which users can print as PDF.
However, I like to display current date/time in report footer.
I can see the Page Footer in section but can't figure out how to print date/time there.
Thanks for help.hi movilogo
Please try this.
Create hidden item P1_DATE
Create On load process in page 1 and put this code
begin
:P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
end;
Open your region in Page 1 put this code in Footer area
*&P1_DATE.*
Refresh your page.
you will get the output like this.
16-SEP-2009 11:09:17
thanks
Mark Wyatt -
Date + time with .dmp file name
I have created a batch file for full db export in Oracle 8.1.7.0.0, the batch file is taking full backup, but I want to append date and time with file name..
Edited by: oracleRaj on Sep 19, 2010 10:25 PMI think example shown by Ramesh above is the correct answer for this thread; as i have just confirmed it too :
C:\Documents and Settings\Girish Sharma>expdp scott/tiger dumpfile=emp_"%date:~7,2%%date:~4,2%%date:~10,4%".dmp tables=emp directory=MYFILES
Export: Release 10.2.0.1.0 - Production on Monday, 20 September, 2010 11:20:17
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "SCOTT"."SYS_EXPORT_TABLE_01": scott/******** dumpfile=emp_20092010.dmp tables=emp directory=MYFILES
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "SCOTT"."EMP" 7.773 KB 15 rows
Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
D:\CSV\EMP_20092010.DMP
Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 11:20:37HTH
Girish Sharma -
How to read in date/time with ascii import
I have an ascii data file with a time column in the following format
ddd hh:nn:ss
the seconds are like 11.1234567, so it would look like
234 12:23:11.1234567
I have tried different format options to read this in
with no luck. The data I read in I am then using in CLIP/Insight. The video has this time on it and I need it in the data set to be able to sync them up.The problem with this data format seems to be the 'ddd' at the beginning of the data format.
DIAdem expexts the 'dd' to be a day of a month, not a day in a year. I can offer you a solution though:
Please upload or send me two of your data files and we will create a little script in DIAdem that will import your data format and make it available in DIAdem and DIAdem CLIP.
You can upload them here in the forum or send them to me at:
[email protected]
Please compress the files (with ZIP or similar technology) if they are large.
Otmar
Otmar D. Foehner
Business Development Manager
DIAdem and Test Data Management
National Instruments
Austin, TX - USA
"For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary." -
How to populate date & time when user enter data for custom table in sm30
Can anyone tell me How to populate system date & time when user enter data for custom table in sm30..
Req is
i have custom table and using sm30 user can enter data.
after saving date i want to update date & time in table
Pls let me know where to write the code?
Thanks in AdvanceYou have to write the code in EVENT 01 in SE54 transaction. Go to SE54, enter your Ztable name and in the menu 'Environment-->Events'. Press 'ENTER' to go past the popup message. In the next screen, click on 'New Entries'. In the first column, enter 01 and in the next column give some name for your routine(say UPDATE_USER_DATE_TIME). Then click on the souce code icon that appears in blue at the end of the row. In the code, you need logic like below.
FORM update_user_date_time.
DATA: f_index LIKE sy-tabix.
DATA: BEGIN OF l_total.
INCLUDE STRUCTURE zztable.
INCLUDE STRUCTURE vimtbflags.
DATA END OF l_total.
DATA: s_record TYPE zztable.
LOOP AT total INTO l_total.
IF l_total-vim_action = aendern OR
l_total-vim_action = neuer_eintrag.
MOVE-CORRESPONDING l_total TO s_record.
s_record-zz_user = sy-uname.
s_record-zz_date = sy-datum.
s_record-zz_time = sy-uzeit.
READ TABLE extract WITH KEY l_total.
IF sy-subrc EQ 0.
f_index = sy-tabix.
ELSE.
CLEAR f_index.
ENDIF.
MOVE-CORRESPONDING s_record TO l_total.
MODIFY total FROM l_total.
CHECK f_index GT 0.
MODIFY extract INDEX f_index FROM l_total.
ENDIF.
ENDLOOP.
ENDFORM. " UPDATE_USER_DATE_TIME
Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated. -
How to print date & time in photos
Thanks for the help.
I need to print either photos with time and dates in them... or the Bridge contact sheet with date and time info.
The final printed image will be used in court to photo document evidence.
Do I have to do a screen capture or is there some other way?
My camera will not allow me to imprint time and date.
I'm using CS4 on both Windows and Mac.
Thanks again in advance for the taking the time to help.
Dances With Pixels
I may have sent this twice, but I'm new to this and this is my first time trying to post.Thank you for taking the time to respond. Much appreciated.
And will follow up on your suggestions.
Date: Tue, 10 Aug 2010 23:55:31 -0600
From: [email protected]
To: [email protected]
Subject: How to print date & time in photos
I think there are (various) Scripts about for that.
For example addExifDate1.5.jsx:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1346521
One should be able to adapt it to include the time.
You could ask in the Photoshop Scripting Forum or http://www.ps-scripts.com/
> -
How to get/display time with minutes in a test item
Dear experts,
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)I've the following requirements.
In my form, there are three text items and one save button.
Text items named as
No_of_days --> Number data type
(user will enter number of days)
hours_limit --> Char data type with format mask (HH:MI);
(user will enter hours with minutes)
Upto_date_time --> date data type;
this field calculated as (No_of_days+hours_limit+sysdate)
User will enter No_of_days or hours_limit:
Based on the values I've to calculate Upto_date_time
Here is the problem:
1) If user doesn't enter hours_limit I want to show default time as " 04:00 PM"
2) If user enter hours_limit field we should allow them to enter in the following format
"HH24:MI" format;
what whould be suitable data type for hours_limit field..
I tried with char and i've set the format mask as ,
set_item_property('BLOCK3.hours_limit',format_mask,'HH:MI');
But I'm geeting the error
"FRM-50027:Invalid format mask for given datatype"
Please help to solve this problem,
Regards,
KarthiHi vansul ,
set_item_property('BLOCK3.hours_limit',format_mask,'HH:MI');
Format mast is only allowed to date data type fields.If i set the hours_limit item's data type as date , I'm getting the error message "ORA-01843:Not a valid month"..
How could i make this field only getting or display time with minutes?
Regards,
Karthi -
PTP camera - how to retain date/time stamp on photos [Gnome]
I have a USB PTP Camera that comes up in Nautilus under "gphoto2://[usb:001,007]/DCIM" I can copy/paste the photos off the thing to ~ but the date/time stamp gets changed to the present. How can I copy them over retaining the original date/time stamp?
By using the exif info I suppose.
http://linux.die.net/man/1/exiv2
-t
Set the file timestamp according to the Exif create timestamp in addition to renaming the file (overrides -k). This option is only used with the 'rename' action.
Last edited by karol (2010-07-22 22:13:26) -
How to store date/time information in a channel?
Hello,
I'm logging manufacturing test data into TDM files from LabWindows CVI 8.0.
So far, I've organzied the data like:
one Channelgroup for each Measurement type
one Channel per DUT into eah Channelgroup
There is a new tdm file creatd each day.
For a later analysis, we want to able to easily search for all DUT's manufactured between Date/Time1 and Date/Time2 within all files.
Question:
What would be the most recommeded way to store the manufacturing date/time of the DUT with the channel?
I have assigned the channel name with a date/time string, - but it is kind of awkward to search for a range with string types.
Is there a better way?
Thanks,
GregHi Greg,
Unfortunately, DIAdem Datafinder doesn't really support much in the way
of Date/Time search outside of the File Level Creation Date property.
In order to make the creation time of the Channels searchable you would
want to create some custom properties (or use the existing RegisterInt1
- RegisterInt6) to define your own searchable properties.
For example, since you know that you have one TDM file per day, you can
start your search by find the desired day on the File Property Level,
searching the "Creation Date" property. When you store your TDM
properties, you could store the hour creation as an integer (and
thereby searchable) in one of the RegisterInt properties of the
channel, or create your own custom "Hour" channel. You could similarly
save the minute and second property in their own custom properties.
Then, since you're saving integer values, you can then search those
values to determine the time that the channel was created.
I realize that this isn't ideal or elegant, as in total it requires 4
searches (date, hour, minute, second). But that is the most
straightforward way of searching your channels by creation date/time.
Hope this helps Greg, let me know if you have any other questions.
Dan Weiland -
Append Date & Time to File name
i have a folder name LOG . the folder contains a number of files. i want to append the current date and time to each
filename
LOG
PCone.csv
PCTwo.csv
PCThree.csv
i want to add date time to each file in the folder
output should be
PCONE 2014-12-16 12:01:44.csv
PCTwo.csv 2014-12-16 12:01:44.csv
PCThree.csv 2014-12-16 12:01:44.csvI know this is probably to late for you but in case others have the same question use the following method:
First example is for Universal Time (London)
Get-Service | Export-Csv c:\temp\Services-$(((get-date).ToUniversalTime()).ToString("yyyyMMddThhmmssZ")).csv
This example is for local time formatted the way I would want it:
"c:\temp\Services-$((get-date).ToString('yyyy-MM-dd hh-mm-ss tt')).csv"
Windows does not allow for a colon ":" to be used in a file name so you will need to choose a different separator. Frankly I'm fine with a hyphen "-" but that might just be me.
The following artical will give you all the formatting options.
https://technet.microsoft.com/en-us/library/ee692801.aspx -
How to write Date/Time property of tdms file
On the root page of the tdms file, there is a built-in property called "Date/Time" in the first row.
I would like to use it to save the time stamp when the tdms file is created. But in the help file,
I only find the following property constant. So, how can I write to the "Date/Time" property field?
Property
Constant
Data Type
Name
TDMS_FILE_NAME
String (char *)
Description
TDMS_FILE_DESCRIPTION
String (char *)
Title
TDMS_FILE_TITLE
String (char *)
Author
TDMS_FILE_AUTHOR
String (char *)
Thanks for any idea or suggestion.
Solved!
Go to Solution.Not sure if this is exactly what you want, but have you tried this?
CVIAbsoluteTime CVItime, *t = NULL;
TDMSFileHandle deH = 0;
// Create TDMS file and set some properties
errChk (TDMS_CreateFileEx (file, TDMS_Streaming2_0, TDMS_ByteOrderNative, 0,"example.tdm", "someText", "title", "author", &deH));
GetCurrentCVIAbsoluteTime (&CVItime);
errChk (TDMS_SetFileProperty (deH, "Date/Time", TDMS_Timestamp, CVItime));
// Save and close file
errChk (TDMS_SaveFile (deH));
TDMS_CloseFile (deH);
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Maybe you are looking for
-
MBP can no longer access a wired network
Just like week I could no longer access an academic wired campus network. The IT department says they can see my MBP on the network, but the MPB no longer can access the network. I can take the same MBP to another place of employment and gain acces
-
Ibook G3 upgrade to Tiger (Airport no longer works)
I have had my Ibook G3(384 MB ram, 20 GB HD, 600mhz, dual USB 2.0, 1 firewire, OS X 10.2, Airport)for over 2-1/2 years without any problem. I also have been using Netgear wireless router with 2 laptop pcs and 2 Apple computers (Imac G5 2Ghz, 2Gb ram,
-
Is there anyway to view an XML document with both tags and data visible in Safari? Like what you get when you do a "View Source" on a parsed document. Mozilla based browsers just show the XML without parsing it ... that's kind of what we are looking
-
Can we have a field in a table as Noneditable
i want to mark a field in a table ( both in stndard and custom table) as Non editable . how can i do tht ..
-
Error after install Collaboration: Portlet Cannot be displayed
Hi. After installing Fundation 6.0 SP1 and Collaboration 4.1 SP1 , I create a page and add some portlets but in ALL the portlets occurs the same error: "<portlet name> cannot be displayed due to an unknown error." Can anybody help ? thanks in advance