Nls_length_sematic affect on variables

Hi
A simple question
Does NLS_LENGTH_SEMANTICS affect the size of VARCHAR2 variables ?
Thanks

Hmmmm, just a wild guess: maybe the characterset matters?
Here's what I got when running your tests:
Connected to Oracle9i Enterprise Edition Release 9.2.0.8.0
SQL> set serverout on
SQL> select * from nls_database_parameters where parameter = 'NLS_CHARACTERSET';
PARAMETER                      VALUE
NLS_CHARACTERSET               WE8ISO8859P15
SQL>
SQL> begin
  2   execute immediate 'alter session set nls_length_semantics=byte';
  3   execute immediate 'declare
  4                        v varchar2(1) := unistr(''€'');
  5                      begin
  6                        dbms_output.put_line(lengthb(v));
  7                        dbms_output.put_line(lengthb(unistr(''€'')));
  8                      end;';
  9  end;
10  /
1
2
PL/SQL procedure successfully completed
SQL>
SQL> begin
  2   execute immediate 'alter session set nls_length_semantics=char';
  3   execute immediate 'declare
  4                        v varchar2(1) := unistr(''€'');
  5                      begin
  6                        dbms_output.put_line(lengthb(v));
  7                        dbms_output.put_line(lengthb(unistr(''€'')));
  8                      end;';
  9  end;
10  /
1
2
PL/SQL procedure successfully completed
SQL> Same results for 10.2.0.4.
And you were probably doing your tests on 11.2, ofcourse ;)

