Y at - it a similar index in MySQL: CREATE INDEX part_of_customer customer WE (name (10));

Hello!

There is a column of type long varchar (3000 characters) in our user table to store the e-mail address of the user or a list of email addresses.

Most of the lines contain only a single address.

I want to add an index on this column, because there are many research in this column with a certain email address.

Y at - it a similar syntax that would allow me to create an index using only the part of the column as the index key as it is in MySQL?

This is the syntax of MySQL guides, I found:

Customer of CREATE INDEX part_of_name ON (name (10));

so in our table, it would be

CREATE INDEX in_partial_email on dtuser (email (150));

This works well in MySQL.

In Oracle if I try to index the entire column I'll end with

ORA-01450: exceeded maximum key length

I would be happy for any information on this topic!

BR saturation

Please see the example:

create table ttt (col1 varchar2 (2000));

create index ttt_idx on ttt (substr (col1, 1, 20));

going to index on the first 20 characters of col1.

Tags: Database

Similar Questions

  • Against the same table, similar index result in very different performances

    Hi guys,.

    31%
    create table TRACING_0727
    (
      ID             CHAR(36) not null,
      CALL_ID        CHAR(36) not null,
      CALLER_ID      VARCHAR2(100) not null,
      TIME_STAMP     VARCHAR2(50) not null,
      PACKAGE_NAME   VARCHAR2(30),
      PROCEDURE_NAME VARCHAR2(30),
      BEGIN_DATE     TIMESTAMP(6) not null,
      END_DATE       TIMESTAMP(6),
      EXCEPTION_TXT  VARCHAR2(500)
    )
    ;
    -- Create/Recreate primary, unique and foreign key constraints 
    alter table TRACING_0727
      add constraint TRACING_0727_PK primary key (ID);
    -- Create/Recreate indexes 
    create index TRACING_0727_IX on TRACING_0727 (CALL_ID); 
    After reboot, I have run below the statement that costs me about 1 second. And this statement uses TRACING_0727_PK:
    select count(*) from enterprise_tracing_0727;
    After another reboot, I run below the statement that is forced to use TRACING_0727_IX, and it takes about 30 seconds:
    select /*+index(tracing_0727 TRACING_0727_IX)*/ count(*) from tracing_0727;
    The table about 400000 lines and the oracle server is on my laptop, the server is not busy. The field ID and CALL_ID are both a string GUID.
    In my opinion, these 2 indices are similar, and their size must be similar too, since count (*) select will make the analysis of the overall index, the performance of these 2 sql should be similar, but why they are so different in my test? I test several times and each time I get the same result.

    Thanks in advance.

    Hi Serge

    Yes, the reason is that the first query is using an Index fast Full Scan and by reading diluvium (fast), while the second uses a Full Index Scan and by reading one piece (slow).

    You must change the flag to an INDEX_FFS hint to get the second clue to also use a FFS.

    See you soon

    Richard Foote
    http://richardfoote.WordPress.com/

  • index.html and the name of frameset

    Hello:

    I am a new student taking Dreamweaver 8 at the local college. We worked on the basics and I am so very confused. I read through other resources that should save frameset as index.html. The instructor did not offer this information, which allows us to think that we should have a page index and the frameset page.

    Today, we had the hands in the medium term, and we were responsible to make a game of only 2 images, frames that seemed easy enough... we were asked to name frameset by a particular name, then download an index.html. Then, we were asked to insert the navigation bar on the frame page, which had no other content... I am so confused now... Most of us did not complete the review. Please, please help me... The name of frameset be index.html? Thank you very much.

    > (I guess that's also me thanking you Murray for bits of help you
    > data
    (> me over time)

    You are welcome!

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "the9Ulaire" wrote in message
    News:ffbkvk$57u$1@forums. Macromedia.com...
    > When I saw the title of this thread, I knew that the author could take a lot of
    > info
    > why you should not use the frames! I think I got the same; live
    > and
    > learn!
    >
    > (I guess that's also me thanking you Murray for bits of help you
    > data
    (> me over time)
    >
    >

    Quote:
    Posted by: newsgroup user
    > Good luck! Sorry for the mug shot...
    >
    > --
    > Murray - ICQ 71997575
    > Adobe Community Expert

    >
    >
    >

  • I would like to consolidate my favorites in similar categories, possibly by creating new folders. How would I go to do this?

    I have several bookmarks of different types, such as games, driving, professional, etc.. I usually scroll through often, but would like a way to group them.

    You must configure desktop Firefox Sync and your Android device to be able to change the layout of bookmarks.

    https://support.Mozilla.org/en-us/KB/how-do-i-set-sync-my-computer

  • How can I add a sentence of two words to the index

    I am trying to speed up the process of adding the Latin names of plants and animals to an index using Indesign CS4. It's about two sentences of Word (kind + species) that must be put in the level 1 heading and level 2 of the theme of the new dialog boxes reference page (Index). [Using Ctrl 7 to call puts her just everything that is selected in Topic1 in dialogue and using the keys Shift + Ctrl + Alt +] adds an index entry of "own name" (name, first name) is not that good. When the information has been entered, a simple nested index can be produced, sorted by type and species.

    I'm used to programming using vb in MS Office, but I'm totally new to javascript and it took two days to reach this day. The first problem is that if the user only places an insertion point in the first word (like), I can't understand how to move to the second word (species) to save it to a variable.

    So I have:

    var myTopic1 = ""; heading level 1, which is of type

    var myTopic2 = ""; level 2, i.e. species theme

    myIP = app.selection [0];

    myTopic1 = myIP.words [0] .silence;

    It works on an insertion point in any word, or if a sentence is highlighted will be the first word.

    Is there a simple way to copy the second word after the insertion point to myTopic2? I have tried different methods but can't get anything to work. I thought it would be a simple matter of adding 1 to the index of the paragraph containing or history.

    I've got round this in a very long-winded way by asking the user to choose the kind integer + chain species, then work the position of dividing it space and rebuild the genus and the species character by character:

    var myString = ""; selected by the user string: kind + species

    myString = myIP.contents

    myStringlen = myIP.contents.length

    var xposn = myString.indexOf(""); gives the character space (first) within the selected channel number

    var yposn = 0; beginning of the string

    myTopic1 = myString.charAt (yposn);

    While (yposn < (xposn-1))

    {

    myTopic1 = myTopic1 + myString.charAt (yposn + 1);

    yposn ++;

    }

    While (xposn < myStringlen)

    {

    myTopic2 = myTopic2 + myString.charAt (xposn + 1);

    xposn ++;

    }

    show results:

    Alert ("Topic1 =" + myTopic1 + ".") Section 2 = "+ myTopic2);

    If at this point, I need to understand how to call the new dialog box reference page with informed Topic1 and section 2? I would like to than the ability to override the format of the page reference 'Number of Style Override' characters, if prefer to conclude the script with the left side of the open dialog box. Is it possible using script, or do I need a custom dialog box? Moreover, it would also be good just automatically save Topic1 and Topic2 and insert the mark of index at the point of selection without invoking the dialog boxes. I am really struggling to get anywhere with this, can someone please help! Thank you very much. Sorry for the long post.

    Jump, which is horribly slow in most cases (i.e., the text with more than a few thousand characters).

    It is much faster. "The index" of a Word is its offset from the beginning of its history. Similarly, the 'index' of its container, paragraph is the offset from the first character in the paragraph. Subtract, and you have the position of the word in this paragraph. Knowing that and the length of the original Word and adding a '1' for the next space, you can use 'fit' to enter the right word after that:

    word1 = app.selection[0].words[0].contents;
    par = app.selection[0].paragraphs[0];
    word2 = par.contents.substr(app.selection[0].words[0].index-par.words[0].index+word1.length+1).match(/\w+/);
    alert ('['+word1+' '+word2+']');
    
  • PE-10 Visual similarity search works do not always get a 0% similarity

    Hi, thanks in advance for your help!

    I am running PE - 10 on a new Dell XPS 8300, Windows 7, 64-bit, 12 GB memory and 750 GB of free disk space.

    When I try to start the Visual similarity search in the Organizer, I get 0% similarity returned for all images and photos at the beginning of the list will look nothing like the photos that I started with. Visual similarity search worked when I started building my catalog. I don't know when it stopped, but it was after the catalog had a few thousand photos. There are now more than 16000.

    I tried to repair, rebuild the index of the Visual similarity and optimization in the menu catalogue. I tried to remove the editor preferences file, and I have uninstalled and reinstalled. I tried to re - generate the thumbnails and the reconnection of the files lose.

    I am running out of ideas, I hope you can help me!

    Thanks again.

    Hello

    I think that you should remove the previously generated for Visual similarity indices. To do this, close the organizer and go to %programdata%\Adobe\Elements Organizer\Catalogs... Go to the folder corresponding to your catalog and rename the file "WaldoData" to say "WaldoData_".

    Now restart Organizer, click file > catalog > select your catalog catalog optimize and repair (check the box for re-construction indices) and try to similarity Visual search. Visual similarity index building will occur on all media and will take time. Let him finish.

    Hope this will help. Let me know as soon as do you.

    Thank you

    Catherine

    Message edited by: andaleebfatima1 - checked this for my catalog, but there has not been any this question but clues are rebuilt and results are shown.

  • To the target index maintenance

    When the replication of data occurs to the database target (database source and target are Oracle) through GoldenGate for a specific table, the corresponding Index table to the target also get day?

    Is there a requirement that a similar index should also exist in the source table to achieve?

    GoldenGate uses standard DML operations to apply the data on the target system. Because it uses standard DML (via OIC) all the indexes that exist on the target system are automatically updated by Oracle.

    You can have a totally different indexing scheme on the target that you do on the source. While creating a live reporting environment many customers add additional indexes on the target to help the reports run faster, OLTP performance is no longer a consideration.

    You can even have different keys on the source and the target. In this case, there is manual labor, and you need to specify the keys in the parameter files using the KEYCOLS parameter.

  • Problem connecting MySQL

    Operating system: Linux Red Hat v5 (2.6.18 - 8.e15 output kernal.os)
    Cold Fusion: developer Trial Version 8
    MySQL version: 5.0.51a
    MySQL connector (installed in/opt/jrun4/lib): mysql-connector-java - 5.1.6 - bin.jar
    (Verified by sysctl and phpMyAdmin) host name: //juniperweb/jsihome.com
    Port of MySQL to listen (checked through phpMyAdmin): 3306

    Apache web server: works
    PHP: works
    MySQL: works with php
    Cold Fusion: works (works of CFIDE/administrator/index.cfm)

    Data Source settings tried:
    Type: MySQL (4/5)
    CF Data Source Name: junipersys
    Database: junipersys
    Server: //juniperweb/jsihome.com
    Port: 3306
    Username: Web site
    Password: *.

    and:

    Type: other
    CF Data Source Name: junipersys - other
    JDBC URL: jdbc:mysql://juniperweb/jsihome.com:3306 / junipersys
    Class driver: com.mysql.jdbc.Driver
    Username: Web site
    Password: *.

    The two parameters raise the following error:

    Connection verification failed for data source: junipersys-other
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    * NESTED EXCEPTION OF START *.
    MESSAGE from java.net.ConnectException: connection refused
    STACKTRACE:
    java.net.ConnectException: connection refused
    at java.net.PlainSocketImpl.socketConnect (Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket. (Socket.java:366)
    at java.net.Socket. (Socket.java:209)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
    to com.mysql.jdbc.MysqlIO. (MysqlIO.java:267)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)
    to com.mysql.jdbc.Connection. (Connection.java:1553)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
    at coldfusion.server.j2ee.sql.pool.JDBCPool.createPhysicalConnection(JDBCPool.java:589)
    to coldfusion.server.j2ee.sql.pool.ConnectionRunner$ RunnableConnection.run (ConnectionRunner. java: 67)
    at java.lang.Thread.run(Thread.java:619)
    * END NESTED EXCEPTION *.
    Last packet sent to the server was there is 0 ms.
    The root cause was that: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    * NESTED EXCEPTION OF START *.
    MESSAGE from java.net.ConnectException: connection refused
    STACKTRACE:
    java.net.ConnectException: connection refused
    at java.net.PlainSocketImpl.socketConnect (Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket. (Socket.java:366)
    at java.net.Socket. (Socket.java:209)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
    to com.mysql.jdbc.MysqlIO. (MysqlIO.java:267)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739)
    to com.mysql.jdbc.Connection. (Connection.java:1553)
    to com.mysql.jdbc.NonReg...

    Any help much appreciated.

    Dan Parchman
    IT technician
    E-mail: [email protected]
    Phone: 435.774.8992
    Web: www.junipersys.com

    Juniper Systems, Inc..
    North West 1700 1132
    Logan, UT 84321
    Phone: 435-753-1881
    FAX: 435-774-8990 or 435-753-1896


    Solution found:

    jump network has been established in the my.conf file, then MySQL rejected all requests for connection to the CF.

  • Simple MySQL-related Question

    Dear all,

    Sorry for the display of MySql issue in Oracle forums.


    I am an Oracle DBA. I have a task to get the number of records in a particular table residing in the MySql database. It's pretty simple in Oracle using SQL * more.

    Here is my sql script to know the number of records in the table "T1", I call it b.sql:
    conn test/test
    select count(*) from t1;
    exit;
    and that's how I run against the database to oracle using SQL * more:
    C:\oracle>sqlplus /nolog @c:\b.sql
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Apr 19 14:34:05 2010
    
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    
    Connected.
    
    COUNT(*)
    ----------
    11253
    
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    C:\oracle>
    I need a similar script in MySql. Grateful if you could help me in this basic task.

    Concerning

    Prem

    Do you mean that?
    http://www.electrictoolbox.com/MySQL-execute-statements-text-file/

  • Link to database for MySQL with Oracle Express

    Hello Oracle Community,

    I made a post on this topic already in the section general, but here is the best place for my question. My goal is to access a mysql to oracle server. Some info about my system and what I've done so far:

    Windows Vista 64-bit
    Oracle Express 10.2

    -installed 32-bit DNS ODBC driver for the database mysql, tested and it succeeded, the name is CHANCE
    -created a new file in the folder admin/hs initLuck.ora, prameters are: HS_FDS_CONNECT_INFO = CHANCE HS_FDS_TRACE_LEVEL = OFF
    -new section in the listener.ora: (SID_DESC = (SID_NAME = CHANCE) (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server) (PROGRAM = hsodbc))
    -new section in my tnsnames.ora: CHANCE = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = GOGAPC01001)(PORT = 1521)) (CONNECT_DATA = (SID = CHANCE)) (HS = OK))
    -inexplicable the listener
    -Do a bit of luck, success of tnsping
    -created a link of database: CREATE DATABASE LINK LUCK24 CONNECT TO 'user' IDENTIFIED BY 'password' USING 'LUCK24 ';
    -tried to do a simple select statement: SELECT COUNT (*) FROM customers@LUCK;

    and there I get an error message:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:
    [Generic connectivity using ODBC] [Microsoft] [ODBC driver manager] Der Datenquellenname wurde nicht found, und're wurde kein Standardtreiber angegeben (SQL State: IM002;) SQL Code: 0)
    ORA-02063: preceding 2 lines of LUCK24

    can anyone help?

    Ikrischer

    Ikrischer,
    On which platform do you have installed the drivers 32 bit and HSODBC? He was on a Windows 32-bit platform? It is not supported to run the 32-bit software on a Windows 64-bit platform.
    There were some problems with versions 10.2.0.3 and earlier that are similar to those you typo - problems with bigint and select count. These are laid down in the 10.2.0.4 group of patches, so you should apply to your ORACLE_HOME 10.2 directories and see if the problem still occurs.
    However, as already said HSODBC 10.2 is now desupported you need to find to install 11.1.0.6 DG4ODBC and then apply the 11.1.0.7 patch group which also solves the problem.
    If you have access to My Oracle Support then see this note.

    Select columns MySQL Bigint use HSODBC returns an incorrect value when you use ODBC MySQL Connector (Doc ID 401086.1)

    Kind regards
    Mike

  • Created a MySQL 5.0 database

    Hi all

    I get the following error message when I try to add a new Data Source:
    Connection verification failed for data source: learningcoldfusion
    java.sql.SQLException: unable to connect to the MySQL server on localhost: 3306. Y at - it a MySQL server running on the machine/port that you try to connect? (java.net.ConnectException)
    The root cause was that: java.sql.SQLException: unable to connect to the MySQL server on localhost: 3306. Y at - it a MySQL server running on the machine/port that you try to connect? (java.net.ConnectException)

    Below, you will find the steps I used:

    I installed MySQL 5.0 and creating a database:
    MySQL > create database learningcoldfusion;

    Adds the user CFL learningcoldfusion and give to all CFL user privileges:
    MySQL > grant all privileges on learningcoldfusion.* to 'lcf'@'localhost' identified by 'coldfusion ';

    Open ColdFusion Admin and went to the page to add a new Data Source. I have entered the following information:
    Data Source name: learningcoldfusion
    Driver: MySQL (3.x) Note: who was the only driver available without MySQL 5.0 MySQL
    CF Data Source Name: learningcoldfusion
    Database: learningcoldfusion
    Server: Localhost Port: 3306
    Username: CFL
    Password: coldfusion

    When I clicked on the "Submit" button, I received the following message:
    Connection verification failed for data source: learningcoldfusion
    java.sql.SQLException: unable to connect to the MySQL server on localhost: 3306. Y at - it a MySQL server running on the machine/port that you try to connect? (java.net.ConnectException)
    The root cause was that: java.sql.SQLException: unable to connect to the MySQL server on localhost: 3306. Y at - it a MySQL server running on the machine/port that you try to connect? (java.net.ConnectException)

    I checked the State of the port 3306 and he said belonged to the TCP process:
    C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe

    I don't know how to solve this problem, if someone could help me I would really appreciate it.

    Thank you
    Barry
    www.witstoronto.ca

    > I get the following error message when I try to add a new Data Source:
    > The connection verification failed for data source: learningcoldfusion
    > java.sql.SQLException: unable to connect to the MySQL server on localhost: 3306.
    > Is
    > it a running MySQL server on the machine and the port you want to connect
    > à ?
    > (java.net.ConnectException)

    http://www.Adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19170

    Excerpt from mysql-connector-java - 3.1.13 - bin.jar and put it in your
    CF file to/wwwroot/WEB-INF/lib of installation directory

    Then in your data sources instead of choosing what you were doing, choose
    'other' for the driver.
    Entry: jdbc:mysql://localhost:3306 / databasename
    Class must be: com.mysql.jdbc.Driver
    You are then prompted to name - call it what you want.

  • Performance the use of a 'Like' filter * is not due to the index right question *.

    Hello
    We have just published an Oracle APEX application for users and encountered a performance problem in the production version that wasn't developing. The interactive report contradicts a simple view that returns data similar to:

    NAME VALUE MIN MAX
    1 1 3 BEL123
    3 3 4 BEL245
    2 1 3 AB222


    The problem is that when you use a filter on the column name with a similar operand (name LIKE "% NICE"). Performance of the queries are very poor (average is 29 seconds to return based on the statistics of the APEX). Are huge paintings, but the performance development is fast (almost instantly). Here are the things I looked in to try to identify the problem:

    (1) I tried to run the same exact query in SQL * more performance is fast in production and development, so it's not the index.
    (2) creating any new reports from zero causes the same results in production and development. So its not anything specific that has been changed in both versions (which are identical)
    (3) put the NAME Like "% NICE" directly in the clause the report SQL product quick returns in production, so the problem is not the user of APEX not seeing the index for some reason any. It also ensures that differences in data in two databases are not the cause of this.

    So my only theory that is somehow using similar filter does not allow the index on the column NAME to be used, but only in the production. Any ideas... I am at a loss.

    Published by: user491396 on January 7, 2009 14:18

    I think that if you run the same exact query that generates the APEX, it wouldn't matter if you ran the query of the APEX or SqlPlus. He would still use the same execution plan.
    It seems to me that the optimizer for some reason any do not push predicates in the view which might then a more optimal plan. You could try the 'PUSH_PREDICATE' or 'FIRST_ROWS' advice in the report query and check the generated execution plans to see if they change.

    CITY

  • The initial index for CRS 11.2 fails: ' Could'nt find the component in the register case number.

    Hello

    I installed CRS 11.2 and started the full initial deployment. The end of it, ProductCatalogSimpleIndexingAdmin automatically starts a benchmark, as it should.

    However, this benchmark index fails with the following exception:

    12:47:49, 111 ERROR [nucleusNamespace.atg.commerce.endeca.index.ProductCatalogSimpleIndexingAdmin] (index - / atg/commerce/short/index/ProductCatalogSimpleIndexingAdmin) null: java.lang.RuntimeException: java.io.IOException: could find the Instance of the component in the register number: http://localhost:8500 / StagingCRS-dimvals /? wsdl

    See the full exception stack trace below.

    When I manually trigger another Index from the base line, the result is the same. The call manually the URL indicated in the error message in a browser returns a page with a simple message "Not found service".

    I did all the CRS installation and repeatedly, installation to check if I missed a step, but with the same result.

    Here's the full stack:

    12:47:49, 111 ERROR [nucleusNamespace.atg.commerce.endeca.index.ProductCatalogSimpleIndexingAdmin] (index - / atg/commerce/short/index/ProductCatalogSimpleIndexingAdmin) null: java.lang.RuntimeException: java.io.IOException: could find the Instance of the component in the register number: http://localhost:8500 / StagingCRS-dimvals /? wsdl

    at com.endeca.itl.service.ServiceLocator.getService(ServiceLocator.java:224)

    to atg.endeca.index.RecordStoreDocumentSubmitterSessionImpl. < init > (RecordStoreDocumentSubmitterSessionImpl.java:233)

    to atg.endeca.index.RecordStoreDocumentSubmitterSessionImpl. < init > (RecordStoreDocumentSubmitterSessionImpl.java:180)

    at atg.endeca.index.RecordStoreAggregateSessionImpl.createSession(RecordStoreAggregateSessionImpl.java:125)

    at atg.endeca.index.RecordStoreAggregateSessionImpl.createSession(RecordStoreAggregateSessionImpl.java:64)

    at atg.endeca.index.AbstractRecordStoreAggregateSession.getSessionForKey(AbstractRecordStoreAggregateSession.java:322) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.AbstractRecordStoreAggregateSession.getSessionForContext(AbstractRecordStoreAggregateSession.java:284) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.AbstractRecordStoreAggregateSession.getSessionForCurrentContext(AbstractRecordStoreAggregateSession.java:273) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.AbstractRecordStoreAggregateSession.submitRecord(AbstractRecordStoreAggregateSession.java:362) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.PerApplicationExporter.exportRecords(PerApplicationExporter.java:393) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    to atg.endeca.index.PerApplicationExporter$ 1.performActionForApplication(PerApplicationExporter.java:287) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.configuration.IndexingApplicationConfiguration.executeForEachApplication(IndexingApplicationConfiguration.java:456) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.PerApplicationExporter.export(PerApplicationExporter.java:282) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.PerApplicationExporter.performBaselineUpdate(PerApplicationExporter.java:479) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.admin.IndexingTask.doTask(IndexingTask.java:445) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.endeca.index.admin.IndexingTask.performTask(IndexingTask.java:388) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    to atg.endeca.index.admin.IndexingPhase$ IndexingTaskJob.invoke (IndexingPhase.java:501) [_DAF. [Endeca.Index_slib_sclasses.jar:]

    at atg.common.util.ThreadDispatcherThread.run(ThreadDispatcherThread.java:178) [_DAS_slib_sclasses.jar:]

    Caused by: java.io.IOException: could find the Instance of the component in the register number: http://localhost:8500 / StagingCRS-dimvals /? wsdl

    at com.endeca.itl.util.UrlUtils.ping(UrlUtils.java:195)

    at com.endeca.itl.util.UrlUtils.ping(UrlUtils.java:147)

    at com.endeca.itl.service.ServiceLocator.getService(ServiceLocator.java:215)

    ... more than 17

    Thanks for any help,

    Andreas

    Thanks for the information, it looks like the EAC application name that was created and the name of the application SimpleIndexAdmin trying to talk are different.

    initialize_services.sh created dimval record store with the name of CRS-dimvals however your application tries to talk to StagingCRS-dimvals. EHR you can correct the short Atg configs application name, or you can create another application with the name StagingCRS

    Thank you very much

    Vaibhav

  • ALTER INDEX with parallel and Nologging

    I want to move some indexes to a different tablespace. For this I use the SQL below:

    XYZ ALTER INDEX REBUILD TABLESPACE TS_INDX01 NOLOGGING PARALLEL 8;

    I use NOLOGGING and PARALLEL thinking it will speed up the process of movement. But now I'm confused because I think that this will change the index property, as in, when we create an index specify us certain parallels and logging properties.

    So I want to understand:

    1. the SQL above to change the properties of the index?

    2. How can I check the existing nologging and parallel properties of an index?

    SQL> create table temp (no integer, name varchar2(100));
    
    Table created.
    
    SQL> create index temp_idx on temp(no);
    
    Index created.
    
    SQL> select degree, logging from user_indexes where index_name = 'TEMP_IDX';
    
    DEGREE                                   LOG
    ---------------------------------------- ---
    1                                        YES
    
    SQL> drop index temp_idx;
    
    Index dropped.
    
    SQL> create index temp_idx on temp(no) nologging parallel 5;
    
    Index created.
    
    SQL> select degree, logging from user_indexes where index_name = 'TEMP_IDX';
    
    DEGREE                                   LOG
    ---------------------------------------- ---
    5                                        NO
    
    SQL> alter index temp_idx parallel 1 logging
      2  ;
    
    Index altered.
    
    SQL> select degree, logging from user_indexes where index_name = 'TEMP_IDX';
    
    DEGREE                                   LOG
    ---------------------------------------- ---
    1                                        YES
    
  • Unused indexes

    create table big( id number, name varchar2(100));
    insert into big(id, name) select rownum, object_name from all_objects;
    create index big_index on big(id);
    
    
    
    
    
    
    select count(*) from big;
    1260398 
    
    
    
    
    1.EXPLAIN PLAN FOR  
    SELECT   ID  FROM big ORDER BY id; 
    
    
    SELECT *  FROM TABLE(DBMS_XPLAN.DISPLAY); 
    
    
    Plan hash value: 1222949096
    
    -----------------------------------------------------------------------------------
    | Id  | Operation          | Name | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |      |  1260K|  7385K|       |  5549   (2)| 00:01:07 |
    |   1 |  SORT ORDER BY     |      |  1260K|  7385K|    14M|  5549   (2)| 00:01:07 |
    |   2 |   TABLE ACCESS FULL| BIG  |  1260K|  7385K|       |  1444   (1)| 00:00:18 |
    -----------------------------------------------------------------------------------
    
    
    
    
    2. EXPLAIN PLAN FOR  
    SELECT   *  FROM big ORDER BY id; 
    Plan hash value: 1222949096
    
    -----------------------------------------------------------------------------------
    | Id  | Operation          | Name | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    -----------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT   |      |  1260K|    30M|       | 10550   (1)| 00:02:07 |
    |   1 |  SORT ORDER BY     |      |  1260K|    30M|    43M| 10550   (1)| 00:02:07 |
    |   2 |   TABLE ACCESS FULL| BIG  |  1260K|    30M|       |  1445   (1)| 00:00:18 |
    -----------------------------------------------------------------------------------
    
    
    
    
    In why does the time increases to 2:07 for the second explain plan
    

    Why the time increases to 02:07 for the second plan to explain?

    Hello

    1. in comparing Oracle index as an index of a book where the index can occupy a few pages, how store Oracle index?

    Oracle stores the index "outside of work". The index has also usually occupies less space than the table. (that's why I suggested to create your table of test with more fields to better see the difference. You can take a look at Where USER_SEGMENTS to see the size of the table and the size of the index)

    2. why the column must be NON NULL for indexes to use?

    Because the null entries are not stored in an index, if Oracle does not know that there may be NULL values, it can "use the index to be sure to find ALL values... Imagine a table T (col1 NUMBER, VARCHAR2(10 CHAR) NOT NULL, col2, col3,...) where col1 is NOT defined as "not null", and the table contains three lines:

    (10, 'x',...), (NULL, 'y',...) and (2, 'z',...)  and there is an index on col1 and col2 on.

    If asked "SELECT col1 FROM t", Oracle must retrieve three lines: 10, NULL, 2. search in the index would show only 2 and 10 but not NULL... But if we ask "SELECT col2 FROM t" then Oracle can use the index on col2 because he knows "design table" who will miss us no line. If the dictionary contains more information (columns not null, unique constraints, primary key, foreign key) this info can be used by the optimizer. In addition, the optimizer can make best estimates when accurate statistics are available (statistics include things like "distinct values how we have for the column?) How many rows have a NULL value? What are the minimum and maximum values of the column? ... "- Note that via statistical table, knowing that there are values null null to a column is not the same thing that to know this fact via a NOT NULL constraint present in the dictionary... If the optimizer has only information through statistics, this cannot be used to decide"we will use the index"as it is possible that, despite the news of the stats it is possible that NULL values exist (created after the last update of stats or) failure by the updating of statistics due to the sample data used to update statistics).

    Providing constraints (not null, unique, pk, fk, check) for the dictionary is not only good for the optimizer but also good to add quality control of data do not believe developers/suppliers of applications that tell you that the constraints are unnecessary, as the design of the application supports controls ;-)

    Best regards

    Bruno Vroman.

Maybe you are looking for