How to pass oracle “set role all” in Advanced Editor

  • How to pass oracle “set role all” in Advanced Editor

    Posted by DSC Communities on March 21, 2018 at 12:45 pm
    • Pepe Mujin

      Member

      March 21, 2018 at 12:45 PM

      Folks, ?I am struggling to pull some tables from an oracle database. I am required to pass somehow the following oracle statement:

      Set role all
      Ā 
      But when I try to do this, I got an error stating that this is not a valid sql statementĀ 
      let
      Ā Ā Ā  Source = Oracle.Database(“mwks399083:1521/owr5000″, [HierarchicalNavigation=true, Query=”set role all”]),
      Ā Ā Ā  OWSYS = Source{[Schema=”OWSYS”]}[Data]
      in
      Ā Ā Ā  OWSYS

      Ā Expression.Error: This native database query isn’t currently supported.

      Please note that I am able to connect to the database..Ā  Any Advise will be greatly appreciated

      Best Regards,
      Jorge Castellano

      ——————————
      Jorge Castellano

      ——————————

    • Audrey Abbey

      Member

      March 21, 2018 at 3:09 PM

      Jorge,Ā 

      I am not that familiar with Oracle, but I think that “SET ROLE ALL” is supposed to go in front of an actual SQL Query.Ā 

      That should probably look something like:

      Query=”SET ROLE ALL; SELECTĀ  * FROM table; “

      You don’t have a valid query in your query string.Ā 
      You just have the SET command.Ā 

      Best,Ā 
      Audrey

      ——————————
      Audrey Abbey
      SR. BI Developer/Analyst
      New Seasons Market
      Portland OR
      ——————————
      ——————————————-

    • Pepe Mujin

      Member

      March 22, 2018 at 3:47 AM

      Source = Oracle.Database(“mwks399083:1521/owr5000″, [HierarchicalNavigation=true, Query=”set role all; select * from dsd_norway.well_master;”])

      ?DataSource.Error: Oracle: ORA-00933: SQL command not properly ended
      Details:
      Ā Ā Ā  DataSourceKind=Oracle
      Ā Ā Ā  DataSourcePath=mwks399083:1521/owr5000
      Ā Ā Ā  Message=ORA-00933: SQL command not properly ended
      Ā Ā Ā  ErrorCode=-2147467259

      ——————————
      Jorge Castellano

      ——————————
      ——————————————-

    DSC Communities replied 7 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘How to pass oracle “set role all” in Advanced Editor’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!