No line selected even if SELECT granted.

I have a vision I created OEM 12 c owned by SYSMAN.  The view is as follows:

create or replace view chk_dbmango as

Target_name SELECT LOWER (a_size.target_name),

tphost. HOST_NAME,

tpba.business_area,

TPD.contact,

tpapp.application,

tpenv. Environment,

ROUND (AVG (a_size.size_gb), 2) SIZE_GB.

ROUND (AVG (a_size.used_gb), 2) USED_GB.

ROUND (AVG (a_size.size_gb - a_size.used_gb), 2) FREE_GB.

ROUND (AVG ((a_size.used_gb * 100) / DECODE (a_size.size_gb, 0, 1, a_size.size_gb))) USED_PCT

FROM (SELECT t.target_name,

t.target_guid,

SUM (d.tablespace_size) / 1024 / 1024 / 1024 size_gb,.

SUM (d.tablespace_used_size) / 1024 / 1024 / 1024 used_gb

Sysman.Mgmt$ db_tablespaces d, sysman.mgmt$ target_type t

WHERE (t.target_type = "rac_database"

OR (t.target_type = "oracle_database"

AND t.TYPE_QUALIFIER3 <>'RACINST'))

AND d.target_name (+) = t.target_name

AND t.metric_name = 'tbspAllocation. '

AND (t.metric_column = "spaceAllocated")

T.target_name, t.target_guid, t.metric_column) a_size,.

(SELECT name AS host_name,

target_guid

OF sysman.mgmt$ target_properties

Property_name WHERE = "ComputerName") tphost,.

(SELECT name AS business_area,

target_guid

OF sysman.mgmt$ target_properties

Property_name WHERE = "orcl_gtp_line_of_bus") tpba,.

(SELECT name AS the contact,

target_guid

OF sysman.mgmt$ target_properties

Property_name WHERE = "orcl_gtp_contact") TPD.

(SELECT name as the application,

target_guid

OF sysman.mgmt$ target_properties

Property_name WHERE = "orcl_gtp_comment") tpapp.

(SELECT name AS the environment,

target_guid

OF sysman.mgmt$ target_properties

Property_name WHERE = "orcl_gtp_deployment_type") tpenv

WHERE a_size.target_guid = tphost.target_guid

AND a_size.target_guid = tpba.target_guid (+)

AND a_size.target_guid = tpd.target_guid (+)

AND a_size.target_guid = tpapp.target_guid (+)

AND a_size.target_guid = tpenv.target_guid (+)

A_size.target_name GROUP,

tphost. HOST_NAME,

tpba.business_area,

TPD.contact,

tpapp.application,

tpenv. Environment

ORDER BY 1;

I SELECT granted on this point of view of user svcmango.  When it is connected as the svcmango and mode query, I get no selected lines.  Connected as sysman I get 99 lines.  There must be something simple that I forgot.  Help, please.  Thank you.

I realized that it is.  The Oracle Enterprise Manager Cloud control 12 c database has the active VPD.  Once I understood this point, it was easy to correct the situation.  I just added SVCDBMANGO to the CAE, and all is well.

Thanks to all for your responses.

Steve

Tags: Database

