Day of week (1-7) and the NLS parameters

It's embarrassing, but I'm going nuts here.


Today is Monday. Here, it's the first day of the week.

Thus,.
SQL> select to_char(sysdate, 'd') from dual;

TO_CHAR(SYSDATE,'D')
--------------------
2                   
1 row selected.
Very well, it's probably because of my NLS settings:
SQL> select * from nls_session_parameters
where parameter = 'NLS_DATE_LANGUAGE';

PARAMETER                      VALUE                                   
------------------------------ ----------------------------------------
NLS_DATE_LANGUAGE              AMERICAN                                
1 row selected.
We will change then, in something where people know that Monday is the first day of the week ;)
SQL> alter session set nls_language = german;
Session altered.

SQL> select to_char(sysdate, 'd') from dual;

TO_CHAR(SYSDATE,'D')
--------------------
2                   
1 row selected.
No luck, how about you
SQL> select to_char(sysdate, 'd', 'NLS_DATE_LANGUAGE = danish') from dual;

TO_CHAR(SYSDATE,'D','NLS_DATE_LANGUAGE=DANISH')
-----------------------------------------------
2                                              
1 row selected.
May be variable, bad. How about NLS_TERRITORY
SQL> alter session set nls_territory = 'DENMARK';
Session altered.

SQL> select to_char(sysdate, 'd') from dual;

TO_CHAR(SYSDATE,'D')
--------------------
1                   
1 row selected.
Great! - But I do not alter session, statement and
SQL> select to_char(sysdate, 'd', 'NLS_TERRITORY = denmark') from dual:
select to_char(sysdate, 'd', 'NLS_TERRITORY = denmark') from dual
                                                             *
Error at line 1
ORA-12702: invalid NLS parameter string used in SQL function
Dang, out of ideas. I'm just on a mission impossible here?


Concerning
Peter
BANNER                                                          
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi

Hi, Peter,.

What is the problem?
You want just an expression which, given a date, will return an integer (1 for Monday,..., 7 for Sunday), independent of the NLS settings?
If so:

1 + TRUNC (dt)
  - TRUNC (dt, 'IW')

Tags: Database

