Indexing phase of context create

During the indexing phase of a Context index create process, is there any way to determine how much more indexing/time is left?

Hi James,
What you should do is define a set on close event for your popup.
f4_popup->set_on_close_event
In that event you should create a new entiry for the corresponding relation.
lr_entity ?= me->typed_context->ACCOUNTS->collection_wrapper->get_current( ).
  CHECK lr_entity IS BOUND.
  lr_entity->switch_to_change_mode( ).
  lr_new_entity ?= lr_entity->create_related_entity( iv_relation_name = 'AccountItem ).
CHECK lr_new_entity IS BOUND.
  me->typed_context->ACCOUNTSITEM->collection_wrapper->add( iv_entity = lr_new_entity ).
  me->typed_context->ACCOUNTSITEM->collection_wrapper->publish_current( ).
Once this is done, you have the new entity. You can as well fill the entity with the new values.
Regards,
Leon

Similar Messages

  • PARCONV phase Index could not be created ERROR

    Upgrading Solution Manger 3.2 to 7.0  Windows Nt SQL Server 2000
    We are in teh PARCONV phase now and getting errors regarding tables with missing indexes.
    Example from PARCONV.ELG file:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    CONVERSION ERRORS and RETURN CODE in NCONV00.TS3
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2EEGT236 The SQL statement was not executed
    2EEDI006 Index " " could not be created completely in the database
      Long text:
        Cause
          It was not possible to create the index in the database.
          This could be caused by the fact that an index with the same name
          exists in the database, but it is unknown to the ABAP/4 Dictionary.
          Activating the index in the ABAP/4 Dictionary is possible, but it is
          not possible to create it in the database.
        System Response
        What to do
          For more information about the cause of the error, analyze the SQL
          error messages in this log.
    2EEGT221 Creation of secondary indexes for table "BBP_PDHGP" failed
      Long text:
        Cause
          There might be a SQL error.
        System Response
        What to do
          Check the SQL codes for errors.
    2EEGT239 Error in step "BBP_PDHGP-STEP6"
    2EEGT094 Conversion could not be restarted
      Long text:
        Cause
          The conversion could not be restarted, i.e. it was not possible to
          continue the conversion at the point where it was interrupted.
        System Response
        What to do
          Information about the cause of the error can be found in the restart
          log.
    2EEGT236 The SQL statement was not executed
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I have gone into se14 the index name exists but the index doesn't exist on the database.  I've tried using the Create to create teh index on the databse but that fails with a name may already exist.
    How to I clear these errors?
    Thanks
    Laurie  McGinley

    It appears on all the ABAP Dictionary: Restart Log List, that the same error is occuring on creating the secondary indexes...
    Database error 170 at EXE
    Line 1: incorrect syntax near '('
    Same error occurs if I use the SE14 to "Continue Adjustment".
    Note 1180553 u2013 Syntax error 170 during index creation on SQL 2000 and
    Note 1346662 u2013 Avoid index creation errors in 7.0 EHP and higher upgrades.
    Note 1365755 - Scripts to fix fillfactor issues on SQLServer 2000
    These seem to be the key.... but...
    I ran the scripts in 1180553 ... no change in the errors.  In fact, there isn't a dbo.[TATAF~] table and the dbo.[TATAF] table doesn't have the 'With fillfactor" entry.  So i wonder if  I'm at a different phase?
    I'm looking at 1365755 and think I'd like to give that one a try, but it says to unpack the ZIP file in the <upgr dir>\abap\bin directory.  Well there isn't one.  I have the upgrade dir \usr\sap\put and its subdirectories, but no \abap\bin dir.
    So I'm not sure where to unpack this to give it a try.
    Perhaps it would be better to go back to teh beginning of the UPGRADE (after PREPARE) and start again?
    I didn't upgrade to SQL Server 2005 because the version of SolMan we are on isn't certified on it, so thought I'd get through the Sol Man upgrade then do SQLServer 2005... maybe need to rethink this to?
    I'm open you suggesions, ideas, answers!
    Thanks
    Laurie McGinley
    Edited by: Laurie McGinley on Sep 28, 2009 12:23 PM

  • What is the "No database index" means when you Creating Secondary Indexes?

    HI,
       I'm Creating Secondary Indexes in the maintenance screen of the table(se11)
       There are three options under "Non-unique Index":
       1.Index on all database systems
       2.For selected database systems
       3.No database index
    My questions is :
      What do u mean by "No Database Index" and when is it used.
      Can anybody plz tell me what's the difference of this three options ?
      Here is what i found in the help:
       No database index: The index is not created in the database. If you
       choose this option for an index that already exists in the database,
       it is deleted when you activate this option.

    Hi,
    It is clear from the help documentation,
    Here see what the help document says:
    Create the index in the database (selection)
    Whether an index improves or worsens performance often depends on the database system. You can therefore set whether an index defined in the ABAP Dictionary should be created in the database.
    This makes it easier to install a platform-specific customer system.
    You can set this option as follows:
    1. Index in all database systems: The index is always created in the database.
    2. In selected database systems: The index is created depending on the database system used. In this option, you must specify the databases in which the indexes are to be created. You can do this either on an inclusive (list of systems on which it should be created) or an exclusinve (list of systems on which it should not be created) basis. In either case, you can list up to four different database systems.
    3. No database index:: The index is not created in the database. If you set this option for an index that already exists in the database, it is deleted when you activate the table in the ABAP Dictionary.
    Note: Unique indexes have an extra function, and must therefore always be created in the database. The database system prevents entries or index fields being duplicated. Since programs may rely on this database function, you cannot delete unique indexes from the database.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Index could not be created

    Hi All.
    I have instaled TREX and then declared the name server and port in visual admin and restarted portal
    But still getting the error
    Index could not be created; creating index failed: Invalid entry in configuration: section nameserver, key address, value tcpip://<trexhost>:<30201> is invalid (Errorcode 7213)
    Any suggestions or procedure to integrate portal with TREX ?
    Thanking You,
    Rukmini

    Hi,
    if this is your exact error message:
    creating index failed: Invalid entry in configuration: section nameserver, key address, value tcpip://<trexhost>:<30201> is invalid (Errorcode 7213)
    Than you have not changes the value <trexhost> do your real trex name server host name.
    And that's why all the lights in TREX monitoring from your application point of view must be red.
    Best regards
    Frank

  • Trex Index could not be created HTTP server error: 503 (Errorcode 7266)

    Hi Friends,
    I have installed EP6.0 SP15 on one machine and Trex 6.1 on another machine.All the services are green in the Trex monitor.And also i am able to get a reply from http://host:30205/TrexHttpServer/TREXISAPIExt.dll?CMD=PING.Connection sucessful.While creating my first index in Index Administration i get this error message.
    "Index could not be created; creating index failed: HTTP server error: 503 (Errorcode 7266)."
    Please tell me as to what steps i am missing and also where can i see the log message in portal.
    Thanks
    Sidharath

    hi friends,
    I went through the settings of trex services on server and found out that even after installing IIS 6.0 it was showing the path of Apache that that is i think the reason that httpserver is green but it is not using the CPU resources.I will share the setting with you.
    [queueserver]
    executable=TREXQueueServer.exe
    arguments=-port 30204
    startdir=C:\usr\sap\trex_02
    starttime=5000
    instances=1
    #hp_32:environment=_M_ARENA_OPTS=1:256,_M_SBA_OPTS=512:100:16
    As the executable for queserver is there so it is using cpu resources.
    [apache]
    executable=httpd
    arguments=-d C:\usr\sap\trex_02/Apache -R C:\usr\sap\trex_02/Apache/libexec -F
    startdir=C:\usr\sap\trex_02/Apache/bin
    instances=1
    As there is no folder for apache in trex installation so i think it is not working.Please check the setting in Trex Administration->Configration->Choose name server and on the right botton of it is edit services.Double click it and you will see the settings as i have shown above.Please share the settings with me as i will be then able to work with trex.
    Do i have to install Apache instead of IIS6.0.Please guide me.
    Thanks
    Sidharath

  • The required index has not been created yet in the search engine

    Hi,
    I am trying to change the inspection plan trying to add master insp.characterstics in QP02 the system is giving the following error: "The required index has not been created yet in the search engine".  As per the solution for that error The administration transaction is SES_ADMIN.
    Through the Goto menu, you can enter the relevant customizing directly.
    The index was required for: Business object = QPMK
    Object type = 1
    It is already there. I don't know why still it is showing the error.
    How can i fix this?
    Pl help me. Thanks.
    Madhu

    Hi,
       Not so sure this applies as
    1] The field is using a custom search help which correctly appears for data selection in each case. Its only when we push the go button that the index missing error ishappening for the particular user.
    2] We cloned the user  id for the user having the issue and the clone has no problem at all using the search help.
    Weird huh?
    Ross

  • Index of the row created in webdynpro for ABAP

    hi experts ,
    i got a problem tht ,
    i hve a table and i am using the onaction enter .
    so wen i created a new row and press entr on tht i want to read the index of tht row .
    so pl help in this .
    thanks in advance  .
    its urjent ...
    setu

    As I said earlier, it is not possible to get the index. You can only loop and get the current index by doing a field comparison. That too will fail if you have two identical rows.
    A better idea would be to have your table as read-only. Have a 'Display/Change' button in your toolbar. You should be able to select a row and click on 'change'. Then you should make the row as editable and do your validations on the edited values. If you have your entire table as editable, it will not be easy to track the changes.
    Otherwise, if you want to have the table as editable only, then you can get the changed values using the context change log. Refer to web dynpro component DEMO_CONTEXT_CHANGES to see how this works. You will not get the index, but you will get all the changes that have been done to the context after the last binding.
    Regards
    Nithya

  • Sort table columns in a table and context created dinamically

    Hello all,
    I have implemented the table sorting several times in another developments, but now I'm facing a problem.
    I have created the table and context node that I need to sort dinamically (before somebody ask me why, I would say that it's the only way to do that for my current project, there was no possibility of doing that in dessign time). I have implemented the table sorting more or less the same way I would do with a table created in dessing time, but when I run my WD the sorting of columns doesn't work.
    In the wdDoModifyView, I have put the following code:
    if(firstTime){
    IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    and in the code of the action
        //@@begin onActionOrdenacion(ServerEvent)
         System.err.println("**** NOMBRE NODO **** "+nombreNodo);
         wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.getChildNode(nombreNodo, IWDNode.LEAD_SELECTION));
        //@@end
    The name of the node ("nombreNodo) it's only correct the first time I click on a column.
    Has anybody implemented the table sorting in a dinamically created table and context node? And how do you do to make it works.
    Thank you very much

    Here is the code
    //Preparamos Navegaciones
    IWDAction abrirProyecto = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_PROYECTO, null);
    IWDAction abrirDisp     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ABRIR_DISPONIBLE,  null);
    //IWDAction ordenacion     = wdThis.wdCreateAction(IPrivateResultDispGlobalView.WDActionEventHandler.ORDENACION,  null);
    IWDAction ordenacion=wdThis.wdGetOrdenacionAction();
    IWDParameters param = ordenacion.getActionParameters();
    param.addParameter("nombreNodo",nombreNodo);
    IWDTable table = wdThis.wdGetInformesController().crearTabla(view, nombreNodo, movimientosInfo,new String[]{"Codi Projecte",null,"Nom Projecte", "Import Projecte", "Client", "Increment Disponible futur per facturació no emesa i / o anualitats pendents","Increment Disponible futur per ingressos pendents de cobrar", "Disponible"},new String[]{"10px", null,"10px", "10px","10px","10px","10px","10px"},new IWDAction[]{abrirProyecto,null, null, null, null,null,null,abrirDisp}, -1);
    //ordenar tabla
    wdContext.currentContextElement().setTableSorter(new TableSorter(table, ordenacion,null));
    containerTablasProyecto.addChild(table);
    Edited by: Mireia Romo on May 28, 2009 12:27 PM

  • Regarding custom context created for CR_B2B application(Complaints&Returns)

    Hi,
    We have created a custom context for cr_b2b application.
    We are able to login to the application, but we are getting some compilation errors on the left hand side page (genericsearch.jsp)
    The errors are:
    ISA Framework: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [/usr/sap/FWX/JC91/j2ee/cluster/server1/apps/sap.com/homecr_test/servlet_jsp/cr_test/work/jsp_genericsearch1285932156290.java:163: package com.sap.isa.isacore.uiclass.b2b does not exist com.sap.isa.isacore.uiclass.b2b.CreateTransactionUI l_ui = new com.sap.isa.isacore.uiclass.b2b.CreateTransactionUI(pageContext); ^ /usr/sap/FWX/JC91/j2ee/cluster/server1/apps/sap.com/homecr_test/servlet_jsp/cr_test/work/jsp_genericsearch1285932156290.java:163: package com.sap.isa.isacore.uiclass.b2b does not exist com.sap.isa.isacore.uiclass.b2b.CreateTransactionUI l_ui = new com.sap.isa.isacore.uiclass.b2b.CreateTransactionUI(pageContext); ^ 2 errors ].
    What would be the reason?  Some pointers on this would be of great help
    Thanks in Advance
    Regards,
    Satish.

    Hi Pradeep,
    I can see that the CreateTransactionUI class is part of sap.comcrmisaisacoredefault.jar.
    We tried to deploy this jar into this path:
    /usr/sap/FWX/JC91/j2ee/cluster/<server no>/apps/sap.com/home~cr_test/servlet_jsp/cr_test/root/WEB-INF/lib
    We have placed this file in all server nodes of the given path.
    But still error exists.
    What could be the reason?
    Thanks,
    Satish.

  • "Index could not be created: There are no active http servers known at the

    Above error shows up during Index creation on KM section of the portal.
    Checked the TREX Admin tool for Http connection . Pop up Error saying "IIS not installed. Configuration of Http communication not possible ".
    Environment : TREX 7.1 revision 43 on Windows 2003 64 Bit platform.
    During installation of standalone TREX , there were no option to select "http server".
    Please suggest, if i am missing some thing in the setup or configuration here.
    Thanks in advance .

    1.) You need to make sure that the server you are installing TREX on, also has a Web Server.  In your case, Internet Information Services (IIS 6.0) which comes with Windows Server 2003.  Once this is installed make sure that it is working (http://hostname or IP).
    2.) TREX 7.1 Rev 43 is very mature and does not involve many steps during installation.  Your only option is to choose whether you want to install it or not.
    3.) Setup of the "http connection" or "ABAP connection" is done after TREX installation.  This is done straight from TREX Administrator.
    Here is my suggestion:
    1.) Install IIS 6.0 (http://www.windowsreference.com/windows-server-2003/step-by-step-guide-how-to-install-iis-60-in-win-server-2003/)
    2.) Reinstalling of TREX is higly recommended but you can try it with the current installation.
    3.) Open up TREX Administrator (trexadmin.bat) and proceed with create IIS Websites for TREX 7.10.  The steps are located under the heading "Configuring the TREX Web Server" in the installation document.
    4.) After this, go on with Indexing.
    Regards,
    Ravi

  • Index Creation Error, while creating Information space

    Hi,
    I'm trying to create an Information Space in explorer based
    off of a Universe created on a Bex Query from SAP BW. 
    This
    Universe is created in Universe design tool based on BW 7.4,  gives below error, while creating report in  Web Intelligence based on Universe.
      Database error: Failed to execute MDX Query.
      Reason occured when starting the parser timeout during
    allocate/CPC-CALL.
    2) In Explorer everything seems to be working fine with the
    Information Space creation up until the point where I need to index it.  When I click 'Index' it takes about 5-10
    seconds and then fails with the following error
    Latest indexing failed
      Start Date: 2015/02/11 08:51
    End Date: 2015/02/11 08:53
    Server, BOHDSIA.ExplorerIndexingServer, generated the
    following messages:
      Index Creation Failed (
      The execution of the specified analysis query
    failed.-Database error: A database error has occured. (IES 10901)
      Database error: A database error has occured. (IES 10901))
      The Bex Query executes successfully in BEx Analyzer and webi
    report created with BEX as datasource

    Please see reply at:
    http://technet.oracle.com:89/ubb/Forum36/HTML/000661.html

  • INDEX count not be created

    Hi
     I could not create index on a table. It shows like this
    Msg 208, Level 16, State 1, Procedure dba_trigger_log_db_events, Line 58
    Invalid object name 'master.dbo.DBA_DB_DDL_Trigger_Event_Information'.
    What might be the error . Please help me to solve and create the index
    I am using sql server 2012 sp1 developer edition
    Thanks & Regards Manoj

    Hi
     The table does not in master database and more over i dont want to create any table or funtion in database i just create an index in the table but it show this error.i cannot find why it shows. please help me to solve
    Thanks & Regards Manoj
    Can you post the text of 'master.sp_helptext DBA_DB_DDL_Trigger_Event_Information'
    it seems some SP or table that trigger on 'ALTER TABLE' to prevent or track it. not sure until you post the text or exists of DBA_DB_DDL_Trigger_Event_Information
    http://technet.microsoft.com/en-in/library/ms186406%28v=sql.105%29.aspx
    in case if that DBA_DB_DDL_Trigger_Event_Information is not there, can you check whether this is called with in any other SP, like in a DDL trigger when you alter the table,
    can you quickly check in
    select OBJECT_NAME(object_id),* From sys.sql_modules where definition like '%DBA_DB_DDL_Trigger_Event_Information%'
    Thanks
    Saravana Kumar C

  • Set generate flag to false for index, but index will still be created

    I found that the generate flag for index will now be stored correct, even I close and reopen th ephysical model.
    However, even i set the generate flag for an index to false, the DDL for the index will be generated. Any workaround?
    Additional hint:
    * The flag is considered if no physical model is opened.
    * To not open the physical model is no workaround because if the physical model is not opened, no sequences will be generated.
    Thanks in advance,
    Frank
    3.0.0.665 on Windows XP
    Edited by: puchtec on 16.02.2011 05:55

    Hi David,
    thanks for your answer. However, I do not see that this is a practicable workaround for me.
    Let me explain.
    * I have table A with a foreign key on column X to table B.
    * I have set that data modeler should create missing indexes for foreign keys (preference/data modeler: automatic index generation for foreign key constraints enabled)
    * If I generate DDL, I will get the missing index generated by data modeler (index name ends with FKX). That's fine.
    * But, now I have a combined index of column X and column Y on table a. this index would make the automatically generated index needless - because it is already covered by the combined index.
    * To avoid generating the needless index, I design an index on column X and set the flag for generation to false.
    * If I have designed the index on column X, data modeler does not generate the missing index. However, the needless index will be generated even the flag is set to false.
    Of course I can exclude the index from the generation in the generations dialog, but from my point of view I already decided not to generate the index in the relational model. In case the physical model has not been opened, the indexes having generate equals to false are excluded from the generation (could also be seen in generation dialog).
    Cheers,
    Frank

  • Chapter Index function fails to create last three chapters

    Hello:
    I am using the citylights submenu template to automatically create a set of submenu pages in CS5 on a Mac. I have 21 chapters, so there are three links to fill in per submenu page. Everything works fine except it refuses to create the last submenu page with the last three chapters on it. Can't figure it out!

    chapter markers
    If you used transitions during your slideshow, chapter markers might be your problem. You can't have chapter markers that fall within transitions; the general rule has been 'no chapter markers within two seconds of a transition'.
    F Shippey

  • Rights issue when creating context index.

    Hi,
    We have two users, "app" and "appsys" . with most permissions granted through roles.
    "app" has just enough permissions for the application to run. No update/delete/etc on most tables, just select and (on a select few) insert rights.
    "appsys" is the "crew" user, with enough rights for basic day-to-day administration and most upgrade scripts that come with new code releases.
    Other than that, it's a pretty much default EE 11.2.0.1.0.
    Therefore, my first preference was to have 'appsys' create the desired text index for use by 'app':
    CREATE INDEX app.table_text_ix ON app.table (xml)
         INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('SYNC (EVERY "TRUNC(SYSDATE + 1) + 03/24") TRANSACTIONAL');
    Have also tried the bare:
    CREATE INDEX app.table_text_ix ON app.table (xml)
         INDEXTYPE IS CTXSYS.CONTEXT;
    Both give the same result:
    Error at Command Line:1 Column:19
    Error report:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvxtab.create_index_tables
    ORA-01031: insufficient privileges
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    29855. 00000 - "error occurred in the execution of ODCIINDEXCREATE routine"
    *Cause:    Failed to successfully execute the ODCIIndexCreate routine.
    *Action:   Check to see if the routine has been coded correctly.
    When using user app (temporarily granting relevant privileges):
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvddl.IndexCreate
    ORA-27486: insufficient privileges
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    I've tried granting just about anything but the kitchen sink to either user, both direct and indirect, but it still won't let me. Even SYS seems to be missing something.
    Or rather, I seem to be missing something. But what? I've read a few prior threads about this issue and tried most suggestions: still no go.
    Things I've GRANTed, as per documentation:
    - CTXAPP role
    - execute on ctxsys.ctx_ddl
    - RESOURCE
    - CONNECT
    Other privileges it already had OR that I've tried granting:
    EXECUTE ANY PROCEDURE
    CREATE SESSION
    UNLIMITED TABLESPACE
    CREATE TABLE
    CREATE ANY TABLE
    ALTER ANY TABLE
    DROP ANY TABLE
    CREATE CLUSTER
    CREATE ANY INDEX
    ALTER ANY INDEX
    DROP ANY INDEX
    CREATE SEQUENCE
    CREATE PROCEDURE
    CREATE ANY PROCEDURE
    CREATE ANY JOBB
    CREATE TRIGGER
    CREATE ANY TRIGGER
    CREATE TYPE
    CREATE OPERATOR
    CREATE INDEXTYPE
    Have also tried the grant select on sys.all_users to public; solution from a previous thread.
    So... I'm lost... what am I missing?

    I don't know if what you have posted is pseudo-code or what you actually ran. Table is not a valid name for a table. It is best to post a copy and paste of an actual run from SQL*Plus, including line numbers and errors. I suggest that you start with a very simple example, avoiding reserve names like table and xml, just creating a simple text index on a table with a varchar2 column, as the same user that owns the table, checking everything along the way. Once you get that working, then you can add the other things one at a time. I have provided a script for you to run and post the results of below, followed by a run of the script on my system to show what you should get.
    -- script for you to run from SQL*Plus and post a copy and paste of the results of:
    -- version:
    SELECT * FROM v$version
    -- check that ctxsys user exists:
    SELECT username
    FROM   all_users
    WHERE  username = 'CTXSYS'
    -- check that Oracle Text is installed properly:
    SELECT *
    FROM   dba_registry
    WHERE  comp_id = 'CONTEXT'
    -- create test user:
    CREATE USER test IDENTIFIED BY test
    -- grant privileges:
    GRANT CONNECT, RESOURCE, CTXAPP TO test
    -- connect:
    CONNECT test/test
    -- create table:
    CREATE TABLE test.test_tab
      (test_col  VARCHAR2 (9))
    -- insert test data:
    INSERT INTO test.test_tab (test_col)
    VALUES ('test data')
    -- check that test data was inserted:
    SELECT * FROM test.test_tab
    -- create index:
    CREATE INDEX test.test_idx
    ON test.test_tab (test_col)
    INDEXTYPE IS CTXSYS.CONTEXT
    -- check for errors:
    SELECT * FROM ctx_user_index_errors
    -- check that index and domain index tables were created:
    COLUMN object_name FORMAT A30
    SELECT object_name, object_type
    FROM   user_objects
    WHERE  object_name LIKE '%TEST%'
    -- check that tokens were created:
    SELECT token_text FROM test.dr$test_idx$i
    -- test query:
    SELECT * FROM test.test_tab
    WHERE  CONTAINS (test_col, 'test data') > 0
    /-- example of the results you should get:
    SCOTT@orcl_11gR2> -- version:
    SCOTT@orcl_11gR2> SELECT * FROM v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    5 rows selected.
    SCOTT@orcl_11gR2> -- check that ctxsys user exists:
    SCOTT@orcl_11gR2> SELECT username
      2  FROM   all_users
      3  WHERE  username = 'CTXSYS'
      4  /
    USERNAME
    CTXSYS
    1 row selected.
    SCOTT@orcl_11gR2> -- check that Oracle Text is installed properly:
    SCOTT@orcl_11gR2> SELECT *
      2  FROM   dba_registry
      3  WHERE  comp_id = 'CONTEXT'
      4  /
    COMP_ID
    COMP_NAME
    VERSION                        STATUS
    MODIFIED                      NAMESPACE
    CONTROL                        SCHEMA
    PROCEDURE                                                     STARTUP
    PARENT_ID
    OTHER_SCHEMAS
    CONTEXT
    Oracle Text
    11.2.0.1.0                     VALID
    30-MAR-2010 11:06:15          SERVER
    SYS                            CTXSYS
    VALIDATE_CONTEXT
    1 row selected.
    SCOTT@orcl_11gR2> -- create test user:
    SCOTT@orcl_11gR2> CREATE USER test IDENTIFIED BY test
      2  /
    User created.
    SCOTT@orcl_11gR2> -- grant privileges:
    SCOTT@orcl_11gR2> GRANT CONNECT, RESOURCE, CTXAPP TO test
      2  /
    Grant succeeded.
    SCOTT@orcl_11gR2> -- connect:
    SCOTT@orcl_11gR2> CONNECT test/test
    Connected.
    TEST@orcl_11gR2> -- create table:
    TEST@orcl_11gR2> CREATE TABLE test.test_tab
      2    (test_col  VARCHAR2 (9))
      3  /
    Table created.
    TEST@orcl_11gR2> -- insert test data:
    TEST@orcl_11gR2> INSERT INTO test.test_tab (test_col)
      2  VALUES ('test data')
      3  /
    1 row created.
    TEST@orcl_11gR2> -- check that test data was inserted:
    TEST@orcl_11gR2> SELECT * FROM test.test_tab
      2  /
    TEST_COL
    test data
    1 row selected.
    TEST@orcl_11gR2> -- create index:
    TEST@orcl_11gR2> CREATE INDEX test.test_idx
      2  ON test.test_tab (test_col)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  /
    Index created.
    TEST@orcl_11gR2> -- check for errors:
    TEST@orcl_11gR2> SELECT * FROM ctx_user_index_errors
      2  /
    no rows selected
    TEST@orcl_11gR2> -- check that index and domain index tables were created:
    TEST@orcl_11gR2> COLUMN object_name FORMAT A30
    TEST@orcl_11gR2> SELECT object_name, object_type
      2  FROM   user_objects
      3  WHERE  object_name LIKE '%TEST%'
      4  /
    OBJECT_NAME                    OBJECT_TYPE
    DR$TEST_IDX$I                  TABLE
    DR$TEST_IDX$K                  TABLE
    DR$TEST_IDX$N                  TABLE
    DR$TEST_IDX$R                  TABLE
    DR$TEST_IDX$X                  INDEX
    TEST_IDX                       INDEX
    TEST_TAB                       TABLE
    7 rows selected.
    TEST@orcl_11gR2> -- check that tokens were created:
    TEST@orcl_11gR2> SELECT token_text FROM test.dr$test_idx$i
      2  /
    TOKEN_TEXT
    DATA
    TEST
    2 rows selected.
    TEST@orcl_11gR2> -- test query:
    TEST@orcl_11gR2> SELECT * FROM test.test_tab
      2  WHERE  CONTAINS (test_col, 'test data') > 0
      3  /
    TEST_COL
    test data
    1 row selected.
    TEST@orcl_11gR2>