Similar Questions

  • Retrieve child line selected a tree table

    Hi all

    I have a tree table which includes two levels and one of the data in the column of the child node has a command link. Clicking on it calls a support bean method that tries to get the line that contains the command link that was clicked. The problem is, trying to get the line clicked (selected), it always returns the row parent of the node. I searched and followed by some examples of code, but it does not work for me.

    For example, if the table tree looks like, where X expands to show the children X 1 and X 2 lines:

    X

    L X 1

    L X 2

    Then clicking on the link to X 1 or X 2 will call code that returns the line for X.

    Here is the code in my grain of support:

       public void viewInspectionRecord(ActionEvent actionEvent) {
    
          RowKeySet rks = treeTable.getSelectedRowKeys(); 
          
          Iterator rksIterator = rks.iterator(); 
          
          if (rksIterator.hasNext()){ 
             List key = (List) rksIterator.next(); 
        
             JUCtrlHierBinding treeTableBinding = (JUCtrlHierBinding) ((CollectionModel) treeTable.getValue()).getWrappedData();     
             JUCtrlHierNodeBinding nodeBinding =  treeTableBinding.findNodeByKeyPath(key);     
             
             Row rowData = nodeBinding.getRow();
            
             if (rowData == null) {
                 FacesMessage facesMessage = new FacesMessage("Please select an Inspection Record record to view details");
                 FacesContext.getCurrentInstance().addMessage(null, facesMessage);
                 
                 return;
             }   
             
             Object irId = rowData.getAttribute("QarsInspectionRecordId");
             
             ...
      }
    

    rowData.getAttribute("QarsInspectionRecordId") eventually throw a NullPointerException because it is an attribute defined with the parent node and any children.

    Any ideas what's happening?

    Thank you

    Bill

    Hello

    see this hope, it will help you to get the line selected on your link, click

    http://oracleadf-Java.blogspot.in/2013/08/tree-table-component-with-declarative.html

    If you use treeTable selection listener then see.

    http://oracleadf-Java.blogspot.in/2012/11/tree-table-component-in-Oracle.html

  • Get the first line selected on the CommandButton Click

    Hi guys,.
    My version of jdev is 11.1.1.5.0. I have table on my Page of Adf.

    < af:table value = "#{bindings." MyvwVO1.collectionModel}.

    var = "row" rows = "#{bindings." MyvwVO1.rangeSize}.

    emptyText = "#{bindings." MyvwVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    filterModel = "#{bindings." MyvwVO1.queryDescriptor}.

    queryListener = ' #{bindings. " MyvwVO1.processQuery}.

    filterVisible = "true" varStatus = 'vs' rowBandingInterval = '1 '.

    columnSelection = 'single '.

    Summary = "Table of suppliers.

    selectionListener = "#{bindings." MyvwVO1.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t2".

    "partialTriggers =": soc1: ctb2: cb22.

    fetchSize = "#{bindings." MyvwVO1.rangeSize}.

    Binding = "#{MyBN.supplierTableBinding}" >

    < af:column id = "c14" frozen = "true" align = "center" >

    < af:commandButton action = "viewNext" text = "Next view" id = "cb1" >

    < af:setActionListener from = "#{bindings." CurrSupplierSiteId.inputValue}.

    to = "#{bindings." SupplierSiteID.inputValue} "/ >"

    < af:setActionListener from = "#{bindings." CurrSupplierSiteId.inputValue}.

    to = "#{MyBN.supplier_site_id}" / >

    < / af:commandButton >

    < / af:column >


    When I'm clicking viewNext button. When debugging, I get first line provider site Id instead of the current line selected.

    I also removed the selectedRowKeys of af: table. Now his show is not first line select default, but still get the Site Id of first line supplier back Bean.

    {} public void setSupplier_site_id (number supplier_site_id)

    This.supplier_site_id = supplier_site_id;

    }

    public {getSupplier_site_id() number

    Return supplier_site_id;

    }

    No idea what I'm doing wrong.


    Thank you

    Raul

    you pass line value.right... so from value as link will not be work.try send as #{row.abc.value} go on setactionListener and so on. You pass the rank value.

  • No default line selected in af:table

    Hello

    I don't need no line selected default differance on the rendering of the original of an af:table with a unique selection enabled.
    The reason is that the af: table has an associated selection listener. If a line is selected by default, the user cannot select the line again to perform an action on this subject.
    I don't want to.

    Is there a way to make a table with no rows selected by default?

    having an affair at the table in the bean managed... with getter and Setter... and in the Get accessor, make it like

    RicheTableau tableBidding;

    public richeTableau getTableBinding() {}
    If (tableBinding! = null) {}
    tableBinding.getSelectedRowKeys () .clear ();
    }
    tableBinding return;
    }

  • Look for the lines selected on a tabular presentation

    Hello guys and girls,

    I have a small problem trying to understand if/how I can check by pressing the "submit" button if there where no records selected in my tabular presentation.

    To explain better: I have a selection list in which the user select an employee. On this choice, a tabular presentation appears with the own products for this employee.

    The user must check at least one of the lines to go further.

    If the user does not select all and always press the "submit" button you should see an error message saying: "there are no selected product."

    What I was doing until now (stupid I suppose) was to create a Boolean as validation:

    DECLARE

    vRow directory;

    BEGIN

    BECAUSE me in 1... apex_application.g_f01. COUNTY

    LOOP

    vRow: = apex_application.g_f01 (i);

    If vRow is NULL then

    Returns false;

    on the other

    Returns true;

    end if;

    END LOOP;

    END;

    But does not work. If I have no active records it will say nothing and let me go. If I check something even record.

    Help, please.

    There must be something that I have no idea about.

    Thank you very much.

    Gabriel

    Checkboxes only support values for the lines. For example, a loop on the table will always return true since vRow will never be NULL. In addition, a table with a number equal = 0 will not be locked during all, again don't generate no errors.

    No loop, just check apex_application.g_f01. COUNTY. If it is 0, no checkboxes have been verified.

  • How to validate at least one line selected on the table?

    Hello world

    I have a requirement here to display a list of customers at a table "select unique" and a button to send the page. When the user clicks this button, I need to validate if there is a selected line in the table. What is the best approach tho do?
    I tried to validate it on actionListener in the click of a button, but even if I put adfFaces messages running, it does not appear on the screen and the page is still subject.

    Is the BPM 11 g context of the project, so I have to do this validation and 'Cancel' the submit, otherwise the data passes through the flow until the next activity.

    Maybe the real question is: how to undo a page submit during an actionListener?

    Thank you

    Hello

    Small correction to Vinod, tableBinidng.getSeelctedRowKeys () always returns non-null (returns empty set when nothing is selected), then use the tableBinidng.getSeelctedRowKeys () .getSize () to check if a line is selected or not (0-nothing selected).

    If you do not want to treat the action up to save if an option is selected, why don't you try disable the button until something is selected in the table?

    To disable a button when no rows selected, simply add after the disabled property of a button value update it based on the table (add partialTriggers to the table)

    
    
    

    Jean Lou

  • Users and SELECT GRANT

    Hello.

    Thank you for reading my post.

    Can take you a look at what I've done?

    ---------------------------------------------------------------------------------------------------------------
    SQL > connect sys as sysdba
    ---------------------------------------------------------------------------------------------------------------
    SQL > CREATE TABLESPACE tbp
    DATAFILE 'c:\app\oracle\thepath\tbp.dbf '.
    SIZE 1000M
    DEFAULT STORAGE INITIAL (50M
    NEXT 50 M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    PCTINCREASE 0);
    ---------------------------------------------------------------------------------------------------------------
    SQL > CREATE ROLE rol;
    ---------------------------------------------------------------------------------------------------------------
    SQL > GRANT CREATE SESSION, CREATE TABLE TO rol;
    ---------------------------------------------------------------------------------------------------------------
    SQL > CREATE USER IDENTIFIED BY usr usr
    TABLESPACE default tbp
    TEMPORARY TABLESPACE thetemp
    QUOTA UNLIMITED ON tbp;
    ---------------------------------------------------------------------------------------------------------------
    SQL > GRANT rol to usr;
    ---------------------------------------------------------------------------------------------------------------
    SQL > CREATE USER IDENTIFIED BY usr2 usr2
    TABLESPACE default tbp
    TEMPORARY TABLESPACE thetemp
    QUOTA UNLIMITED ON tbp;
    ---------------------------------------------------------------------------------------------------------------
    SQL > connect usr
    ---------------------------------------------------------------------------------------------------------------
    SQL > CREATE TABLE radios (name varchar2 (20) varchar2 (20)) frequency;
    ---------------------------------------------------------------------------------------------------------------
    SQL > INSERT INTO radios that have VALUES ("radio1", ' 15515.55' ");
    ---------------------------------------------------------------------------------------------------------------
    SQL > GRANT SELECT ON radios to usr2;
    ---------------------------------------------------------------------------------------------------------------
    SQL > connect usr2
    ---------------------------------------------------------------------------------------------------------------
    SQL > SELECT * FROM radios;
    Select * radio
    *
    ERROR on line 1:
    ORA-00942: table or view does not exist
    ---------------------------------------------------------------------------------------------------------------


    And indeed:
    ---------------------------------------------------------------------------------------------------------------
    SQL > select * from user_objects where type_objet = "TABLE";
    no selected line
    ---------------------------------------------------------------------------------------------------------------


    Don't you see what is my problem?
    I wish "usr2" could have "SELECT" success on table "radio".
    Can you explain to me what's wrong with my reasoning?

    Thank you and best regards,
    --
    Lmhelp
    [Database 11g Enterprise Edition Release 11.1.0.6.0 http://Oracle]

    Select * from usr.radios;

    You must use schema_name. to access the object object_name.

    Concerning
    Asif Kabir

    3 (3 pending)
    -Mark your answer as correct/useful.

    Published by: asifkabirdba on December 8, 2009 17:17

  • strange line selection / forts of the

    Hi cvi - rs.
    Lately, don't know exactly when, and what I did, but now LabWindows selects the text in a very strange way.
    In place of (with SHIFT since the beginning of the line 01) highlight at the end of the line, and then the end of the next line and so on it highlights the next line only to the position of the previous line.

    Then if you want to copy and paste it into another line, he must like so many lines that much that you copied. It doesn't "grow" the lines down as normally he would, instead it grows to the right, those lines that are in place that 'he' wants to occupy.

    It depends on the type of text selection, you have enabled: CVI allows you to choose three methods:

    The selection is done either by clicking on the icon highlighted in the toolbar State CVI window or by pressing the Ctrl + Ins.

  • How to make the lines selectable listfield, when the list has been added to a dialog box

    Hello

    I added a listfield to a dialog box. Now I want that when I click on a line any of this list field, I should get a menu (i.e. something should be available for me so that I can perform an action on the selected line). But when I click on the line, nothing happens.

    Help, please

    Create your own screen, its less than the actual display dimensions to make it look like a pop-up screen. When a line is selected/clicked, call makeMenu.

  • Can change us line selected in ADF without using click to edit table feature.

    JDEV 12.1.3.0

    Hi Experts,

    Is there a way we can select a row in the table and click the button change the Panel collection. While the row becomes editable.

    Whatever row, we select and click on the edit button. This line becomes editable thattime only. Otherwise always disabled.

    Without using click to modify the ADF table feature.

    Thank you

    AR

    I had similar usecase

    Maybe you can tweek this blog to meet your needs

    Born in DeBug: press the Edit button to make editable line Table.

  • ListView MAF 2.1 how to get the value of line selection

    Hi all

    I'm trying to get the select line of a page with a listview amx

    to pass values of line as a parameter to the detail page

    which to get data from web service, but with links

    I always get the first value in the line of my list view.

    How can I refresh the values?

    Is - this java is better than the binding for this case?

    Can you help me please?

    Thanks for your help

    You can set the value of the selected line in a variable pageFlowScope and pass it to the method on the next page.

    Something similar to this:

    https://blogs.Oracle.com/Shay/entry/adf_mobile_update_through_web

  • Get the line selected in inputListOfValues returnPopupListener in JDev 12 c (12.1.3)

    Hi experts,

    We strive to migrate our 11.1.1.7 project in 12.1.3, but we are experiencing a problem with our generic returnPopupListener. It essentially uses the code from https://blogs.oracle.com/jdevotnharvest/entry/getting_selected_row_in_inputlistofvalues Frank Nimphius blogpost.


    public void returnListener(ReturnPopupEvent returnPopupEvent) {  
      //access UI component instance from return event
      RichInputListOfValues lovField = 
           (RichInputListOfValues)returnPopupEvent.getSource();
      
      //The LOVModel gives us access to the Collection Model and 
      //ADF tree binding used to populate the lookup table
      ListOfValuesModel lovModel =  lovField.getModel();
      CollectionModel collectionModel =
             lovModel.getTableModel().getCollectionModel();  
      
      //The collection model wraps an instance of the ADF 
      //FacesCtrlHierBinding, which is casted to JUCtrlHierBinding
      JUCtrlHierBinding treeBinding =  
             (JUCtrlHierBinding) collectionModel.getWrappedData();
      
      //the selected rows are defined in a RowKeySet.As the LOV table only
      //supports single selections, there is only one entry in the rks
      RowKeySet rks = (RowKeySet) returnPopupEvent.getReturnValue();
      
      //the ADF Faces table row key is a list. The list contains the 
      //oracle.jbo.Key
      List tableRowKey = (List) rks.iterator().next();
      
      //get the iterator binding for the LOV lookup table binding  
      DCIteratorBinding dciter = treeBinding.getDCIteratorBinding();
      
      //get the selected row by its JBO key  
      Key key = (Key) tableRowKey.get(0);
      Row rw =  dciter.findRowByKeyString(key.toStringFormat(true));
    
      //work with the row
      // ...
    
    }
    


    We found that this no longer the selected line returns, it returns "null". The DCIteratorBinding contains lines of 0, so the findRowByKeyString won't find any line.


    Has anyone got this piece of code works in 12 c? More precisely in 12.1.3?

    We found that this no longer the selected line returns, it returns "null". The DCIteratorBinding contains 0 rows, so that the findRowByKeyString won't find any line.

    Has anyone got this piece of code works in 12 c? More precisely in 12.1.3?

    It may be a bug.

    Have you tried: dciter.getViewObject () .findByKey (key, 1) [0];     instead of: dciter.findRowByKeyString (key.toStringFormat (true));   ?

    Dario

  • How to view the details of the employee in line selection POPup

    Hi I need I show EmployeeDetails in the af with a table query pane

    After the search for details used in the Table, I'll choose a rank I have the detals, then I want to show employee details in a POP how I can do...

    Thank you

    Delphine

    Hi reda

    This requirement, you can use custom selection for af:table listener and who, after having invoked default selectionListener, open a popup that contains details of employees

    If the iterator for table and popup is same then it will show automatically data selected line

    See how to open popup on table selection

    See - Blog of Ashish Awasthi (Jdev/ADF): call ADF Table selection listener, listener of custom for af:table selection

    Thank you

  • missing parenthesis in insertion into separate lines select the table from the other table

    Hello

    could you help me with the following question?

    I have the following tables

    CREATE TABLE table1)

    ID varchar (12),

    col2 varchar (10),

    COL3 varchar (10),

    level varchar (10))

    CREATE TABLE table2)

    Id2 varchar (12)

    A varchar (10),

    B number (1)

    CONSTRAINT PRIMARY KEY PK (ID2, is));

    INSERT INTO table2 (ID2, A, B) SELECT ID, col2

    MAX (CASE WHEN level = "level 1" then 1

    level = 'level 2' then 2

    Level = 3 then 'niveau3') as colIN3)

    FROM table1 GROUP BY ID2, a.;

    the first table have duplicates as follows:

    Id2 COL2 COL3 level

    A1 pepe football level1

    A1 pepe football level2

    A1 pepe football level1

    A1 pepe basket level2

    A1 pepe pingpong level3

    the output should be selected with unique key (ID2, col3) lines and the level must be the greatest.

    Id2 COL2 COL3 level

    A1 pepe football level2

    A1 pepe basket level2

    A1 pepe pingpong level3

    The output of the script tells me the following messages:

    -lack of right parenthesis referring to the max function.

    Thanks adavance.

    Kind regards

    Hello

    Remember the ABC's of the GROUP BY:

    When you use a GROUP BY clause or in an aggregate function, then all in the SELECT clause must be:

    (A) a ggregate function,

    (B) one of the expressions "group By."

    (C) adding to C, or

    (D) something that Depends on the foregoing.  (For example, if you "GROUP BY TRUNC (dt)", you can SELECT "TO_CHAR (TRUNC (dt), 'Mon - DD')").

    To ask him, there are 5 columns in the SELECT clause.  The last one is a function MAX (...); It is an aggregate, is not serious.

    The first 2 columns are also named in the GROUP BY clause, so that they are well.

    The other 2 columns, country and internal_Id do not match any of the above categories.  These 2 columns cause the error.

    There are many ways to avoid this error, each producing different results.  You could

    • remove these 2 columns in the SELECT clause
    • Add these 2 columns in the GROUP BY clause
    • use the aggregation such as MIN, 2-column functions
    • remove the country from the SELECT clause and add internal_id to the GROUP BY clause
    • remove the internal_id from the SELECT clause, and add countries to the GROUP BY clause
    • ...

    What are the results you want?

    Whenever you have a question, please post a small example of data (CREATE TABLE and INSERT statements) for all the tables involved, so people who want to help you can recreate the problem and test their ideas.  Also post the results you want from this data, as well as an explanation of how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Not getting not line selected, click values on commnadLink?

    Hello world

    I created an ADF table with 10 columns. Out of which (Empno) column first, I changed to commandLink and provided the Action: Link1().

    The code in the Link1() method is as follows:

    public String Link1() {}
    Add the code in the event here...

    DCBindingContainer links =
    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCIteratorBinding = dcItteratorBindings
    bindings.findIteratorBinding ("EmpTableVO1Iterator");
    ViewObject voTableData = dcItteratorBindings.getViewObject ();
    Line rowSelected = voTableData.getCurrentRow ();

    String Empname = rowSelected.getAttribute("EmpName").toString ();
    String Empno = rowSelected.getAttribute("EmpNo").toString ();
    String Comm = rowSelected.getAttribute("Comm").toString ();
    Channel Manager = rowSelected.getAttribute("Manager").toString ();

    System.out.println ("Emp name chosen is:" + Empname);
    System.out.println ("No. Emp chosen is:" + Empno);
    System.out.println ("Comm selected is:" + Comm);
    System.out.println ("Director chosen is:" + Manager);
    }

    Now the question is to assume that the table has 20 lines if I click on the line 15 (click on the EmpNo of 15th), then the values of line returned in the method Link1() belongs to the first row.
    If I click on a line, but the values returned in the Link1() method belongs to the first line only.

    How to get the values of current line clicked?
    All suggestions will be really useful.

    Thank you.

    Hi Kumar,
    I tested your case in Jdeveloper 11.1.2.3.0, and it works correctly.

    Here is my page source:

    
    
    
      
        
        
          
            
              
            
            
              
                
              
            
            
              
                
              
            
          
        
      
    
    

    and the definition of page file is

    
    
      
      
        
        
      
      
        
          
            
              
              
              
            
          
        
      
    
    

    and the managed bean

    package view;
    
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    
    import oracle.jbo.Row;
    
    public class Test
    {
      public Test()
      {
      }
    
      public String getRowInformation()
      {
        // Add event code here...
        DCBindingContainer dcBindingContainer = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
        DCIteratorBinding iter = dcBindingContainer.findIteratorBinding("EmployeesView1Iterator");
        Row currentRow = iter.getCurrentRow();
        System.out.println("Employee First Name " + currentRow.getAttribute("FirstName"));
    
        return null;
      }
    
    }
    

    check what's missing in your application.

Maybe you are looking for