Is it possible to use "english hijrah" on-the-fly without ALTER SESSION?

SQL> alter session set nls_calendar='english hijrah';
Session altered.
SQL> select '29-02-1435', TO_DATE('29-02-1435', 'DD-MM-RRRR') from dual;
'29-02-1435' TO_DATE('29-02-1435','DD-MM-RRRR')
29-02-1435 29 Safar 1435
Hi, the above shows that an input date of '29-02-1435' can be validated as a correct Hijrah date.
However, is it possible to do such a TO_DATE(), or TO_CHAR() conversion without the overhead of an 'ALTER SESSION' at the start ?
From within a Gregorian session I tried a few things like below, but they didn't work and give ORA-01756: quoted string not properly terminated
select TO_CHAR('29-02-1435', 'nls_calendar="English Hijrah"', 'nls_date_format="DD-MM-RRRR")
from dual;
All we're needing to do is validate the date as valid Hijrah - no further processing is done.
Many thanks for any help. Mark

Sorry - I had been confusing single and double quotes.
The following shows that it's a valid Arabic date
SQL> select '29-02-1435', TO_DATE('29-02-1435', 'DD-MM-RRRR', 'nls_calendar=''English Hijrah''')
2 from dual;
'29-02-1435' TO_DATE('29-02-
29-02-1435 02-JAN-14
and for example if you put a crazy month, it complains
SQL> select '29-02-1435', TO_DATE('29-92-1435', 'DD-MM-RRRR', 'nls_calendar=''English Hijrah''')
2 from dual;
select '29-02-1435', TO_DATE('29-92-1435', 'DD-MM-RRRR', 'nls_calendar=''English Hijrah''')
ERROR at line 1:
ORA-01843: not a valid month

Similar Messages

  • Is it possible to use an iMac as the display for a Mac mini?

    Is it possible to use an iMac as the display for a Mac mini?

    iMacs late 2009 or newer can be used in Target display
    mode.  Any older, no can do.
    The only other way is via network Screen Sharing or
    some otherVPN network like solution.  The issue here
    though is that video performance will be pretty severely
    hampered.

  • Is it possible to use some product on the unix server at the development level which would make it p

    Hello,
    We are generating editable PDF forms from the scratch at the development level on the unix server. Is it possible to use some product on the unix server at the development level which would make it possible to save these editable PDF forms to be saved using acrobat reader? These forms are used by the end users and the edited files are then saved... Kindly help me in this regard..
    Best Regards,
    Deepak

    Dear Aandi,
    I am really thankful to you for this. I will suggest this to the business and then they can contact adobe for this. Thanking you once again for providing me with all the valueable info. You have been instrumental in helping me out in my project.
    Best Regards,
    Deepak Goyal

  • Is it possible to use virtual chars in the aggregation level?

    Hello,
    Is it possible to use virtual chars in the aggregation level?
    thanks

    Hi.
    See answer of Mr. Gregor Dieckmann in [this topic |BI-IP: Copy planning function from virtual key figure;about virtual KF.
    Regards.

  • Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?

    Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?

    Getting the character count for a paragraph is trivial:
    Sub NumChars1()
    MsgBox Selection.Paragraphs(1).Range.Characters.Count
    End Sub
    Even outputting it to the document is trivial:
    Sub NumChars2()
    With Selection.Paragraphs(1)
      .Range.InsertAfter .Range.Characters.Count
    End With
    End Sub
    The real issue comes when you want to update the document. If the destination paragraph is only ever empty or contains the character count of the previous paragraph, you could use:
    Sub NumChars3()
    With Selection.Paragraphs(1)
      .Next.Range.Text = .Range.Characters.Count & vbCr
    End With
    End Sub
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Is it possible to use 2 displays with the mac mini

    is it possible to use 2 displays with the mac mini

    I wanted an extended desktop using 2 monitors.
    I am using a Dell Ultrasharp ( has 1 VGA and 1 DVI-D) and a LG W2286 (has 2 HDMI, 1 DVI-D and 1 VGA)
    I ran into a similar issue where initially the mac would not detect the 2 displays and I thought I would share my solution.  I have a Mac Mini 10.8.2 i7 Late 2012.
    I bought a "Cable Matters" brand Mini Display Port | Thunderbolt to DVI Male Cable to have dual monitors.
    I am also using the included in the box  HDMI to DVI-D Adapter from Apple.
    Initial configuration was:
    Mini-Display (Thunderbolt connector) to DVI connected to the LG DVI-D input.
    Apple HDMI to DVI Dongle connected to the Dell DVI-D input.
    What happened was that my desktop was on the LG clear as day but OSX did not see the dell monitor.
    I called apple support and they could not figure out why the mini cant see the dell monitor. I think I discovered that the mac mini could not support 2 dvi monitors.
    I switched the monitor connections.
    The connections that works:
    HDMI out to HDMI in on the LG using a standard HDMI cable.
    Display port | Thunderport to DVI-D on the Dell's DVI-D in.

  • Is it possible to use PCI-1200 on the DAQ Signal Accessory?

    Is it possible to use PCI-1200 on the DAQ Signal Accessory? The documentation for the Daq signal accessory did not mention explicitly whether it
    supports the PCI-1200 specifically or not?

    Hi,
    Yes, you can. According to the manual, the DAQ Signal Accessory is compatible with Lab / 1200 series devices -- this includes the PCI-1200 card.
    Regards,
    RamziH.

  • How do I use my ipod in the car without it constantly charging?  I have to use a docking cable into the USB port because the 3.5 mm to 3.5mm jack I bought doesn't work on the ipod.

    How do I use my ipod in the car without it constantly charging?  I have to use a docking cable into the USB port because the 3.5mm to 3.5mm jack I bought doesn't work with the ipod (although it does work with an MP3 player).  My ipod is a 5th generation 80GB classic.

    I know this is old - but did you ever get this working. Thinking of getting a 780 ti card and I have an older mac with the mini-displayport too.

  • Can I use my G5 on the web without antiviruses ?

    Hi guys and girls,
    Could you tell me if I can use my G5 on the web without antiviruses ?
    If you are disagree, please tell me which antiviruses is the best for you ?
    Thanks.
    Philippe

    Welcome to the Apple Discussion Forum!
    Currently no internet virus protection is needed for Apple OSX. Using Safari or Firefox is the best way to access the internet.
    In addition, make sure you download and install all Apple Security updates (from the Software updates tab). This will keep your MacOSX protection up to date. In addition, there are only three Anti-Virus software programs available from the Apple store, that alone will give you a clue to the need for them.
    Regards,
    Dave

  • I feel that other people use my computer from the outside without my permission. How do we know?

    I feel that other people use my computer from the outside without my permission. How do we know?
    Thanks for your help

    First thing to do is find the information you received on your internet service, which should have the info on logging in to your router itself.  Login, usually from a browser like Safari, and find where to change the admin password, not the netowrk or WiFi password.  Change the admin password from the factory default, and write it down so you don't forget it...if there is ever a problem with your service you have to have that.
    Once the router is secure, on your iMac how do you operate?  Did you just set it up out-of-the box without adding user accounts?
    With the router secure there is little risk of an intruder using your equipment...but it would be worth it to change your network password, especially the wireless part of the network, and to check to see what security method is being used.  The most secure is WPA2.

  • Is it possible to use internal speakers with the headphones connected?

    as the connection of headphones is on the back of the iMac, it would be very useful to be able to switch between the internal speakers and the headphones, without ever having to unplug the headphones from your Mac Is this possible?

    Although it still means unplugging I bought one of these though I do use headphones very infrequently:
    http://www.johnlewis.com/belkin-speaker-and-headphone-splitter/p230405301
    but at least I don't have to fiddle around the back of the mac and risk,in time, damaging the socket on the mac.
    If you decide to purchase one, be careful where you buy from as there are Belkin imitations around ie eBay and indeed Amazon where the quality is suspect particularly if it only costs a couple of £s'. Bought mine from a renowned retailer with genuine Belkin blister pack.

  • Can it be possible to use SUM twice for the same internal table

    Hi Guru,
    my requirement is follewing.
    I need to use a SUM for the same internal twice. 
    itab.
    first : like SUM  will sum up all the value
    and second like
    if  wa_tab-field = ' S'
    sum.
    ...some logic
    else  if wa_tab-field = h
    some logic
    endif.
    can i use  SUM in above way.
    Many thanks,
    Anuj.

    Hi,
    yes it could be use multiple time.
    Here example.
    sort GT_COLLECTHI by atnam ATWRT.
      loop at GT_COLLECTHI into gs_collecth.
        at end of ATWRT.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
        at end of ATNAM.
          sum.
          append gs_collecth to gt_collecth.
          clear:gs_collecth.
          sum.
        endat.
      endloop.
    Thank you
    Jan

  • It is possible to use Verizon in travels to Asia, without paying exorbitant fees?

    Is it possible to continue service during travels to Asia, without paying exorbitant fees?  If so, what do I need to do in order to get set up?

        srkey,
    We're happy to assist with your travels to Asia.  What country will you be visiting?  You can view all of our global rates and information here; http://vz.to/17KseUf.  Let us know if you have any questions or need assistance setting any services up. Thanks!
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Is it possible to use an image as the "base" of a mapviewer?

    Hi,
    I am trying to use a jpg image as the "base" of a mapviewer. After Insert the image, I create a "georaster theme" for it. Then, I create a "base map" by using the georaster theme created in the previous step. Up till now, both "georaster theme" and "base map" can be preview normally. After that, I create a "title layer" by using the "base map" which I created. However, only a write rectangle shown up when I preview the "title layer".
    So, I wonder it is possible to make a map by using an image as it base? If yes, would you mind telling me how to make it done. And, what value should I input for the following parameter:
    a) When I import an image in mapbuilder:
    1) Top X coordinate , Top Y coordinate
    2) X resolution, Y resolution
    b) When I make a title layer:
    1) Max X , Min X, Max Y, Min Y
    2) Zoom in scale (Once I zoom in the image, the image is gone?? It's very strange)
    Here's the property of that image:
    Dimension = 288 * 175
    Width = 288 pixels
    Height = 175 pixels
    Horizontal resolution = 72 dpi
    Vertical resolution = 72 dpi

    iMacs late 2009 or newer can be used in Target display
    mode.  Any older, no can do.
    The only other way is via network Screen Sharing or
    some otherVPN network like solution.  The issue here
    though is that video performance will be pretty severely
    hampered.

  • Is It Possible To Use A Video in the Background?

    Can I use a video from youtube in the background and then set it on repeat and mute it too?
    Is it possible to do it on full screen?

    Muse does not have a built-in feature for it, but museGrid has created a widget for it.
    Fullscreen Video Background | Adobe Muse Widget | museGrid.com

Maybe you are looking for

  • BW reports for MSS via Portal

    Hello, I'm trying to start BW report from MSS without any luck. I created a function code for the report with function type BWR3 in R/3 IMG for Manager's desktop. I Enterd the function code in table T77MWBBWS (the table is not in the IMG !) with : ob

  • HP Laserjet P2015d the full (automatic) duplexing feature incompatible with Windows 7??

    I have an HP Laserjet P2015d which I bought specifically for the full (automatic) duplexing feature. This feature no longer seems to work under Windows 7 and I am beyond frustrated. I have tried several drivers and nothing seems to work. I have tried

  • Blacklisting of messages in PI 7.31

    Hello All,     In Production we are facing an issue with one of the message.The Message status is in "To be delivered" since 2 days. In the message log it was showing as below: Please let us know why we are facing this issue and How can we overcome t

  • I've been "looking for printer" for four years.

    Hi everyone, I decided to bite the bullet and make a forum post before giving in to my frustration and chucking the thing out the window... I am running OS 10.6.8 on a mid-2008 MacBook and have an HP Photosmart C4385 all-in-one wirelessly connected.

  • How can I get rid of the vuzit application for pdf downloads and, instead, use Acrobat?

    When I try to access a document that is in pdf, I always end up having to wait for the vuzit nitro pdf reader. I usually end up switching to Safari or Chrome to avoid waiting and trying to use this program which seems to serve no useful purpose. How