Maybe you are looking for

  • If your iPad has a dent that effect the functioning of something does apple keep the iPad to work on it?

    I recently noticed that a dent was on the side of my iPad that effects the proper functioning of the volume controls. I have AppleCare on my iPad. But will apple keep my iPad to work on it? Thank you in advance!

  • Query Based on DSO - Bad Performance

    Hi, I have few query's based on DSO 0FIGL_O14. The data size is too large in this nearly in crores. I have vendor credit report based on this. I run this query for a month and the performanceis too bad.. i get a time out error. kindly suggest how can

  • NWDI in SAP EHP1 for NW 7.3

    Hi All, I am new to NWDI concept. Can any one provide me the step by step process for NWDI in EHP1 for NW 7.3. I am having the doc for 7.x but this not explains the process correctly. When I do so it is asking for more configuration. Please let me kn

  • Get border when resizing flash anim in dreamweaver

    Hello, I'm needing some help , I'm not sure weather its something i'm doing in dreamweaver or weather I need to export the flash anim with the document properties just a little bit smaller than the flash anim when exporting when in theory shouldn't h

  • Can't receive gmail on E52

    I cannot received gmail on my E52. Can send e-mail okay. Setting look okay:     Incoming Mail Server:    imap.gmail.com     Security:                           SSL/TLS     Port:                                 I have another Nokia phone & can receive