Similar Messages

  • Variable Screen Does Not Display in Bex Web Analyzer after first time

    We recently upgraded from BW 3.1 to BW 7.0 (without upgrading specifically to 3.5).  We are having a problem with our Web Bex Analyzer not showing the variable screen although the variable screen is displayed successfully when running the same query from the Bex Analyzer.  Based on feedback from other posts regarding similar topics, we modified the 0analysis_pattern template to ensure that Display Variable Screen was checked on.  We are finding that when we open the Web Bex Analyzer and do a New Analysis, the first query we try to run will always have the variable screen displayed successfully.  Any susbsequent queries we try to run by clicking on New Analysis in that same open window will not show the variable screen and will start executing open ended.  This is occurring regardless of whether the query has mandatory or optional variables and we have confirmed that there is no personalization set for the variables being used.  We have tried it with several different queries and the results are consistent.  The first query you run shows the variable screen successfully and any queries run after that do not.  Any help in resolving this would be greatly appreciated as we have exhausted our resources researching and troubleshooting this problem.

    We did open an OSS note and heard back from SAP.  We made the recommended setting, see their response below, but as they stated, it will only show variable screens for queries that have at least one mandatory variable entry after the first query is opened. 
    Response from SAP: 
    Please check if the following setting is made within your template --
    In the 'Standard Actions' of the Web Template, do you have the setting
    'Action Before First Display' set to OPEN_VARIABLE_DIALOG
    The behaviour of the variable screen is different if you use mandatory
    variables and optional variables. If you have only optional variables,
    the Display Variable does not force the variable screen.
    Also, using the parameter VARIABLE_SCREEN=X only influences the
    web application at STARTUP. This would not come into affect when you
    use the 'New Analysis' button. This button resets the dataprovider so
    this would not affect the variable screen and would not redisplay the
    variable screen as you require.

  • ODI Variables in Mutliple Sessions

    Hi All,
    I would like to know if I set a variable as "Latest Value" and I have multiple users running multiple packages setting the same variable with different values, Can ODI handle it properly? Will those packages running in sequence by submitting time or running concurrently with independent multiple sessions without affecting the variable values with each other? Or I have to setup multiple variables to handle that? Thanks.
    Edited by: user760926 on Jan 21, 2010 6:59 PM

    Theoretically you can set up one variable to do that. However, when we are speaking concurrency and variable handling, ODI has a lot of room for improvement. Remember, when variables are operated on, there is a database operation involved. When such simultaneous requests get submitted by multiple running jobs, database has a way to queue them and there is no guarantee that database would be receiving those requests in the same sequence requests are created by running packages. In two words, be careful!!!

  • Which variables for branching scenario assessment based on advanced actions:

    I want to be able to use branching on fuzzy questions that don't have a clear correct answer, but have some answers that are better than others (to be more authentic). Has anyone had success with using the variables in advanced actions to provide a branching scenario assessment?
    What I want to do is use one multichoice question with partial scoring, each of the 4 possible answers has a different points values (best choice to worst), the value adds to the quiz total score for assessment /feedback purposes, but the next slide is determined by the points gained in that quiz slide (e.g. if they gained 10 points for picking the best answer the condition is set to variable =10 then jump to slide x).
    I have tried several cpquizinfo variables but the outcome does not reliably take me to the right slide. I have a feeling quiz questions earlier in the project are affecting the variable.
    Thoughts???

    You do not explain what you tried. For such a scenario I would create a
    custom question slide to get the control you want. I doubt it is possible
    with default MCQ.

  • Making dll from VI containing labview global variable ?

    I've made dll from VI containing labview global variable.
    But, when I write a c program calling a function from the dll, it returns just error.
    The goal is to read a labview global variables from c program. What can i do for it ?

    Hi
    If you don't use the dll in your LV app, it will be difficult, because it will be in the adress-range of you c app. So any writing of values to the global variable in LV, won't affect the variable in the dll.
    What you can do is some kind of client-server architecture. You need a third app, which just does the data exchange - so you should be able to write a value from LV and read it from c.
    There already have been discussions about similar topics - just search the forum.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to get row count(*) for each table that matches a pattern

    I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
    Currently a single column is returned: tablename. I want to add the column RowCount.
    DECLARE @SQLCommand nvarchar(4000)
    DECLARE @TableName varchar(128)
    SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
    SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
    EXEC sp_executesql @SQLCommand

    The like operator requires a string operand.
    http://msdn.microsoft.com/en-us/library/ms179859.aspx
    Example:
    DECLARE @Like varchar(50) = '%frame%';
    SELECT * FROM Production.Product WHERE Name like @Like;
    -- (79 row(s) affected)
    For variable use, apply dynamic SQL:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Rows count all tables:
    http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • C++ visual runtime error!

    I'm really hoping you guys have an answer for me.In the last couple of days, I have been receiving a runtime error whenever i try to affect the variables in my brushes pallette. I mean any little tweak, be it the angle of the preset or even just the size of the brush.
    The only time i get this runtime error is when i go into the brushes pallette. I'm running into a deadline and I need to fix this, so any advice anyone may have as to why this might be happening would be greatly appreciated.
    I have already tried reseting brush presets and tried installing a couple new ones to see if they mess up as well and they do. I'm running CS3 on Vista

    Maybe this Adobe KB Article will help you?
    Good luck,
    Hunt
    PS - I hate this auto line break that the new and improved, highly maintained forum adds, whenever it wishes to... !
    Hunt

  • Query Selection Screen does not appear in Web Analyzer

    Hi Experts,
    Query Selection Screen appears when we open the query in Bex Analayzer in production system. But when we open the query in ABAP or JAVA Web view, the selection screen does not appears.
    As the volume of data in the cube is very high, and since the selection screen is not appearing, the query extracts 1.5Mrecords and results in dump.
    Kindly let me know the possibility for selection screen not appearing.
    Note: The selection screen appear in Development system in Bex Analyzer, ABAP View and Java View
    Regards
    Suresh Kumar

    Dear Suresh,
    You can check if the parameter &VARIABLE_SCREEN=X is added to standard template or not, If not add this,
    In order to add this parameter in the webtemplate you have to change 0ANALYSIS_PATTERN and save it as ZANALYSIS_PATTERN and enter this standard web template under TCODE RSCUSTV27.
    Also I would like to explain you the behavior of Web Analyzer,
    Parameter VARIABLE_SCREEN=X only influences the WEB application at startup. This will not come into affect
    when you use the 'New Analysis' button. The 'New Analysis' button resets the dataprovider so this would not
    affect the variable screen and would not redisplay the variable screen as you require.
    Regards,
    Arvind

  • 'Finding occurrences' has encountered a problem

    Hello,
    I am getting constant errors with 'finding occurrences" while editing code in Flash Builder 4.7 beta. The errors occur while "mark occurrences" is turned on, but only affect certain variables in some classes. I haven't figured out a pattern to why this happens.
    In details, the error given is
    "An internal error occurred during: "Finding occurrences".
    java.lang.NullPointerException"
    I have no idea what started this problem; it seems like a bug. Anyone else experience this?

    Solution:
    http://forums.adobe.com/message/5965602#5965602
    or else,
    Recreate the workspace, and manually copy the .settings to the new workspace if you desire.
    http://forums.adobe.com/message/5942805#5942805

  • Symbols

    I'm not sure how to use field symbols. Can someone help me in this situation ?
    I have a tab with fields qty1 to qty40.
    I would like to affect those variables according to the sy-tabix.
    Something like this:
    LOOP AT tab.
      idx = sy-tabix.
       tab-qty<idx??> = value.
    ENDLOOP.
    Can anyone help me ?
                        Thank you in advance.
                              Nuno

    Check this one :
    LOOP AT tab assigning <fs>.
    <fs>-idx = sy-tabix.
    ENDLOOP.
    If your field sysmbol have same structure, then you can just assign update the <fs> in each loop. It will update the internal table, with required data.
    Kuntal.
    Edited by: Kuntal Nandi on Mar 6, 2009 12:35 PM

  • Return by Reference/Return by Value

    Okay. I am suppose to create this accessor method that is not suppose to return by reference so as to protect the private variables.
    Firstly, I suppose for primitive data type I can :
    public int rtnInt() {
    int i = 0;
    int j;
    int j = i;//Primitive type creates new memory for variable
    return j; }
    Right? Or can I just return i? Will returning i result as a reference to i?
    Secondly, I am stumped on reference data type, example if I have :
    public String rtnstr() {
    String a = "a"
    String b;
    String b = a; //Can't do this right, it will just reference to the location of a?
    return b;
    So how do you actually copy a new a to and assign it to b? Oh ya, am I right to say arraycopy copies a new array and I don't have to worry about referencing?

    Noobie1987 wrote:
    Eh? So you mean to say I can just return or pass any variables, reference or primitive type, without fear of the original being modified?"Returning variables" does not pertain here, since when you return from a method, the variables are popped from from the stack and cease to exist. When you pass a variable to a method, a copy of that variable's value is used within the method. Changing the variable within the method does not affect the variable outside the method. Ever.
    But I thought 2 variables referencing the same memory location will affect each other if a change is made. AKA...
    String[] str = {0};
    String[] abc = str;
    abc[0] = 1;
    So str[0] will become 1?First, that example won't compile. Second, there is no passing of anything; just variable assignment.
    It is important to understand that variables do not contain objects. Read this: [http://www.javaranch.com/campfire/StoryPassBy.jsp]
    ~

  • No Service (what a surprise)

    I have been without phone service for a day and a half. This is the second time in the last two weeks. This time ATT swears nothing is wrong with their network.
    Any suggestions? I have gone through all the steps in the troubleshooting guide except restore. I can't do that because my powerbook is currently at the Apple store getting the hard drive replaced (it's been a bad week)
    Interestingly enough, the last call I was able to make, I made from the Apple store!
    Outside of not functioning as a phone, this is really a great phone!
    Any help is appreciated

    I must say that I'd be surprised to find a SIM replacement much affected a variable signal problem (though in fact I have had that very experience years ago in the UK so I know it can be a valid fix), but for the OP here where signal appears to have been lost completely (or nearly so) and where AT&T declare the network in that area is functioning, the SIM is the first thing I'd consider culpable.
    The issue regarding conflicting towers is certainly true however. It is rare that a location with any cell coverage is serviced by only a single transmitter on a single tower, and in many cases it's possible to find multiple towers all within range, operating transceivers on more than one band the cellphone can lock to. I'd assumed that some of the signal variation I see is at least the result of metering two bands from towers in range, where one has better penetration into the building and thus gives higher signal. In those situations, inductance caused by the proximity of the body and many other small factors could cause the phone to vacillate between bands/towers.
    Of course, much is speculative since neither AT&T nor Apple are all that open to describing the details of their service/equipment/devices, but I would be surprised if this sort of issue were not something that could be addressed in software. Indeed, I'm not sure from my experience with signal strength metering in the last 36 hours that some attempt hasn't already been made since I get far less dramatic variations in signal now that I did before the 1.0.2 update, and that is despite crossing a number of cell boundaries. Even so, it isn't 'fixed' if there has been an attempt.
    One way or another though, it's too easy to fall into the trap of assumption. Cellphones are radios, very lower powered ones, and as such the expectation of solid signal is almost inevitably going to lead to disappointment with a cell structure which is relatively sparse and where tower placement is often determined by cost and convenience rather than service need. We also don't know for sure how much variation in metering we see is actual variation of signal rather than variation of metering, and whether the metered signal is reflective of viability of service. I say that because I have noted that if I see a drop in signal while on a call, the quality of the call seems totally unaffected, while if I start a call on very poor signal, it seems to suffer audio artifacts. To some extent I wonder if the meter reacts to battery load, along with everything else!
    I guess I'm lucky - I live and work in areas with generally good coverage and that offer reliable use, so I can comfortably treat this as a curiosity. I do realize however, that for some this is a major frustration with the device, and in that regard I hope we have some competent explanations and a solution as soon as possible.

  • 7920 & CCKM in FSR network

    If anyone has deployed 7920 phones with CCKM in a fast secure roaming network, could you share your experiences regarding delay and voice quality? Is the 150ms re-authentication delay variable? If so, what factors affect the variability of this delay?
    Cheers.

    The major item for CCKM is the availability of the WDS. Ordinary LEAP handshake is cut to 2 802.11 messages, so will basically equal a static WEP roam. May be a little faster than 150ms at times.

  • Can someone help me with this cursor????

    Hello everyone.
    I want this cursor to do something when the cursor doesn't return anything.
    But the way I have it now - if the cursor is found it exits all cursors not just the inner one.
    And if I say do while the condition is false - I am stuck in that loop indefinitely.
    Am I limited to the # of cursor I can have within cursors?
    Thanks for your help.
    Open c_LHBill;
    Fetch c_LHBill INTO Dummy_Define;
    Exit When c_LHBill%Found; **THIS IS MY PROBLEM HERE
    Open c_FBPS;
    Loop
    Fetch c_FBPS into FBS_FBPLineID, FBS_Weight, FBS_Miles;
    Exit when c_FBPS%NotFound OR
    c_FBPS%NotFound Is Null; v_LHcostPortion1 := v_StopCharge + (FBS_Weight*FBS_Miles)/2000/
    (v_SumOfTonMilesL)*
    (FBP_AppTotal - (v_ShipmentCountL * v_StopCharge));
    Update FBPShipments set LHCostPortion = v_LHCostPortion1
    Where FBPLineID = FBS_FBPLineID;
    commit;
    End Loop;
    Close c_FBPS;
    CLOSE c_LHBill;

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Syed Naimathulla ([email protected]):
    Try replacing your codes with the following
    Open c_LHBill;
    Fetch c_LHBill INTO Dummy_Define;
    CLOSE c_LHBill;
    If Dummy_Define is not null then
    For i in c_FBPS Loop
    If {Check for your conditions here} then
    Update FBPShipments set LHCostPortion = i.{Related Column Name fetched in cursor}
    Where FBPLineID = i.{Related Column Name fetched in cursor};
    commit;
    Else
    Exit;
    End If;
    End Loop;
    End If;<HR></BLOCKQUOTE>
    Hi,
    The better approach is to use %FOUND and then set an flag rather than using Fetch as it does not affect the variable [Dummy_Define] at all, if no rows are returned by the cursor.
    null

  • Unusual loading of website

    I've noticed that Safari most if the time is slow at loading websites.
    Sometimes out of desperation at waiting so long I will click on the X link to stop the loading and then immediately click on the "reload the current page" link and the page will instantly load.
    Does anyone know why this hangup happens.

    I've wondered about this too. When it happens it is usually occurring after I post a reply to a question on these forums. (the irony doesn't allude me).
    Most of the time my web page loads are fast. Of course speed is affected by variables such as cable line usage, site traffic, etc.
    Here are some suggestions to speed things up:
    Go to the System Preferences>Network panel
    - Location - set up a personal location by clicking on the drop down menu and selecting "add a location". Use a name familiar to you. Once established, select "apply".
    - Next, click on the "Show" drop down menu and select Network Port Configurations. Only Ethernet (or Airport) ought to be checked. Move it to the top of the list (you can drag it). Select "apply".
    - Back to the "Show" menu, depending on your connection select "Ethernet" or "Airport". Click on the TCP panel. There, enter 208.67.222.222 and
    208.67.220.220 (separate lines) in the DNS servers box and select "apply".
    Creating a personal location, plus adding the DNS codes seems to speed things up. Otherwise, the "automatic" function has a tendency to "search" for available locations.
    In the Finder, go to your Utilities folder and select "Terminal". Once the screen is open enter lookupd -flushcache and press return. This clears out the DNS cache. Once done, quit Terminal.
    Post back

Maybe you are looking for