"Exp" utility script with current date dmp file format
Dear All,
I want to creat a window batch file script "oralce database 11gr2" in such a way that dmp file automatically created in c:\test folder with oralce _sid and current date.
C:> exp file=c:\test\ora-sid_date_format.dmp owner=test
Any help would be appreciated.
Regards,
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\comp>exp system/sm file=c:\%ORACLE_SID%_%date%_forma
t.dmp owner=test
^C
C:\Documents and Settings\comp>exp system/sm@test file=c:\%ORACLE_SID%_%date%_
format.dmp owner=test
Export: Release 10.2.0.2.0 - Production on Wed May 19 12:41:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user TEST
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user TEST
About to export TEST's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export TEST's tables via Conventional Path ...
. . exporting table AGENTSINFO 7 rows exported
. . exporting table ARCHIVE_SETT 3 rows exported
. . exporting table ARC_CPAYMENT 0 rows exported
. . exporting table ARC_CREDIT 2596 rows exported
. . exporting table ARC_DEBET 4 rows exported
. . exporting table ARC_DPAYMENT 4 rows exported
. . exporting table BRANCHESCASH 2 rows exported
. . exporting table CANCELCOUPON_OPRCODES 17 rows exported
. . exporting table CHECK_PAYMENTREQUEST 36 rows exported
. . exporting table CORPCODES 0 rows exported
. . exporting table CREDIT_MESS 0 rows exported
. . exporting table CREDIT_PAYMENT 0 rows exported
. . exporting table CURRENCIES 1 rows exported
. . exporting table DEBET_MESS 0 rows exported
. . exporting table DEBET_PAYMENT 0 rows exported
. . exporting table DIRECTORY 1 rows exported
. . exporting table MAILSETTINGS 2 rows exported
. . exporting table PAYCOUPON_OPRCODES 22 rows exported
. . exporting table PAYMENT_OPRCODES 21 rows exported
. . exporting table PAYMENT_REQUEST 53 rows exported
. . exporting table PAYMENT_RESPONSE 53 rows exported
. . exporting table REP_CANCELCOUPON 0 rows exported
. . exporting table REP_PAYCOUPON 70 rows exported
. . exporting table REP_VERIFYCOUPON 121 rows exported
. . exporting table REQ_CANCELCOUPON 0 rows exported
. . exporting table REQ_PAYCOUPON 108 rows exported
. . exporting table REQ_VERIFYCOUPON 124 rows exported
. . exporting table VERIFYCOUPON_OPRCODES 18 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
C:\Documents and Settings\chinar>date
The current date is: 19.05.2010
Enter the new date: (dd-mm-yy)
C:\Documents and Settings\comp>SET ORACLE_SID
ORACLE_SID=SB
C:\Documents and Settings\comp>
and result is SB_19.05.2010_format.dmp
Similar Messages
-
How to pick the file which is created with current date
Hello All,
I have an FTP server where files are created with current date as PO_CONFIRM_20100701.txt.
Need to pick the file based on current date. How to pick the above file format using file sender adapter. i.e what file pattern can we use so that file will be picked only on today's date
Regards,
Sreenivas.Hi Srinivas,
It depends upon the OS you are using. If unix you can see an example script here:
http://www.computing.net/answers/dos/batch-file-to-rename-files-by-date/5517.html
If windows an example here:
http://en.kioskea.net/forum/affich-87157-finding-and-using-file-date-in-batch-command
You may need to change slightly to fit your exact requirements. But this would make you to start. Else you can also google to get the script. Here is one link:
http://www.google.com/#hl=en&source=hp&q=scripttorenamefileshavingtodaysdate&aq=f&aqi=m1&aql=&oq=&gs_rfai=CRE9SwTMsTNjiDpzGhgTm65iFCwAAAKoEBU_QC2i-&fp=e0fa4b5da4f245a4
Regards,
---Satish -
How to initiate java.util.Date with current date
Hi
Thank you for readingmy post.
how i can initiate a Date object with current Date ?
Thank youPlease refer to the API for this type of information
Date()
Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond. -
Stock Aging report with current date
Dear Experts
Can we able to take stock aging report with current date?
Thanks&Regards,
Vinoth Raj KYou're posting in the Portuguese B1 space.
You might want to post in the English one: SAP Business One Application -
Compare Hiredate with Current date in PCR
As per the requirement I have, a certain type of accrual needs to occur on the employee's anniversary date, this accrual should only happen on the first anniversary. How can I compare hire date with current date ignoring the year, and then ignoring the same logic from second year on-wards.
Can someone please help me with the possible method of implementing this requirement in a time PCR.In my humble opinion, I think that you should achieve that by means of an ABAP program, it should be scheduled to run every day and compare the hiring date with the current date of every employee, then create a batch input to Infotype 2013... it would be easier to track and monitor, since you would have all logs in SM35
Best regards,
Federico. -
Script Logic VS Data Transformation File
Hi all,
I'm new to SAP BPC. I have knowledge of SAP BW.
I can see conversion file, which we are referring in data transformation file. which we can use for mapping and conversion of external data into internal data.
How data transformation file different form script logic? Are we going to refer script logis in Data transformation file for each required dimension?
Can any of you give me clarity on how to place script logic and data transformation file in BPC data management flow.
I will really applicate all your help!!!
Thanks
Ben.Nilanjan,
I have a another quick question...
suppose my bpc application has 5 dimensions. Out of the 5 dimensions, 4 dimensions data i'm getting directly from SAP BW. assume 1 dim, i need to extract by doing look up at different table which also reside in BW.
how to populate data for DIM 5.
I got your point that data transformation file purely for field mapping. suppose DIM5 if i want to populate from script logic, wht do i need map in Transformation file. I hope you got my point.
My question if how to populate a DIM in BPC using lookup approach.
Thanks,
Ben. -
How to fill a prompt in webi with current date?
A webi report is being generated on BEx Query.
IN BEx query variables are defined for some date fields to prefill them with current date.
Foe ex. there is license start date. For this field variable is defined so that in variable screen License start date is automatically filled with greater than or equal to current date(which is system date). WHich is a mandatory variable.
On BO side, a webi report is being developed on a Universe (based on this BEx query).
When the webi report is run, the license start date(mandatory variable in BEx) is automatically prompted, but date is not getting prefiiled with current date.
How to prefill this prompt with current date?
the prompt should be like
LIcense start date >= <current date>Hi,
Yes, it isn't possible to reference anything like 'Current Date' in the universe (like you would with a SQL data source).
The solution I have seen recently goes like this, I don't know the exact details (so I might have some terminology wrong), but someone with ABAP skills should get what I mean.
Assuming you want to filter on 0CALDAY.
In ABAP, create a customer EXIT that calculates the current date as a number (so today might be 40651). Do the same for 0CALDAY.
In the BEx create a formula variable that references each of those, then a Formula Key Figure (I forget the exact name of them) that's just the current day number minus the 0CALDAY number. This gives you the 'age' of that row of data.
Your Webi report can then have a built in filter (or prompt with a default value) of, say Age <= 30. The report can be scheduled and will always run with the last 30 day's data.
We actually did the customer exists to show the 'age' in months.
Sorry I can't explain it any better, but it's working great for us.
Hope that helps. -
How can I change the language with the .dat (.bak) file?
How can I change the language with the .dat (.bak) file? Is it legal?
How does it work?
Thanks for answeringhttps://discussions.apple.com/message/17364930#17364930
-
Create prompt with date-filter and initialize it with current date
Oracle BI 11 g
Hi!
I need to create dashboard prompt with date-filter and initialize it with current date. How can I do that?
I tried to create repository initialization block and add variable. But I don't know what should I write to DataSource? I tried to use functions Now(), Current_Date, sysdate (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed "Test..." button I got errors - something like "Now() is unknown function" or "Incorrect syntax near key word Current_Date".
After that I tied to use Presentation Variable in Prompt, but also without success ((
Please, help me.I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.
-
Show Current Date in Year Format (and now - 1, etc.)
Our form has some column headers that need to change each year, the headings are current year (2010) + previous 3 years. Am trying to programatically add the titles to eliminate modifying the form just to change the year, but not finding how to accomplish, and was checking out some date samples found, but no success yet. My question is 2 part - how/where do I put code, I don't need the user to enter anything, just want a column header. This example below is where I copied the idea from a sample and tried to adjust, it's on the calculate event of a date/time field, and I get an error message that says 'the display pattern "date-{MM/DD]" is incompatible with the object's data format. Define a compatible Display pattern. This display pattern error is the 2nd part of the question. How do I display only the 4 digit year?
year1.rawValue
= num2date(date(), "YYYY")
How do I accomplish this - am newbie on this! Thank you very much!
1) I typically use a hidden field to capture the current date on the layout:ready event.
2) If year1 is a date object your script is valid but you are probably missing the display pattern date{YYYY} on year1.
If year1 is a text field you could could capture current year in a hidden field as
// form1.page1.currentYear::ready:layout - (FormCalc, client)
$.rawValue = Num2Date(Date(), "YYYY")
where currentYear has the display pattern date{YYYY} and add
this.rawValue = form1.page1.currentYear.rawValue;
to the calculate event of year1.
Steve
1) I typically use a hidden field to capture the current date on the layout:ready event.
2) If year1 is a date object your script is valid but you are probably missing the display pattern date{YYYY} on year1.
If year1 is a text field you could could capture current year in a hidden field as
// form1.page1.currentYear::ready:layout - (FormCalc, client)
$.rawValue = Num2Date(Date(), "YYYY")
where currentYear has the display pattern date{YYYY} and add
this.rawValue = form1.page1.currentYear.rawValue;
to the calculate event of year1.
Steve
Current Date in yymmdd format which also a Date
Hi,
I need current date in yymmdd format which also a Date not a String.
Please help,.
Thanks in advance.
Murali
MuraliIBM wrote:
When i trying to load my date in to some fucntion whcih is accepting date only, then am getting below error. So i need a date representation instead String.
Cannot convert a value of '100607' from type java.lang.String to DATE at field STARTDATE
Regards
MuraliThen read the API docs for SimpleDateFormat (which was suggested in the first reply). When you have the String "100607", then you have a String, not a Date, you use SimpleDateFormat to create a Date using that String as input. Then, you use PreparedStatement and its setDate method, using that Date (or, rather, a java.sqlDate created using getTime from that java.util.Date created by SimpleDateFormat) to execute your sql.
A script for adding the current date to file name?
I am working in Indesign CS3. I frequently save file as PDFs into a designated folder. I was hoping for help in writing a script that would apply the current date to the end of the file name, when saved into this folder. Some days, I save the same file several times, into this folder. I was also hoping there was a way to add a date and version, for example "filename_2.25.11(1).pdf" Is this possible? Can someone help me?
ok, I ended up with this test routine:
on adding folder items to this_folder after receiving added_items
tell application "Finder"
repeat with this in added_items
my checkifopened(this)
display dialog (name of this) as text
end repeat
end tell
end adding folder items to
on checkifopened(this)
set a to POSIX path of (this as alias)
repeat until 1 = 0
## don't like that one because it relies on an error msg ... so
(** try
set b to do shell script "lsof | grep " & quoted form of a
on error
exit repeat
end try**)
##so I use this one
set b to do shell script "lsof"
if b does not contain a then
exit repeat
else
say "still opened"
end if
end repeat
end checkifopened
this is a folder action that tests if the added file is still opened by an application... there is no delay between each test-loop since lsof takes some time to execute...
And after adding a timeout (just in case) to this function the final script looks like this:
on adding folder items to thefolder after receiving added_items
tell application "Finder"
set folderkind to kind of thefolder
set myfiles to every item of thefolder whose name does not contain "#" and kind is not folderkind
repeat with myfile in myfiles
set myfile_datestring to my get_datestring(creation date of myfile)
set myfilename to name of myfile
if (count of every character of myfilename) > 4 and (character -4 of myfilename) as text is "." then
set filestatus to my checkifopened(myfile, 60)
if filestatus = false then
display dialog "timeout on folder action"
else
set tmp to ((characters 1 through -5 of myfilename) & "#" & myfile_datestring & (characters -4 through -1 of myfilename)) as text
set myfilename to my checknamewith_pdfsuffix(tmp, thefolder, false)
set name of myfile to myfilename
end if
end if
end repeat
end tell
end adding folder items to
on get_datestring(mydate)
return year of mydate & "-" & (characters -2 through -1 of (("0" & (month of mydate as integer)) as text)) & "-" & (characters -2 through -1 of (("0" & (day of mydate as integer)) as text)) as text
end get_datestring
on checknamewith_pdfsuffix(n, D, looped)
--check if filename exists in D
-- so if "A File.pdf" exists it names it "A File 1.pdf","A File 2.pdf",...
#n = string of the filename
#D = file reference to the directory to check
#looped = boolean used for recursive loop...
tell application "Finder"
set thefiles to name of every item of (D as alias)
end tell
if thefiles contains n then
if looped = false then
set n to ((characters 1 through -5 of n) & "(1)" & (characters -4 through -1 of n)) as text
my checknamewith_pdfsuffix(n, D, true)
else
set tmp to (last word of ((characters 1 through -5 of n) as text) as integer)
set tmpcount to (count of characters of (tmp as text)) + 5
set tmp to tmp + 1
set n to ((characters 1 through (-1 * tmpcount) of n) & "(" & tmp & ")" & (characters -4 through -1 of n)) as text
my checknamewith_pdfsuffix(n, D, true)
end if
else
return n
end if
end checknamewith_pdfsuffix
on checkifopened(this, mytimeout)
## this file reference
## timeout in seconds
set a to POSIX path of (this as alias)
set startdate to current date
repeat until 1 = 0
## don't like that one because it relies on an error msg ... so
(** try
set b to do shell script "lsof | grep " & quoted form of a
on error
exit repeat
end try**)
##so I use this one
set b to do shell script "lsof"
if b does not contain a then
return true
else if ((current date) - startdate) > mytimeout then
return false
else
##say "still opened"
end if
end repeat
end checkifopened
to use this save this script in /Library/Scripts/Folder Action Scripts
and add this as a folder action to your folder...
The script processes all files inside that folder each time a new files is added...
How to compare user entered date with current date
Hi all
my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message.
I am worried about how to get current date in code. Is there any code to get current date. please reply me with code or mail me at [email protected]
Thanx
keerthi
Keerthi,
Use the method <b>getDifference()</b> of the DateHelper.java available here.<a href="http://www.koders.com/java/fid14A61FEB1B45A64E42E1DCAD7070B46AE46340BA.aspx">DateHelper</a>
1. Create a new folder, say Util under your src folder. (com.xyz.util)
2. Put this DateHelper.java file in that folder,(com.xyz.util) .
3. Now, write an import statement for this java class in the required view.
4. Use the getDifference() method of this class to the difference in days between two days.
Or
Simply use this code.
// Get msec from each, and subtract.
long diff = currDate.getTime() - selectedDate.getTime();
int noOfDays = diff / (1000 * 60 * 60 * 24);
where currDate is today's Date and selectedDate is the Date selected by the User.
Bala
Problem with current date field...
I want to display the current date and time, but when I change the data format in the binding tab to "Date and Time" and assign a pattern that includes date and time, all I get is the current date, NOT the time. TIA!
I have tried applying these scripts in the initialize event to all manner of objects, text field objects, date/time objects, numeric objects, current date objects, and it shows nothing. If I could just edit the date/time format of the current date object when it is set to "Runtime Property-Current Date/Time" I MIGHT be able to use it. I really appreciate your help thus far. Would it be possible for you to share a pdf file that you've made where this works so I might disect it? No matter what pattern I specify in the "Field" palette, it shows it's own formatting.
UPDATE: I did go back after trying it a few times to change the value after Page1 to match the name of my field.
UPDATE 2: Here is a link to what I've done. Take a look and let me know what I'm doing wrong, or change it and share it back. Thanks so much for your help!!!
https://www.dropbox.com/s/1so2hcao372k37z/Script%20Examples.pdf
Vipin Bhargava wrote:
I have found 3 more variants. You can write below code on initialize event. It will automatically display the current data & time during the preview
1. xfa.form.form1.Page1.TextField1.rawValue
= util.printd("dd.mm.yyyy HH:MM", new Date());
2. xfa.form.form1.Page1.TextField2.rawValue = util.printd("dddd d. mmmm yyyy HH:MM ", new Date());
3. xfa.form.form1.Page1.TextField3.rawValue = util.printd("date{EEEE, D. MMMM YYYY} time(de){HH:MM:SS Z}", new Date(), true);
Hope this helps,
Vipin
Problem with importing a dmp file
Hello,
I am trying to import a dmp file to make an excercise.
I've tried and read manuals all day now, but it seems I still do something wrong
First, In the Enterprise Manager console, I create a new user (CREATE LIKE scott):
<img src="http://users.skynet.be/wouterjans/orcl/oracle03.JPG">
Then I create a new Table: dummy with 2 fields: A en B (varchar2 and size10)
<img src="http://users.skynet.be/wouterjans/orcl/oracle04.JPG">
After that, grant dba to the new user
grant dba to DEMO;Then I Run CMD and go to the c:\oracle\ora92\BIN folder
<img src="http://users.skynet.be/wouterjans/orcl/oracle01.JPG">
I import the dmp file (STAG3536.dmp)
and it says it succeed
<img src="http://users.skynet.be/wouterjans/orcl/oracle02.JPG">
So normally its ok
Then I go to my Form builder and I open a new Form
When I try to run the data wizard now. I only see the "dummy" record I created before but I dont see the database from my imported file.
<img src="http://users.skynet.be/wouterjans/orcl/oracle05.JPG">
Could anyone help me pls ??
Thanks in advance,
Wouter
Message was edited by:
wouter81
dont go in bin directory you can run imp cmd from any where
if you want to import in scott scheme
you do this
connect system/password@dbname
list of contents = n
import grant = y
import table= y
import entire export file = n
user = scott
check to this i hope you will success.
Rgds
Maybe you are looking for
-
How do I put ios6 into my iPad one?
How do I put ios6 into my iPad 1? I,m not very good at this. Thanks, don
-
How to use Lightroom in general?
Hi! I'm new to Lr. I've been using RawShooter for years. I'm trying to use Lr 3, but I keep getting frustrated: from RawShooter, I'm used to the following workflow: 1.) Point to the source directory 2.) Develop images 3.) Pick up developed images fro
-
Hi experts, Any one have DPO column reconcillation query for standard BI Apps, please post the query. Thnk you.
-
HT201328 Having issues with orange getting my unlocking code can Apple do something about it?
Orange say they have sent it apple and you are holding back when I know it's them Please help as constant lies are coming from them I requested and paid for this 6th jan and been told for the past 5 days I will have an email from Apple in 24 hours an
-
Dear Sir, I have maintain for some material Basic unit of measure as NOS in the material master and the issue of unit as KG.Now I want to change the basic unit of measure as M(Meter) for same item.Is this possible.If this how can I do this and wh