Error while selecting from view that references external table

Can someone explain why the error near the bottom of the code below is occuring? If USER1 grants SELECT on the external table to USER2, then USER2 can select from the view without any problems; however, I want to avoid giving USER2 access to all of the columns in the external table. (I only want to give USER2 access to two of the four columns.)
SQL> CONNECT sys AS SYSDBA
Connected as SYS@ as sysdba
SQL> CREATE USER user1 IDENTIFIED BY user1
User created.
SQL> CREATE USER user2 IDENTIFIED BY user2
User created.
SQL> GRANT CONNECT, CREATE TABLE, CREATE VIEW TO user1
Grant complete.
SQL> GRANT CONNECT TO user2
Grant complete.
SQL> GRANT READ, WRITE ON DIRECTORY EXT_DATA_DIR TO user1, user2
Grant complete.
SQL> CONNECT user1/user1
Connected as USER1@
SQL> CREATE TABLE emp_xt
  emp_id     NUMBER,
  first_name VARCHAR2(30),
  last_name  VARCHAR2(30),
  phone      VARCHAR2(15)
ORGANIZATION EXTERNAL
  TYPE ORACLE_LOADER
  DEFAULT DIRECTORY EXT_DATA_DIR
  ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'           
  LOCATION ('emp.txt')
REJECT LIMIT 0
Table created.
SQL> SELECT COUNT(1) FROM emp_xt
  COUNT(1)
         4
1 row selected.
SQL> CREATE OR REPLACE VIEW emp_xt_view AS SELECT first_name, last_name FROM emp_xt;
View created.
SQL> SELECT COUNT(1) FROM emp_xt_view
  COUNT(1)
         4
1 row selected.
SQL> GRANT SELECT ON emp_xt_view TO user2
Grant complete.
SQL> CONNECT user2/user2
Connected as USER2@
SQL> SELECT COUNT(1) from user1.emp_xt_view
SELECT COUNT(1) from user1.emp_xt_view
Error at line 0
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
ORA-04043: object "USER1"."EMP_XT" does not exist
SQL> CONNECT user1/user1
Connected as USER1@
SQL> GRANT SELECT ON user1.emp_xt TO user2
Grant complete.
SQL> CONNECT user2/user2
Connected as USER2@
SQL> SELECT COUNT(1) from user1.emp_xt_view
  COUNT(1)
         4
1 row selected.
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

user503699 wrote:
user1983440 wrote:
Can someone explain why the error near the bottom of the code below is occuring? If USER1 grants SELECT on the external table to USER2, then USER2 can select from the view without any problems; however, I want to avoid giving USER2 access to all of the columns in the external table. (I only want to give USER2 access to two of the four columns.)As you have demonstrated, I guess the view approach only works for database tables. External tables are actually files on the file system. Even through OS, it is not possible to grant READ/WRITE access to only part of the file. The access is for entire file. An "External Table" is just a "wrapper" provided by oracle (using data cartridge) to allow user to be able to access the file as a "table". So it can definitely not do something that underlying OS can not do.
p.s. In fact, oracle does not even allow to edit data in external tables using SQL.Why not just make a second external table (only including the 2 columns you need) and grant select directly on that to the user. I know you say "views only" but there's an exception to every rule ... just because it's called a table doesn't make it so. You could argue an external table is nothing more than a fancy view.
Worst case, make a view on top of the second external table.
CREATE TABLE emp_xt_less_information
  first_name VARCHAR2(30),
  last_name  VARCHAR2(30)
ORGANIZATION EXTERNAL
  TYPE ORACLE_LOADER
  DEFAULT DIRECTORY EXT_DATA_DIR
  ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'   
         emp_id      number,
         first_name  char,
         last_name   char,
         phone       char
  LOCATION ('emp.txt')
