Error with SetLocale and LSDateFormat

Why does the following code below throw an invalid date error
in the final line.
If I change the first to setLocale("ENGLISH (CANADIAN)") it
works fine
Also ENGLISH(UK) works fine but ENGLISH(NEW ZEALAND) throws
an error
I'm on 7.0.2 Windows

BKBK wrote:
> Yes, you may. The function createDatetime() is
universal, that is,
> locale-independent.
it's a localized datetime STRING.
> The trouble with this logic is that you presume
"11/4/2007 12:32:00 PM", for
i'm not presuming anything, that's what it is & that's
the intent from the
original poster.
> may well fail in a locale. Whereas, the related
universal function,
i said *valid* localized datetime string. if its not valid
for a given locale,
the parsing process will tell you. if you start w/a localized
datetime string,
there's no way on earth you can use createDateTime(), etc. to
get a back a
datetime object for all possible locales. that's why, cf,
java, etc have
datetime string parsing methods.
> correct locale datetime is another matter. My point is
simply that there could
> be problems when a string is interpreted as a date-time
object.
it's a localized datetime string. you need to parse it. you
can't use
createDateTime, etc. methods on a localized datetime string.
period.
> I wasn't suggesting you should or could. Just sounding a
warning that passing
> "a localized datetime string" as a date-time object can
be problematic.
everybody should know you have to parse localized datetime
strings. sometimes
you have to use what's given to you.
> Nothing you've said refutes my suggestion,
your suggestion is irrelevant to this issue.
> which works in
every locale.
not if you start w/a localized datetime string.

