Create an index with url_datastore












0















I must create an index with the parameter URL_DATASTORE in oracle 11 but, when I try to create this index, oracle return me this error



create index IDX_IT on informazioni_testi(
indextype is ctxsys.context
parameters ( 'Datastore CTXSYS.URL_DATASTORE' );

Error starting at line 1 in command:
create index IDX_IT on informazioni_testi(url)
indextype is ctxsys.context
parameters ( 'Datastore CTXSYS.FILE_DATASTORE' )
Error at Command Line:1 Column:13
Error report:
SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-10758: index owner does not have the privilege to use file or URL datastore
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.


I think to have given all possible grant



grant RESOURCE TO parlamento2018; -->GRANT RESOURCE succeeded.
grant CONNECT TO parlamento2018; --> grant CONNECT succeeded.
grant CTXAPP TO parlamento2018; --> grant CTXAPP succeeded.
grant execute on ctx_ddl to parlamento2018; --> grant execute succeeded.
grant execute on CTX_CLS to parlamento2018; --> grant execute succeeded.
grant execute on CTX_DOC to parlamento2018; --> grant execute succeeded.
grant execute on CTX_OUTPUT to parlamento2018; --> grant execute succeeded.
grant execute on CTX_QUERY to parlamento2018; --> grant execute succeeded.
grant execute on CTX_REPORT to parlamento2018; --> grant execute succeeded.
grant execute on CTX_THES to parlamento2018; --> grant execute succeeded.









share|improve this question





























    0















    I must create an index with the parameter URL_DATASTORE in oracle 11 but, when I try to create this index, oracle return me this error



    create index IDX_IT on informazioni_testi(
    indextype is ctxsys.context
    parameters ( 'Datastore CTXSYS.URL_DATASTORE' );

    Error starting at line 1 in command:
    create index IDX_IT on informazioni_testi(url)
    indextype is ctxsys.context
    parameters ( 'Datastore CTXSYS.FILE_DATASTORE' )
    Error at Command Line:1 Column:13
    Error report:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10758: index owner does not have the privilege to use file or URL datastore
    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.


    I think to have given all possible grant



    grant RESOURCE TO parlamento2018; -->GRANT RESOURCE succeeded.
    grant CONNECT TO parlamento2018; --> grant CONNECT succeeded.
    grant CTXAPP TO parlamento2018; --> grant CTXAPP succeeded.
    grant execute on ctx_ddl to parlamento2018; --> grant execute succeeded.
    grant execute on CTX_CLS to parlamento2018; --> grant execute succeeded.
    grant execute on CTX_DOC to parlamento2018; --> grant execute succeeded.
    grant execute on CTX_OUTPUT to parlamento2018; --> grant execute succeeded.
    grant execute on CTX_QUERY to parlamento2018; --> grant execute succeeded.
    grant execute on CTX_REPORT to parlamento2018; --> grant execute succeeded.
    grant execute on CTX_THES to parlamento2018; --> grant execute succeeded.









    share|improve this question



























      0












      0








      0








      I must create an index with the parameter URL_DATASTORE in oracle 11 but, when I try to create this index, oracle return me this error



      create index IDX_IT on informazioni_testi(
      indextype is ctxsys.context
      parameters ( 'Datastore CTXSYS.URL_DATASTORE' );

      Error starting at line 1 in command:
      create index IDX_IT on informazioni_testi(url)
      indextype is ctxsys.context
      parameters ( 'Datastore CTXSYS.FILE_DATASTORE' )
      Error at Command Line:1 Column:13
      Error report:
      SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
      ORA-20000: Oracle Text error:
      DRG-10758: index owner does not have the privilege to use file or URL datastore
      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.


      I think to have given all possible grant



      grant RESOURCE TO parlamento2018; -->GRANT RESOURCE succeeded.
      grant CONNECT TO parlamento2018; --> grant CONNECT succeeded.
      grant CTXAPP TO parlamento2018; --> grant CTXAPP succeeded.
      grant execute on ctx_ddl to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_CLS to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_DOC to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_OUTPUT to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_QUERY to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_REPORT to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_THES to parlamento2018; --> grant execute succeeded.









      share|improve this question
















      I must create an index with the parameter URL_DATASTORE in oracle 11 but, when I try to create this index, oracle return me this error



      create index IDX_IT on informazioni_testi(
      indextype is ctxsys.context
      parameters ( 'Datastore CTXSYS.URL_DATASTORE' );

      Error starting at line 1 in command:
      create index IDX_IT on informazioni_testi(url)
      indextype is ctxsys.context
      parameters ( 'Datastore CTXSYS.FILE_DATASTORE' )
      Error at Command Line:1 Column:13
      Error report:
      SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
      ORA-20000: Oracle Text error:
      DRG-10758: index owner does not have the privilege to use file or URL datastore
      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.


      I think to have given all possible grant



      grant RESOURCE TO parlamento2018; -->GRANT RESOURCE succeeded.
      grant CONNECT TO parlamento2018; --> grant CONNECT succeeded.
      grant CTXAPP TO parlamento2018; --> grant CTXAPP succeeded.
      grant execute on ctx_ddl to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_CLS to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_DOC to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_OUTPUT to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_QUERY to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_REPORT to parlamento2018; --> grant execute succeeded.
      grant execute on CTX_THES to parlamento2018; --> grant execute succeeded.






      oracle oracle11g oracle-text






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 '18 at 19:26









      Barbaros Özhan

      13.2k71633




      13.2k71633










      asked Nov 18 '18 at 17:49









      keiichikeiichi

      467




      467
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Connect as SYS and run



          exec ctxsys.ctx_adm.set_parameter('FILE_ACCESS_ROLE', 'KEIICHI')  ;
          -------
          username that is trying to create index





          share|improve this answer
























          • Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

            – keiichi
            Nov 18 '18 at 22:45













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363822%2fcreate-an-index-with-url-datastore%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Connect as SYS and run



          exec ctxsys.ctx_adm.set_parameter('FILE_ACCESS_ROLE', 'KEIICHI')  ;
          -------
          username that is trying to create index





          share|improve this answer
























          • Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

            – keiichi
            Nov 18 '18 at 22:45


















          0














          Connect as SYS and run



          exec ctxsys.ctx_adm.set_parameter('FILE_ACCESS_ROLE', 'KEIICHI')  ;
          -------
          username that is trying to create index





          share|improve this answer
























          • Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

            – keiichi
            Nov 18 '18 at 22:45
















          0












          0








          0







          Connect as SYS and run



          exec ctxsys.ctx_adm.set_parameter('FILE_ACCESS_ROLE', 'KEIICHI')  ;
          -------
          username that is trying to create index





          share|improve this answer













          Connect as SYS and run



          exec ctxsys.ctx_adm.set_parameter('FILE_ACCESS_ROLE', 'KEIICHI')  ;
          -------
          username that is trying to create index






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 18 '18 at 20:58









          LittlefootLittlefoot

          22.3k71533




          22.3k71533













          • Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

            – keiichi
            Nov 18 '18 at 22:45





















          • Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

            – keiichi
            Nov 18 '18 at 22:45



















          Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

          – keiichi
          Nov 18 '18 at 22:45







          Unfortunately, I already gave this command >sqlplus.exe / as sysdba SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public') PL/SQL procedure successfully completed.

          – keiichi
          Nov 18 '18 at 22:45






















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363822%2fcreate-an-index-with-url-datastore%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini