to make a cast or not cast varchar2 total length of index Resultatspour function?

I have a table where a set of four fields, plus a status must have a single status 'in progress' but can have many records of the status of "historic". Meanwhile, there is a synthetic independent status sequence key. I wrote a function index like this:

create an index only funcindex on mytable
(status of the case
When "history".
then to_char (synthetic_key)
When the 'current '.
then col1 | col2. COL3 | COL4
(end);

It seems to work, however, I'm curious to know how a data type is assigned and that what matters. The key to the synthesis is a number, but it is converted with "to_char' which does not have a length max. license terms 1-4 are varchar2 of different lengths.
Is there a need or enjoy adding the lengths of the passes 1-4 and cast the result of the case as varchar2 (sometotal) or the system should really be left to figure it out on its own?

PS - I use 11g and there is nothing special about the table. just a sequence and pk press the synth.

You can try to change the length of characters for VARCHAR2 columns and/or using the (x) NUMBER data type declaration and check how Oracle is calculation of index function based with key length:

select
column_name, column_length, char_length
from
user_ind_columns
where
index_name = 'FUNCINDEX';

See also http://jonathanlewis.wordpress.com/2009/06/05/online-rebuild/.

Tags: Database

Similar Questions

  • Game maker 8.1 does not run

    I need game maker 8.1 for my computers class. Every time I download it (I'm assured it's the mac version) and run it it say that the file is corrupt or incomplete. It does the same thing to program lego NXT platform.  What is the problem and how can I solve it? If more information must request of pease, because I don't know what else to add.

    -Thank you for reading

    If you mean YoYo Games Game Maker, please read this note.

    Anyway, you should not leave this setting of security on "Anywhere".

    I'll try this first. CTRL + click on the Game Maker icon. Select open. OS X should ask your administrator user ID and password. Enter this information. Now, the program should start.

  • Windows Movie Maker 2.6 agreeing not to videos to the MP4 Format

    Try to change some videos on my camera that is mp4 but Windows Movie Maker 2.6 said he does not support this format - help please

    Try to change some videos on my camera that is mp4 but Windows Movie Maker 2.6 said he does not support this format - help please

    ============================================
    You have posted in a forum XP and 2.6 MM does not work on XP.

    What version of Windows are you using?

    In any case... Movie Maker 2.6 is not compatible with MP4 files.

    Best bet would be to convert MP4 for the WMV files
    format before you import into Movie Maker.

    There are to many converters available on the net...
    some free, some details... the following freeware is
    just an example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)
    (* Read * all * the installation screens... it)
    may be a few items you want to unmark *)

    When you have installed Freemake... Open Freemake
    and drag and drop your video files on the main screen.

    Or... Click left on the video button and navigate to the
    your video files are saved in the folder.

    Select (highlight) the files you want to import into
    Freemake and left, click on the button 'open '.

    When video files are imported into Freemake,
    On the left, click the WMV icon at the bottom of the screen.

    The 'WMV output settings' screen opens.

    Choose a folder ' save in ', so you can find the
    converted files.

    On the left, click the "Convert" button and wait for the files
    to convert.

    That should do it...

  • Why did did you publish 2.6 of Movie Maker for Vista and not for XP?

    Original title: Movie Maker

    Hey Microsoft, I want to ask U! Why did did you publish 2.6 of Movie Maker for Vista and not for XP?

    Hello

    Movie Maker 2.6 is for Windows Vista users whose computer cannot run the Vista's Movie Maker version. However if you want to upgrade the Movie maker for Windows XP you can try to download Windows live essentials.

    Windows Live Essentials includes seven major programs Windows Live to help you stay in touch with the people you care most, edit and share your photos, blog, browse, search, and help your kids safer online. Programs include Windows Live Messenger, Mail, Writer, photo library, Family Safety, toolbar, and Movie Maker and Outlook Connector, Office Live Add-in and Microsoft Silverlight.

    Check the minimum system requirements for Windows XP.

    http://explore.live.com/Windows-Live-Essentials-system-requirements

    To download Windows Live Essentials refer:

    http://explore.live.com/Windows-Live-Essentials

  • I have an internal modem on my pc that is running windows server 2008, and I want to make a connection. Not a connection to an Internet service provider

    Hello

    I have an internal modem on my pc that is running windows server 2008, and I want to make a connection. Not a connection to an ISP, but to a mac. I want to transfer data via phone ports, have two computers without being connected to the outside world.

    Thank you

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.

    When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.  Help, please.

    As I suggested previously, conversion to a format like
    . WMV before you import it into Movie maker may be the solution.

    The free Converter from Microsoft can be a place to start:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601
    (runs under WinXP SP3 / Vista / 7)

    When you install the program...
    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    (If at any time you get lost while browsing
    the program of... to... Window / active Reset
    Type or workspace... CTRL + SHIFT + R)

    Look for the file/s that you want to convert.
    (If files do not appear... open the fall
    window and choose... All files)

    Click (highlight) left the files and the left on the Open button.

    You can see the files in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

    Now... try import you again. File WMV in Movie Maker.

    More converters:

    There are to many converters available on the net...
    the following links are some examples. You can
    need to experiment to find the best result.

    Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (1) format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup270.zip<>
    (FWIW... installation..., you can uncheck
    'all' boxes on the last screen... even in this case, it may
    install the Ask toolbar on your system)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup270.exe out of the folder
    and drop it on your desktop. To install left click.

    (2) Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)

    (3) Koyotesoft Free Video Converter
    http://www.koyotesoft.com/indexEn.html
    (2000/XP/2003/Vista/Seven)

    (4) Sothink Free Video Converter
    http://www.Sothinkmedia.com/video-converter/
    (Windows XP / Vista / 7)

    (5) hamster Free Video Converter
    http://www.PCWorld.com/downloads/file/FID, order 155794, 4 pages, 1/download.html
    (Windows XP, Vista, 7)
    (If you choose Custom Installation
    You can uncheck additional modules you
    do not want to install)

    (6) quick Media Converter
    http://www.Cocoonsoftware.com/
    (Win XP, Vista, Win 7 Home Premium)

    (7) SUPER © Simplified Universal Player Encoder & Renderer
    http://www.videohelp.com/tools/Super
    (the download mirror site is faster) (Windows XP / Vista / 7)

    (8) Xilisoft Video Converter
    http://www.Xilisoft.com/video-converter.html
    (not freeware but receives good reviews)
    (Windows XP (SP2 or later) / Vista / 7)

    Good luck...

  • I installed the SQL 4.0 developer and repository installation was a success. But the tools-&gt; Data Miner-&gt; Make visible option is not enabled. Also when I double click on the data minor user login I get the message the montrela

    I installed the SQL 4.0 developer and repository installation was a success. But the tools-> Data Miner-> Make visible option is not enabled. Also when I double click on the data minor user login I get the message workflow repository data need to be stored as xml binary on databases of version 11.2.0.4 or higher. You want to migrate your data from worklfow binary storage?  WARNING: All sessions with the ODMRUSER role will be disconnected.  Client version: 12.2.0.17.29 Version: 12.1.0.1.0 the database repository Version: 12.1.0.2.1. I don't have an older repository. Please help me solve this problem.

    Try to create a data minor user account (for example DMUSER) using the script createuser.sql in the \dataminer\scripts directory.  Use this user account to connect instead of the anonymous account.

    Thank you.

  • make the artboard does not take into account the effects

    Screen Shot 2016-01-18 at 14.35.26.png

    Hello

    When I click on my object, it only takes the vector part in accounts to make the artboard and not the effects. He used to work, but no more

    Thanks for the help!

    I think you're right, if it's a group, you get this problem.

    If she is divorced and the outer glow efffects are applied to a selection, the artboard adapts to the area, including the effects.

  • HP office jet 6500 model e709a - when I make a copy I get black lines the length of the copy.

    HP office jet 6500 model e709a - when I make a copy I get black lines the length of the copy.

    Make sure that the printer is plugged into a wall outlet directly and not in a surge protector. This, often, is the reason for lines appearing in the analyses.

    There is also a document containing information on how to address lines in scans/copies located here.

    I hope this helps.

  • Note remains 1/4 length in the partition editor when shortening

    Is there a way to see the actual size of the note in the score editor after resizing of the note in the list of events. Now a note remains a certain length...

    Hello

    Disable 'Interprétation' in the region of Score settings.

    TDC

  • ArraytoChannels error 'cannot be added because the channels of the target are not all the same length.

    Hello!

    After the end of my second day of test error, I put this question on the table:

    I use ArraytoChannels function to store ADO recordsets as strings. What is strange, is that for the first Recordset, it works; but for the next time through the loop, it always fails with the error message 'cannot be added because the channels of the target are not all the same length.

    I confirmed that:

    the RowData sizes and the ChannelNames are equal,

    both spend the isarray = true test,

    I change the order of the ChannelNames,.

    I have reconnected/disconnected from the oConnexion every time, nothing has changed.

    Apparently I'm missing something - but crazy to know what! -If anyone can share his opinion I'll so much appriciate. Here is my code:

    oTables = Array ("WellStates", "ChokeData", "WellParameters", "FlowData", "PumpData", "SensorsData", "ModelCalculatedData")

    Call OpenSQLConnection
    Set oRecordset = CreateObject ("ADODB. Recordset')
    Call SelectWell
    Call GetWellStateIDs

    Data.Root.Clear
    for j = 0 to ubound(oTables,1)

    sSQLSting = "select * []" & oTables (j) & "] where [WellStateID] between" & WellStateIDFirst & "and" & WellStateIDLast ".
    oRecordset.Open sSQLSting, oConnexion
    Protected oFieldNames: table: ReDim oFieldNames (orecordset. Fields.Count - 1).
    for i = 0 to orecordset. Fields.Count - 1
    oFieldNames (i) = orecordset. Fields.Item (i) .name
    next
    oArray = oRecordset.GetRows (-1, 0, oFieldNames)
    Set oGroup = Data .root .ChannelGroups .Add (oTables (j))

    oArray, oFieldNames arraytochannels
    oRecordset.close
    oConnection.Close
    next

    Sub GetWellStateIDs
    sSQLSting = "select * from [WellStates] where [wellid] =" & WellID
    oRecordset.Open sSQLSting, oConnexion
    oArray = oRecordset.GetRows)
    WellStateIDFirst = oArray (0,0)
    WellStateIDLast = oArray (0, ubound(oArray,2))
    oRecordset.close
    EndSub

    Sub OpenSQLConnection
    Set WshNetwork = CreateObject
    oComputerName = WshNetwork.ComputerName
    oDB = "MX2. Player.DB ".
    Set oConnexion = CreateObject ("ADODB. Connection")
    oProvider = "Provider = SQLOLEDB.1; Integrated Security = SSPI; PeoExecuteist Security Info = True; Data Source ='
    oProvider = oProvider & oComputerName & "\MX; Use procedure for prepare = 1; Machine translation = True; The packet size = 4096; Workstation ID ="
    oProvider = oProvider & oComputerName & " Use encryption for data = False; Tag with column collation when possible = False; Initial Catalog ='
    oProvider = oProvider & oDB
    oConnection.ConnectionString = oProvider
    oConnection.Open
    EndSub

    Another clue. If you check using DIAdem

    Microsoft Windows Script Debugger

    you are able to install the debugger in DIAdem.

    It would potentially have shown that the command does not work as expected.

    Sorry for the inconveniance

    Andreas

  • setSelectedIndex (index) on a ListField call does not set the focus to the index.

    Hi all

    I have a ListField I show in a popup. When the listField is displayed, the focus is not set to the game past index.

    Can someone please tell me what is missing here:

    ListField choiceList = new ListField() {
        protected boolean navigationClick(int status, int time) {
        int index = this.getSelectedIndex();
        fieldChangeNotify(0);
        FSApplication.getUiApplication().popScreen(FSApplication.getUiApplication().getActiveScreen());
        return super.navigationClick(status, time);
    }
    choiceList.setChangeListener((FieldChangeListener) uiFilter);
    choiceList.setCallback(new PopUpListCallback());
    add(choiceList);
    choiceList.setSelectedIndex(6);
    choiceList.setSize(choice.length, _selectedIndex);
    choiceList.setVisualState(VISUAL_STATE_ACTIVE | VISUAL_STATE_FOCUS);
    

    set the size and choices first, then the selected index.
    If this does not work, try invokelater for the index.

  • Acrobat Reader DC will not install. It goes about 85% and stops with a message that the file I am trying to achieve is on a network and not available.  Totally frustrated that many files need this program to open.

    Acrobat Reader DC will not install. It goes about 85% and stops with a message that the file I am trying to achieve is on a network and not available.  Totally frustrated that many files need this program to open.

    I got this program for years.  Update Windows 10 and after nothing more than headaches with he returned to Windows 7 and it is then Acrobat has stopped working.

    Hi lindat7439924,

    There is no uninstall for Mac Reader program. You can directly delete the application from the Applications folder, which is just trash/Applications/Adobe Reader.app.

    Then you can download Adobe reader from here: http://get.adobe.com/reader/enterprise/

    Kind regards

    Meenakshi

  • How to make a cast of a separate count to the type "double".

    Expert Hi

    I have a measure that represents the number of distinct products in a table m1 = count (distinct product_id)
    In responses, I create a new column m2 = sum (count (distinct product_id) per organization).

    When I do the *(m2/m1) 100 of division, the result is always a round number and because of (distinct) count returns an int.

    Is it possible to cast to a double type m1?
    tried using Cast RPD m1 but also double but it is not that I had an invalid expression error.

    Concerning

    Try (100,00 * m1) / m2

  • I want to make a donation, but not to give my name and address

    I want to make a donation, but you askoing for my name, address, etc. I don't distribute these unless there is a direct need (deliveries, etc.). I can not just give? I have an account of Firefox and I am connected.

    Thank you

    Nick

    Try using askjoin [at]mozilla.org as indicated on the FAQ page.

    Sorry, most of us is voluntary and is not directly involved with the donation procedures.

    I imagine that, unless you use some sort of secure terminal and are present in person the number of transactions; or postal donations require the address of the cardholder for security reasons. Otherwise perhaps fraudsters could clone and use your card or change the billing address without realizing you it.

Maybe you are looking for