Restore %DATE% Variable

So in my misguided attempts to manipulate the %DATE% system variable I seem to have changed it to static text.
I would like to change it back to its previous function--which was effectively just displaying the result of the "date /t" command--and away from what it currently is. I'm certain there's a way to do this and I simply haven't had any luck finding
any reference information to this effect. It seems like an obscure issue since most people aren't as silly as me to go around playing with the SET command.
Anyone here have a suggestion?

Interestingly enough I had to reset the entire machine in order to get it to snap back, but yes. You're entirely right. I discovered that yesterday a couple hours after my last reply. It was a moment of "This is way easier than you think it is" that took
me to the ages-old answer of turning it off and back on again.
I still appreciate your help, Forest. Had I not been able to get out of my own way your telling me would have been the only thing that made me realize that the problem was already resolved.
Thank you very much!

Similar Messages

  • Can not restore data files from backup set

    I am trying to restore Server A's backup data to Server B (they are all oracle11g) using rman. The restore commands is below:
    rman target /;
    shutdown immediate;
    startup nomount;
    restore controlfile from '/usr/local/oracle/backup/20100418/ctl_xxx'
    alter database mount;
    catalog start with '/usr/local/oracle/backup/20100418/';
    restore database;
    recover database;
    alter database open resetlogs;
    For the first time, it works. But when i tried to restore another backup data by the same way:
    rman target /;
    shutdown immediate;
    startup nomount;
    restore controlfile from '/usr/local/oracle/backup/20100425/ctl_xxx'
    alter database mount;
    catalog start with '/usr/local/oracle/backup/20100425/';
    restore database;
    recover database;
    alter database open resetlogs;
    The second time, i found that rman restore the old backup data, which means that it restore the data file under '/usr/local/oracle/backup/20100418/' instead of '/usr/local/oracle/backup/20100425/'.
    So I run 'list backup of database summary' to see the backup set lists in control file.
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    910 B 0 A DISK 18-APR-10 1 1 NO TAG20100418T020007
    945 B 0 A DISK 25-APR-10 1 1 NO TAG20100425T020007
    But when i run ‘restore database preview summary’ to see the backup set list to restore
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    910 B 0 A DISK 18-APR-10 1 1 NO TAG20100418T020007
    there's no backup set 945 at all. that's why i could not restore data file under '/usr/local/oracle/backup/20100425/' at the second time.
    So, why two backup list is different ? how can i restore datafile under '/usr/local/oracle/backup/20100425/' ?
    My backup script is below:
    run{
    allocate channel c1 type disk;
    backup incremental level 0 as backupset format '$DIR/`date +%Y%m%d`/data_%d_c0_%T_%u' database;
    sql 'alter system archive log current';
    backup archivelog from time 'sysdate-14' format '$DIR/`date +%Y%m%d`/log_%d_%T_%u';
    backup current controlfile format '$DIR/`date +%Y%m%d`/ctl_%d_%T_%I_%u';
    release channel c1;
    Thanks
    Edited by: user13055376 on 2010-4-29 上午1:20

    yeah, I am sure Tag: TAG20100425T020007 exists
    RMAN> list backupset 945;
    List of Backup Sets
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    945 Incr 0 6.40G DISK 00:05:46 25-APR-10
    BP Key: 945 Status: AVAILABLE Compressed: NO Tag: TAG20100425T020007
    Piece Name: /usr/local/oracle/backup/20100425/data_QIANGL_c0_20100425_thlbvjt7
    List of Datafiles in backup set 945
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/system01.dbf
    2 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/sysaux01.dbf
    3 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/undotbs01.dbf
    4 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/users01.dbf
    5 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/dict01.dbf
    6 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/support01.dbf
    7 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/supportindex01.dbf
    8 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/log01.dbf
    9 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/logindex01.dbf
    10 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/lobindex01.dbf
    11 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/data01.dbf
    12 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/indexes01.dbf
    13 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/image001.dbf
    14 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/tongbuimage001.dbf
    15 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/imagebackup001.dbf
    My purpose is to use the newest backupset of Server A to update Server B. So if Server A crush, Server B will be useful. Is there any other way to do that ?
    retention policy :'configure retention policy to redundancy 4'
    And Server A do LV0 backup every 7 day, and do LV1 backup ervery other day.
    Edited by: user13055376 on 2010-4-29 上午3:45

  • My iphone is stuck,  it says connect to itunes, and when I aconnect it to my pc, my pc says restore data but everything will be erased and I don't wanna lose everything. please help me

    my iphone is stuck,  it says connect to itunes, and when I aconnect it to my pc, my pc says restore data but everything will be erased and I don't wanna lose everything. please help me

    If you have a graphic of iTunes and a cable displayed on your iDevice then it is in Recovery mode.
    Check this to try an "exit"
    http://osxdaily.com/2011/01/08/iphone-recovery-mode/

  • Date variable- delivery report

    Hi all,
    In my report, there are two structures designed :- Pending deliveries and Reservation deliveries.
    For Pending deliveries:
    I have used Confirmation Del Date(ZCNFDT) and Open Qty as the restrictions. The Date variable is built upon Confirmation Delivery Date, In selection screen if i input a date as Dec-1, i get the pending qty for week1, week2, week3.
    For Reservation deliveries:
    I am using Requirement Date(ZBDTER) and the Requirement Qty as restrictions.
    My doubt is if i create a variable as ZVAR_BDTER on Requirement date, i will be having another date input in the selection screen, asking for the desired date to be entered. If i enter a date for this date selection then the query will display wrong data.
    According to the Specs, the input date variable must be common for both Pending and Reservations, such that, if i enter Dec 1, it must give the data for both Planning and Reservations.
    I am planning to use 0DATE variable for both of the above structures. Requesting you to suggest on this
    Thanks

    y cant u use 0CALDAY and then create variable for it
    use same 0CALDAY in query design in rows below ur characteristic COMPANY CODE

  • How do i change the $Date variable format on an Ironport ESA to be DD/MM/YYYY

    I have an Ironport ESA running ASyncOS 7.6 and i use the $Date variable in notification emails.  It is currently formatted in the US way of MM/DD/YYYY but we need it to be formatted as DD/MM/YYYY.  Is there any way to do this?  The time zone is correct but i can't find anywhere to modify system variables.

    There doesn't appear to be any way to change the formatting of that variable.  Perhaps you can make use of $Timestamp or $GMTimeStamp instead?

  • I have backed up my old phone to itunes, however, when I try to restore data to new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I have backed up my old phone to itunes, however, when I try to restore data to my new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I'm having this EXACT same problem with my iPhone 4, and I have the same computer stats (I have a Samsung Series 7)

  • How can I restore data from my iCloud account on a new iPhone 5c with a previous SW version that my old (stolen) iPhone 5?

    Hello everybody,
    I need help to restore data from my iCloud account on an unused iPhone 5c because my iPhone 5 with a newer iOS update was stolen. When I try I get a message that I cannot retore my data because the iOS on my iPhone 5c is an older version than on the stolen iPhone 5.
    There must be a way to do this. I hope to hear from you
    thanks!

    Welcome to Apple Support Communities
    You cannot. However, you can solve this problem by setting the iPhone as a new device and upgrading iOS in Settings -> Software Update.
    After upgrading iOS, open Settings -> General -> Reset -> Erase All Content and Settings. Finally, Setup Assistant will let you restore the backup.

  • How do I restore data from icloud to iphone

    how can i restore data from icloud to iphone

    You mean an iCloud backup?  If so, first make sure your phone is running the same or higher version of iOS as the device that backed up was running.  If it isn't, you'll have to update it first in order to restore the backup.
    Then go to Settings>General>Reset, tap Erase All Content and Settings, go the setup screens on the phone and when given the option, choose Restore from iCloud Backup and follow the prompts.  Be sure your phone is connected to wifi and your charger while it is restoring the backup.

  • How can I restore data from iCloud

    My iPad locked up last night and I had to restore to factory settings to make it operable.  During the process it asked me if I wanted to restore my data and it told me that the latest and only backup was from a few minutes before that time which was AFTER all my stuff got wiped out.  I was able to resync some apps and all my music from iTunes, but I lost a ton of pictures and other files that I thought were SUPPOSED to be safe on iCloud.
    So I start reading about restoring data from iCloud and apparently Apple only does this on a NEW device.  What a load of crap!
    Does anyone have any idea how I can get my data from the stupid iCloud to my stupid iPad?

    The "Apple data" such as contacts, calendars, notes, etc. are not backed up to an iCloud backup, since they reside in the special databases on iCloud.  If you delete some data from a device (e.g. one contact), it is deleted from that device, from iCloud's database and thus from all other devices connected to that iCloud account.
    Hence performing a restore from an iCloud backup will not help.
    However, if that data was ever on a computer (assuming the computer also synced data from iCloud) and if you consistently perform backups using something like Time Machine on a mac or any number of backup programs on Windows, then you should be able to restore the data from that backup.  For example, on a mac, invoke the contacts app then choose Enter Time Machine from the Time Machine icon on the main toolbar.  That will allow you to go back in time and choose an older backup to restore.
    If you have an iTunes backup on the computer, I'm not really sure that also includes the Apple data stored on iCloud.  It should have the local data.  For example, Contacts can be under "iCloud" or "On My Mac" (or whatever computer you use).  An iTunes restore should restore the data on your computer.
    The whole idea regarding an iCloud backup is that if your device ever fails and must be replaced or reset, the backup will restore all the data as it was at the time of the last backup.   The restore will return all the device's settings such as iCloud login, on/off states of data to connect to (like contacts).  Once that's done, the device will connect to iCloud and download the current data.
    IMPORTANT...
    Photos should be regularly synced to a computer (like you store photos from a digital camera) using either USB via iTunes (on a mac use iPhoto or Aperture to move them to an album) or using photo stream.  If you have been doing that, then you can sync those photos back to your device.
    If you haven't been saving photos except relying on iCloud to store them in a backup, then that is risky, as many users have discovered.  I'm afraid I have no advice in this case - there is no "cure".

  • Create current date variable at universe level

       Hi Everyone
    I have created report regarding to daily car sales. However there is records registered for further months, 2015 December for instance.
    Actually they are error records, but I can't delete them since data transfer is realizing automatically and updates hourly.
    That is why I have decided to use prompt for report: date is less or equal to current date. But couldn't find way how to create current date variable.
    Please help with this.
    Regards...

    Yes.
    Create an object called Today as:
    cast(convert(char(10),getdate(),23) as datetime)
    Note that it will not parse because it does not reference a table. Don't associate it with a table just to get it parsing as you will then have that table in every query that uses the Today object, whether you want it or not!
    It will work fine when you use it in your query. In your example, create a condition of Ship Date Less Than Or Equal To Today where Ship Date and Today are the names of the two objects. This will then translate into SQL as:
    WHERE orders.ship_date <= cast(convert(char(10),getdate(),23) as datetime)
    This will parse because the table orders is in the statement.
    I hope that is clear.
    Regards,
    Mark

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • Adding 3 weeks to a Date variable

    Hi,
    In order to levy a fine,it must be calculated,
    it therefore makes sense for the system to check for overdue books.
    in order to use
    if Date.after(dob)=true{
    FINE$
    I must add 3 weeks to the date variable "dob" (date_of_borrow,stored on a database in dd-mm-yy format)
    How do i do it?
    The only other alternatives i have are Calander or milisec-day conversions.I'm unsure on using GregorianCalander & people have advised against milisec.
    (you can see why, in the forum post "Urgent:Html & Servlet").
    Anyway i hope this will work.
    Suggestions anyone?Thanks.
    Aesh83

    is it as easy as saying .getWeek()?Must i set the system date on it or is it anyway default?-
    Here is a something i cooked up ,in a hurry, (HELP!!: How do u use sdk with Kawa editor) ,i'm working in the dark hoping i can find the light..
    Ah here it is-
    int dob2;
    //it suposed to trigger whenever user opens borrow.htm//
    date.format(dd-mm-yy);
    dob.format(dd-mm-yy);
    rs=stmt.excecuteQuery("Select dob from LENT where UserN==User_N");
    LOOP
    getdata into a resultVector
    dob.elementAt(i);
    if Date.after(dob)=true{
    FINE$
    LOOP
    What do u think?Needs improvemnts.
    How do you get System date onto a Date variable?
    Will date.after(Date when) method work when Date variables are in milisecs?
    Thanks & Bye!
    aesh83

  • Assigning date value to a date variable

    Hi,
    How can I hard code a date (09/22/2006) in a date variable?  Help me out.
    Thank you.
    Regards,
    Dhana

    Hi,
    it depends if your input is already parsed and how you want to set the time (hours, etc.).
    Two sample ways :
            String s = "09/22/2006";
            SimpleDateFormat sd = new SimpleDateFormat("MM/dd/yyyy");
            Date date1 = sd.parse(s);
            Calendar c = Calendar.getInstance();
            c.set(2006, 8, 22); //month is zero based
            Date date2 = c.getTime();
    Btw for basic java programming I would suggest searching for some java tutorials on the net and reading on your own instead of posting in forums. At least for me that is better way to learn.
    HTH
    Peter

  • Date variable in BEx

    Hello everyone.
    In my report I have a characteristic type date.
    I made two date variables. In general properties I set them "optional".
    I restricted characteristic by these variables (from - to).
    But on the selection screen one of these variables is obligatory.
    What's wrong?

    I have activated two variables from business content.
    0P_SDO - Start Date (Optional)
    0P_EDO - End Date (Optional)
    I have restricted (Value Ranges - Between) my characteristic (0DOC_DATE) by these variables.
    Result is the same
    On the selection screen I have to fill End Date - mandatory.

  • Date variable in a query

    Hi all,
    Currently I'm working on a query and I'd like to put in a date variable. It has to be a monthly report and I'm building the query for it based on the attribute "TaxDate" (with format DD-MM-YY) from the table "ORDR".
    For the query I'd like to build in a variable where the user can put in the month and year, for instance 01-04. I know how to put in a variable, but how can i solve this problem?
    I thank you in advance!
    Edited by: Chief on Mar 12, 2008 1:23 PM

    Chief,
    The parameters in a SQL Query accepting a date works the same way as you would enter a date on DocDate or DocDueDate field on the form.
    But, you will need to filter the input and take only the Month.
    So test this simple query
    SELECT T0.DocNum AS 'Document Number', T0.DocDate AS 'Posting Date' FROM  [dbo\].[ORDR\] T0  WHERE MONTH(T0.TaxDate) = MONTH('[%0\]')
    Suda

Maybe you are looking for