View link between view based on entity(table) and view based on stored proc

I've created a view based on a stored procedure. I need to link this view to a view based on an entity which is based on a table.
I can create the view without issue, but when I attempt to run the application module that contains the relationship I get this error:
(oracle.jbo.InvalidOperException) JBO-26016: Cannot set user query to view "SalesentityModuleApiView2" because it is a destination in a view link
One thing that may be notable about this is that this view started out based on a database view. I later overrode the select related methods using the example here:
http://download-east.oracle.com/docs/html/B25947_01/bcadvvo008.htm
Any ideas? I will gladly post some code if someone will let me know what might help diagnose this.

Hi,
I solved my problem with adding transient field, and changing the value of it (true | false) on set method of field that can be changed so I can get which row was updated. What exactly do you mean when you say not updateable, I'm using a vo with no entity, and I can add, remove rows, in fact I think it's a good solution because I don't want to write to database immediately.

Similar Messages

  • Link between User Name in user table and Personla number in HR

    Hi
    Could any one let me know the link between the User Name field in User table and Personal number in HR table. Pls let me know the table name which shows the relation between these two fields.
    Regards,
    Ram

    HI Ram
      The table which contains this data is PA0105. The value of field USRTY should be '0001'. For example if u want to get the UNAME related to an employee.
    SELECT usrid
      FROM pa0105
    WHERE pernr EQ p_pernr
          AND usrty EQ '0001'.
    Please award points if u found this helpful

  • Problem with af:table and view links

    I want to display a table with data from a database table called PERSON, so I'm using af:table tag.
    The PERSON table has the next fields:
    PERSON_CODE
    PERSON_NAME
    PERSON_COD_STATE
    The field PERSON_STATE is a foreign key to other table called PERSON_STATE:
    PERSON_COD_STATE
    DESCRIPTION
    I've created a view to get data from PERSON table (personView). Because I want to show the person state description in the af:table , I've created another view to get data from PERSON_STATE table (personStateView). And I've also created a view link between personView and personStateView.
    In the column of the af:table that represents the person state I drop the field 'description' of the state view linked to the person view.
    When I run the JSP the state is not shown properly. All the persons are shown with the same state.
    When testing directly with the application module, the view link works properly.
    Does view links work inside a af:table?
    I'm working with ADF 10g.
    Thanks

    Thanks for your reply.
    The second alternative works, but I would be interested in the first one (using a view link).
    The foreign key is defined properly:
    PERSON.PERSON_CODE is a primary key.
    PERSON.PERSON_COD_STATE is a foreign key.
    PERSON_STATE.PERSON_COD_STATE is a primary key.
    I have created a view link based on that foreign key.
    When usign af:table to show the records of PERSON table, all the data of PersonView is properly shown. But the STATE of the person is not ok. It seems as the view link is not working.
    Why?
    Thanks

  • View Link between two query views

    Hi is it possible to create a view link between two views having the where clause bind variables.
    How you set the bind variables at the run time for the View objects. It is giving hard time for me to use the Master view in the XmlData bean to generate the Xml document.
    I am able to set the Master views bind variables, but for view link destination view
    where clause bind variables are not able to set ( link object link condition bind variables are binded run time but the views where chause bind variables of destination view are unable to setand bind)
    Thanks
    null

    Easiest way to do this is to add additional transient attributes to your master view object, and then include those additional transient attributes in the list of source attributes for your view link. This way, you can get BC4J to automatically refer to their values with no additional code on your part.

  • View link between 2 public view object(PVO)

    Hi,
    Can we create a view link between 2 Public View Object(PVOs)? Is as same as creating view link b/w normal VOs.
    Regards,
    Suresh

    Hi,
    whats mean Public View Object? do you use BI?

  • View link between VO from two application modules

    Is it possible to create view link between VOs from 2 different Application modules?

    Here is what it says:
    SymptomsYou have an ADF BC (BC4J) project and you are getting the following error:
    oracle.jbo.domain.Number; local class incompatibleA more detailed error looks similar to:
    oracle.jbo.domain.Number; local class incompatible: stream classdesc
    serialVersionUID = -7171468674200794918, local class serialVersionUID =
    -6507359405709672486
    CauseThis problem is caused by either that:
    You have inadvertently mixed two mutually exclusive domain libraries like "BC4J Generic Domains" (bc4jdomgnrc.jar) and "BC4J Oracle Domains" (bc4jdomorcl.jar).
    or
    You have added the "BC4J Datum" library (bc4jdatum.jar) to your middle-tier class path, and are trying to use a JDBC driver different from the one that ships with JDeveloper 10g in the box.
    The BC4J Generic Domains and the BC4J Oracle Domains are never meant to be used in the same application classpath. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    The BC4J Datum library is designed for use in a thin-client Classpath that is remotely accessing an ADF Business Components middle tier deployed as an EJB Session bean. It contains only the domain classes (typically jar'ed up as part of the whole Oracle JDBC Driver JAR) without having to have the rest of the JDBC Driver JAR on the thin client. SolutionPlease check if any of the above suggested scenarios is applicable to your application.
    If you have the BC4J Generic Domains and the BC4J Oracle Domains in the same project despite that they are never meant to be used in the same application classpath you will get this error. They contain different implementations of the same set of classes, one destined for use in Oracle JDBC driver environments, and the other for use with other non-Oracle JDBC drivers.
    Goto the Project Properties for you project.
    Select Profiles -> <Profile Name> -> Libraries
    Check in the Selected list (to the right) if you have both BC4J Generic Domains and the BC4J Oracle Domains there. If so, remove the one not appropriate for your project.

  • The Relation between tables and views in oracle financial

    Dears
    I am work in oracle e business r12
    and i need to build report as xml
    when run my select its need big time to view data i have a huge of data so i need to clear the relation of this tables if there is miss and if there another technique in select statement
    this is my select statement
    select
    j_hdr.je_header_id je_header_id,
    hdr.VENDOR_NAME supplier,
    SEGMENT1||'-'||SEGMENT2||'-'||SEGMENT3||'-'||SEGMENT4||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7||'-'||SEGMENT8||'-'||SEGMENT9 Account_number,
    hdr.gl_date gl_date,
    j_hdr.CURRENCY_CODE CURRENCY_CODE,
    inv_lin.DESCRIPTION DESCRIPTION,
    j_lin.ENTERED_DR ENTERED_DR,
    j_lin.ENTERED_CR ENTERED_CR,
    j_lin.ACCOUNTED_DR ACCOUNTED_DR,
    j_lin.ACCOUNTED_CR ACCOUNTED_CR,
    j_hdr.JE_SOURCE JE_SOURCE,
    j_hdr.DEFAULT_EFFECTIVE_DATE Transaction_DATE,
    hdr.INVOICE_NUM INVOICE_NUM,
    QUICK_PO_NUMBER PO_NUMBER,
    null ASSET_CATEGORY_ID,
    hdr.VENDOR_ID VENDOR_ID
    from gl_je_headers j_hdr,gl_je_lines_v j_lin,ap_invoice_distributions dist,ap_invoices_v hdr,ap_invoice_lines_v inv_lin
    where code_combination_id = DIST_CODE_COMBINATION_ID
    and hdr.invoice_id = inv_lin.INVOICE_ID
    and dist.invoice_id = inv_lin.INVOICE_ID
    and j_hdr.JE_HEADER_ID = j_lin.JE_HEADER_ID
    and j_hdr.status = 'P'
    and nvl(:P_SOURCE,'Payables') = 'Payables'
    and je_source = 'Payables'
    and j_lin.CODE_COMBINATION_ID between ( select CODE_COMBINATION_ID
    from gl_code_combinations_kfv
    where CONCATENATED_SEGMENTS = :P_FROM_COMBINATION_CODE)
    and ( select CODE_COMBINATION_ID
    from gl_code_combinations_kfv
    where CONCATENATED_SEGMENTS = :P_TO_COMBINATION_CODE)
    AND TRUNC(dEFAULT_EFFECTIVE_DATE) BETWEEN NVL(:P_FROM_DATE, DEFAULT_EFFECTIVE_DATE) AND NVL(:P_to_DATE, DEFAULT_EFFECTIVE_DATE)
    Thanks in advance

    Welcome to the world of complicated Oracle Application queries. Didn't fully understand your question, so a few guesses -
    I think that you are asking how to make your query faster? I would reference the FAQ section on how to post a question regarding performance.
    Your title indicates you want to understand the relationship between tables and views. In general, Oracle Applications uses views for 2 reasons - to join data from multiple tables for display, and to differentiate data from different organizations. (I am still on 11i and have heard organizations are handled differently in 12 so I can't speak to that for sure).
    To understand the relationship between tables in a view, you can access the view's source code, either through a development tool such as PL/SQL Developer or TOAD (I'm guessing Oracle's tool does this also, but have never used it), or by querying the source from the dba_source table.
    select * from dba_source where name = (name of view) and type = 'VIEW' order by line;without the ( ) just the view name, in all capital letters i.e. , 'GL_JE_LINES_V'
    Good luck!

  • To find out ISU related tables and views

    Hi all,
    i want to find out al the tables and views that are using in ISU.is there any way to find it out.help me...

    one of the IS-U members have shared his table link in the share point check this.
    http://www.esnips.com/doc/9bd50e96-ecae-4327-9b69-1effba953140/isu_tables

  • Where do i see all the default tables and views in oracle 10g

    hi,
    I have installed oracle 10g in the linux os.
    I just wanna see the list of deffault tables and views created by oracle.
    can anyoone hlep me on this
    thanx in advance....

    Check DBA_OBJECTS for all seeded objects in an Oracle database. For tables, check DBA_TABLES. For views, check DBA_VIEWS. All of this is documented in the fine documentation - take some time out to read thru it.
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_4156.htm#REFRN23146
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5056.htm#sthref2482
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5085.htm#sthref2521
    HTH
    Srini

  • The relationships and links between the various SAP database tables

    Hi Gurus,
    I am trying to learn the relationships and links between the various SAP database tables (SAP FI-AA, SAP SD, SAP MM, SAP HR and so on) for correctly extracting data from them. Especially I am expressing an interest in the SAP database tables on SAP FI-AA, SAP SD, SAP MM, SAP HR. Could somebody provide me with documentations about the relationships and links between them. I will be very grateful if somebody can provide me with links.
    Thanks and regards
    Sergey

    hi Sergey,
    try
    http://www.erpgenie.com/abap/tables.htm
    http://www.erpgenie.com/abap/tables_fi.htm
    http://abap4.tripod.com/SAP_Tables.html
    http://abap4.tripod.com/Finance_Tables.html
    http://www.auditware.co.uk/SAP/Extras/SAPTables.pdf
    hope this helps.

  • Oracle Internet Expenses related tables and views

    In Oracle 11i when we go for internet expenses how to get the table and view details

    user12180635 wrote:
    Thanks for your reply. But didn't find any Schema or Tables related to Internet Expenses in eTRM. Can any one please specify them.IINM, it should be under AP/APPS schemas.
    SQL> select owner, object_name, object_type
    from dba_objects
    where object_name like 'OIE%';Thanks,
    Hussein

  • Tables and views relevant to concurrent program parameters

    I'd like to know all the tables and views relevant to concurrent program parameters.
    As far as I know, fnd_descr_flex_col_usage_vl, fnd_flex_value_sets, and fnd_parameters are such kind of tables or views. They can not provide enough information I want. As I guess that for some parameters, their values are queried from tables. Where can I find the information about how such parameters are queried?
    Thanks in advance!

    Hi,
    I'd like to know all the tables and views relevant to concurrent program parameters. See these tables:
    FND_CONCURRENT_QUEUE_PARAMS
    FND_RUN_REQUESTS
    FND_CONC_REQUEST_ARGUMENTS
    FND_CONCURRENT_REQUESTS
    FND_CONCURRENT_PROGRAMS
    More details about these tables can be found in eTRM website.
    eTRM
    https://etrm.oracle.com
    > They can not provide enough information I want. As I guess that for some parameters, their values are queried from tables. Where can I find the information about how such parameters are queried?
    What information you are looking for?
    You could get the query executed from the application by following the steps in (Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i) -- Query the concurrent program, then check the value of "SYSTEM.LAST_QUERY".
    Regards,
    Hussein

  • How to find all table and views in the database

    Hi,
    I want to find all table and view name form the database can u tell me syntax.
    i.e. I am able to find out table name and view name in sql server ...like
    FOR VIEW :
    select table_name from information_schema.views where table_name not like 'sys%'
    FOR TABLE :
    select table_name from information_schema.tables where table_name not like 'sys%' and table_type='Base table'
    Thanks & Regards,
    Shirish

    Hello,
    Take a look at "dba_tables" and "dba_views" both of which are documented here:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    - Mark

  • GRANT SELECT to TEMP(by procedure)..... ALL tables and views of OWNER....

    hi ,
    I want to privelege only Grant SELECT ALL tables,views....
    I have written A procedure.....given below....
    CREATE OR REPLACE PROCEDURE GRANT_SELECT_ALL_PROC
    IS
    l_obj VARCHAR2(60);
    l_obj_type VARCHAR2(60);
    CURSOR Cur_Obj IS
    SELECT OBJECT_NAME,OBJECT_TYPE
    FROM USER_OBJECTS
    WHERE USER ='OWNER';
    BEGIN
    For i in Cur_Obj Loop
    l_obj := i.OBJECT_NAME;
    l_obj_type := i.OBJECT_TYPE;
    IF l_obj_type IN ('TABLE','VIEW')
    THEN
    EXECUTE IMMEDIATE 'GRANT SELECT ON' || l_obj ||'TO TEMP’;
    ELSIF l_obj_type IN('FUNCTION','PROCEDURE','PACKAGE') THEN
    EXECUTE IMMEDIATE 'GRANT EXECUTE ON'|| l_obj ||'TO TEMP’;
    END IF;
    END LOOP;
    END GRANT_SELECT_ALL_PROC;
    procedure is working fine.....
    OWNER there are some table and views......
    But After creation of User name TEMp....
    When I m giving GRANT SELECT to TEMP(by procedure)..... ALL tables and views of OWNER....
    when I coonecte to TEMP...
    Not getting table,view List...
    not even data of table or Views.....
    can anybdy help me.......advance thanx ...
    sanjay

    hi ,
    I want to privelege only Grant SELECT ALL
    tables,views....
    have written A procedure.....given below....
    CREATE OR REPLACE PROCEDURE GRANT_SELECT_ALL_PROC
    IS
    l_obj VARCHAR2(60);
    l_obj_type VARCHAR2(60);
    CURSOR Cur_Obj IS
    SELECT OBJECT_NAME,OBJECT_TYPE
    FROM USER_OBJECTS
    WHERE USER ='OWNER';
    BEGIN
    For i in Cur_Obj Loop
    l_obj := i.OBJECT_NAME;
    l_obj_type := i.OBJECT_TYPE;
    IF l_obj_type IN ('TABLE','VIEW')
    THEN
    EXECUTE IMMEDIATE 'GRANT SELECT ON' || l_obj ||'TO
    TEMP’;
    ELSIF l_obj_type IN('FUNCTION','PROCEDURE','PACKAGE')
    THEN
    EXECUTE IMMEDIATE 'GRANT EXECUTE ON'|| l_obj ||'TO
    TEMP’;
    END IF;
    END LOOP;
    END GRANT_SELECT_ALL_PROC;
    procedure is working fine.....
    OWNER there are some table and views......
    But After creation of User name TEMp....
    When I m giving GRANT SELECT to TEMP(by
    procedure)..... ALL tables and views of OWNER....
    when I coonecte to TEMP...
    Not getting table,view List...
    not even data of table or Views.....
    can anybdy help me.......advance thanx ...
    sanjayQuery SELECT * FROM USER_TAB_PRIVS_MADE from the user from which you are executing the procedure
    and Query SELECT * FROM USER_TAB_PRIVS_RECD from the TEMP user.

  • Ora-01219 database not open; only queries on fixed tables and views.

    Hi everyone
    There is another post stating this error, but since the source is different, I think is okay to make a different post as well.
    Our database was working fine until the other day, when suddenly power went off, UPS was damaged and didn't hold, and when we restarted the database this is what happens:
    Using Enterprise Manager Console, we can make a succesful connection in the same machine, but if we choose Schema, the following error appears:
    ora-01219 database not open; only queries on fixed tables and views.
    When accesing from a different machine:
    ORA-01033: ORACLE initialization or shutdown in progress
    Thanks in advance

    Here is the last entries of alert log
    Fatal NI connect error 12638, connecting to:
    (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 11.1.0.7.0 - Production
    Time: 20-JUL-2010 15:48:31
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12638
    TNS-12638: Fallo de recuperación de credenciales
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    Tue Jul 20 15:50:50 2010
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 11.1.0.7.0.
    Using parameter settings in server-side spfile E:\ORACLE\CRIMINALISTICA\PRODUCT\11.1.0\DB_1\DATABASE\SPFILECRIM.ORA
    System parameters with non-default values:
    processes = 150
    memory_target = 816M
    control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL01.CTL"
    control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL02.CTL"
    control_files = "E:\ORACLE\ORADATA\CRIM\CONTROL03.CTL"
    db_block_size = 8192
    compatible = "11.1.0.0.0"
    db_recovery_file_dest = "E:\Oracle\flash_recovery_area"
    db_recovery_file_dest_size= 2G
    undo_tablespace = "UNDOTBS1"
    remote_login_passwordfile= "EXCLUSIVE"
    db_domain = ""
    dispatchers = "(PROTOCOL=TCP) (SERVICE=CRIMXDB)"
    audit_file_dest = "E:\ORACLE\ADMIN\CRIM\ADUMP"
    audit_trail = "DB"
    db_name = "CRIM"
    open_cursors = 300
    diagnostic_dest = "E:\ORACLE"
    Tue Jul 20 15:50:55 2010
    PMON started with pid=2, OS id=1688
    Tue Jul 20 15:50:55 2010
    VKTM started with pid=3, OS id=2236 at elevated priority
    Tue Jul 20 15:50:55 2010
    DIAG started with pid=4, OS id=2332
    Tue Jul 20 15:50:55 2010
    DBRM started with pid=5, OS id=2328
    Tue Jul 20 15:50:55 2010
    PSP0 started with pid=6, OS id=2432
    VKTM running at (20)ms precision
    Tue Jul 20 15:50:55 2010
    DIA0 started with pid=7, OS id=2160
    Tue Jul 20 15:50:55 2010
    MMAN started with pid=8, OS id=2156
    Tue Jul 20 15:50:55 2010
    DBW0 started with pid=9, OS id=2064
    Tue Jul 20 15:50:55 2010
    LGWR started with pid=10, OS id=3176
    Tue Jul 20 15:50:55 2010
    CKPT started with pid=11, OS id=3180
    Tue Jul 20 15:50:55 2010
    SMON started with pid=12, OS id=3184
    Tue Jul 20 15:50:55 2010
    RECO started with pid=13, OS id=3188
    Tue Jul 20 15:50:55 2010
    MMON started with pid=14, OS id=3192
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    ORACLE_BASE from environment = E:\Oracle
    Tue Jul 20 15:50:55 2010
    MMNL started with pid=15, OS id=3196
    Tue Jul 20 15:50:56 2010
    alter database mount exclusive
    Setting recovery target incarnation to 2
    Successful mount of redo thread 1, with mount id 1304879008
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount exclusive
    alter database open
    Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
    ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
    ORA-01110: data file 9: 'E:\ORACLE\ORADATA\STOPCRIM5\STOPCRIM5TABLESPACE.ORA'
    ORA-27047: unable to read the header block of file
    OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
    O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
    Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
    ORA-01157: cannot identify/lock data file 16 - see DBWR trace file
    ORA-01110: data file 16: 'E:\ORACLE\ORADATA\PRUEBACARLOS\PRUEBACARLOSTABLESPACE.ORA'
    ORA-27047: unable to read the header block of file
    OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
    O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
    Errors in file e:\oracle\diag\rdbms\crim\crim\trace\crim_dbw0_2064.trc:
    ORA-01157: cannot identify/lock data file 17 - see DBWR trace file
    ORA-01110: data file 17: 'E:\ORACLE\ORADATA\PRUEBACARLOS\PRUEBACARLOSINDEX.ORA'
    ORA-27047: unable to read the header block of file
    OSD-04006: fallo de ReadFile(); no se ha podido leer del archivo
    O/S-Error: (OS 38) Se ha alcanzado el final del archivo.
    ORA-1157 signalled during: alter database open...
    Tue Jul 20 16:04:39 2010
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.

Maybe you are looking for

  • Problem Playing Video in Premiere Pro CS4

    I am having a problem playing video in premiere pro. When I input any movie clip and try to play it in both the timeline and in the preview mode, the audio works fine but the video only plays a few seconds worth of footage at a really slow pace so th

  • Does Machine Translation Service can translate business terms and also allows to incorporate custom dictionaries?

    Hi, I have a couple of questions. 1. Does SharePoint MTS support translating business terms?  2. Can we provide a custom dictionary for SharePoint MTS to work with? Appreciate if someone can direct me to a resource. :) Supun

  • Urgent: how to cancel orders in OM using API.oe_order_pub

    Hi All, I have written API - oe_order_pub, its compiling successfully but the orders are not getting cancelled. Do I need to add few more things for the following code... Please help create or replace package body apcx_test_cancel_order is PROCEDURE

  • Mass change of MAP

    I want to change moving avg price of say 500 materials, shall I use MM17 or any other option. Can u guide for the procedure using MM17. Also as standard price automatically gets updated in rhe system, shall I change rhe std price also if mat is maint

  • Custom OBJECT sizes and HTMLEditorKit

    Hi there all, I have a fairly tricky problem that I'm in a rush to get fixed. I need to know how to get a TextComponent (JTextArea etc) to wrap when being displayed as part of a web page in a JEditorKit. Don't worry, I'm not writing a HTML editor, bu