sqlplusw and sqlplus return different characters

I wonder where the difference in character between sqlplus and sqlplusw. This is the case.
I have this insert statement. I run it once in sqlplus, once in sqlplusw:
 insert into drop_me (col1) values ('ç');
The result is quite different:
PROD@> select dump(col1) from drop_me;

DUMP(COL1)
---------------------------------------
Typ=1 Len=1: 135     => from sqlplus
Typ=1 Len=1: 231     => from sqlplusw
Version of the database is 11.2.0.2.0
Sqlplus version (w) is 10.1.0.4.2
(but it is reproducible with different versions)
Database Nls_characterset is WE8MSWIN1252, even as my customer NLS_LANG: AMERICAN_AMERICA. WE8MSWIN1252.

Sure and characterset of a console window is not 1252, but * 850 * (Please run chcp TBC)
NLS_LANG must therefore end in. WE8PC850 or you will have problems of conversion.
Apart from this, sqlplusw is not yet supported more.

-----------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Select ROLE_TAB_PRIVS as sys and schema_owner return different data; Why?

    This code returns seven points of view that are not valid, and therefore not in the role that grants select access to them.



    sys@database > select view_name

    2 of all_views

    3 where owner = "SCHEMA_OWNER."

    4 and view_name not in)

    5. Select TABLE_NAME

    role_tab_privs 6

    7 where role = "SELECT_SCHEMA_OWNER")

    8.

    VIEW_NAME

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

    VIEW001

    ...

    VIEW07

    7 selected lines.

    sys@database > user conn [schema_owner]

    Enter the password:

    1. Connected.

    schema_owner@database > select view_name

    2 of all_views

    3 where owner = ' SCHEMA_OWNER)'

    4 and view_name not in)

    5. Select TABLE_NAME

    role_tab_privs 6

    7 where role = "SELECT_SCHEMA_OWNER")

    8.

    VIEW_NAME

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

    VIEW001

    ...

    VIEW077

    77 selected lines.

    schema_owner@database >

    If a view is invalid, you cannot grant select on it for anything.

    I found my answer "Information is provided only on the roles to which the user has access" privileges granted to roles [ROLE_TAB_PRIVS] table

    Once I got the role of select_schemaOwner in schemaOwner, the query returns results.  It has to do with the x$ dealios in the role_tab_privs view.

  • DatabaseMetaData and ResultSetMetaData return different codes of Type SQL for number

    Hello

    I was testing the code of a colleague who used ResultSetMetaData who was retrieved with Statement.getMetaData () of a select statement. ResultSetMetaData.getColumnType (I) returned 2 (digital) for the SQL type number. My DatabaseMetaData used test code comes from Connection.getMetaData (). DatabaseMetaData.getColumns returned 3 (decimal) for the SQL number type.

    Here is a snippet of code to illustrate the issue:

    The database must contain table MY_TABLE with a column of type "digital."

    String username = "user";

    String password = "password";

    String host = "host".

    Port of String = "port";

    String sid = 'sid ';


    DriverManager.registerDriver (new oracle.jdbc.OracleDriver ());

    Connection connection =

    DriverManager.getConnection ("JDBC: thin: @" + host + ': ' + port + ': ' + sid, user, password);

    Get the SQL with DatabaseMetaData type

    Metadata DatabaseMetaData = connection. getMetaData();

    ResultSet tables is metadata.getTables ( user, null,null, new String [] { "TABLE" });.

    My_table should be the first table

    if (tables. next()) {

    String tableName = table.getString (3);

    log.info (tableName);

    ResultSet columns is metadata.getColumns ( user, tableName,null, null);.

    while (columns. next()) {

    String columnName = columns.getString (4);

    String columnType = columns.getString (5);

    System.out.println (columnName + "' + columnType" ");

    Column type 3

    }

    columns. close();

    }

    tables. close();

    Get the SQL with ResultSetMetaData type

    Statement statement = connection. createStatement();

    String SQL = ' SELECT * FROM my_table ';

    . Perform statement(sql);

    ResultSet resultSet = statement. getResultSet();

    ResultSetMetaData metaData2 = resultSet. getMetaData();

    for (int i = 1; I < = metaData2. getColumnCount(); i++) {

    System.out.println (metaData2.getColumnName (I) + "' .getColumnType metaData2(i) +" ");

    Column type is 2

    }

    Is there a reason for the discrepancy?

    Kind regards

    Johannes

    A bug has been filed for this. You must get your license in any case. ojdbc14 is the obsolete way.

  • SQL query return different result 11 GR 1 material and GR 11, 2

    Problem: SQL returns different results in 11 GR 1 material and GR 11, 2 games.

    Example script:

    create the table tab_main
    (
    SOS number (2) not null,
    contract number (2) null
    )
    /

    create the table tab_sub
    (
    number (2) of contract non-null,.
    SOS number (2) null
    )
    /

    insert into tab_main values (1, 10);
    insert into tab_main values (2, 20);
    insert into tab_main values (3, null);
    insert into tab_main values (4, null);

    insert into tab_sub values (1, 10);
    insert into tab_sub (20, 2) values;
    commit;

    The SQL code:

    SELECT *.
    OF tab_main.
    tab_sub
    WHERE tab_main.sos = tab_sub.sos (+) AND
    tab_main. Contract = tab_sub.contract (+) and
    tab_main. Contract not in (select 1 of the double);

    The above query gives more results
    -by 11.2.0.4
    1 10 10 1
    2 20 20 2

    -in 11.1.0.7
    1 10 10 1
    2 20 20 2
    4
    3


    Please tell us what could be the reason for the behaviour of offset lines thie.


    Thank you

    Piesset

    I think it is probably a bug in 11.1.0.7 (and possibly other versions), I get the same results as your 11.2.0.4 9.2.0.7, 10.2.0.3 and 11.2.0.3, and this is the result, I expect.

    Your not in the paragraph is equivalent to:

    SELECT *.

    OF tab_main, tab_sub

    WHERE tab_main.sos = tab_sub.sos (+) AND

    tab_main. Contract = tab_sub.contract (+) and

    tab_main. Contract <> 1;

    Since you have null values in tab_main.contract they are lost by the predicate since null = value is never true (or false).

    John

  • Case to interview several values and unique to different tables return value

    Hi This is my first picture:
    with Table_1
    as
    (
          select 'CAR' Object, 2000 Policy    from dual
          union all
          select 'BIKE' Object, 2000 Policy  from dual
          union all
          select 'HOUSE' Object, 2000 Policy  from dual
          union all
          select 'MOBILE' Object, 2000 Policy  from dual
          union all
          select 'MONEY' Object, 2000 Policy  from dual
          union all
          select 'CREDIT' Object, 2000 Policy  from dual
          union all
          select 'SCOOTER' Object, 2001 Policy    from dual
          union all
          select 'BIKE' Object, 2001 Policy  from dual
          union all
          select 'BEACH' Object, 2001 Policy  from dual
          union all
          select 'HOUSE' Object, 2001 Policy  from dual
          union all
          select 'MONEY' Object, 2001 Policy  from dual
          union all
          select 'CREDIT' Object, 2001 Policy  from dual
          union all
          select 'DOOR' Object, 2002 Policy    from dual
          union all
          select 'BIKE' Object, 2002 Policy  from dual
          union all
          select 'GARDEN' Object, 2002 Policy  from dual
          union all
          select 'MOBILE' Object, 2002 Policy  from dual
          union all
          select 'MONEY' Object, 2002 Policy  from dual
          union all
          select 'CREDIT' Object, 2002 Policy  from dual
          
    )
    select * from Table_1
    I need to query the column object from table_1 for CAR or HOME and if they are present and then returns 'Y' otherwise 'n'. Linking this table_1 to table_2 through politics and the result will be table_3
    with Table_2
    as
    (
          select '21' AGE, 2000 Policy  from dual
          union all
          select '22' AGE, 2001 Policy from dual
          union all
          select '27' AGE, 2002 Policy from dual
          )
    select * from Table_2
    with Table_3
    as
    (
          select '21' AGE, 2000 Policy, 'Y'  Many_Obj    from dual
          union all
          select '22' AGE, 2001 Policy,  'Y' Many_Obj from dual
          union all
          select '27' AGE, 2002 Policy,  'N' Many_Obj from dual
          )
    select * from Table_3
    Thanks in advance

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    !

    Thanks for the insert statements.
    Here's a way

    with Table_1
    as
    (
          select 'CAR' Object, 2000 Policy    from dual
          union all
          select 'BIKE' Object, 2000 Policy  from dual
          union all
          select 'HOUSE' Object, 2000 Policy  from dual
          union all
          select 'MOBILE' Object, 2000 Policy  from dual
          union all
          select 'MONEY' Object, 2000 Policy  from dual
          union all
          select 'CREDIT' Object, 2000 Policy  from dual
          union all
          select 'SCOOTER' Object, 2001 Policy    from dual
          union all
          select 'BIKE' Object, 2001 Policy  from dual
          union all
          select 'BEACH' Object, 2001 Policy  from dual
          union all
          select 'HOUSE' Object, 2001 Policy  from dual
          union all
          select 'MONEY' Object, 2001 Policy  from dual
          union all
          select 'CREDIT' Object, 2001 Policy  from dual
          union all
          select 'DOOR' Object, 2002 Policy    from dual
          union all
          select 'BIKE' Object, 2002 Policy  from dual
          union all
          select 'GARDEN' Object, 2002 Policy  from dual
          union all
          select 'MOBILE' Object, 2002 Policy  from dual
          union all
          select 'MONEY' Object, 2002 Policy  from dual
          union all
          select 'CREDIT' Object, 2002 Policy  from dual
    
    ),
    Table_2
    as
    (
          select '21' AGE, 2000 Policy  from dual
          union all
          select '22' AGE, 2001 Policy from dual
          union all
          select '27' AGE, 2002 Policy from dual
    )
    SELECT
         age,
         policy,
         Many_Obj
    from
    (
    SELECT
         t2.age,
         t2.policy,
         CASE
              WHEN SUM(
                        CASE
                             WHEN t1.object IN ('CAR','HOUSE')
                             THEN 1
                             ELSE 0
                        END) over( PARTITION BY t2.age,t2.policy) > 0
              THEN 'Y'
              ELSE 'N'
         END Many_Obj,
         row_number() over (PARTITION BY t2.age,t2.policy order by 1) rn
    FROM
         Table_1 t1,
         Table_2 t2
    WHERE
         t1.policy = t2.policy
         )
    where rn = 1;
    
    AGE POLICY                 MANY_OBJ
    --- ---------------------- --------
    21  2000                   Y
    22  2001                   Y
    27  2002                   N        
    

    I advise you to spend the time learning analytical questions and using CASE expressions.

  • The key traits appear as different characters in FireFox.

    Before a letter, the number or letter shows a different symbol in Firefox in the address field or field of research. I DataMask by AOL which shows the different characters in his field, but the correct information seems to display in Internet Explorer, for example. I disabled DataMask, but this has not changed the problem with Firefox. I uninstalled Firefox and then downloaded again from your web site, but the problem persists. The only other thing I installed recently is a program called Trusteer Endpoint Protection that has been suggested by and downloaded from my Bank as something to protect my security. As you can see, this message appear correctly while DataMask is showing different letters that I type in Internet Explorer. I couldn't do it in Firefox.

    I don't have Google Chrome or Zone Alarm Spy Blocker Tool bar or toolbar Ask.com installed on Firefox. I just uninstall Trusteer Endpoint Protection and this has solved the problem when I restarted Firefox.

  • HP: copy software TurboTax and tax return on a cd at the same time

    How to copy software TurboTax and tax return on a cd at the same time so I can then remove turbo tax notebook

    cole310

    Hello;

    Let me welcome you on the HP forums!

    If your intention in the copy of the turbotac 'software' on a CD so that you can later reuse - forget it.  The software consists of LOTS of files installed in several different folders.  Basically, there is no way you could find all the components, copy them to a CD and then later restore all these elements in the files correct reuse software.

    If you want to reuse, and then keep the original CD it came on or if you downloaded it instead, keep the file, you have downloaded - and then reinstall it.

    Good luck

  • Keyboard model 1. 0a 1027 not type correctly, all keys produce different characters

    Original title model keyboard 1. 0 to 1027. Keyboard not typing correctly, all keys produce different characters? Need your help please.

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    1. Ideas:
    • You have problems with programs. ; Wireless keyboard (model 1027), produced different characters when I type, which none match those of l I'm pressing. He is stuck on a different format? I tried to reset the Control Panel, but nothing helped. Need help from someone who knew the problem and the solution please. Thank you

    Error messages

    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hi rvh6636,

    1. you remember to make changes to the computer before this problem?

    2. did you try to use the keyboard on another computer?

    You can try to check the keyboard on the screen and if the problem persists.
    Check out the link:
    Type without using the keyboard (on-screen keyboard)
    http://Windows.Microsoft.com/en-us/Windows-Vista/type-without-using-the-keyboard-on-screen-keyboard

    You can consult the following KB articles and try the steps and check if that helps:

    Troubleshoot wired keyboards that do not or only the erroneous characters category

    http://support.Microsoft.com/kb/258826

    Troubleshoot the incidents of the response to the mouse or wireless keyboard

    http://support.Microsoft.com/kb/838398

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Keyboard produces different characters

    When I try to use the x, s, w, or 2 on the keyboard (on laptop Dell Inspiron 1501), it inserts different characters. When I type the w it inserts... s iuop inserts jkl; ------... inserts, Mr. x------... and 2 inserts 8790. It is done just for these 4 keys n, they are little diagnal online. IDK what the problem is... I have tooken the keys and put them on and I changed the language thing and it still does not. Help, please!

    Try safe mode - does the behavior persist?  What if you try a clean boot?  The techniques in the article of boot is a way to try to identify some software that may be responsible for the behavior.  Also try another user account.

    You have an external keyboard, you can try?

  • RowNumber = 1 return different data

    We are preparing the upgrade to oracle 11g 2 to 12 c.

    We have some test environment to test extracts which is in c 11g 2 and 12.

    Even extract script, the same data, another server with a different version of the database a to 11 g 2, the other is 12 c.

    Most of the snippets returned exactly the same data.

    But for a small number of extracts in .dat file returns a little bit different. We checked into it, it's because the script extracts using a function in the database and it uses rownumber = 1, same order. But another server returns a different record. For example, they return guardian meeting certain criteria, in this case, relatives are Ok, but we wonder why he returned differently. Is there a setting or is there a default sorting of columns in oracle if not specifically using order by?

    Thank you

    Hello

    Oracle does not guarantee that queries would return the same results if used as below.

    Select * from sample_table

    where rownum = 1;

    You may need to use like below to get the same results (Top N queries)

    SELECT column_name, rownum AS rnum

    FROM (SELECT column_name

    OF sample_table

    ORDER BY column_name)

    WHERE rownum<=>

    Kind regards

    Wilson

  • possible to have a display value and the return of LOV

    Hello

    With the help of obiee 11g, I have a variable prompt that takes column as value.
    I have the report that I use a diff column eual to this prompt value.
    I wanted to know if its possible at all to have a view and a return value
    i.e. in the lov, we show a value and when we choose we choose a different value that goes to the filter

    For example. If we have an APAC region in the table, and then in the show LOV in Asia-Pacific and it returns APAC, so that
    in the data filter gets filtered using ICCA.

    Thank you

    You can try something like this sql in the Prompt Variable:
    SELECT CASE WHEN Office.Region = "ACPA" THEN 'Asia-Pacific' WHERE Office.Region = END 'EMEA' THEN 'EUROPE' TO THE "subject domain name.

    And then in the report so you need to change the column fx filter
    CASE WHEN Office.Region = "ACPA" THEN 'Asia-Pacific' WHERE Office.Region = END 'EMEA' THEN 'EUROPE '.

    Note: This is very good for the case where you have less no.. of LOVs in the column.

    Hope it will be useful...

  • Can I access a label inside a MC and then return to the main time line

    Here is my current set up.

    I have a section marked on the main timeline that has the icons of 12 different videos. Each icon acts as a button and brings a user to a section marked with a FLV Playback component work video to play the corresponding video. These marked sections are located on the main of the time.

    This methog is my very long time mainline. Is there a way to do an additional MC which will hold all the buttons of the video and then have this MC separated in marked sections.

    In other words can I access a label inside a MC and then return to the main time line?

    My current code to access the label placed on the main timeline is:

    HowTo_maininfo_mc.theArrangement_btn.addEventListener (MouseEvent.CLICK, theArrangement_btn_amimated_btnDown);

    function theArrangement_btn_amimated_btnDown(event:MouseEvent):void {}

    gotoAndPlay ("theArrangement");

    }

    What it would be like if my "theArrangement" label would be located inside a MC?

    Is there a specific code of if I want to have a close button located on the label inside a MC and he needs to get on a label located on the main timeline?

    You should have an image with an flvplayback component and having each button assign the variable value from a source that is used by your component:

    var sourceVar:String;

    function theArrangement_btn_amimated_btnDown(event:MouseEvent):void {}

    sourceVar = "arrangement.flv";  for example

    gotoAndPlay ("flv_pb");

    }

    ///

    and as part of the "flv_pb", use:

    yourflv_pb.source = sourceVar;  where yourflv_pb is your component instance name.

  • LOV query is not valid, a display and a return value is necessary, column n

    Hello

    I AM FACING
    LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, 
    the first FROM clause in the SQL statement must not belong to the in-line query.
    with two table, I create lov

    the tables are
    CREATE TABLE  "CRM_SALES_DEPARTMENT" 
       (     "DEPT_ID" NUMBER NOT NULL ENABLE, 
         "CUSTOMER_ID" NUMBER NOT NULL ENABLE, 
         "DEPT_CODE" VARCHAR2(50) NOT NULL ENABLE, 
          CONSTRAINT "CRM_SALES_DEPARTMENT_PK" PRIMARY KEY ("DEPT_ID") ENABLE
       )
    CREATE TABLE  "CRM_SALES_CUSTOMERS" 
       (     "ID" NUMBER, 
         "CUSTOMER_NAME" VARCHAR2(255), 
         "CUSTOMER_ADDRESS1" VARCHAR2(255), 
          PRIMARY KEY ("ID") ENABLE
       )
    I USE QUARY
    select (SELECT CS.CUSTOMER_NAME FROM CRM_SALES_CUSTOMERS CS WHERE CS.ID=SD.CUSTOMER_ID) AD D, SD.CUSTOMER_ID R  
    from CRM_SALES_DEPARTMENT SD where SD.DEPT_CODE=:P16_MARKET 
    But who show me LOV query is not valid, a display and a return value is needed, the column names must be
    different. If your query contains a query online, the first CLAUSE in the SQL statement must not belong to the query online.

    How to solve this problem.

    Thank you

    Published by: 805629 on January 10, 2011 03:46

    Published by: 805629 on January 10, 2011 03:58

    Published by: 805629 on January 10, 2011 03:59

    ¿AD?
    Select (SELECTION of CS. CLIENT_NAME CS CRM_SALES_CUSTOMERS WHERE CS.ID = SD. CUSTOMER_ID) AD D, SD. CUSTOMER_ID R
    CRM_SALES_DEPARTMENT SD where SD DEPT_CODE =: P16_MARKET

    But the correct way is a join outher

    select CS.CUSTOMER_NAME D, SD.CUSTOMER_ID R
    from CRM_SALES_CUSTOMERS CS,
            CRM_SALES_DEPARTMENT SD
    where SD.DEPT_CODE=:P16_MARKET
    And CS.ID(+)=SD.CUSTOMER_ID
    
  • query returns different results depends on the length of the day

    Hello!

    I have a query:

    INSERT /*+ APPEND */ INTO pwa_process (
    id,
    id_session,
    id_customer,
    s2k_account,
    service_seq_num,
    msisdn,
    id_tariff,
    contract_end_date,
    last_contract_date,
    next_available_contract_date,
    tariff_name,
    description,
    description_long,
    imei_old,
    activation_date,
    id_customer_number,
    arpu,
    value0,
    value1,
    value2,
    value3,
    value4,
    value5,
    id_pricing_plan)
    WITH msisdns AS (SELECT msisdn ms FROM customer_number cn
    JOIN customer_s2kaccount cs ON cn.s2k_account = cs.s2k_account AND cs.id_customer = v_customerId)
    SELECT
    seq_pwa_process.NEXTVAL,
    v_sessionId,
    customer_s2kaccount.id_customer,
    customer_s2kaccount.s2k_account,
    customer_number.service_seq_num,
    msisdn.msisdn,
    tariff.id,
    NVL(CASE WHEN date_contract_end IS NULL AND le_contract_end_date IS NOT NULL OR (date_contract_end < le_contract_end_date)
             THEN le_contract_end_date
             ELSE NVL(date_contract_end, ADD_MONTHS(customer_number.date_start, customer_number.ada_availability))
        END, TO_DATE('01.01.1970', 'DD.MM.YYYY')) contract_end_date,
    CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation >      (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) 
         THEN customer_number.date_first_activation
         ELSE   (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) 
    END last_contract_date,
    ADD_MONTHS(CASE WHEN NOT customer_number.date_first_activation IS NULL AND customer_number.date_first_activation > NVL(  (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) ,
                                                                                                                           NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)))
                    THEN customer_number.date_first_activation
                    ELSE NVL(  (CASE WHEN ada_priority = 1 THEN ada_date_pwa
            WHEN ada_priority <> 1 AND (date_pwa IS NULL AND exchange_date IS NOT NULL OR date_pwa < exchange_date) 
            THEN exchange_date 
            ELSE date_pwa 
      END) , NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)))
               END, customer_number.ada_availability - DECODE(NVL(customer_number.current_contract_type, 0), 2, DECODE(customer_number.reduced_contract_used, 0, NVL(customer_number.el_contract_calculated_reduc,0), 0), 0)) next_available_contract_date,
    tariff.name_ada,
    DECODE(msisdn_group.def_column, 0, msisdn.value0, 1, msisdn.value1, 2, msisdn.value2, 3, msisdn.value3, 4, msisdn.value4, 5, msisdn.value5, msisdn.value0),
    msisdn.value0 || ';' || NVL(msisdn.value1, '') || ';' || NVL(msisdn.value2,'') || ';' || NVL(msisdn.value3,'') || ';' || NVL(msisdn.value4, '') || ';' || NVL(msisdn.value5, ''),
    customer_number.imei,
    NVL(customer_number.date_first_activation, NVL(customer_number.date_start, customer_number.date_effective)) date_start,
    customer_number.id,
    NVL(s2kaccount.arpu1,0),
    msisdn.value0,
    msisdn.value1,
    msisdn.value2,
    msisdn.value3,
    msisdn.value4,
    msisdn.value5,
    customer_number.id_pricing_plan
    FROM customer_s2kaccount
    JOIN customer_number ON customer_number.s2k_account = customer_s2kaccount.s2k_account AND customer_number.service_state = 'AB'
    JOIN msisdn ON msisdn.msisdn = customer_number.msisdn
    JOIN TABLE(CAST(v_tmp_table AS ADA.NUMBER_TABLE)) ids ON ids.column_value = msisdn.id
    JOIN msisdn_group ON msisdn_group.id = msisdn.id_msisdn_group
    JOIN pricing_plan ON pricing_plan.id = customer_number.id_pricing_plan AND pricing_plan.is_for_pwa = 1
    JOIN tariff ON tariff.name = pricing_plan.id
    JOIN s2kaccount ON s2kaccount.s2k_account = customer_number.s2k_account
    LEFT
    JOIN (SELECT msisdn, exchange_date, ADD_MONTHS(exchange_date, MAX(prolongation)) le_contract_end_date
    FROM loyalty_exchange a, msisdns
    WHERE a.msisdn = msisdns.ms AND exchange_date >= ALL (SELECT exchange_date FROM loyalty_exchange b WHERE b.msisdn = a.msisdn)
    GROUP BY msisdn, exchange_date) le ON le.msisdn = customer_number.msisdn
    WHERE customer_s2kaccount.id_customer = v_customerId;
    This query returns different results in the morning (09:00) and afternoon (16:00) on the same database for the same input data (I have prepared a script to test).
    Oracle 9.2.0.6 @solaris
    I checked the query plans, but they look the same in the morning and the afternoon. I don't know where to look for a problem/bug.
    Please help me with suggestions. is in bug with join ansi? or a left outer join?

    Published by: batonoff on February 16, 2009 16:56

    Published by: batonoff on February 16, 2009 16:58

    Published by: batonoff on February 16, 2009 17:00

    I recommend you post your declaration in the {} code tags (without the spaces) so that we can actually read.

    You are absolutely positive that nothing has changed on the data between when you run in the morning and in the afternoon?

  • After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?

    After downloading the update for Yosemite 10.10.5, I got an annoying popup with a beep sound blaring that says that Safari crashed. I've forced to leave Safari, rebooted and popup returned once more. Restarted again and popup went. What was it?

    Open Safari while holding the SHIFT key

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

    This should solve the problem. If it does not help, try to disable the Safari extensions

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select Preferences

    4. find the Extensions tab

    5 disable all extensions of

    6. relaunch Safari

Maybe you are looking for