How to get Policy related columns?

I have different policies defined in lot of tables/columns, now I can get the list of tables and policies using views ALL_POLICIES, USER_POLICIES or DBA_POLICIES but how do I get the list of columns which have policies defined?. What are the relevant views to get this details?.
Thanks
Krishnamurthy

Michaels,
Bulls eye!..That is the one I was looking for the whole time. How did I miss this one even the view name is almost same as the sec_relevant_cols parameter of the DBMS_RLS.add_policy procedure.
Thanks for your help.
Krishnamurthy

Similar Messages

  • How to get the primarykey columns of the table in SAP BI Java SDK

    Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour.
    Please check out the following code ........
    ManagedConnectionFactory mcf;
    IConnectionFactory cf;
    IConnectionSpec cs;
    mcf = new JdbcManagedConnectionFactory();
    cf = (IConnectionFactory) mcf.createConnectionFactory();
    cs = cf.getConnectionSpec();
    ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
    Enumeration propnames = rbLocal.getKeys();
    while (propnames.hasMoreElements())
    String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
    cs.setPropertyValue(key, rbLocal.getString(key));
    // Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
    IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs); I
    BIRelational rel = connection.getRelational();
    IBIQuery query = rel.createQuery();
    String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
    Thanks SreeKanth

    Hi,
    looks like you are on Infomation Builders, correct? If yes through which adapter and to what DB are you connecting?? in an R3/BW system you can do the folowing:
    "(ABAP)
    SELECT DISTINCT FIELDNAME
    FROM DD03L
    WHERE TABNAME = '/BIC/QPERSON'
      AND AS4LOCAL = 'A'
      AND KEYFLAG = 'X'
    ORDER BY 1
    Another option is goto directly to the RDBMS; in this case let me which one are you using
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • How to get the dynamic columns in UWL portal

    Hi All,
    I am working on UWL Portal. I am new to UWL. I have down loaded uwl.standard XML file and costomized for getting the  values for "select a Subview" dropdown and I am able to see the values in the dropdown. Now my requirement is to get the dynamic columns based on the selection from dropdown value.
    can any body suggest on how to get the dynamic columns in UWL portal.

    Hi  Manorama,
    1) If you have already created a portal system as mentioned in following blog
                  /people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
    2) If not, then try to create the same. Do not forgot to give the Alias name .
    3) After creating a system, log on to the VC, Create one iView.
    4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
    5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
    6) Select your system Alias name and perform search.
    7) It will display all the BAPIs and RFCs in your systems.
    8) Select required BAPI and develop the VC application.
    Please let me know if you any further problems.
    Thanks,
    Prashant
    Do reward points for useful answers.

  • How to get invoice status column in ap_invoice_all table

    how to get the invoice_status column like "NEEDS RE VALIDATION"      in account payables tables.

    The invoice approval status does not come from any table / lookup.
    Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
    You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
    All these 4 columns are present on the ap_invoices_all record.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • How to get two empty columns in reporting?

    Hi Experts,
    How to get Two empty columns in  a report, i have taken a formula and i have given '=0' in the formula box after executing the query that two columns containing zero's, but i don't want zero's, i want to display empty columns.
    pl help to do this,
    thanks & regards
    venakt

    Hi
    In the Query designer go to Properties and Select Active n Zero Supression
    also select Supress Zeros from the drop down.
    Regards
    M.A

  • How to get a relative filepath using Java?

    Hi,
    I'd like to write a custom application for something I'm doing at work. Basically, I need to find the relative filepath from one file to another. Like, if I start in a subdirectory of directory A with file abc.htm, I want to use Java find the relative hyperlink I would put in abc.htm to link to another file in another subdirectory of A. Something like "../Subdirectory/xyz.htm" (where xyz.htm is the file I want to link to) returned as a string.
    The reason it needs to be a relative filepath without any references to named directories is that the application with all the hyperlinks in it will eventually reside on a different server or servers. The people who put it there will maintain the same directory structure as we have in our development directory, however.
    So, anyway, I see in the File class you have methods for getting absolute filepaths and directory names and such, but nothing for getting a relative link to another file.
    Does anyone know if such a class/method exists anywhere in std Java? Or how else I could go about doing this?
    Many thanks if you can help.

    Given a File object f then one can build the path to the root as a list of file names from f.getName() and iterating using f = f.getParentFile().
    Once you have the path lists for your two files then it is simple enough to find the branch point by moving forward through the lists until values differ. Building the relative path is then a matter of moving back through one using "../" until the branch point and then forward through the other until you reach the last element.

  • How to get text from column  labels in pivot using javascript?

    Hi, is it possible to get text from column labels in pivot using javascript? How?

    You don't get a response from a URLRequest, you get the response from a URLLoader:
    View this sample page for URLRequest and URLLoader and I think it'll make more sense to you.
    http://help.adobe.com/en_US/air/reference/html/flash/net/URLRequest.html#URLRequest()

  • How to get table data column by column dynamically

    Hi ,
    first of all
    i have something like this
    cursor sys_cursor is
    select * from sys.all_objects;
    v_data varchar2(200);
    fetch sys_cursor
    into v_owner, v_object_name, v_subobject_name, v_object_id, v_data_object_id, v_object_type, v_created, v_last_ddl_time, v_time_stamp, v_status, v_temporary, v_generated, v_secondary;
    v_data := v_owner || ' ' || v_object_name || ' ' || v_subobject_name || ' ' ||
    v_object_id || ' ' || v_data_object_id || ' ' ||
    v_object_type || ' ' || v_created || ' ' || v_last_ddl_time || ' ' ||
    v_time_stamp || ' ' || v_status || ' ' || v_temporary || ' ' ||
    v_generated || ' ' || v_secondary;
    encrypt(v_data);
    it is ok for "sys.all_objects" but i need to modify this for all tables
    so , i need to know column names of table and type of it and value of it
    then i need to get column values by one by and encrypt it.
    i used dbms_sql and succeed to find column name and type
    however , i couldnt get the values.i can't use dbms_sql.column_values because i find column type dynamically.
    what can i do?
    how can i get table data by row
    and then for each row , i need to get values of columns by one by and encrypt those values.
    any idea is appriciated.
    thanks
    Aykut

    Dynamic SQL is the solution. Right from getting the column names, their data types to passing the string to encrypt function that you have.
    You will need to handle datatypes like LONG, LOB etc... as they cannot be concatenated with strings.
    Also, you need to manage dates and numbers.
    Obviously this would be very complicated code.
    Even if you decide to code the procedure to encrypt tables one by one, still you need to make this procedure dynamic to handle above situations.

  • How to get the last column info of the given table

    Hi All,
    I want to get the last column information like :
    column name, datatype of the last column in the given
    table use PL statement. Please help.
    Thanks,
    JP

    SCOTT@orcl SQL> desc emp
    Name                                                  Null?    Type
    EMPNO                                                 NOT NULL NUMBER(4)
    ENAME                                                          VARCHAR2(10)
    JOB                                                            VARCHAR2(9)
    MGR                                                            NUMBER(4)
    HIREDATE                                                       DATE
    SAL                                                            NUMBER(7,2)
    COMM                                                           NUMBER(7,2)
    DEPTNO                                                         NUMBER(2)
    SCOTT@orcl SQL> select column_name, data_type from user_tab_columns
      2  where table_name = 'EMP'
      3  and column_id = (select max(column_id) from user_tab_columns
      4  where table_name = 'EMP');
    COLUMN_NAME                    DATA_TYPE
    DEPTNO                         NUMBER
    SCOTT@orcl SQL>                                                                      

  • How to get Number of Column in Excel file

    Hi All,
                   My requirment is to get Number of Column in Excel file which i want to upload,
      so please suggest if there is any possible way to get this functionality.
    Thanks
    Anirudh

    Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
    Adjust the values of i_begin_col & i_end_col parameters in this FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      =
          I_BEGIN_COL                   =
          I_BEGIN_ROW                   =
          I_END_COL                     =
          I_END_ROW                     =
        TABLES
          INTERN                        =
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    BBR.

  • CProject evaluation table: How to get project-related task confirmation

    Hi everybody.
    I'm working on cproject and this is my problem:
    In my report i can get details related to an assigned project (i know Project guid) in this way:
      CALL FUNCTION 'BAPI_BUS2172_GET_DETAIL'
        EXPORTING
          project_definition_guid      = project_guid
        IMPORTING
          es_project_definition_detail = es_project_definition_detail
        TABLES
          et_name                      = et_name
          et_status                    = et_status
          return                       = return.
    This bapi let me know the total confirmation status of my project ( this value is contained in the ACT_WORK_EFFORT of the standard data base table DPR_PROJECT ).
    I would like also to get the confirmation status of each task related to this project ......
    i think that these values are contained in the field ACT_WORK_EFFORT of the table DPR_TASK .... but i'm not able to select all and only tasks related to a single progect ....
    Thanks,
    FG

    Ok! found the right sequence of BAPI !

  • How to get all the columns displayed in pdf.

    If the ALV Display contains 25 columns.When i tried to give the print in PDF format.
    in the PDF it is displaying only 10 columns.Can you let me know how to display all the columns (i.e 25) in the pdf.

    Hi,
    Check the OSS Note 186603 which deals with how to handle Spool lists with width > 255 characters.
    Regards,
    Satish

  • How to get invoice status columns available in invoice general screen

    Dear All,
    How to get invoice status in oracle invoices
    Invoice Status --> Validated, Never Validated, Cancelled etc
    please advice me.
    Thanks
    Rehan
    Edited by: 877432 on Oct 9, 2012 3:52 AM

    for
    >
    which is not giving this function kindly where i find these status.
    >
    re-read
    >
    plz see http://www.shareoracleapps.com/2010/10/api-to-find-ap-invoice-status.html
    also Where Is The Invoice Validation Status Stored? How Is The Invoice Validation Status Determined? [ID 301806.1]
    >
    those notes point about statuses - 'Validated' , 'Never Validated' , 'Needs Revalidation'
    if you want 'Unpaid' , 'Fully Applied','Available' etc instead of 'UNPAID', 'FULL', 'AVAILABLE' etc you can use lookups
    see note in http://andyblg.wordpress.com/2012/10/09/approval-status-for-invoice-in-r12/

  • How to get the other columns of a particular mininum value

    <p>I have a multiple rows per account in a table. I build a object minimum(col1) in the Business Object universe. I need to get the corresponding values of a min(col1) for each account. Problem is when i pull the min(col1) and other column, it always gives every combination of the min(col1) for each account. How do i get only the corresponding values.</p><p>Example</p><p>Acct         Col1     col2     col3 </p><p>1              34       3         4</p><p>1              45        5        6</p><p>2               3         7         8</p><p>output should be</p><p>1           45    5   6</p><p>2         3       7   8</p><p>How i accomplish with data providers or free hand sql combinations</p><p>&#160;</p><p>Thanks</p><p>&#160;</p><p>&#160;</p>

    you can do this very quickly by creating a crosstab with the Acct as the Row, and Col1,2,3 as the Columns, and the Maximum of your field as the summary.

  • How to get auto generated column in spring jdbc

    Hi guys ,
    I am using springJDBC and sybase db.
    I think what i am facing is a standard problem but whatever support i am getting from google is not working.
    My problem is :
    "While inserting values in database one colum is autogenerated .....how do i get the value of that column??"
    FYI,
    I have tried using the following code :
    "final String INSERT_SQL = "insert into my_test (name) values(?)";
    final String name = "Rob";
    KeyHolder keyHolder = new GeneratedKeyHolder();
    jdbcTemplate.update(
    new PreparedStatementCreator() {
    public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
    PreparedStatement ps =
    connection.prepareStatement(INSERT_SQL, new String[] {"id"});
    ps.setString(1, name);
    return ps;
    keyHolder);
    // keyHolder.getKey() now contains the generated key"
    but i am getting this error : "java.lang.AbstractMethodError: com.sybase.jdbc2.jdbc.SybConnection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatement"
    I think this code works well with Oracle but not with sybase .........does anyone know the solution of this problem .......and by "this problem" i mean how to retrieve auto generate value in spring jdbc ...........without using SimpleJdbcInsert class

    Looking at the previous post it doesn't look like a Spring issue.
    You are using a JDBC driver which does not support getting generated keys so you have 2 choices:
    - Use a different driver that supports generated keys
    - Get the generated key by issuing some vendor specific SQL e.g. 'select @@identity' for SQL server

Maybe you are looking for

  • Unit testing and Issue on ODS

    Hi every one, I was asked to do Unit testing on all the objects I created which includes data loading, checking the structure.....etc...If any one has any template for Unit testing pls forward it to me [email protected]..... My ods is designed with o

  • Oracle 10g AS Re-installation problem

    Hi, I need to re-install my 10g AS version 9.0.4, and I've been getting this crazy error. The service Oracle oracleas Process Manager already exists. I did deinstall my previous installation and also deleted all directories and did remove the registr

  • Button to hide/show regions

    I need to hide/show regions of a page based on when the user clicks a button. I have added the buttons to my page. I see there is a display condition section for the region. How can I tie them together to hide/show.

  • Array Handling in Formula Node

    I have attached a simple VI wherein I want to take an input array, look at its size and use the size of the input array as the size of the output array. The output array needs to be declared. I want to be able to use the size of the input array "N" a

  • After update to CC 2014, Ps can't pass edited image to Lr

    As title says, after update to CC 2014 and uninstalling old version I can't get a workflow I used to get. After opening image in Ps from Lr and saving it gives an error: Is there any easy way to fix this? If not, how can I reinstall Ps and Lr without