index of information doubt

Hi all.
Can someone explain to me why the following results are always different?
I tried this on several database and the results are never the same, I expect somehow to be.
In any case, please see:
select count(*) from dba_objects where object_type='INDEX'
40654
select count(*) from dba_indexes
41782

.. This selects me didn't give different results, no mather on what database, I run, so I was wondering why? ... and what shows correct number selection

Indices in question are clues LOB:

{color: #3366ff} 1 select distinct from index_type
2 dba_indexes ind
3 where does not exist (select dba_objects 1 o
4 where o.object_name = ind.index_name and
o.owner = ind.owner 5 and
6 * o.object_type = 'INDEX')
SQL > /.
SQL > /.

INDEX_TYPE
{color}-
{color: #3366ff} LOB
{color} Check may also be performed with a different method:

{color: #3366ff} SQL > select count (*) from dba_indexes;

COUNT (*)
----------
* 3972 *.

Elapsed time: 00:00:00.10
SQL > select count (*) from dba_objects where type_objet = 'INDEX ';

COUNT (*)
----------
* 3214 *.

Elapsed time: 00:00:00.24
SQL > select count (*) from dba_objects where object_type = 'LOB ';

COUNT (*)
----------
* 758. *

Elapsed time: 00:00:00.23
SQL > select 3214 + 758 double;

3214 + 758
----------
* 3972 *.

Elapsed time: 00:00:00.00 {color}

Potentially, there is another possible source of offset:

{color: #3366ff}
1 select distinct segment_type in dba_segments
where the 2 (owner, nom_segment) in
3 (select master, dba_indexes index_name
4 less
5 * select master, object_name from dba_objects where type_objet = 'INDEX')
SQL > /.

SEGMENT_TYPE
------------------
LOBINDEX
INDEX PARTITION

{color: #000000} The conclusion is that there is a problem of terminology. Index of business are considered to be 'clues' but I don't know why. One
Impossible to manipulate them or change their settings.
{color} {color}

Tags: Database

Similar Questions

  • Reduced index rebuild the size of

    Hi all

    I think that this topic was raised by several times up to now... But I would like to know as I'm very curious.

    An array of size 6 GB with index btree of 300 MB, the size very high CPU load in that server (I think because of I/O), after the reconstruction of this size of the index came up to 250 MB.

    Now all my seniors ordered me to rebuild all indexes in the database that are huge in size, so that the i/o and CPU will be back to normal.

    I had the argument with my elder for the reason why we need to rebuild the index?
    Answer: As Oracle has access to this index it a lot of scan crashes a lot because of fragmentation. Oracle also has to scan all the blocks below the high water mark, where some blocks have fewer lines.

    My doubt is: when index is fragmented (candidate means that after reconstruction, reduced its size) made Oracle scans unwanted blocks below let high water is wrong, because the INDEX and TABLE are two different concepts, INDEX maintains information on which all blocks, it would seek the required values. So Oracle will not scan the blocks unwanted in the INDEX.

    Do may doubt is good or bad?

    A few details:
    The indicator is in DMT tablespace.
    Oracle 8i version.
    Sun solaris with 5.8 version, with 8 CPUS and 6 GB of RAM
    None of the indices have a height more than two.

    Plz HELP me in this concept... I want to prove my elders.

    -Yasser

    Yasserracdba,

    People learn their theory IT more. The normal index is implemented as a B *-tree structure.
    This means

                                                                      1 
    
                                                 2        3                              5            6
    
                                          7       8    9   10                    11     12    13     14
                                                       
    

    This means: block 1 contains information on block 2, 3, 5, 6 (I forgot 4, does not renumber)
    Block 2 about 7 and 8
    Block 7, etc are the leaves blocks and contain the actual keys.
    The key consists of key values and a rowid.

    The index is balanced. For a single scan will always tell you the same number of blocks, in this case 4
    (3 blocks + block index 1 data).

    IF YOU DON'T HAVE A CLUE, YOU WILL BE FORCED TO READ THE ENTIRE TABLE, THE TABLE SCAN COMPLETE THIS CALLED (YOU CAN SHOUT, I CAN SHOUT TOO)

    TO ACCESS THE INDEX MEANS SELF-CONTAINED BED, FULL TABLE SCAN MEANS SCATTERED MULTI BLOCK READING (BLOCKS END UP NOT CONTIGUOUS CACHE)

    FOR RANGE SCANS IO CAN BE REDUCED. TO LOOK UP A KEY INDIVIDUAL IO WILL NOT, I REPEAT N O T, REDUCE.

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

    Experts: those who don't read the documentation

    Published by: sybrand_b on May 28, 2009 11:04

  • Index on the Composite key to solve enq: TM - contention

    Version: Oracle 10g

    Hello

    I had enq: TM - restraints in my database, and I want to apply the index on the foreign key of one of the table column.

    But I see there are composite foreign keys and foreign keys unique in the table.

    Only foreign key I can easily create the index, but my doubt is that, for a composite foreign key,.

    Do I need to create the composite indexes on each column of the composite key or composite foreign key columns, I have to apply clue to solve the enq: TM - restraints question.

    For example: I have a foreign key below

    "FK_RECONDATA_DRIVER" CONSTRAINT FOREIGN KEY ('NRT', 'DADDRESSTYPE', 'DADDRESSNR')
    REFERENCES 'COL '. "" TURN ON THE FAZGFUEHRER ' ('NRT', 'ANSCHTYP', 'ANSCHNR'),
    "FK_RECONDATA_PRODUCT' FOREIGN KEY ('NRT',"PRODUCTNR") CONSTRAINT
    REFERENCES 'COL '. "" ENABLE SORT "("FNR","SORTENNR")

    Here the column FNR is common in both the foreign key.

    Please help me find how to create indexes on these columns.

    An index defined as ind_fk (a, b, c, e, f) will cover (1) (a) FK and FK (a, b, c).

    It however will not cover FK(a,e,f) because it does not start by all the columns of the FK.

    You must create an additional index that begin with (a, e, f).

    Best regards

    Mohamed Houri

  • display information in folders root on the table of contents

    RH8 HTML.

    I wonder that if there is a way to define a survey folder in a table of contents to display information, even just a list of subtopics in a main folder of a browser of WEbHelp and air base exit help.

    for example if you look at the help file in RH8, you click on a section of the table of contents at the top level, that is, tables of contents, indexes, glossaries. information appears and indicates what topics are described in this file in the help file.

    I want to do something similar with my help file, even if all the top-level folder, or a subfolder with subtopics just shows nothing until I click on a specific topic.

    hope that's clear, it's hard to explain... but surely a simple solution.

    Thank you.

    Nick

    Hi Nick

    I'm a bit confused as to exactly what you want to achieve here. I think that is a part of the question, you mix the terms files and TOC levels.

    When you automatically create a TOC RoboHelp certainly looks like the folder structure that exists in your project and creates a book for each file it encounters.

    Perhaps you mean ask how you configure books in your table of contents so that a click from the user, not only do they widen to reveal what are the links to topics within the book, but a topic displays on the right side that lists the explanations and links to what's in the book? If this is what you want, you will need to create a topic for each book. Make sure he read and appear as you wish, then use the 'Book with link' function of the table of contents to associate subjects with books.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7 or 8 days - $24.95!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • OpenScript / functional HTTP / what is the index?

    Hello

    I'm designing functional tests of http and I found that the read failed because the index number has changed (I think)


    Action, click:

    I used (button properties)


    [/ web:window[@index='1' or @title = "Export']/web:document[@index='0 information" or @name = "avye2ck58_16"] / web: a [@href ='{{db.] URL. URL}} / Mednext/faces/ADF. Task-Flow? [ADF.tfDoc=%2Fpages%2Fclmres%2Ftask-flows%2FCLMClaimInfoReportTaskFlow.xml & adf.tfId = CLMClaimInfoReportTaskFlow & inIsFromMain = true #' or @index = "6"]



    now, I have:

    [/ web:window[@index='1' or @title = "Export']/web:document[@index='0 information" or @name = "109lhcxnuz_11"] / web: a [@href ='{{db.] URL. URL}} / Mednext/faces/ADF. Task-Flow? [ADF.tfDoc=%2Fpages%2Fclmres%2Ftask-flows%2FCLMClaimInfoReportTaskFlow.xml & adf.tfId = CLMClaimInfoReportTaskFlow & inIsFromMain = true & _afrLoop = 947316640529847 & _afrWindowMode = 0 & _afrWindowId = null #' or @index = "7"]


    Please what is this index = "7"? because even looking in the html code, I can't find such index.

    Why is he changing of 6 to 7?


    Thank you.


    Michael.

    Michael

    The index is just a number to find an object with, so if you are looking for a link with index 3, which would be the third link on the page, note that we use a statement or when looking for attributes, so it will search for a NAME or ID or the HREF attribute and if she is not one of them, it will search the index.

    Usually, I tend to recommend people to remove the index of the path that the pages are today very dynamic and that can cause all sorts of unpredictable behavior, if we cannot find an object using its HTML attributes chances are that's not there, if its there attributes are dynamic you can use wildcards or regular expressions to generate a string of research better.

    Concerning

    Alex

  • Is the most recent HR is output to Word index bug?

    Before wasting any more time trying to get 12 index pages to match the 450plus-page document, or learn to, in a few days, how to manually index a great Word, not new versions of index RH outputs CORRECTLY doc? Just upgrade is perhaps the simplest thing (here in the corporate world) that he figure out on my own.

    Please let me know as soon as POSSIBLE!

    First of all, I would like to thank Peter Grange for taking the time to help. Even on the weekends! Thanks Peter!

    Problem solved--Yes Harvey, I even took my headers from level 4 to level 2. This helped, but not completely. This isn't the solution. Here's what I did.

    I copped RoboHelp. (!)
    I just couldn't make sense and then began to study more about the word index and information available online.
    For example, the Towson University has large format PDF on the Concordance of the files in Word.

    Procedure to obtain a usable index in Word:

    1. use HR to generate an index. Edit and manipulate according to needs
    2. all work out in Word.
    3 check and confirm your Word document.
    4. has the index Word, copied in the new file, deleted the page numbers and make a 2 column of this table.
    5 copied column 1 column 2 (second colum) can be used to change the display of text real index.
    6. has created a match with these data, which will be later exchanged AutoMark 'Index' of the Word as a file.
    7 closed Word - no need to save the document.
    8. I returned to HR and reloaded the work.
    9. completely remove all the index entries and save this way (without index).
    10 once again this work to the output Word.
    11. open the document in Word.
    12. now do my usual HR induced by need-for-repaginate (because of a bug in the image) and add necessary page breaks.
    13. go to the Index of Word feature and enter the concordance file and place the index finger if you wish.
    14. Add the header that says "Index:" (or whatever you want to the position of the Index.)
    15 repaginate table of contents and the Index and "Whallah! All page numbers now match the table of contents and Index.

    Now, the index is indexed to the PAGE not the SUBJECT!

    MRK

  • What is the "coefficient of basic" of the Satellite P200-140

    Is someone can you please tell me what is the Base for the P200-140 (WEI) Score?

    Hello

    Do you mean the basic Score of Vista?

    As far as I know the index Score of Base supports an index from 1 to 6 (6 copies)
    This index provides information on the performance of the computer and how fast the unit is.

    The problem is that the P100 series was delivered with different hardware specifications and therefore the base score can be different.
    Each part of equipment such as GPU, CPU, RAM, HARD drive affects the base score results

  • conversion string table file

    I'm new to LabVIEW and was thrown in the middle of a project, so I need to get a job quick code! Can someone help me understand why the VI I joined does not work? I want to have a text file that contains a list of integers that will be used to refer to specific elements in groupings within my program. I tried to follow an example that I found, but the output that should only be an array will come out as a Measurer. Any help would be great appreciated! Thank you!

    First, we will explain the cause of your error: the reason why this is happening, is that you try to do two different things at the same time. You are auto-indexation of the table and you are trying to index the table inside the loop. When you wire up a table one to to loop the loop auto-index. LabVIEW sense knows how often to perform the loop - there is no need to wire to the N. Also, the wire inside the loop will be an instance of the element of the array, not the table. Thus, the wire inside the loop is a scalar. Thus, the reason for the cut wire - you cannot index a scalar.

    Also, I'm not sure what you're trying to do with indexing of one of the elements of the cluster. The cluster is empty, so there is nothing to index. Without doubt, the file is there to tell you which items to remove from the table 'Amp2"of the cluster. If so, remember that automatic indexing works in two ways. If you connect a cable "out" on the edge of a loop that he auto-indexé it, which means that the output will be an array.

    Please read the help of LabVIEW on automatic indexing.

    Now, in light of all this, here's what your code should look like:

    Note the use of the reading of spreadsheet files VI. It makes your life easier.

  • performance score dropped to the areo program

    When I up date my graphic driver my score of microsoft dropped on my aero.

    Hello

    This problem occurs when Windows has already tested the system and have given the index marks. If the material has changed since the initial testing process,
    the original values are stored until they are updated. This procedure is performed to support existing software and features that rely on windows
    The experience Index rating information.

    To resolve this issue, follow these steps:
    1. click on start toreduce this includes this image, typeTools and performance information in the Search box, and then clickInformation on the performance
    Tools and
    in the programs list.
    2. If the following information appears, click Refresh now to update the Windows experience index:
    Your Windows experience index needs to be refreshed.
    Collapse this includes this imagIf that you are prompted for an administrator password or a confirmation, type the password or clickcontinue.
    Windows experience index evaluates the components of the computer.
    3 Note the value that appears next to your computer has a Windows Experience Index base score of.
    4. click Update my score.
    Collapse this includes this imageIf you are prompted for an administrator password or for confirmation, type the password or clickcontinue.
    Windows experience index evaluates the components of the computer.

    Refer to this article for more information:

    The ranking of the Windows experience index may inherit an incorrect value after that you make a change to the hardware configuration of your computer or you start
    Windows Vista for the first time:

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

    Kind regards
    Amal-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • list filed with menu navigation problem

    I list filed and I ' I use navigation () method to get the row index selected by a click but navigation click () method does not work, when I click on list fied line menu will open here is my code

    list = new ListField() {}
    protected boolean navigationClick (int status, int time)
    {
    index = list.getSelectedIndex ();
    System.out.println ("index is" + index);
    Dialog.Inform(""+index);
    Returns true;
    }

    };
    list.setEmptyString ("Empty", DrawStyle.HCENTER);
    list.setRowHeight (2 * getFont () .getHeight ());
    list.setCallback (this);
    List.Invalidate ();

    {public drawListRow Sub (ListField listField, Graphics g, int index, int y, int width)}
    TODO self-generating method stub

    String text = (String) favector.elementAt (index);

    g.setColor (0x000000);
    g.drawLine (0, y, Display.getWidth (), y);
    g.drawText (text, 0, y, DrawStyle.ELLIPSIS, width);

    }

    public Object get (ListField listField, int index) {}
    TODO self-generating method stub
    Return favector.elementAt (index);
    }

    public int getPreferredWidth (ListField listField) {}
    TODO self-generating method stub

    Return Display.getWidth ();
    }
    public int indexOfList (String prefix, int start, ListField listField) {}
    TODO self-generating method stub
    return 0;
    }

    Here is my update of the code, sorry the bad code

    public class Mysearch extends MainScreen implements FieldChangeListener, ListFieldCallback{
    
        private VerticalFieldManager mainManager;
        private VerticalFieldManager subManager;
        private Bitmap _backgroundBitmap = Bitmap.getBitmapResource("a.png");
        private int deviceWidth = Display.getWidth();
        private int deviceHeight = Display.getHeight();
        ButtonField gobtn;
        EditField editfild = new EditField();
        ListField list;
        String getedtflddata;
        Vector favector;
        URI str;
        Database db = null;
        int index;
        String text;
    
        public Mysearch() {
            // TODO Auto-generated constructor stub
            super(NO_VERTICAL_SCROLL);
            setTitle("Search");
    
            editfild.setBorder( BorderFactory.createSimpleBorder( new XYEdges(2, 2, 2, 2),
                    new XYEdges(Color.BLACK, Color.BLACK, Color.BLACK, Color.BLACK), Border.STYLE_SOLID));
            editfild.setBackground(BackgroundFactory.createSolidBackground(Color.WHITE));
            gobtn = new ButtonField("go",ButtonField.CONSUME_CLICK);
    
            list = new ListField(){
    
                protected boolean navigationClick(int status, int time) {
                    // TODO Auto-generated method stub
                    index = list.getSelectedIndex();
                    Dialog.alert(""+index);
                    return super.navigationClick(status, time);
                }
    
            };
            list.setEmptyString("Empty", DrawStyle.HCENTER);
            list.setRowHeight(2*getFont().getHeight());
            list.setCallback(this);
            list.invalidate();
    
            //this manager is used for the static background image
            mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR )
            {
                public void paint(Graphics graphics)
                {
                    graphics.clear();
                    graphics.drawBitmap(0, 0, deviceWidth, deviceHeight, _backgroundBitmap, 0, 0);
                    super.paint(graphics);
                }
            };
    
            //this manger is used for adding the componentes
            subManager = new VerticalFieldManager( Manager.VERTICAL_SCROLL |  Manager.VERTICAL_SCROLLBAR )
            {
                protected void sublayout(int maxWidth, int maxHeight)
                {
                    int displayWidth = deviceWidth;
                    int displayHeight = deviceHeight;
    
                    super.sublayout( displayWidth, displayHeight);
                    setExtent( displayWidth, displayHeight);
                }
            };
    
            /// add your component to this subManager
            subManager.add(editfild);
            subManager.add(gobtn);
            subManager.add(list);
            gobtn.setChangeListener(this);
    
            //add subManager over the mainManager
            mainManager.add(subManager);
    
            //finally add the mainManager over the screen
            this.add(mainManager);   
    
        }
    
        public void fieldChanged(Field field, int arg1) {
            // TODO Auto-generated method stub
                getedtflddata = editfild.getText().toString();
                System.out.println("string value"+getedtflddata.length());
                if(!(getedtflddata.length() == 0)){
                favector = new Vector();
                try{
                    System.out.println("inside try======");
                    str = URI.create("file:///SDCard/mydatabase.db");
                    db = DatabaseFactory.open(str);
                    db.beginTransaction();
                    Statement statmnt1 = db.createStatement(
                                    "select * from tbthought where goldenquote like '% "
                                            + getedtflddata + " %' or goldenquote like '"
                                            + getedtflddata + "' or goldenquote like '"
                                            + getedtflddata + " ' or goldenquote like '% "
                                            + getedtflddata + "' or goldenquote like ' "
                                            + getedtflddata + "' or goldenquote like '"
                                            + getedtflddata
                                            + " %' or goldenquote like '% "
                                            + getedtflddata + ".'");
    
                    statmnt1.prepare();
                    Cursor c = statmnt1.getCursor();
                    if(c.isEmpty())
                    {
                        Status.show("no match found");
                        System.out.println("no data found");
                    }else
                    {
                        c.first();
                        Row mr = null;
                         int il = 0;
                         while(c.next()) {
    
                           mr = c.getRow();
                           il++;
                           System.out.println("---"+mr.getString(5));
    
                           favector.addElement(mr.getString(5));
                         }
                         list.setSize(favector.size());
                         }
                         statmnt1.execute();
                         statmnt1.close();
    
                         db.commitTransaction();
                         db.close();
    
                         System.out.println("gfavector.size()="+favector.size());
                    }catch(Exception e)
                    {
                        try {
                            db.close();
                        } catch (Exception e1) {
                            // TODO Auto-generated catch block
                            System.out.println("go btn excptn="+e1.getMessage());
                            e1.printStackTrace();
                        }
                        System.out.println("go btn excptn="+e.getMessage());
                    }
                }else{
    
                    Status.show("please write some word..");
                    System.out.println("else part----------");
                }
    
        }
    
        public void drawListRow(ListField listField, Graphics g, int index,int y, int width) {
            // TODO Auto-generated method stub
    
            String text = (String)favector.elementAt(index);
    
            g.setColor(0x000000);
            g.drawLine(0, y, Display.getWidth(), y);
            g.drawText(text,0, y, DrawStyle.ELLIPSIS, width);   
    
        }
    
        public Object get(ListField listField, int index) {
            // TODO Auto-generated method stub
            return favector.elementAt(index);
        }
    
        public int getPreferredWidth(ListField listField) {
            // TODO Auto-generated method stub
    
            return  Display.getWidth();
        }
        public int indexOfList(ListField listField, String prefix, int start) {
            // TODO Auto-generated method stub
            return favector.indexOf(prefix, start);
        }
    
    }
    
  • Search within documents does not work

    Hi all

    I'm a technical support engineer in a company and we are facing following problem.

    For some users the windows search returns no results when you search for specific words that are written in a PDF (windows search) file is stored locally or on a network drive.

    We have already tried

    1. we checked the parameters of indexation (search is enabled for files indexed and non-indexed) in the Index options = > Advanced Options = > file types = > pdf filter is indicated in the description of filter and we scored "properties of the index and contents of the folder.

    2 installed Adobe iFilter

    3 remove a path from the register which is also responsible for this question http://support.microsoft.com/en-us/kb/977380

    4 recreated Index

    Information System

    Windows 7 SP1 Enterprise x 64

    Adobe Acrobat Reader 11.0.0

    If you need other information. Please let me know and I apologize for my bad English.

    Best regards

    This problem is not really related to Adobe Reader. It's a matter of Windows.

  • [ADF, JDev12.1.3] Opening SESSION: a session ID, HTTPSession, brought bean, UserData... where to store the information? (And other doubts...)

    Hallo,

    my simple application has this main stream job boundless...

    1)

    I see that when I call the login page of this URL http://127.0.0.1:7101 / MyApplication/faces/login, to which - in the address bar - it is auto-ajouté for example ' jsessionid = Wn2ymE_3cC2JXHYtG7_ocZDgMgonLyr376zejB-ui28UPlm5tiuB! 1535501325 ".

    So I guess that the session exists as soon as the user access the login page.

    • I would like to know if I have to worry about a possible previous session (especially another user session).
    • If the user on the home page click the back button in the browser the application creates a new session to destroy the possible previous session?
    • BdW, if my request to place the values in the HTTP session would be a good practice as part of the bean connection null all the attributes of the session?
    • And if my request to place the values in UserData would be a good practice as part of the bean connection null all the attributes of the container UserData?

    2)

    • Is it better to store the information in the HTTP session or UserData?
    • It is less safe than the other? Otherwise why is there the need to have 2 types of sessions?
    • Could he have no sense in storing an individual data in the HTTP session and UserData at the same time?
    • I have seen that the HTTP session is very easy to access, view and (if necessary) and the layers of the model. Is the same as for UserData, or it can be accessed only by the model layer?

    3)

    • In my case, I want to share my application the user in user data:
      • First and last name (only at the end of the display)
      • Name of the service (only at the end of the display)
      • Username and DepartmentId (these hairy should be passed to the query and the view of your criteria)
    • Where I put those values? Who, in the HTTP session? Who in UserData?

    4)

    • I'm in doubt if using a scope session bean or - since the data that I have to share is really little - use the 'basic' (e.g. ectx.getSessionMap () .put ("key", "ValueToStore")).
    • If I use an extended session bean and I store of simple values (integer, String,...) I don't have to worry about serialization (de)?
    • A scope session bean is accessible from the model layer as the HTTP session basis (what I can put by ectx.getSessionMap () .put ("Key", "ValueToStore"))?
    • And in my situation I could handle everything with a single between UserData anda HTTP session?

    These questions are intended to create a simple login system that stores data needed somewhere in the different parts of my application.

    So any advice is welcome!

    Thank you

    Federico

    1)

    I see that when I call the login page of this URL http://127.0.0.1:7101 / MyApplication/faces/login, to which - in the address bar - it is auto-ajouté for example ' jsessionid = Wn2ymE_3cC2JXHYtG7_ocZDgMgonLyr376zejB-ui28UPlm5tiuB! 1535501325 ".

    So I guess that the session exists as soon as the user access the login page.

    • I would like to know if I have to worry about a possible previous session (especially another user session).
    • If the user on the home page click the back button in the browser the application creates a new session to destroy the possible previous session?
    • BdW, if my request to place the values in the HTTP session would be a good practice as part of bean connection null all the attributes of the session?
    • And if my request to place the values in UserData would be a good practice as part of bean connection null all the attributes of the container UserData?

    -When you close your browser, this will destroy the session

    -None

    -It will be much easier to invalidate the entire session (HttpSession method for this object)

    -When you destroy the http session, it will destroy the Application modules, and it will destroy UserData

    2)

    • Is it better to store the information in the HTTP session or UserData?
    • It is less safe than the other? Otherwise why is there the need to have 2 types of sessions?
    • Could he have no sense in storing an individual data in the HTTP session and UserData at the same time?
    • I have seen that the HTTP session is very easy to access, view and (if necessary) and the layers of the model. Is the same as for UserData, or it can be accessed only by the model layer?

    -We already discussed in a previous thread so I won't comment

    -both are secure. HttpSession exist in java web applications and UserData is specific ADF.

    -Maybe (for example, it is not recommended to access the HttpSession of model project, so you can store some data in the UserData (to be referenced from your, etc.) and managed (so you can bind them directly to UI) Bean)

    -Are accessible only from template (but you can expose a custom to ViewController method that accesses UserData)

    3)

    • In my case, I want to share my application the user in user data:
      • First and last name (only at the end of the display)
      • Name of the service (only at the end of the display)
      • Username and DepartmentId (these hairy should be passed to the query and the view of your criteria)
    • Where I put those values? Who, in the HTTP session? Who in UserData?

    My opinion:

    Name, first name, name of the Department-> session brought average managed (so you can link that directly to the user interface components)

    UserId, DepartmentId-> UserData (or you can store managed bean and pass as parameters to methods of model project)

    4)

    • I'm in doubt if using a scope session bean or - since the data that I have to share is really little - use the 'basic' (e.g. ectx.getSessionMap () .put ("key", "ValueToStore")).
    • If I use an extended session bean and I store of simple values (integer, String,...) I don't have to worry about serialization (de)?
    • A scope session bean is accessible from the model layer as the HTTP session basis (I can put by ectx.getSessionMap () .put ("key", "ValueToStore"))?
    • And in my situation I could handle everything with a single between UserData anda HTTP session?

    -with getSessionMap () .put (), you must pay attention to the data types when you change or retrieve values (for example, do you know if DepartmentId is Integer, BigDecimal, oracle.jbo.domain.Number,..) If this isn't "type-safe". In addition, it is easier to understand what your application keep in session if you managed bean that in order to find all the places you're calling the method getSessionMap () .put ().  And controlled beans are a 'natural' way to keep data in a JSF/ADF application.

    -Not (just brand bean session with the Serializable attribute)

    -You can do something similar to this, but this is not a recommended practice because it would break the MVC pattern

    -If you do not have too much, you can keep everything in HttpSession and expose methods to set the binding vars.

    Dario

  • doubt on index

    Hello

    I have a table with cust_id. The data is in a good order (asc). You need to create an index on this column when I joined with other tables with the same column?

    Please give me your valueble comments on this... !!

    A doubt more

    How index will work on as operator if I use the index column for like operator?

    Concerning

    PR

    3b67e3fd-6d7a-4482-91B0-aa9f5c98b8ac wrote:

    Thank you Paul for your answer.

    See, I have inserted cust_id values in asending order... Means 1,2,3,4,...! It is the parent table. If I need index on this column to join other tables (Child).

    for the Like operator. I saw this url

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:1434815000346190059

    What are your comments..!

    Concerning

    PR

    Any order you inserted the: you can't rely on incentive at the back in that order, because, again, have no command lines.

    The only way to ensure that they come out in the desired order is to use an ORDER BY when you select.

    If it's a parent table and you want that the children refer to this column as a foreign key, then it must be a primary key

    column, which implies it is indexed or unique indexed column.

    To clarify my answer: it will not use the index for "something %' If you select columns that are not in the index." He could

    Use the index if all the columns you want are in the index.

    Even if the columns are not in the index, it can always use the index for like "something %'."

  • doubt about the Index Skip Scan

    Hi all

    I read the setting of Oracle performance guide (Version 11.2 Chapter 11). I just want to see index skip scan with an example. I created a table called t and inserted the test data. When I asked the table optimizer did not use the index skip scan path.

    Can you please let me know what mistake I am doing here.

    Thanks a lot for your help in advance.

    SQL > create table t (empno number
    2, ename varchar2 (2000)
    3, varchar2 (1) sex
    4, email_id varchar2 (2000));

    Table created

    SQL >
    SQL >-test data
    SQL > insert into t
    2 level, select "suri" | (level), ','suri.king' | level | ' @gmail.com'
    3 double
    4. connect by level < = 20000
    5.

    20000 lines inserted

    SQL >
    SQL > insert into t
    2 Select level + 20000, 'surya ' | (level + 20000), 'F', 'surya.princess'. (level + 20000) : ' @gmail.com '
    3 double
    4. connect by level < = 20000
    5.

    20000 lines inserted

    SQL > create index t_gender_email_idx on t (gender, email_id);

    Index created

    SQL > explain the plan for
    2 Select
    3 t
    4 where email_id = "[email protected]";

    He explained.

    SQL > select *.
    table 2 (dbms_xplan.display);

    PLAN_TABLE_OUTPUT
    ----------------------------------------------------------------------------------------------------------------
    Hash value of plan: 1601196873

    --------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------


    |   0 | SELECT STATEMENT |      |     4.  8076 |   103 (1) | 00:00:02 |
    |*  1 |  TABLE ACCESS FULL | T    |     4.  8076 |   103 (1) | 00:00:02 |
    --------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 - Filter ("EMAIL_ID"= "[email protected]")

    Note
    -----
    -dynamic sample used for this survey (level = 2)

    17 selected lines.

    See you soon,.

    Suri

    You have just demonstrated how your execution plan gets screwed up if you do not have your statistics

    SQL > create table t
    () 2
    3 empno number
    4, ename varchar2 (2000)
    5, varchar2 (1) sex
    6, email_id varchar2 (2000)
    7  );

    Table created.

    SQL > insert into t
    2 Select level, "suri" | (level), ', 'suri.king'| level | ' @gmail.com'
    3 double
    4. connect by level<=>
    5.

    20000 rows created.

    SQL > insert into t
    2 Select level + 20000, 'surya ' | (level + 20000), 'F', 'surya.princess'. (level + 20000) : ' @gmail.com'
    3 double
    4. connect by level<=>
    5.

    20000 rows created.

    SQL > create index t_gender_email_idx on t (gender, email_id);

    The index is created.

    SQL > set autotrace traceonly explain
    SQL >
    SQL > select *.
    2 t
    3 where email_id = "[email protected]";

    Execution plan
    ----------------------------------------------------------
    Hash value of plan: 2153619298

    --------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |     3.  6057.    79 (4) | 00:00:01 |
    |*  1 |  TABLE ACCESS FULL | T    |     3.  6057.    79 (4) | 00:00:01 |
    --------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 - Filter ("EMAIL_ID"= "[email protected]")

    Note
    -----
    -dynamic sampling used for this statement

    SQL > exec dbms_stats.gather_table_stats (user, 't', cascade-online true)

    PL/SQL procedure successfully completed.

    SQL > select *.
    2 t
    3 where email_id = "[email protected]";

    Execution plan
    ----------------------------------------------------------
    Hash value of plan: 2655860347

    --------------------------------------------------------------------------------------------------
    | ID | Operation | Name               | Lines | Bytes | Cost (% CPU). Time |
    --------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |                    |     1.    44.     1 (0) | 00:00:01 |
    |   1.  TABLE ACCESS BY INDEX ROWID | T                  |     1.    44.     1 (0) | 00:00:01 |
    |*  2 |   INDEX SKIP SCAN | T_GENDER_EMAIL_IDX |     1.       |     1 (0) | 00:00:01 |
    --------------------------------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    2 - access ("EMAIL_ID"= '[email protected]')
    filter ("EMAIL_ID"= "[email protected]")

    SQL >

  • Index Coalesced - how to check this information?

    Hi all

    Can you please help me with this info:

    I'm Coalescing index in a pattern in our database. I know this merges leaves blocks and removes fragmentation but only recover space as in the case of Index rebuild.

    I want to know if there is a way to check / confirm that a particular Index is merged successfully? I don't see any change OF VALUES IN - LEAF_BLOCKS, AVG_LEAF_BLOCKS_PER_KEY, CLUSTERING_FACTOR, SAMPLE_SIZE, dba_indexes LAST_ANALYZED. I think he must have seen there some dictionary that fills this kind of information. Please share your ideas / knowledge.

    Thank you very much
    Kerim

    Kerim says:
    Hello

    This info is helpful. I have not run a standard process to determine which indexes need to merge. We had an important activity DML / deletes in the scheme of the last week. So, rather than rebuild the indexes, we thought merge would be an option to try.

    And what do you hope to achieve by index coalescing/rebuild? Are you facing performance issues? Have you seen that the performance problem is "solved" by coalescing/rebuilding of the index?

    I see that you have demonstrated by example (analyze index validate structure) and then run merge and show how the stats changed in the INDEX_STATS table. This means running (analyze index validate structure) is a mandatory thing to do if we want to merge the indexes or is it just to see the details in the INDEX_STATS? Please confirm

    N ° you have to run INDEX ANALYSER... VALIDATE THE STRUCTURE. It is done only to see details in INDEX_STATS here.
    Your original question was where you can see the effect of the operation coalesce. So I showed you a place where you can see how coalesce affect the index.
    I hope this helps.

Maybe you are looking for

  • GoodGame Empire banner

    I get Goodgame Empire banner occasionally form in the top right corner of the screen. Any tips how to get rid of?I uninstalled Apps with AppCleaner folder and deleted form autorun. It appears always

  • All devices continue to ask for password to iCloud.

    I own 5 devices (MacBook Pro, 2 6, Air 2, Apple TV iPad iPhone). ICloud password request keeps looping and send me to the iCloud settings. It works for a little bit, and then asks for the password. It's so boring. How can I stop this?

  • need laptop screen

    Mr President.I have laptop model hp G60 230 us. The screen of my laptop is broken. It is not available on the market and to the hp service center. They said that "it is very old model laptop and so I can't help. I live in Patna, Bihar, India. so plea

  • Order of execution in one step

    I'm relatively new to TestStand, and I am trying to debug a problem with a file of sequence. I have a stage, which is a .NET adapter (not sure if it's perhaps relevant). In these properties in a loop has been activated, and a post term has also been

  • Best method to update PowerEdge BIOS/firmware offline

    Hi all I read in this topic for a week or 2 and trying to figure out the best method to keep all [reasonably] updated, on an independent network. I was recently watching in Dell Repository Manager and it seems that this could be what I need, but I wa