Similar Questions

  • I tried all day offer of 10 image and the command of Adobe stock. Whenever I tried it, an error message appears.

    I tried all day offer of 10 image and the command of Adobe stock. Whenever I tried it, an error message appears.

    Could you please re - enter your payment details in the account management page, save it and try again.

    Please let us know if you continue to have problems.

    Thank you

    Bev

  • Download weekdaynum, independent of the nls parameters.

    What is the best way to get Weekdaynum for a date?
    The algorithm must be independent of the nls parameters.

    This solution depends on nls_teritory and works differently when
    nls_territory = "AMERICA."
    and when it is ESTONIA:
    select decode (
       to_char(sysdate,'DY','nls_date_language=english'), 
       'MON', 1,
       'TUE', 2,
       'WED', 3,
       'THU', 4,
       'FRI', 5,
       'SAT', 6,
       'SUN', 7
    ) WeekdayNum
    from dual;

    Something like this should also work, it just takes mod 7 the Julian date and add the value 1.

    with data as
    (select sysdate + rownum - 1 as dt from dual connect by rownum < 10)
    
    select dt, decode(mod(to_char(dt,'J'),7) + 1,
                 '1', 'Monday',
                 '2', 'Tuesday',
                 '3', 'Wednesday',
                 '4', 'Thursday',
                 '5', 'Friday',
                 '6', 'Saturday',
                 'Sunday') as result
                  from data;
    
  • I have PS CC. If I download PS CS3, to be able to use an older filter, it will mess up my CC and the performance parameters?

    I have PS CC. If I download PS CS3, to be able to use an older filter, it will mess up my CC and the performance parameters?

    Hi Digitalartist,

    This will not affect performance, but it can change the default value of Photoshop CS3.

    In bridge for file associations, you can check if the extensions such as JPEG, PSD etc files have Photoshop selected CC.

    Also check the program by default for images if you directly open images with Photoshop.

    Thank you

  • Breaking a year in coming weeks of beginning and end Dates (parameters) and first and last day of the month

    Hello people:

    I have currently a query that picks up all the weeks between a date range where my week starts on Thursday and ends on Wednesday. The following query works fine except that I need the week of beginning and end, from beginning and end Dates of months and the beginning and the Dates of end of the values of the settings, I'm passing. In this case, I chose January 1, 2013 to 31 December 2013.

    Any help or pointers would be great!

    Thank you!

    Problem: I am picking up days of December 2012 as the first week began on December 27, 2012. In addition, in December, I'm pretty much lost last week as well (26 December - 31 December).

    The request in hand:

    SELECT first_thursday + (7 * (LEVEL - 1))   AS week_start_date,
                     first_thursday + (7 * LEVEL) - 1    AS  week_end_date
    FROM
    (
      SELECT TRUNC(p_from_date + 4, 'IW') - 4   AS first_thursday, -- Week should start the pre ceeding THURSDAY based on the Start Date
                      TRUNC( p_to_date + 4,  'IW') - 5     AS last_wednesday
      FROM
      (
        SELECT to_date('01-JAN-2013') AS p_from_date,
                        NVL(to_date('31-DEC-2013'), SYSDATE) AS p_to_date
        FROM     dual
      ) parms
    ) end_points
    CONNECT BY LEVEL <= ( last_wednesday + 1 - first_thursday)/7;
    

    Currently, this is the result I get (I'm only including the months of January and December here).

    Week_Start_Date     Week_End_Date
    27-DEC-12                02-JAN-13
    03-JAN-13                 09-JAN-13
    10-JAN-13                 16-JAN-13
    17-JAN-13                 23-JAN-13
    24-JAN-13                 30-JAN-13
    31-JAN-13                 06-FEB-13
    

    December:

    28-NOV-13               04-DEC-13
    05-DEC-13              11-DEC-13
    12-DEC-13              18-DEC-13
    19-DEC-13              25-DEC-13
    

    What I would really like is based on start and end Dates, as well as the first and the last day of the month is similarly try nicely. I have provided and then gently break at the end of the month:

    January:

    01-JAN-13              02-JAN-13
    03-JAN-13              09-JAN-13
    10-JAN-13             16-JAN-13
    17-JAN-13             23-JAN-13
    24-JAN-13             30-JAN-13
    31-JAN-13             31-JAN-13
    

    February:

    01-FEB-13    06-FEB-13
    07-FEB-13    13-FEB-13
    14-FEB-13    20-FEB-13
    21-FEB-13    27-FEB-13
    28-FEB-13    28-FEB-13
    

    November:

    31-OCT-13    06-NOV-13
    07-NOV-13    13-NOV-13
    14-NOV-13    20-NOV-13
    21-NOV-13    27-NOV-13
    28-NOV-13    04-DEC-13
    

    December:

    01-DEC-13           04-DEC-13
    05-DEC-13           11-DEC-13
    12-DEC-13          18-DEC-13
    19-DEC-13          25-DEC-13
    26-DEC-13          31-DEC-13
    

    Hello

    Roxyrollers wrote:

    Hello people:

    I have currently a query that picks up all the weeks between a date range where my week starts on Thursday and ends on Wednesday. The following query works fine except that I need the week of beginning and end, from beginning and end Dates of months and the beginning and the Dates of end of the values of the settings, I'm passing. In this case, I chose January 1, 2013 to 31 December 2013.

    Any help or pointers would be great!

    Thank you!

    Problem: I am picking up days of December 2012 as the first week began on December 27, 2012. In addition, in December, I'm pretty much lost last week as well (26 December - 31 December).

    The request in hand:

    1. First_thursday SELECT + (7 * (LEVEL - 1)) AS week_start_date,
    2. first_thursday + (7 * LEVEL)-1 AS week_end_date
    3. Of
    4. (
    5. SELECT TRUNC (p_from_date + 4, 'IW') - 4 AS first_thursday,-week should start to perform the pre-mounted THURSDAY based on the Start Date
    6. TRUNC (p_to_date + 4, 'IW') - 5 AS last_wednesday
    7. Of
    8. (
    9. SELECT to_date('01-JAN-2013') AS p_from_date,
    10. NVL (to_date('31-Dec-2013'), SYSDATE) AS p_to_date
    11. OF the double
    12. ) parms
    13. ) end_points
    14. CONNECT BY LEVEL<= (="" last_wednesday="" +="" 1="" -="">

    Currently, this is the result I get (I'm only including the months of January and December here).

    1. Week_Start_Date Week_End_Date
    2. DECEMBER 27, 12 2 JANUARY 13
    3. JANUARY 3, 13 JANUARY 9, 13
    4. 10 JANUARY 13 JANUARY 16, 13
    5. 17 JANUARY 13 23 JANUARY 13
    6. 24 JANUARY 13 30 JANUARY 13
    7. 31 JANUARY 13 FEBRUARY 6, 13

    December:

    1. NOVEMBER 28, 13 4 DECEMBER 13
    2. 5 DECEMBER 13 DECEMBER 11, 13
    3. 12 DECEMBER 13 18 DECEMBER 13
    4. 19 DECEMBER 13 DECEMBER 25, 13

    What I would really like is based on start and end Dates, as well as the first and the last day of the month is similarly try nicely. I have provided and then gently break at the end of the month:

    January:

    1. JANUARY 1, 13 2 JANUARY 13
    2. JANUARY 3, 13 JANUARY 9, 13
    3. 10 JANUARY 13 JANUARY 16, 13
    4. 17 JANUARY 13 23 JANUARY 13
    5. 24 JANUARY 13 30 JANUARY 13
    6. 31 JANUARY 13 JANUARY 31, 13

    February:

    1. 1ST FEBRUARY 13 FEBRUARY 6, 13
    2. 7 FEBRUARY 13 FEBRUARY 13, 13
    3. 14 FEBRUARY 13 FEBRUARY 20, 13
    4. 21 FEBRUARY 13 FEBRUARY 27, 13
    5. 28 FEBRUARY 13 FEBRUARY 28, 13

    November:

    1. 31 OCTOBER 13 NOVEMBER 6, 13
    2. 7 NOVEMBER 13 NOVEMBER 13, 13
    3. 14 NOVEMBER 13 NOVEMBER 20, 13
    4. 21 NOVEMBER 13 NOVEMBER 27, 13
    5. NOVEMBER 28, 13 4 DECEMBER 13

    December:

    1. 1ST DECEMBER 13 DECEMBER 4, 13
    2. 5 DECEMBER 13 DECEMBER 11, 13
    3. 12 DECEMBER 13 18 DECEMBER 13
    4. 19 DECEMBER 13 DECEMBER 25, 13
    5. 26 DECEMBER 13 DECEMBER 31, 13

    Why the "weeks" in November, have all 7 days, while the "weeks" in the first or the last week in the other month usually have less?  (For example, February 28 is a 'week' alone.)

    The following works for the other months:

    WITH all_days AS

    (

    SELECT DATE "2013-01-01' + LEVEL - AS a_date 1

    OF the double

    CONNECT BY LEVEL<=>

    )

    SELECT DISTINCT

    More GRAND (TRUNC (a_date + 4, 'IW') - 4)

    , TRUNC (a_date, 'MONTH')

    ) AS week_begin

    , The LEAST (TRUNC (a_date + 4, 'IW') + 2

    TRUNC (LAST_DAY (a_date))

    ), Week_end

    Of all_days

    ORDER BY week_begin

    ;

    Output:

    WEEK_BEGIN WEEK_END

    ----------- -----------

    January 1, 2013 January 2, 2013

    January 3, 2013 January 9, 2013

    January 10, 2013 January 16, 2013

    January 17, 2013 January 23, 2013

    January 24, 2013 January 30, 2013

    January 31, 2013 January 31, 2013

    February 1, 2013 February 6, 2013

    February 7, 2013 February 13, 2013

    February 14, 2013 February 20, 2013

    February 21, 2013 February 27, 2013

    February 28, 2013 February 28, 2013

    ...

    November 1, 2013 November 6, 2013

    November 7, 2013 November 13, 2013

    November 14, 2013 November 20, 2013

    November 21, 2013 November 27, 2013

    November 28, 2013 November 30, 2013

    December 1, 2013 December 4, 2013

    December 5, 2013 December 11, 2013

    December 12, 2013 December 18, 2013

    December 19, 2013 December 25, 2013

    26 December 2013 31 December 2013

  • In the last few days my xt720 run hot and the battery to last for only 4 hours

    I don't know what happened to my XT720 but since 2 days my phone is running more hot than usual in the back between xeon flash and plate "xeon 8.0.

    I think it should be the domain of the CPU

    I tried to remove the battery several times, but it does not help

    Now, I have disabled all the synchronizations and data exchange, off WIFI and basic GPS (but I used to have my phone with this setting turned on for several weeks) and still no improvement.

    The phone is good work and looks like there is just an application of high power of the CPU for something.

    I would try a reset of the device factory to check if some sw or fw settings has been the cause of this new bad behavior.

    Do you think that it's worth to try it, or is it better to get in touch with Motorola customer service to request a check (my phone has only 3.5 months of life)

    Thank you

    Marco

    Resolved after a factory reset!

    In fact, I would suggest that a reset from factory to everyone feels that the battery of the XT720 wouldn't last as expected.

    I have my phone unplugged and mode intelligence (with active Gmail) from 9 h 42 m and the battery is still at 70%

    This is a very positive behavior from the last days where my battery low runned after about 4 h.

    It is also a good way to assess the potential of the stand-by battery and could be a way to compare the real potential of vanilla by a custom filter (widget, screensaver, desktop direct current) and think that if it is worth to keep the customization and the battery life let go.

    See you soon

  • For the other sessions to find the NLS parameters.

    Hi all
    Database server Environment Details:
    2 Node Oracle 10.2.0.4 RAC on Solaris Operating System
    Parameter in Spfile:
    nls_sort = BINARY_CI
    nls_comp = LINGUISTIC
    nls_language = AMERICAN
    Parameters in database:
    SQL> select * from nls_database_parameters;
    
    PARAMETER                      VALUE
    ------------------------------ ------------------------------------------------------------
    NLS_LANGUAGE                   AMERICAN
    NLS_NCHAR_CHARACTERSET         AL16UTF16
    NLS_TERRITORY                  AMERICA
    NLS_CURRENCY                   $
    NLS_ISO_CURRENCY               AMERICA
    NLS_NUMERIC_CHARACTERS         .,
    NLS_CHARACTERSET               AL32UTF8
    NLS_CALENDAR                   GREGORIAN
    NLS_DATE_FORMAT                DD-MON-RR
    NLS_DATE_LANGUAGE              AMERICAN
    NLS_SORT                       BINARY
    NLS_TIME_FORMAT                HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT           DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT        DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY              $
    NLS_COMP                       BINARY
    NLS_LENGTH_SEMANTICS           BYTE
    NLS_NCHAR_CONV_EXCP            FALSE
    NLS_RDBMS_VERSION              10.2.0.4.0
    
    20 rows selected.
    Parameters at client's environment variable(Its Application sever on Windows):
    Oracle Client 10.2.0.4
    nls_sort = BINARY_CI
    nls_comp = LINGUISTIC
    Now, each index on columns of type of data characters in this database are created as function of the Index of base to support Case Insensitive search using nls_sort to BINARY_CI, as shown below.
    CREATE UNIQUE INDEX UX_NAME_BR ON ONS (NLSSORT("NAME",'nls_sort=''BINARY_CI'''),"TYPE_ID", "UNIT_NUMBER", "DOMICILE", "IS_ACTIVE", "ID")
    What worries me started when I created by mistake an index btree normal on a character column. After this error just by curiosity, I enabled index followed up on this clue, when I checked in v$ object_usage it got USED!

    So I strongly suspect that there are a few sessions connected to this database with different values of NLS instead of nls_sort = BINARY and nls_comp = LINGUISTIC...

    Sort of, I did a little test in production to confirm this, as shown below:
    PARAMETER                                          VALUE
    -------------------------------------------------- ------------------------------------------------------------
    NLS_LANGUAGE                                       AMERICAN
    NLS_TERRITORY                                      AMERICA
    NLS_CURRENCY                                       $
    NLS_ISO_CURRENCY                                   AMERICA
    NLS_NUMERIC_CHARACTERS                             .,
    NLS_CALENDAR                                       GREGORIAN
    NLS_DATE_FORMAT                                    DD-MON-RR
    NLS_DATE_LANGUAGE                                  AMERICAN
    NLS_SORT                                           BINARY
    NLS_TIME_FORMAT                                    HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT                               DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT                                 HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT                            DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY                                  $
    NLS_COMP                                           BINARY
    NLS_LENGTH_SEMANTICS                               CHAR
    NLS_NCHAR_CONV_EXCP                                FALSE
    
    17 rows selected.
    
    SQL> set autotrace traceonly exp
    SQL> select id,is_active from ons where domicile = 'US' and id = 440 and name = 'AMERICAN COMPANY';
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 1171456783
    
    ---------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name           | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    ---------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                |     1 |    49 |     4   (0)| 00:00:01 |       |       |
    |   1 |  PARTITION RANGE ALL               |                |     1 |    49 |     4   (0)| 00:00:01 |     1 |     3 |
    |*  2 |   TABLE ACCESS BY LOCAL INDEX ROWID| ONS            |     1 |    49 |     4   (0)| 00:00:01 |     1 |     3 |
    |*  3 |    INDEX RANGE SCAN                | IDX_COD        |     1 |       |     4   (0)| 00:00:01 |     1 |     3 |
    ---------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - filter("ID"=440)
       3 - access("DOMICILE"='US' AND "NAME"='AMERICAN COMPANY')
    
    SQL> alter session set nls_sort=BINARY_CI;
    
    Session altered.
    
    SQL> alter session set nls_comp=LINGUISTIC;
    
    Session altered.
    
    SQL> select * from nls_session_parameters;
    
    PARAMETER                                          VALUE
    -------------------------------------------------- ------------------------------------------------------------
    NLS_LANGUAGE                                       AMERICAN
    NLS_TERRITORY                                      AMERICA
    NLS_CURRENCY                                       $
    NLS_ISO_CURRENCY                                   AMERICA
    NLS_NUMERIC_CHARACTERS                             .,
    NLS_CALENDAR                                       GREGORIAN
    NLS_DATE_FORMAT                                    DD-MON-RR
    NLS_DATE_LANGUAGE                                  AMERICAN
    NLS_SORT                                           BINARY_CI
    NLS_TIME_FORMAT                                    HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT                               DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT                                 HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT                            DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY                                  $
    NLS_COMP                                           LINGUISTIC
    NLS_LENGTH_SEMANTICS                               CHAR
    NLS_NCHAR_CONV_EXCP                                FALSE
    
    17 rows selected.
    
    
    SQL> select id,is_active from ons where domicile = 'US' and id = 440 and name = 'AMERICAN COMPANY';
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 270874147
    
    ------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                          | Name                    | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    ------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                   |                         |     1 |    49 |     2   (0)| 00:00:01 |       |       |
    |   1 |  TABLE ACCESS BY GLOBAL INDEX ROWID| ONS                     |     1 |    49 |     2   (0)| 00:00:01 | ROWID | ROWID |
    |*  2 |   INDEX RANGE SCAN                 | UX_NAME_BR              |     1 |       |     2   (0)| 00:00:01 |       |       |
    ------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       2 - access(NLSSORT("NAME",'nls_sort=''BINARY_CI''')=HEXTORAW('669696E6720636F6D70
                  616E7900')  AND "ID"=440)
           filter("ID"=440 AND NLSSORT(INTERNAL_FUNCTION("DOMICILE"),'nls_sort=''BINARY_CI
                  ''')=HEXTORAW('7588700') )
    IDX_COD index is a regular btree index...

    So, how can I find which sessions have access to these indexes and find the session parameters nls level connected to this database.

    I know there is no way to find settings nls for the other sessions without tracing it...

    Kickbacks will not work me
    NLS_DATABASE_PARAMETERS
    NLS_SESSION_PARAMETERS


    Could someone help me please to find these sessions these sessions that are not level session as BINARY_CI and LANGUAGE settings

    Trigger may fail if the storage space for the trace table is full. This trigger does not use dynamic SQL code: in this perspective, it is a bit more secure.

    I don't know any other way supported to retrieve another session NLS parameters. But he can there have no documented similar to this one http://dioncho.wordpress.com/2009/07/18/spying-on-the-other-session/.

  • I get "Trial Expired" notice several times a day, even if I connect and the software license

    I still have an annual subscription of Acrobat, for some reason, the subscription doesn't "stick". I have the 'licence' the software several times per day to continue to use the tool. I see others have this problem with the CC products. What is the solution permanent?

    Hi Shayne,

    What is the level of access you have on this computer. Are you the domain user or you have local Admin Access.

    Try to download and install Adobe application Manager and log in with your Adobe ID: http://www.adobe.com/appsmanager/

    Looks like the problem you're reporting there is permission with your computer problem.

    Do you have any firewall or network security in place?

    Kind regards

    Ajlan Huda.

  • From the days of week qry

    Hello experts,

    I work in T - SQL and Microsoft tools, but am currently building a report that runs the Oracle dB... That's why some issues convert T - SQL Oracle format.
    Pls help me.

    I have a reporting requirement that must run between Monday to Friday.

    IF sysdate is between Monday to Thursday, and THEN
    PreWork volume = number of orders
    where
    [Created_Date] < sysdate AND [Ship_Date] = nextday
    IF sysdate is Friday THEN
    PreWork volume = number of orders
    where
    [Created_Date] < sysdate AND ([Ship_Date] > sysdate and [Ship_Date] < = Monday) (i.e. sat, Sun & Mon)


    Am a bit confused with the BOX instructions... Pls help!

    Hello

    Here's a way to do what you want using CASE:

    SELECT  COUNT (*)     AS volume_of_prework
    FROM     table_x
    WHERE     created_date     < SYSDATE
    AND     ship_date     >= TRUNC(SYSDATE) + 1
    AND     ship_date     <  CASE
                        WHEN  SYSDATE - TRUNC (SYSDATE, 'IW') < 4     -- Monday-Thursday
                        THEN  TRUNC (SYSDATE) + 2                     --    Include next day only
                        WHEN  SYSDATE - TRUNC (SYSDATE, 'IW') < 5     -- Friday
                        THEN  TRUNC (SYSDATE) + 4                     --    Include next 3 days
                      END
    ;
    

    "Day" and had "formats to do different things depending on your settings NLS." It is perhaps not a problem for you now, but imagine that next year, someone decides that the application should work using Spanish formats as well as English. Chances are that you will forget that this request had expected on English. "That's why I chose to use ' IW ' format: TRUNC (SYSDATE. 'IW') is always the last Monday midnight on or before SYSDATE, whatever your NLS settings. If it's really better to use a format such as 'Day', then call TO_CHAR (or TRUNC) with optional 3rd argument to specify the NLS parameters, like this:
    {code}
    ...
    WHERE TO_CHAR (SYSDATE, 'Dy', 'NLS_DATE_LANGUAGE = ENGLISH') = 'Fri '.
    THEN...
    {code}

  • Export security and the copy?

    Hi all

    It must export security for the current server file and copy to another server.
    We are the security file export by using the EXPORT command in MaxL.

    Now, we must copy the security file on an other server (not manually), we need to schedule for each day or week.
    We want the two synchronized server.
    Is it possible to copy the file to another server?

    If possible can you please advice kind write the script of the foregoing.

    Thank you
    Alain

    For example, lets say you have run the command 'Display group all' on your source system.

    This will output that contains two columns, the group name and group description, that you have transferred to Excel. If you haven't already done so, use 'Text to columns' in Excel so that each field output has its own column in Excel.

    So now the release of name and description of the "display group all the" sits in column A and B a Excel sheet. Assume that it looks like this:

    MyGroup1 users
    Super MyGroup2
    MyGroup3 administrators

    Then, you must create a formula (for example) of column C, something like this (untested, but you get the idea):

    "" = "create or replace the group" & A1 & "comment" "& B1".

    This produces a result like this that copy you and paste to create a new MaxL script...

    create or replace the commentary to MyGroup1 group "users";
    create or replace group MyGroup2 comment "super users";
    create or replace the comment by MyGroup3 group "Administrators";

    .. .for running on your target system.

    You will need to repeat this process for each order 'Show' - groups, users, filters, filter lines, privileges etc. MaxL Essbase technical reference section are details of the release of 'show' and the syntax of the partner to 'create' or 'grant' of statements.

  • See date + hour in the date cells without changing the NLS settings

    We have a lot of columns date containing the date + time values, I often need to see while browsing the data in the table.

    Settings for the date format default NLS are exact to 'Russia', our database uses the default, which is then used by SQLDeveloper. For example, to display the values of time, I should write or select to_char manually with appropriate or the NLS under "Database" settings in preferences. Of course, it seems preferable to modify the NLS parameter.

    However, the date format change NLS has certain side effects. For example, it affects various tasks involving mainly exporters, which are launched from SQLDeveloper, because the to_char default to values date format also changes. Of course we could blame the lazy developers does not explicitly specify the formats, but it does not change the fact that the results of the task execution are 'bad', and which can be quite difficult to notice until the following tasks fail.  Also, if I'm not mistaken, NLS_DATE_FORMAT also affects to_date default format, making import text and date columns questioning pretty boring. It's better safe than sorry, so I need to keep the NLS parameters

    So, is it possible to set date format only for the display of the values in the data grid, without affecting the NLS settings somehow? I'm fine with just about anything, including writing an extension myself if necessary, I just need to work. If it is not possible, SQL Developer Team please add this parameter, or at least display a tooltip on mouseover, displaying the value of the cell "full"?

    NLS is the only way to affect the display of dates in the grids. To_char formatting is up to you good - he will use that you define in the function call.

  • NLS parameters in a connection pool environment

    I have limited experience of localization/globalization and I am building an application, using Oracle APEX 4.2/Oracle 11 g db, which takes care of several users of different nationalities.  I have a specific question, but first... can anyone recommend good books, blogs and websites to learn more about best practices for the many things you need to think in this area?

    Second, my precise question is... Since my application will use a connection pool, how it works as far as setting the NLS parameters for a given client session?  In the typical client/server architecture that I know that you would simply change the NLS parameter when the user connects, and this change would govern just the session of this user database.  It's a different approach when we are in an environment of connection pool?  If this is not the case, how Oracle now manages the parameters of the client session this session of customer may engage in more than one session of db in its lifetime?

    You can set the runtime: http://docs.oracle.com/cd/E16655_01/appdev.121/e17961/global_primary_lang.htm#HTMDB14002

    Thank you

    Sergiusz

  • IntelliPoint 8.20.468.0 problem with the specific parameters of the program on Windows 8

    I have a Microsoft Wireless Laser Mouse 7000 on Windows 8 Pro with Intellipoint 8.20.468.0 and the specific parameters of the program to set up the rear push button to a combination of keys ("for example, ' t '), for various programs.  If you leave the home page so that this 'Back' button (by default), this setting DOES NOT WORK.  The specific setting of the program is IGNORED.  If you set the homepage to anything else (for example, "previous window") then the program specific setting works.  It wasn't a problem on Windows 7 with 8.2 Intellipoint.

    Any ideas.

    Anyone know how to file a bug report - I couldn't see how to file a.

    Neil H. Currie

    I have a Microsoft Wireless Laser Mouse 7000 on Windows 8 Pro with Intellipoint 8.20.468.0 and the specific parameters of the program to set up the rear push button to a combination of keys ("for example, ' t '), for various programs.

    Have you tried to download Microsoft Mouse and keyboard Center?   Which has replaced the former IntelliPoint and IntelliType support tool.   In fact, I think it would be listed in Windows Update as optional updates.

    HTH

    Robert Aldwinckle
    ---

  • I'm not in fact it is a forum, but the Chat is closed (you know the one, open 24 hours 7 days a week).  I ordered items on March 5.  It is now March 7 and I always don't have not been "approved."  I needed the program 2 days ago.  Help?

    I really don't want this in a forum, but the Chat is closed (you know, the one that is available 24 hours a day 7 days a week).

    My apologies for the late reply.

    I left a private message. Please check & respond.

    Concerning

    Stéphane

  • My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    Question

    I have another type of problem with Firefox

    Description

    My hard drive and the Extras have plenty of space. Yet several times each and every day, I'm getting flashed "virtual memory minimum insufficient..." Virtual memory pagefile... "Any joy? Please help if you can. Thank you. Cecilia.

    This has happened

    Each time Firefox opened

    Only a few weeks ago, (tried everything)

    Troubleshooting information

    ?

    Version of Firefox

    3.6.3

    Operating system

    Windows XP

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en - us; RV:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

    Plugins installed

    • -Adobe PDF plugin for Firefox and Netscape
    • Default plugin
    • Shockwave Flash 10.0 r45
    • Windows Presentation Foundation (WPF) plugin for Mozilla browsers
    • Java plug-in 1.6.0_07 for Netscape Navigator (DLL Helper)
    • Npdsplay dll
    • DRM Netscape Plugin store
    • DRM Netscape Object network

    Read about virtual memory here: http://www.ehow.com/windows-xp-virtual-memory/

Maybe you are looking for

  • Why is the blue downloads instead of green arrow? How can I change this back?

    I am quite frustrated with FireFox now. If I wanted to Internet Explorer, it's what I ran. I find myself be partial to the classic theme - the classic buttons and classic colors. Having to constantly download addons and settings and constantly update

  • Satellite L650 - no external image webcam

    I have the Satellite L650 and I wanted to use the Logitech C905 webcam. Installation of the software is correct, but when I try to start the webcam it does not work (video does not, audio - works). I guess the problem is USB, because when I try to co

  • Vista Gone - no OS found

    original title: Gone to Vista I had a virus on my laptop which made me be necessary to restart the whole system when I tried, it wiped out the operating system and I can go this far to turn it on and receive error messages do not have an operating sy

  • Why used my registry of the laptop there internal speakers?

    Ive had this laptop for years and my speakers have always worked, but now he says that he is not and I cannot understand how to recover it please help! I have a toshiba laptop

  • BlackBerry Smartphones support Storm battery

    My question is how many times you charge the battery of the storm? I know the lithium battery has no memory, and there is no need to drain until it is completely dead. 2 bars, or 1 bar? Common sense? My concern on prior batteries, it usually inflates