Similar Messages

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • [SOLVED] errors with fdisk and cryptsetup; is my drive going bad?

    I'm having issues with re-formatting an external hard drive using dm-crypt. It was previously formatted with TrueCrypt/NTFS, which I used as a shared backup drive between Windows and Arch. At some point, it stopped being able to mount, which I attributed to allowing Windows to "fix" it after improper dismount (e.g. a hard kill).
    I decided to re-format with ext4 and only use it from Arch, but now I'm wondering if I may have a hardware issue with the drive. I've tried a lot more (like going through the full zero write after mounting the drive as a temporary dm-crypt device), but here's the condensed version to illustrate the problem.
    system info
    This is on a fresh boot. Just adding that as I've had issues with kernel modules after updating if a new kernel comes through. A fresh boot removes that potential issue.
    $ uname -a
    Linux arch_840 4.0.3-1-ARCH #1 SMP PREEMPT Wed May 13 15:38:47 CEST 2015 x86_64 GNU/Linux
    $ lsmod | grep dm_
    dm_crypt 28672 2
    dm_mod 98304 5 dm_crypt
    $ lsmod |grep xts
    xts 16384 2 serpent_sse2_x86_64,twofish_x86_64_3way
    gf128mul 16384 2 lrw,xts
    smartctl status
    Figured I should check the drive. There's a lot of old age and pre-fail warnings, but this post would seem to suggest I'm okay?
    # smartctl -A /dev/sdb
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-4.0.3-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 100 100 051 Pre-fail Always - 0
    2 Throughput_Performance 0x0026 252 252 000 Old_age Always - 0
    3 Spin_Up_Time 0x0023 090 089 025 Pre-fail Always - 3330
    4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 703
    5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 252 252 051 Old_age Always - 0
    8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
    9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 3707
    10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
    11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 734
    191 G-Sense_Error_Rate 0x0022 100 100 000 Old_age Always - 17
    192 Power-Off_Retract_Count 0x0022 252 252 000 Old_age Always - 0
    194 Temperature_Celsius 0x0002 064 053 000 Old_age Always - 24 (Min/Max 16/47)
    195 Hardware_ECC_Recovered 0x003a 100 100 000 Old_age Always - 0
    196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 252 252 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x002a 100 100 000 Old_age Always - 3
    223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    225 Load_Cycle_Count 0x0032 079 079 000 Old_age Always - 214068
    Disk info, delete existing partition, new MBR, create new partition
    # fdisk /dev/sdb
    Welcome to fdisk (util-linux 2.26.1).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    Command (m for help): p
    Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x76d37b6d
    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 63 976768064 976768002 465.8G 83 Linux
    Command (m for help): d
    Selected partition 1
    Partition 1 has been deleted.
    Command (m for help): o
    Created a new DOS disklabel with disk identifier 0x2cd60f13.
    Command (m for help): n
    Partition type
    p primary (0 primary, 0 extended, 4 free)
    e extended (container for logical partitions)
    Select (default p): p
    Partition number (1-4, default 1):
    First sector (2048-976773167, default 2048):
    Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167):
    Created a new partition 1 of type 'Linux' and of size 465.8 GiB.
    Command (m for help): w
    The partition table has been altered.
    Calling ioctl() to re-read partition table.
    Syncing disks.
    trying to format with cryptsetup
    I had a bunch of custom options, but other Arch posts suggested just trying the default, which is what I've done here. It fails with the same error as when I try to pass a cipher, key size, etc. ("Command failed with code 5: IO error while encrypting keyslot.").
    # truecrypt -v --debug luksFormat /dev/sdb1
    bash: truecrypt: command not found
    [root@arch_840 jwhendy]# cryptsetup -v --debug luksFormat /dev/sdb1
    # cryptsetup 1.6.6 processing "cryptsetup -v --debug luksFormat /dev/sdb1"
    # Running command luksFormat.
    # Locking memory.
    # Installing SIGINT/SIGTERM handler.
    # Unblocking interruption on signal.
    WARNING!
    ========
    This will overwrite data on /dev/sdb1 irrevocably.
    Are you sure? (Type uppercase yes): YES
    # Allocating crypt device /dev/sdb1 context.
    # Trying to open and read device /dev/sdb1.
    # Initialising device-mapper backend library.
    # Timeout set to 0 miliseconds.
    # Iteration time set to 1000 miliseconds.
    # Interactive passphrase entry requested.
    Enter passphrase:
    Verify passphrase:
    # Formatting device /dev/sdb1 as type LUKS1.
    # Crypto backend (gcrypt 1.6.3) initialized.
    # Detected kernel Linux 4.0.3-1-ARCH x86_64.
    # Topology: IO (512/0), offset = 0; Required alignment is 1048576 bytes.
    # Checking if cipher aes-xts-plain64 is usable.
    # Using userspace crypto wrapper to access keyslot area.
    # Generating LUKS header version 1 using hash sha1, aes, xts-plain64, MK 32 bytes
    # KDF pbkdf2, hash sha1: 996745 iterations per second.
    # Data offset 4096, UUID 181fed4d-42f2-4f0f-8b70-cb7ba459e25f, digest iterations 121625
    # Updating LUKS header of size 1024 on device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Reading LUKS header of size 1024 from device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Adding new keyslot -1 using volume key.
    # Calculating data for key slot 0
    # KDF pbkdf2, hash sha1: 1008246 iterations per second.
    # Key slot 0 use 492307 password iterations.
    # Using hash sha1 for AF in key slot 0, 4000 stripes
    # Updating key slot 0 [0x1000] area.
    # Using userspace crypto wrapper to access keyslot area.
    IO error while encrypting keyslot.
    # Releasing crypt device /dev/sdb1 context.
    # Releasing device-mapper backend.
    # Unlocking memory.
    Command failed with code 5: IO error while encrypting keyslot.
    Things also tend to hang with respect to the drive at this point. For example, fdisk -l spits out /dev/sda partitions immediately and then just hangs instead of printing out /dev/sdb info, then eventually quits (without ever writing it).
    Any suggestions on where to look/how to troubleshoot? I found some possibly related posts, but nothing that looks promising:
    - Impossible to crypt the drive using cryptsetup (fixed by rebooting)
    - cryptsetup fails to open Udev cookie 0xd4d94f5 (semid 0) waiting for z (no responses; the hang after seems similar)
    There's a couple odds and ends references to cryptsetup 1.6.6 having issues. I downloaded 1.6.4-1 and 1.6.5-1 and -2 from ARM to try, but wanted to post this in the meantime in case something stuck out.
    Last edited by jwhendy (2015-05-29 16:01:40)

    @qinohe I thought of that and the other day started formatting with mkfs.ext4; unfortunately, it was at work and I had to leave before I could let it finish. It had been chugging along a good few hours, and I was surprised it would take that long. I was able to format it with ext4 using Windows 7 (I dual boot) with the MiniTool Partition Wizard but I didn't use it like that before trying to solve the cryptsetup issue again.
    This last time around, I was getting unresponsive behavior. I think I need to reboot each time I try something with cryptsetup, as any commands related to that drive seem to hang afterwards (fdisk, umount, eject, mkfs, or trying crypsetup again). Perhaps I'll just let it cook overnight with mkfs and see if I can at least have an unencrypted, but functional drive.
    One interesting tidbit is that even though cryptsetup fails, when I've tried to issue mkfs afterward, it asks me to confirm that I want to format the disk since it has a LUKS header... so something appears to have been written. Is it possible the header is causing some issues? I don't know much about the structure of a disk (like what range the MBR resides in, what constitutes a header, etc.) but have been wondering if there's some way to start really, really clean with the disk. Like I'd just bought it -- something appears to be lingering around from previous efforts?
    @frostschutz I'll check tomorrow. That's a good question. Just checked journalctl and here are some of the errors that appear; unfortunately, I wasn't watching so I can't tell you what matches up with what command:
    May 23 09:32:22 arch_840 systemd-udevd[7784]: inotify_add_watch(7, /dev/sdb1, 10) failed: No such file or directory
    May 23 09:32:22 arch_840 kernel: usb 3-4: stat urb: status -108
    ### there's lots like this; like 10 in a row with various sector values listed
    May 23 09:32:19 arch_840 kernel: Buffer I/O error on dev sdb1, logical block 61341696, lost async page write
    May 23 09:32:19 arch_840 kernel: blk_update_request: I/O error, dev sdb, sector 490735616
    ### there's also a bunch like this, from tab #0 -> #29 (not colored red, so not sure they're errors?)
    May 23 09:32:19 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 CDB: opcode=0x2a 2a 00 1d 07 bc 10 00 04 00 00
    May 23 09:32:18 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
    I paged down quite a ways and those seem like the unique messages when I search the journal for "sdb". Anything stand out? I will say that the same sector numbers appeared in multiple blocks of the third error type listed, so that makes me wonder if something is genuinely wrong with the disk. I'll post the output of the full smartctl scan when I hopefully run it tomorrow.
    Thanks for chiming in!

  • [Partially Solved] Error with bsdtar and symbolic links

    I'm trying to install a package (asymptote) from AUR but am running into an odd error.  During the extract phase I get errors like
    asymptote-1.70/base/asy-keywords.el: Can't update time for asymptote-1.70/base/asy-keywords.el: Function not implemented
    bsdtar: Error exit delayed from previous errors.
    I found a post that may help: http://bbs.archlinux.org/viewtopic.php?id=50750.  Do I really have to do this?
    By the way, I too am running on a Linode (Xen virtualization).
    Thanks,
    Luis
    Last edited by banbh (2009-05-24 00:22:13)

    I have not got to the bottom of my problems with bsdtar and symlinks.  I suspect it must have something to do with either my configuration (derived from the Arch image provided by Linode) or running under virtualisation.
    However, others might find my work-around useful, so I document it below.
    I downloaded asymptote from AUR using wget ("wget http://aur.archlinux.org/packages/asymptote/asymptote.tar.gz"), unpacked it, then patched the PKGBUILD
    $ diff -u PKGBUILD.orig PKGBUILD
    --- PKGBUILD.orig 2009-05-23 17:58:47.000000000 -0400
    +++ PKGBUILD 2009-05-23 18:00:49.000000000 -0400
    @@ -11,9 +11,12 @@
    'used if present at compile time: freeglut, gsl, fftw')
    source=(http://downloads.sourceforge.net/sourceforge/asymptote/$pkgname-$pkgver.src.tgz)
    md5sums=('1ded335bc63b662a6eb920a4c065706c')
    +noextract=($pkgname-$pkgver.src.tgz)
    build() {
    - cd $srcdir/$pkgname-$pkgver
    + cd $srcdir
    + tar xzf $pkgname-$pkgver.src.tgz
    + cd $pkgname-$pkgver
    ./configure --enable-gc=/usr --prefix=/usr \
    --with-latex=/usr/share/texmf/tex/latex || return 1
    make asy || return 1
    After that I simply did a "makepkg" followed by "sudo pacman -U asymptote-1.73-1-i686.pkg.tar.gz"

  • Error with calculations and printing output

    Been a few months since I did any kind of java programming and cannot seem to figure out what is wrong with my program. It gives me an error with rentalCost when it goes to printout the value, does not seem calculate the values, and does not print any of the things I call for at the end. Maybe I need a seperate class or the if/else statements are wrong. The point of the program is for fun, but is to calculate the cost for a cabin based on certain coniditions the user inputs. Any help would be much appreciated. NOTE: There are no comments yet due to I put them in after I finish the program.
    import java.util.Scanner;
    public class Test
         public static void main (String [] args)
              String season, cabinGrade;
              double rentalCost, days, finalCost;
              Scanner input = new Scanner(System.in);
              System.out.print("What season will you be staying during? ");
              season = input.nextLine();
              System.out.print("What kind of cabin? ");
              cabinGrade = input.nextLine();
              System.out.print("How many days are you staying? ");
              days = input.nextDouble();
              input.close();
              if (season == "pre-season" && cabinGrade == "regular" && (days < 7))
                   rentalCost = ((days * 55) * .9) * 1.0925;
              else if(season == "pre-season" && cabinGrade == "regular" && (days >= 7))
                   { days = days - 7;
                     rentalCost = ((300 + (days * 55)) * .9) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "regular" && (days < 7))
                   rentalCost = ((days * 55) * .75) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "regular" && (days >= 7))
                   { days = days - 7;
                     rentalCost = ((300 + (days * 55)) * .75) * 1.0925;
              else if(season == "pre-season" && cabinGrade == "luxury" && (days < 7))
                   rentalCost = ((days * 100) * .85) * 1.0925;
              else if(season == "pre-season" && cabinGrade == "luxury" && (days >= 7))
                   { days = days -7;
                     rentalCost = ((600 + (days * 100)) * .85) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "luxury" && (days < 7))
                        rentalCost = ((days * 100) * .75) * 1.0925;
              else if(season == "out-of-season" && cabinGrade == "luxury" && (days >= 7))
                   { days = days -7;
                     rentalCost = ((600 + (days * 100)) * .75) * 1.0925;
              else if(season == "prime" && cabinGrade == "regular" && (days < 7))
                   rentalCost = (days * 55) * 1.0925;
              else if(season == "prime" && cabinGrade == "regular" && (days >= 7))
                   { days = days - 7;
                     rentalCost = (300 + (days * 55)) * 1.0925;
              else if(season == "prime" && cabinGrade == "luxury" && (days < 7))
                   rentalCost = (days * 100) * 1.0925;
              else if(season == "prime" && cabinGrade == "luxury" && (days >= 7))
                   { days = days - 7;
                     rentalCost = (600 + (days * 100)) * 1.0925;
              System.out.println("Season : " + season);
              System.out.println("Cabin grade: " + cabinGrade);
              System.out.println("No. of days: " + days);
              System.out.println("Rental cost: " + rentalCost);
    }

    Lgndryhr wrote:
    Been a few months since I did any kind of java programming and cannot seem to figure out what is wrong with my program. Maybe I need a seperate class or the if/else statements are wrong. The point of the program is for fun, but is to calculate the cost for a cabin based on certain coniditions the user inputs. Any help would be much appreciated. NOTE: There are no comments yet due to I put them in after I finish the program.
    At the very least you need to tell us what you expected this code to do and what it actually did...

  • Audio error with garageband and external usb audio interface

    I am using Garageband 2.0.3. under ios 8.0.2 on my iPad 3 and via camera adapter a USB audio interface Focusrite Scarlett 2i4 or a Presonus iTwo.
    When I start Garageband, it works well, the audio interfaces are recognized and I can record a track.
    As soon as I switch from instrumtent to track view, the audio path is completely disturbed and all I can hear is some noise from the speaker.
    Then I have to unplug the usb cable and plug it in again. Then audio works until I switch back to the instrument menu.
    When I use the headphone output only there is no problem with Garageband and everything works fine.
    Other applications audio applications don't show any error with each of the two audio interfaces.
    Any feedback is very much appreciated, thanks.
    Harald

    I have this exact issue.  However, I tried the Loopy app after after GB crashed and received an error message saying that core audio is not available.  Rebooting resolves but the problem repeats.  Any suggestions as to fixes?  Btw; I have no such problem with Ipad 2 and ios 7.

  • Constant & erratic "Page Load Error" with Safari and Firefox

    A week or two ago, I started getting constant "Page Load Errors" ('this page cannot be found', etc) when browsing with either Safari or Firefox. These are not dead sites that time out, but are very live (and cannot be summoned no matter how many times refresh)!
    Something is wrong on my computer's end: I have strong wireless, have tried connecting with ethernet, and have used a different network. All of these produce the same result, where about half of the sites I try to connect to are instantly declared as dead by any browser I use.
    I am not using any firewall, and have emptied both browser's caches.
    Any ideas would be greatly appreciated.
    Thanks!
    Cliff

    I'm having the same problem. It only happens at home over my DSL connection. Here is what I have tried and the results.
    This really started bothering me since I upgraded to a recent Macbook Pro. I tried my original MBP with Leopard and found it doing the same thing. I ended up testing from my G4 and it works fine. The problem occurs over wireless and wired. I tried changing my MTU size with no change. I thought it was DNS but changed to other DNS and it didn't make a difference. Happens in Safari and Firefox. I am thinking it has an effect on iTune store also. The problem goes away when I VPN in to work, comes back when I close the VPN.
    Just tonight I installed an clean 10.5 Leopard on my original MBP. Safari works perfectly. Instead of updating to 10.5.6, I download the 10.5.5 update. After updating the problem reappeared.
    Again, my G4 with latest Tiger update work fine and both Macbook Pros with the latest Leopard have a problem over my DLS connection. They work perfectly fine at work and other locations.
    Ted

  • Weird error with division and float

    I'm trying to write a program (which is due tomorrow) which draws an ellipse with horizontal and vertical radii input by the user. Now, for whatever reason, when I divide two numbers and put the answer in a double, it disregards the decimal (so when the answer is less than one, it gives me 0.0)
    Why is it doing that and what can I do to fix it?

    Heh. I actually figured that out before you posted,
    but thanks for the response.Most had that figured out before you even made your original posting so don't be too cocky now -:)

  • IaStor Event ID 9 error with T420s and OCZ-Agilit​y3

    Hello, I need your help, as I've been battling this issue for the last 3 days and I'm extremely frustrated.
    I'm running a Lenovo T420s (4170CTO) and replaced the IDE HD with a SSD OCZ-Agility3.
    I am getting iaStor Event ID9 error in my system event log, with the system constantly freezing, halting, chocking, usually for about 5 minutes, then it unlocks itself, or at times never recovering.
    I flashed the OCZ Drive Firmware to the latest 2.08
    I flashed the Bios of the Lenovo 420s to 1.13
    I also started over by cloning the default Lenovo install from the original drive onto the SSD so all lenovo install drivers are present. I also updated all the drivers, including the latest Intel Rapid Story Technology driver for the Intel Mobile Express Chipset SATA AHCI Controller. 
    Please let me know if you have advice on how to resolve the iaStor error. Very furstrating, the combo of the laptop and the SSD is extremely fast when it works, but the frequent crashes and lock ups are making me go nuts.
    Thanks,
    Ivan.

    have you tried disable Intel Link Power Management (LPM)?  it fixes some iaStor timeout errors for certain SSD.

  • I restored my Macbook Pro and now I can't log in as Admin - it says there is an error with FileVault and I don't have access - plz help!  thank you.

    I had to restore my Macbook Pro from Time Capsule yesterday and now when I go to log in as my usual Admin, it says there is a FileVault error and my access is denied.  I created another temporary Admin acct, but everything I had on my desktop, etc is "gone"  I can look up the "drive' or wahtever it's called, but I can't access any of it.  All I want to do is log back in as my usual self (the regular Admin) - plz help!  Thanks.   p.s. I"m (obviously) not that computer savvy!

    Triple-click the line below to select it:
    /System/Library/CoreServices/Directory Utility.app
    Rght-click or control-click the highlighted text and select
    Services ▹ Open
    from the contextual menu.* The application Directory Utility will open.
    In the Directory Utility window, click the lock icon and authenticate. Select the Directory Editor tool in the toolbar. Select Users from the Viewing menu in the toolbar, if not already selected. Select the affected user account in the list. On the right is a list of properties and values. Select the property "HomeDirectory" and delete it by clicking the minus-sign icon directly below the property list. There are two such icons in the window. You want the one on the right, not the one on the left.
    CAUTION: Do not click the minus-sign icon on the left, below the user list.
    Then click the Save button in the lower right corner of the window. Quit Directory Utility.
    CAUTION: There is no "undo" in Directory Utility. If you make a mistake and delete something in the Directory Editor that should not have been deleted, restore your whole system from a backup and start over. I have no other help to offer in that case.
    Try again to log in as the affected user. If you can log in, you should find a file in the home folder with the name of the user and the filename extension "sparseimage" or "sparsebundle". Double-click that file. A disk image should open. Copy your files from that disk image to restore them.
    I strongly suggest that you deactivate legacy FileVault in the Security & Privacy preference pane, then log out and log back in. Consider activating FileVault 2 if you want that kind of security.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Error with dbms_scheduler and shell script execution

    Hi,guys.
    I have an issue with a dbms_scheduler and a shell script execution. So, the shell script as it self works fine, when i'm executing ./test.sh all process is running, but when i'm executing the script from dbms_scheduler it just simply doesn't work. Actually it works, but some of executable information in sh doesn't work, seems it just jump over of the part of the script. Sendmail part is running, maybe there is problem with rman script as it self?
    DB version: 10g
    And my scripts:
    Shell scripts (permisons 755):
    #!/bin/ksh
    export PATH=/home/oracle/product/asm_home/bin:/home/oracle/product/db_home/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:.
    export ORACLE_BASE=/home/oracle/product
    export ORACLE_SID=zabbix
    export ORACLE_HOME=/home/oracle/product/db_home
    ${ORACLE_HOME}/bin/rman<<EOF
    connect target /
    run {backup recovery area delete all input;}
    EOF
    {       echo "From:[email protected]"
            echo "To: [email protected]"
            echo "Subject: Recovery area"
            echo 'Content-Type: text/html'
            echo
            echo '<html><body><table border="1" cellspacing="1">'
            echo '<tr><td><b>Process</b></td><td><b>Statuss</b></td></tr>'
            echo "<tr><td>RMAN</td><td><b>Works</b></td></tr>"
            echo "</table></body></html>"
    } | sendmail -tIn the first part i'm exporting all of the important stuff for oracle, then I call RMAN with specific atributes. And then there is just simply sendmail functionality inside script to represent if script works (for now).
    And below pl/sql script:
    begin
      DBMS_SCHEDULER.CREATE_JOB
      job_name => 'FLASH_RECOVERY',
      job_type => 'EXECUTABLE',
      job_action => '/home/oracle/backup/test.sh',
      start_date => sysdate,
      job_class => 'DEFAULT_JOB_CLASS',
      enabled => TRUE,
      auto_drop => FALSE,
      comments => 'FLASH RECOVERY USAGE AREA backup and delete'
      END;
      /And this job execution:
           begin
               DBMS_SCHEDULER.run_job (job_name =>'FLASH_RECOVERY',use_current_session => TRUE);
           end;What can be wrong? For me, I think it's something with permisions.
    I hope you got my idea and could help me.
    Tom
    Edited by: safazaurs on 2013.18.2 22:16

    There is no error, i just receive all the time e-mail, seems it jumps over rman. I tried almost everything and still couldn't get result as i want. And, if i'm running script from command line - it works. Rman calls, and starts to recover archivelogs.

  • Error with premiere and windows 8.1

    I have recently update my PC system to windows 8.1. I reinstalled Premiere 7.0 and now I can't make it work. It crushes when I try to create a new project and the program send a massage saying that there was an error and the program will close to try a solution and will let me know.
    I already try disabling antivirus and firewall.
    Any suggestion??

    Yes, instead of posting in a forum dedicated to type, post in a forum associated with Premiere.
    I will move your post for you.
              - Dov

  • Tons of errors with sync and restore

    Let me state first, that this iPod Classic i brand new, and has latest software installed. So does my Mac Mini (also brand new). All latest software is installed.
    I have a large library, therefore i chose a Classic. From the very first sync, errors startet happening.
    First Error: After setting up the iPod, asking to sync entire library, the iPod failed after 2 hours or so.
    After it failed, i unplugged and saw, that it had transfered 500 songs successfully, and played them as it should.
    I plugged it in after 10 minutes of play, to sync again.
    iTunes warns, that it has found an iPod that needs to be restored.... WHY? It was working fine!
    iPod cannot Restore, it is in use?!?
    I finally get it restored, and start over with the sync. I go through step 1 again.
    iPod will not restore, at all. Not untill i run a repair from Disc Utility.
    After 4 attempts, i finally get no errors on the disc in Disc Utility. I had to completely format the disc, and reinstall the iPod.
    It is syncing now! 30 tracks at the time, then this error happens, "iTunes could not copy %songname%, archive does not exist". My iTunes is in Danish, so i am unsure of the English wording of that error.
    I try syncing again, works fine for 30 tracks, then same error. This has been going on for the last 20 attempts of syncing.
    Anyone have any idea, of what is going on? I am not far from taking it back to the store and requesting af replacement device, or money back for that matter.

    I would do the following.  Shut down (power off) the Mac mini.  Disconnect all USB devices (you can leave standard USB keyboard/mouse connected if used).  Start up the Mac mini.
    Since the iPod may have some data corruption issues, put it into Disk Mode
    http://support.apple.com/kb/ht1363
    On the Mac mini, run iTunes, and connect the iPod (in Disk Mode) by itself to a direct USB port on the Mac mini.  iTunes should prompt you to do a Restore.  Do the Restore.  During the Restore process, elect NOT to sync any songs to the iPod.
    In iTunes, if the sidebar (along left side of window) is hidden, from the menu bar, under View, select Show Sidebar.  The iPod should appear in the sidebar, under DEVICES, after the Restore.  Select it there.  To the right, the iPod's Summary screen is shown.  Toward the top, there is a bar of buttons starting with Summary.  Click on Music next to Summary.  This Music screen is where you tell iTunes how to sync songs to the iPod.
    Check the box for Sync Music.  This is the switch to enable automatic syncing.  Choose the option to sync Entire music library.  Click Apply.  Hopefully it goes through the sync process properly this time.

  • Memory Errors with NX4 and Adobe 3D

    After installing the Adobe 3d trial version,I've had nothing but problems with NX4.Out of memory errors when there is plenty available.REinstalled NX4,same problems.Uninstalled adobe 3D,and the problem went away.We would like to purchase this,but not until this particular problem is solved.
    Win Xp SP2
    2 GB Ram
    Dell Precision 370
    Pentium 4
    NX 4.0.0.25

    are you working on big 3d models in nx4 ?(to check that, please do a right click on the windows task bar and open the task manager and check the memory used by nx4 with your 3d models loaded)- did the problem also occured with small models ?
    if you memory footprint approaches the 2gb barrier, then 3d capture might be the cause ot your memory problems, to get rid of it, just open acrobat3d and go in the menu edit/preferences/3d capture and delete nx4 from your list of capturable applications.

  • After updating to Firefox 33.0.3 why am I getting Untrusted Connection Errors with Yahoo and Amazon?

    I have updated to Firefox 33.0.3 and now I am getting untrusted connection errors when trying to go to Yahoo.com and Amazon.com this happens with both http and https. My time is in sync. I tried deleting the cert8.db file.
    I have looked at other solutions and they have not worked. These sites were working fine on the previous version for me but now with this new update they are not working. Why hasn't Mozilla fixed this already?

    Yes I have tried the steps above. For example, When I try to get to Yahoo web site, I get this:
    This Connection is Untrusted
    You have asked Firefox to connect securely to www.yahoo.com, but we can't confirm that your connection is secure.
    Normally, when you try to connect securely, sites will present trusted identification to prove that you are going to the right place. However, this site's identity can't be verified.
    What Should I Do?
    If you usually connect to this site without problems, this error could mean that someone is trying to impersonate the site, and you shouldn't continue.
    www.yahoo.com uses an invalid security certificate. The certificate is not trusted because no issuer chain was provided. (Error code: sec_error_unknown_issuer)
    I do not have the option to do an exception because I can only click on the Technical Details and the Get me Out of Here button.
    As I've said in my previous post, I have deleted the cert8.db file, my clock is in sync, and I have tried to do the other solutions but they have not worked.

Maybe you are looking for