REJECT LIMIT 0
{code}
Should do it, but my syntax may be off a touch ....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Error while selecting from a view ORA-01031: Insufficient privileges

    As DBA I have granted select privileges on a view to a user, but whenever I login as that user and try to select from the view I get the message 'ORA-01031'. When I run the query in the view as the user I do not have problem and can see the results. This view joins tables from more than one schema and does a distinct on the resultset. I am new to Oracle and would appreciate any help I can get.
    Thanks

    Back on this problem when I created another user with select permission on the same view and a default role that has reference on all the objects on the other schemas, I end up with the same error message. Although this time the schema owner of the view has select privileges on all the tables from other schemas referenced in the view.
    Thanks

  • Grant a user the select permission on a view that references external objects

    Hi all,
    SQL Server 2012 Enterprise Edition SP2.
    I've a database (let's say SRC_DB) that contains a series of views, some of these views refercenses tables or other views in other databases (let's say EXT_DB). I'm searching the best way to grant a user permission to SELECT from that view without granting
    permission to every single obejct in external databases referenced by the view.

    There is a dmv that tells you all the referenced views and tables. you can use that to get the list of all the tables,views being referenced in the cross database and them scrip the to grant only on those views\tables.
    the link  is here:  https://msdn.microsoft.com/en-us/library/bb677315.aspx
    example from the link that woulf work for your suitation:
    CREATE DATABASE db1;
    GO
    USE db1;
    GO
    CREATE PROCEDURE p1 AS SELECT * FROM db2.s1.t1;
    GO
    CREATE PROCEDURE p2 AS
    UPDATE db3..t3
    SET c1 = c1 + 1;
    GO
    SELECT OBJECT_NAME (referencing_id),referenced_database_name,
    referenced_schema_name, referenced_entity_name
    FROM sys.sql_expression_dependencies
    WHERE referenced_database_name IS NOT NULL;
    GO
    USE master;
    GO
    DROP DATABASE db1;
    GO
    Hope it Helps!!

  • Error when selecting from view created by OLAP_TABLE

    Hi all,
    I used OWB 10.2.0.4 to create a MOLAP datawarehouse.
    I created a view with this:
    CREATE OR REPLACE VIEW sales_view AS
    SELECT *
    FROM TABLE(OLAP_TABLE(
    'dw duration session',
    'MEASURE samt AS number(16,0) FROM SALES_SAMT
    DIMENSION cust_code AS varchar2(30) FROM cust
    DIMENSION prod_code AS varchar2(30) FROM prod
    DIMENSION sman_code AS varchar2(30) FROM sman
    DIMENSION time_id AS varchar2(30) FROM time
    DIMENSION orgn_code AS varchar2(30) FROM orgn'));
    and I try to run the following:
    select count(*) from sales_view;
    and I got the following error:
    Error starting at line 1 in command:
    select count(*) from sales_view
    Error report:
    SQL Error: ORA-29400: data cartridge error
    ORA-00600: internal error code, arguments: [xsvaluekeyget: type], [114], [], [], [], [], [], []
    29400. 00000 - "data cartridge error\n%s"
    *Cause:    An error has occurred in a data cartridge external procedure.
    This message will be followed by a second message giving
    more details about the data cartridge error.
    *Action:   See the data cartridge documentation
    for an explanation of the second error message.
    Can somebody give me some idea?
    Many thanks!
    - Andrew

    Brijesh,
    Really appreciate your help!
    With your hint (#2), I found my problems.
    I had 2 problems:
    1) I'm missing the 'Model' clause at the end of my view creation (in bold )
    2) I shouldn't do a count on all rows (e.g. I get result if I select with parameters)
    Here's my working view:
    CREATE OR REPLACE VIEW SALES_VIEW2
    AS
    SELECT * FROM TABLE(OLAP_TABLE(
    'DW DURATION SESSION',
    MEASURE SAMT FROM SALES_SAMT1
    DIMENSION PROD_CODE FROM PROD
    DIMENSION SMAN_CODE FROM SMAN
    DIMENSION TIME_CODE FROM TIME
    DIMENSION CUST_CODE FROM CUST
    DIMENSION ORGN_CODE FROM ORGN
    MODEL
    DIMENSION BY(PROD_CODE, CUST_CODE, SMAN_CODE, TIME_CODE, ORGN_CODE)
    MEASURES(SAMT)
    RULES UPDATE SEQUENTIAL ORDER();
    -----

  • Getting an error while selecting from table having CLOB column.

    Hi All,
    I have below table created in My oracle database version Oracle Database 11g Enterprise Edition Release 11.2.0.1.0.
    CREATE TABLE my_clob -- Dummy table created
    (DataBody CLOB);
    Current Database Character set - WE8MSWIN1250.
    On the front end of my application, I have one form through which I can save/edit data in the above table. If I'm creating one new entry in the above table then it first check with existing record to avoid the duplicate entry and the this point application create the below select statement on the above table and return the error "ORA-00932: inconsistent data types: expected - got CLOB".
    I can not change the sql statement.
    SELECT * FROM my_clob WHERE databody IS NULL OR databody ='';
    Even when I run the same statement on my DB server I’m getting the same error. Shown below
    SQL> SELECT * FROM my_clob WHERE databody IS NULL OR databody ='';
    SELECT * FROM my_clob WHERE databody IS NULL OR databody =''
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got CLOB
    SQL>
    Is there anything with OraOLEDB which causing this error? Please help me out to get rid of this error.
    Thanks,
    Santosh

    You cannot compare directly a CLOB column with a VARCHAR2 column. In your case you don't need to do such comparison because Oracle consider zero length strings as null values:
    SQL> create table my_clob(data int, databody clob);
    Table created.
    SQL> insert into my_clob values(1, null);
    1 row created.
    SQL> insert into my_clob values(2, '');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from my_clob where databody is null;
          DATA
    DATABODY
             1
             2About null values in Oracle, please read http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements005.htm#SQLRF30037.

  • Error while selecting  from nested table in PL/SQL block ............

    SQL> create type string_table is table of varchar(100);
    2 /
    Type created.
    declare
    v_names string_table := string_table();
    begin
    v_names.EXTEND(3);
    v_names(1) := 'name1';
    v_names(2) := 'name2';
    v_names(3) := 'name3';
    dbms_output.put_line(v_names(1));
    dbms_output.put_line(v_names(2));
    dbms_output.put_line(v_names(3));
    dbms_output.put_line(v_names.COUNT());
    select * from table(v_names);
    end;
    select * from table(v_names);
    ERROR at line 12:
    ORA-06550: line 12, column 7:
    PLS-00428: an INTO clause is expected in this SELECT statement

    select * from table(v_names);
    I guess ,here you were trying to put the content of the NT into another NT, or just trying to print it.
    But, I don't think INTO Clause is mandatory here.
    Please check your modified code (w/o INTO) and the output :
    DECLARE
       TYPE string_table IS TABLE OF VARCHAR (100);
       v_names   string_table := string_table ();
       v_test    string_table := string_table ();
    BEGIN
       v_names.EXTEND (3);
       v_names (1) := 'name1';
       v_names (2) := 'name2';
       v_names (3) := 'name3';
       DBMS_OUTPUT.put_line ('Old collection - '||v_names (1));
       DBMS_OUTPUT.put_line ('Old collection - '||v_names (2));
       DBMS_OUTPUT.put_line ('Old collection - '||v_names (3));
       DBMS_OUTPUT.put_line ('Old collection - '||v_names.COUNT ());
       DBMS_OUTPUT.put_line (CHR(10));
       /* SELECT * FROM TABLE (v_names); */
       v_test := v_names;
       DBMS_OUTPUT.put_line ('New collection -- '||v_test (1));
       DBMS_OUTPUT.put_line ('New collection -- '||v_test (2));
       DBMS_OUTPUT.put_line ('New collection -- '||v_test (3));
       DBMS_OUTPUT.put_line ('New collection -- '||v_test.COUNT ());
       DBMS_OUTPUT.put_line (CHR(10));
       /* Printing using FOR LOOP */
       FOR i IN v_test.FIRST..v_test.LAST
       LOOP
         DBMS_OUTPUT.put_line ('In FOR Loop --- '||v_test (i));
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Error ' ||SQLERRM|| DBMS_UTILITY.format_error_backtrace);
    END;gives o/p :
    Old collection - name1
    Old collection - name2
    Old collection - name3
    Old collection - 3
    New collection -- name1
    New collection -- name2
    New collection -- name3
    New collection -- 3
    In FOR Loop --- name1
    In FOR Loop --- name2
    In FOR Loop --- name3Refer this link -- http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/tuning.htm#CIHGGBGF
    Edited by: ranit B on Dec 26, 2012 2:29 PM
    -- code modified
    Edited by: ranit B on Dec 26, 2012 2:45 PM
    -- code 'again' updated -- FOR LOOP added

  • Error while calling an procedure using an external table with C#.

    Hello,
    I am developping a scheduler application with Visual Studio 2010 (C#) to start my PL/SQL procedures.
    Everything works fine with every procedure but one who is reading the content of an external table.
    Strange thing is when i launch the same procedure with Toad, i have no problem, but when i launch it with my C# code :
                OracleCommand cmdMET = new OracleCommand();
                cmdMET.CommandText = "STG_AE.M_MET_S_EXT_DEFECT";
                cmdMET.CommandType = CommandType.StoredProcedure;
                cmdMET.Connection = con;
                //OracleParameter retvalMET = new OracleParameter("retval", OracleDbType.Varchar2, 50);
                //retvalMET.Direction = ParameterDirection.ReturnValue;
                //cmdMET.Parameters.Add(retvalMET);
                cmdMET.ExecuteNonQuery();
    I've got this error :
    ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-01722: invalid number
    ORA-06512: at "STG_AE.M_MET_S_EXT_DEFECT", line 8
    ORA-06512: at "STG_AE.MET_SRC", line 10
    ORA-06512: at "STG_AE.MET", line 14
    ORA-06512: at line 1
    I can't figure out why it works when i launch it with Toad and why i get this error when launching it with C#... Any advice would be great !
    Thanks!

    You're right!
    Adding
    string sql = "ALTER SESSION SET NLS_NUMERIC_CHARACTERS = \",.\"";
    OracleCommand cmd = new OracleCommand(sql, con);
    cmd.CommandType = CommandType.Text;
    OracleDataReader dr = cmd.ExecuteReader();
    solved the problem !
    Thanks a lot =)

  • Error while selecting from sequence

    Hi,
    select seq_empid.nextval from dual;
    when selecting this from Java code it is giving error "table or view does not exist"..
    can anybody pls guide me as to what possible reasons could be for the error?
    thx

    are you using different user acct when using it from java? i think it migth be privilege issue.

  • Error while selecting Current View

    Dear all,
    I have created a user defined dimension. The problem is when I am selecting any member of this dimension from current view, I get a message:
    "A member could not be found for this search criteria"
    when I press OK, I get:
    "The member exists in NEXT .....Do you want to expand"
    <Yes/No>
    Then only I am able to see the list of members in the hierarchy corresp to this dimension.
    How to resolve this...Pls help.
    Regards,
    Ankush

    hay,
    Do you get this when you selcet ID only? I only get this eror when I have ID and Discription selected.
    I have the seen this problem I am on v 7
    Thanks for help.

  • Error while selecting date from external table

    Hello all,
    I am getting the follwing error while selecting data from external table. Any idea why?
    SQL> CREATE TABLE SE2_EXT (SE_REF_NO VARCHAR2(255),
      2        SE_CUST_ID NUMBER(38),
      3        SE_TRAN_AMT_LCY FLOAT(126),
      4        SE_REVERSAL_MARKER VARCHAR2(255))
      5  ORGANIZATION EXTERNAL (
      6    TYPE ORACLE_LOADER
      7    DEFAULT DIRECTORY ext_tables
      8    ACCESS PARAMETERS (
      9      RECORDS DELIMITED BY NEWLINE
    10      FIELDS TERMINATED BY ','
    11      MISSING FIELD VALUES ARE NULL
    12      (
    13        country_code      CHAR(5),
    14        country_name      CHAR(50),
    15        country_language  CHAR(50)
    16      )
    17    )
    18    LOCATION ('SE2.csv')
    19  )
    20  PARALLEL 5
    21  REJECT LIMIT UNLIMITED;
    Table created.
    SQL> select * from se2_ext;
    SQL> select count(*) from se2_ext;
    select count(*) from se2_ext
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04043: table column not found in external source: SE_REF_NO
    ORA-06512: at "SYS.ORACLE_LOADER", line 19

    It would appear that you external table definition and the external data file data do not match up. Post a few input records so someone can duplicate the problem and determine the fix.
    HTH -- Mark D Powell --

  • Getting the error LOG file opened at 01/29/07 18:13:12 while selecting from

    I am getting following error in log file while selecting from a external table
    LOG file opened at 01/29/07 18:13:12
    KUP-04040: file test.csv in UTL not found. I am follwoing the following steps:
    connect as sys user :
    CREATE OR REPLACE DIRECTORY UTL as 'D:\oracle\product\10.1.0';
    GRANT READ,write ON DIRECTORY UTL TO user1;
    connect as user1
    drop table test;
    create table test (EQP_N_EQUIPMETID_PK number(10) ,
    EQPNAME varchar2(100),
    EQPDESCR varchar2(1000),
    COSSEC varchar2(10),
    ETSCES varchar2(10),
    CATPARTNO varchar(1000),
    EQUIPMETID_FK number(10),
    EQPTYPEMASTERID_FK number(10),
    SECTIONID_FK number(10),
    MEAUNITID_FK number(10),
    CREATEDBY number(10),
    MODIFIEDBY number(10),
    LASTUPDATED varchar2(20),
    SHUFFLING varchar2(50))
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY utl
    ACCESS PARAMETERS (FIELDS TERMINATED BY ',')
    LOCATION ('test.csv'))
    REJECT LIMIT UNLIMITED
    On issuing select count(*) from test gives following error:
    SQL> select count(*) from test;
    select count(*) from test
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file test.csv in UTL not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    ORA-06512: at line 1
    All these steps I have tried on the oracle server as well as on the client m/c.
    Is there any step that I am missing out???

    hi,
    SQL> edit c:\oracle\product\10.1.0\test.csv
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> create or replace directory UTL  as 'c:\oracle\product\10.1.0';
    Directory created.
    SQL> grant read,write on directory UTL to scott;
    Grant succeeded.
    SQL> create table scott.test ( no number(10),
      2                           name varchar2(20))
      3  organization external
      4                   ( type oracle_loader
      5                     default directory UTL
      6                     access parameters
                           ( fields terminated by ',')
      7  location
                           ('test.csv'))
      8  reject limit unlimited;
    Table created.
    SQL> select count(*) from scott.test;
      COUNT(*)
             1
    SQL> select * from scott.test;
            NO NAME
             1 test
    SQL>it is working for me. again check your file location.
    regards
    Taj
    Message was edited by:
    M. Taj

  • JBO-26080: Error while selecting entity for VIEW

    When I use the LOV, it brings up all values, except when I search for the letters "wy". It returns nothing, and when I deleted these letters and search again nothing appears and I get this error. Can anyone help, I've been looking at this for a week and have come up with nothing.
    oracle.jbo.DMLException: JBO-26080: Error while selecting entity for IraPtsSponsorVw
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:888)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5267)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java)
         at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:4746)
         at oracle.jbo.server.EntityCache.add(EntityCache.java:525)
         at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1710)
         at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2136)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1037)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2650)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1871)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1772)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1256)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3206)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2755)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2610)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:689)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3361)
         at gov.fda.cber.pts.controller.strutsactions.LovBimsSponsorAction.prepareModel(LovBimsSponsorAction.java:75)
         at oracle.adf.controller.struts.actions.DataAction.prepareModel(DataAction.java:486)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:105)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-00904: "SPONSOR_COUNTRY": invalid identifier
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:661)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:951)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1057)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2942)
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(OracleSQLBuilderImpl.java:640)
         at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:5267)
         at oracle.jbo.server.EntityImpl.populate(EntityImpl.java)
         at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:4746)
         at oracle.jbo.server.EntityCache.add(EntityCache.java:525)
         at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1710)
         at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2136)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1037)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2650)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1871)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1772)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1256)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3206)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2755)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2610)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:689)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3361)
         at gov.fda.cber.pts.controller.strutsactions.LovBimsSponsorAction.prepareModel(LovBimsSponsorAction.java:75)
         at oracle.adf.controller.struts.actions.DataAction.prepareModel(DataAction.java:486)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:105)
         at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

    Hi Frank thanks for responding,
    I actually figured it out. I thinkt he problem was that the VO didnt not have a primary key to reference a specific row and was throwing an error. I used ROWID and it works fine now.
    Thank you.

  • Error while selecting entity

    Hi
    I keep getting the "JBO-26080: Error while selecting entity for Units" error. Below is the query in my View Object. If I remove the Units(Enitty) from the query it works fine but I need to have that in the query. This error occurs only when I do "Reset" on the screen which in turn calls "getSearchProgramView().getCurrentRow().refresh(Row.REFRESH_WITH_DB_FORGET_CHANGES);"
    Can some one explain how to get rid of this problem? When I run the query in TOAD it works fine.
    SELECT Programs.PROGRAM_ID,
    Programs.CATEGORY,
    Programs.NAME,
    Programs.PROGRAM_COORDINATOR_ID,
    Programs.PROGRAM_ASSISTANT_ID,
    Programs.MANAGING_UNIT_ABBR,
    Programs.CREATED_BY,
    Programs.CREATED_DATE,
    Programs.LAST_UPDATED_BY,
    Programs.LAST_UPDATED_DATE,
    Persons.PERSON_ID,
    Persons.USER_NAME,
    Persons.FIRST_NAME,
    Persons.LAST_NAME,
    Persons1.PERSON_ID AS PERSON_ID1,
    Persons1.USER_NAME AS USER_NAME1,
    Persons1.FIRST_NAME AS FIRST_NAME1,
    Persons1.LAST_NAME AS LAST_NAME1,
    Categories.NAME AS NAME2,
    Categories.CODE AS CODE1,
    Units.DESCRIPTION,
    Units.CODE
    FROM PROGRAMS Programs, PERSONS Persons, PERSONS Persons1, CATEGORIES Categories, UNITS Units
    WHERE ((Programs.PROGRAM_COORDINATOR_ID = Persons.PERSON_ID(+))
    AND (Programs.PROGRAM_ASSISTANT_ID = Persons1.PERSON_ID(+))
    AND (Programs.CATEGORY = Categories.CODE(+))
    AND (Programs.MANAGING_UNIT_ABBR = Units.CODE(+)))
    Thanks

    Hi,
    for those who have encountered the same problem as me, you should check that the table name sql query is of the form Name_Schema.Name_Table.
    For this right click on the entity in the workspace> edit entity> Database Objects> Schema Objects and add the schema name before table name( Name_Schema.Name_Table).
    thanks,

  • Error while creating parameterise view

    I m getting below error while creating parameterise view
    CREATE OR REPLACE VIEW rdr_le_info_view (v_run_number , v_isin_cob )
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.run_num = v_run_num
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;
    AND cccs.run_num = v_run_num
    ERROR at line 13:
    ORA-00904: "V_RUN_NUM": invalid identifier
    Plese help me in above.

    Try
    CREATE OR REPLACE VIEW rdr_le_info_view
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    ,cccs.run_num run_num
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;Then call it like:
    select *
    from rdr_le_info_view
    where run_num = v_run_num;

  • Error while selecting entity for composantEO

    Hi,
    Briefly, I do an example of displaying a list of components (and already it works properly), but when I added a link to the removal of components I have encountered an error
    Voila details
    function code delete
    public void deleteComposantMethod(String action,String param)
    System.out.println("Now we are inside deleteComposantMethod");
    System.out.println("we search composant with numcomp : "+param);
    ComposantVOImpl inst=getComposantVO1();
    Row row[]=inst.getAllRowsInRange();
    for(int i=0;i<row.length;i++)
    ComposantVORowImpl rowi=(ComposantVORowImpl)row;
    System.out.println("checking the composant ===> "+rowi.getNumcomp());
    if(param.equals(rowi.getNumcomp().toString()))
    try{
    rowi.remove();
    getOADBTransaction().commit();
    System.out.println("Deleting succes");
    catch(Exception ex)
    System.out.println("error : \n"+ex.getMessage());
    return;
    in the browser page component disapru it seems that it works correctly, but nothing changes at data base and voila the error message I get from embedder OC4J server log
    Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26080: Error while selecting entity for ComposantEO
    thanks
    Please note: although no board code and smiley buttons are shown, they are still usable.
    thanks

    Hi,
    for those who have encountered the same problem as me, you should check that the table name sql query is of the form Name_Schema.Name_Table.
    For this right click on the entity in the workspace> edit entity> Database Objects> Schema Objects and add the schema name before table name( Name_Schema.Name_Table).
    thanks,

Maybe you are looking for

  • View cluster table child table calling problem!

    Hi All, I have created a cluster table with one table as header and one as item... Header table : ZRAJ1 ITEM TABLE : ZRAJ2 ZRAJ1 : ZPRODUCT ZPROD_DESC ZSTATUS ZUSER ZRAJ2: ZPRODUCT ZLABEL This clearly shows that zraj2 is depending on ZRAJ1. Created a

  • A Few Quick Lenovo T410 Questions

    Hi all, I posted here quite a while ago about my 9 cell battery in my integrated graphics T410 only lasting up to 5 hours. I have yet to send the notebook in simply because I haven't been able to go without it. However, I plan to do so at the start o

  • Realtime graphing

    Here's my situation: I have labview code I am using to control  a stepper motor. I would like to have a realtime graph that shows the position of the stepper motor (whether actual position or calculated position). I will be dealing with very large am

  • Need mark ups and comments features

    i had elements 2.0 and used the mark up and comments features to highlight my PDF files. Since going to adobe reader v8 I can not us e the 2.0 features. i was told there was a conflict between reader 8 and elements so i bought the new 8.0 elements. I

  • A Problem with Sorting

    I have several of my movies sorted in iTunes, but when I see them in Apple TV, they are just listed alphabetically. It's as though the sorting option is disabled. What am I doing wrong?