How to create analytic privileges from sql command line in hana studio?

I want to create a bunch of analytic privileges, activate them and assign it a roles. I was wondering if there is a method where I can create these analytical privileges directly from sql?

Hi Krishna,
Thanks for the reply.
The use case is to create a bulk analytical privileges on the pre-existing analytical or calculation views and I'm failing to create it using the simple CREATE STRUCTURED PRIVILEGE.
The security guide shows below mentioned as the syntax but I'm failing to create it through that:
CREATE STRUCTURED PRIVILEGE AP_SALES_1 FOR SELECT ON TABLEOWNER.VIEW_SALES WHERE REGION IN ('DE','UK') OR PRODUCT = 'CAR';
It gives me this error -
SAP DBTech JDBC: [257] (at 44): sql syntax error: incorrect syntax near "FOR": line 1 col 44 (at pos 44)

Similar Messages

  • How to create an alias from the command line

    Hi
    I would like to know how to create an alias (for a file, not a command) from the command line. I don't want to use the ln command, as an alias has more interesting features than soft/hard links... Is there an Apple specific tool to do this?
    Thanks
    -Jerome
      Mac OS X (10.4.10)  

    The only straightforward way that I am aware of for creating a "Finder" alias from the command line is using AppleScript via 'osascript'. Of course, it's not really a command line solution since the "Finder" has to be running. Anyway, something along the lines of:
    <pre style="overflow:auto; padding: 5px; width: 500px ; font-size: 10px; border:1">osascript -e 'tell application "Finder" to make alias file to POSIX file "/full/path/to/file" at POSIX file "/full/path/to/folder"'</pre>

  • How to check system status from Windows command line?

    Does anyone has an idea how to check system status from Windows command line? In UNIX we use startsap check, unfortunately I didn't find an appropriate command provided by SAP.
    The only idea we have is to use
    tasklist /FI "Username eq SAPService<SID>" | find "disp+work"
    which isn't as nice as startsap check.

    Hi,
    In windows you can use the command
    go to profile directory in command prompt and the give the following command to check the status of the instance.
    sapstart check pf=START_DVEBMGS<nr>_<hostname>
    that means you need to mention start profile or instance profile. So that it will say whether the instance is running or not.
    If you want any other information please reply back to me.
    Thanks,
    Chaitanya.

  • How to execute SAPGUI script from the command line?

    I have created a script and would like to execute it from the command line. There must be some flag that goes with SAPGUI.EXE. Any help appreciated.
    Thanks,
    Jeff

    Hi Jeff,
    the best way to do this is to run the script using the Windows Script Host, for example like this:
    cscript myscript.vbs
    This will execute the script which in turn can access SAP GUI. You may however have to make sure the script attaches to the correct session.
    Best regards,
    Christian

  • How to burn CD's from the command line in 2009?

    I've always managed to burn CDs and DVDs from the command line but I haven't done it in a long time. cdrecord wasn't working as root and I noticed it was just a symlink pointing to wodim.
    I tried the following command as root in a directory with some wav files:
    # cdrecord -dev=/dev/sr0 -driveropts=burnfree -audio -pad *.wav
    Which gives me:
    Mar 6 08:43:18 wilco ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
    Mar 6 08:43:18 wilco ata7.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
    Mar 6 08:43:18 wilco cdb 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Mar 6 08:43:18 wilco res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
    Mar 6 08:43:18 wilco ata7.00: status: { DRDY }
    Mar 6 08:43:18 wilco ata7: hard resetting link
    Mar 6 08:43:19 wilco ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    Mar 6 08:43:19 wilco ata7.00: configured for UDMA/100
    Mar 6 08:43:19 wilco ata7: EH complete
    This worked for me in 2008, so has anything big changed?

    Rasi wrote:
    Wilco wrote:
    Dieter@be wrote:I did not follow the discussion, but I just use wodim as specified on http://wiki.archlinux.org/index.php/CD_Burning_Tips, and that works great for me.
    Hmm strange, I tried the same command as in my first post and it works fine with the real cdrtools but not with wodim (I also tried k3b and that failed too). So I just stick with cdrtools
    Hooray, one more convert
    I haven't really followed the discussion either but why choose an "emulated cdrecord" that doesn't work instead of the real program that works great?

  • Connection error when logining in from sql command line

    I'm getting the following errors when I attempt to connect using the sql command line. I have installed 10g Express on XP home addition. The errors are as follows:
    ORA-01034 Oracle not available
    ORA-27101 Shared memory realm does not exist.
    Thanks

    I am getting this error in the oradim log file:
    ORA-01078: failure in processing system parameters
    ORA-01565: error in identifying file 'D:\oraclexe\app\oracle\product\10.2.0\server\dbs/spfileXE.ora'
    checked this directory and it is empty
    should I uninstall and reinstall. Can I get this file somewhere?

  • How to create user in workspace using command line with Internal APEX

    Hi fellows,
    I'm newbie with APEX and my i try doing something different. I need to build one application in Internal for create users in another workspaces. So, for do this, need use command line and PL/SQL code.
    I know exists a CREATE_USER procedure. But, this procedure just create a user in Internal, not in workspace, like i want.
    Its possible? Someone can help me?
    Example of create_user procedure:
    BEGIN
      APEX_UTIL.CREATE_USER(
         p_user_name => 'NEWUSER2',
         p_first_name => 'FRANK',
         p_last_name => 'SMITH',
         p_description => 'Description...',
         p_email_address => '[email protected]',
         p_web_password => 'password',
         p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
         p_default_schema => 'MY_SCHEMA',
         p_allow_access_to_schemas => 'MY_SCHEMA2',
         p_change_password_on_first_use => 'N',
         p_attribute_01 => '123 456 7890');
    END;
    Thank you.

    Did you try it like this?
    DECLARE
       l_workspace_id      number;
    BEGIN
        l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MY_WORKSPACE_NAME');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
      APEX_UTIL.CREATE_USER(
         p_user_name => 'NEWUSER2',
         p_first_name => 'FRANK',
         p_last_name => 'SMITH',
         p_description => 'Description...',
         p_email_address => '[email protected]',
         p_web_password => 'password',
         p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
         p_default_schema => 'MY_SCHEMA',
         p_allow_access_to_schemas => 'MY_SCHEMA2',
         p_change_password_on_first_use => 'N',
         p_attribute_01 => '123 456 7890');
    END;

  • How to invoke a servlet from the command line

    Hi,
    I have a process that needs to do something remotely. One of the ideas is to have a servlet on the other side that can do that. So the question is how can I invoke it from my process?
    Thanks,

    First approximation to code:URL remoteTask = new URL("http://yourserver.org/yourservlet");
    InputStream response = remoteTask.openStream();
    // read the servlet's response from that InputStreamYou will find more comprehensive versions of this code if you search the forum.

  • How to create a listener service at command line?

    Hello,
    I want to create and configure a listener service in an installation script.
    lsnrctl does not support the creation of this service.
    netca or netmgr require user interactions.
    Is there an other tool to create the listener service or is it possible to use netca/netmgr with special options in a command line mode?

    Thank you very much - it works.
    When I execute the command
    "lsnrctl start"
    I get the error message
    "Failed to open service <OracleOraDb10g_home1TNSListener>, error 1060."
    but the service is created and is running.
    So the error message can be ignored.

  • Is it possible to check out whole repository from dtr command line tool?

    Hi
    I wonder is it possible to check out whole repository from dtr command line tool.
    Normally, in NWDS i have to log into SLD, select a component, then select components i want to check out into workspace.
    I would like to do some static analysis (PMD, etc) but checkiing out everything manually is really painfull.
    Are there any guides how to check out everyhing from the command line (so i would nothave to specify any paths except top level components)?

    Hi,
    I don't know of a feature which would allow to check out "everything" from the "root".
    checkout Checks the given resource out.
    Syntax checkout/co \[-exclusive| -x] resource \[activity]
    Options exclusive|x If specified the resource is exclusively checkout-out.
    Arguments resource The resource that should be checked out.
    activity The path or name of the open activity that should be used for the checkout, if no activity is specified one is implicitly created.
    Output Variables
    $wr[] Working resources
    $act[] Activities
    Description Checks a resource out.
    Examples
    Checkout a file within a given activity
    Checks out the file "/ws/wspdir/wsp/dir/a.txt" in the activity "/act/myActivity".
    checkout /ws/wspdir/wsp/dir/a.txt /act/myActivity
    Checkout a file
    Checks out the file "/ws/wspdir/wsp/dir/a.txt" in an activity that is implicitly created and returned in the output variable "$act".
    checkout /ws/wspdir/wsp/dir/a.txt
    Checkout a file exclusively
    Checks out the file "/ws/wspdir/wsp/dir/a.txt" exclusively in an activity that is implicitly created and returned in the output variable "$act".
    checkout -x /ws/wspdir/wsp/dir/a.txt
    Can you please also tell us what kind of statistics you intend to create? Sorry I don't know what PMD abbreviates.
    You can always generate yourself an up-to-date documentation of the DTR Console by exporting the help (for details type help help): help -x c:/DTRConsole.doc
    Best Regards,
    Ervin

  • Problem with running a java program from the command line

    I have this code:
    package pkg;
    import jxl.*;
    import java.io.File;
    public class TestClass {
         public static void main(String[] args) {
              try{
                   Workbook book = Workbook.getWorkbook(new File("d:/testWorkspace/excFile.xls"));
                   Sheet sheet = book.getSheet(0);
                   String s=sheet.getCell(4, 2).getContents();
                   System.out.println(s);     
              }catch (Exception e){System.err.println(e);}
    }I've wrote it in Eclipse, added jxl.jar to the buildpath, and it works fine.
    Then I tried to run it from the command line and I did it like this:
    D:\testWorkspace\testProject\bin> java -cp \jxl.jar pkg.TestClassThe result was:
    Exception in thread "main" java.lang.NoClassDefFoundError: pkg/TestClass
    Caused by: java.lang.ClassNotFoundException: pkg.TestClass
    ...but the file TestClass.class DOES exist in the folder d:\testWorkspace\testProject\bin\pkg\ and the file jxl.jar IS on the root of drive D (like I already wrote, it worked fine inside the Eclipse).
    So, my question is: How to run this code from the command line?
    I have no idea what went wrong.
    Can someone help me, please?

    The current directory is not implied in the classpath.
    D:\testWorkspace\testProject\bin> java -cp .;d:\ pkg.TestClassor
    D:\testWorkspace\testProject\bin> java -cp .;d:\jxl.jar pkg.TestClassI always forget which is right since I never work with jars...

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

  • How do I create a local account from a network login from the command line?

    I am connecting to my organization's domain using 3rd party software which doesn't allow for using the GUI for creating local accounts.  How can I do this through the command line or is there a better way to script it?  Thanks in advance!

    What you're looking for, I think, is mobile accounts with portable home directories.
    Portable Home Directories in 10.8...: Apple Support Communities
    Configuring OS X Server 10.8 – Open Directory and PHD

  • How to create a database in sql?

    My question is how to create a database in sql?

    entrant wrote:
    My question is how to create a database in sql?
    as Iam a beginner
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to  docs.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • How to create a database in Sql server management studio

    how to create a database in Sql server management studio

    One method is to run the SQL statement below from a SSMS query window:
    CREATE DATABASE MyDatabase;
    You can also right-click on the Databases node in SSMS Object explorer and select New Database.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Maybe you are looking for

  • I am unable to Install windows xp with recovery disks.

    I have a Toshiba's Satellite Pro S300-10J laptop Model#PSSB0E-02H00FDU. Some days back its operating system got corrupted. I have its recovery disks(windows Xp)  and now I am trying to reinstall the windows by using recovery disks but unable to do so

  • Unwanted stroke appearing on objects in pdf

    Hi I'm having trouble with a logo I've created in an svg. file. I seem to have to finalized, but when I save it as a pdf. to take it to the printers I see parts of the logo suddenly have no stroke or stroke has been added in other parts. I don't seem

  • Date Labels in Keynote compared to Power Point

    I am used to Power Point where when I create a that has dates on the X axis I can have the labels shown for each 1 year or each 1 week. In Keynote, it seems like I can only either auto select or select each "x" categories. This is OK except when ther

  • Firefox Won't open.. I uninstalled and re-installed and nothing happens when i launch it.

    I'm not sure what triggered this. the firfox file shows as running in Wondoas Task managers process and Services tabs.. yet the GUI won't display. If its been blocked via registry trigger etc I don't know how it happened. I use several add-ons and wi

  • Adobe flash player issue

    hello, would u help me with my adobe issue? it happens that the adobe flash player doesn't work correctly on my computer with OS windows 8, i have got the most recen version installed and appears an issue in it, would you tell me what's going on plea