Database View do not refresh in ADF application

Greetings,
im facing a weird problem in my application (JDeveloper 11.1.2.4.0 - ADF). All this time i was working directly with tables (VO), but now i also started using database views.
Everything works fine, when i add a new row in a table that my Database Views is associated with, it refresh properly.
BUT if i delete rows manually from my database, the View do not refresh in my application, not by refreshing the page,
redeploying application, even executing the view object query inside the view object. The only way for the DB View to be
refresh inside the JDeveloper and on deployment time is by restart JDeveloper. I try adding an action on my OV to re-execute them when
i do something specifically, hopefully the will reset the cache and retrieve the DB view again, but with no luck..
Correction: now it doesnt even refresh on restart jdeveloper.
Just for the clarification, im talking about Database Views, and not just Object Views. I create a Object View inside the application to retrieve the data
from the Database View results.
Can you help me on this please?

Yes the queries in SQLDeveloper was showing me correct results.
But i feel disappointed.. When i went to close SQLDeveloper to try something, it pop me a message to commit/rollback changes.
After i commit them, my app show correct results too.

Similar Messages

  • Materialyzed view is not refreshed periodically

    Hi All
    I have database A and B. There is a database link between two databases. I have created the fast refresh materialyzed view in database B by using the database A's table.(refresh period is sysdate+1/288). It has been created without any issue and snap sho created in database B.
    Now my Issue is above mentioned mat. view is not refreshed periodically. It is not propagated to the database B even I make the changes to the table of database A. (not refresh the mat view.
    script
    CREATE MATERIALIZED VIEW customers
    REFRESH FAST START WITH SYSDATE
    NEXT SYSDATE + (1/288)
    WITH PRIMARY KEY
    AS SELECT * FROM customers@CCBS;
    I would appreciate if u can give me a solution for this issue.
    Regards,
    Buddhike

    Hi justin,
    Thanks for the reply again and Its verry helpfull to look into the issue. This is the error notification in the alert log.
    Wed Dec 02 09:19:40 2009
    Errors in file d:\oracle\product\10.2.0\admin\ccbs\bdump\ccbs_j003_1364.trc:
    ORA-12012: error on auto execute of job 63
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 3
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from RATING
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Thanks

  • NWDS WebDynpro views are not refreshing after changes in layout...

    Hello experts..
    I'm using NWDS 7.0.13 and every time I'm modifiying a webdynpro view in layout mode the view does not refresh, instead I get this message:
    This program cannot display the webpage
    Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
    What you can try:
    Check your Internet connection. Try visiting another website to make sure you are connected.
    Retype the address.
    Go back to the previous page.
    More information
    In order to display the changes I have made, I have to close the WD View and re open it, the funny thing is my other team mates can change their views and see their changes inmediately without closing/opening the view.. hope anybody can help me out on this one..
    Thanx in advance..
    JV

    Hi Armin, thanx for your answer and effectively I have installed IE7, I read other posts and after reading the "solutions" I rather close and open my WD views insted of removing security patches of IE.. I guess I'll have to wait until SAP fixes this and meanwhile I'll work the way I just mentioned.
    I'll let this question unanswered until this fix comes out.
    Cheerio !
    JV

  • Database View is not appearing in the ABAP Coding

    Dear Friends,
    I am very much new in the ABAP. Actually I worked last 8 years in the Oracle PL/SQL. Recently, my company implements SAP. The database is Oracle 10g. I would like to use my oracle experience in the project. But in everywhere I faced some problem.
    I have created one Database view by the Native sql. Here I am giving you the code.
    Create OR REPLACE view ZVMVSL_ALLTPORT
    AS
    SELECT T1.MVESSEL_NO, T1.MVESSEL_NAME, T1.SHIPPINGLINE, T2.MVOYAGENUMBER,
    T2.TRANSHIPMENTA AS TPORT, T2.ETDTSHIPMENTA AS ETD_TPORT,
    T3.MVESSEL_SRL_NO,
    T3.PORTOFDISCHARGE POD, T3.ETAPORT
    FROM ZSD_MOTHER_MST T1, ZSD_MOTHER_DTL T2, ZSD_MOTHER_VIA T3
    WHERE T1.MANDT = T2.MANDT
    AND T1.MVESSEL_NO = T2.MVESSEL_NO
    AND T1.MVESSEL_NO = T3.MVESSEL_NO
    AND T2.MVOYAGENUMBER = T3.MVOYAGENUMBER
    AND T2.TRANSHIPMENTA <>' '
    UNION
    SELECT T1.MVESSEL_NO, T1.MVESSEL_NAME, T1.SHIPPINGLINE, T2.MVOYAGENUMBER,
    T2.TRANSHIPMENTB AS TPORT, T2.ETDTSHIPMENTB AS ETD_TPORT,
    T3.MVESSEL_SRL_NO,
    T3.PORTOFDISCHARGE POD, T3.ETAPORT
    FROM ZSD_MOTHER_MST T1, ZSD_MOTHER_DTL T2, ZSD_MOTHER_VIA T3
    WHERE T1.MANDT = T2.MANDT
    AND T1.MVESSEL_NO = T2.MVESSEL_NO
    AND T1.MVESSEL_NO = T3.MVESSEL_NO
    AND T2.MVOYAGENUMBER = T3.MVOYAGENUMBER
    AND T2.TRANSHIPMENTB <>' '
    This view i could not use from ABAP codes, ABAP/4 only identified by views which we would create from T-code se11. Now tell me how could I solve this issue. Because in this query i did some UNION which is not directly available in teh se11.
    Please help me how to handle this situation. Because if I can use this sort of native sql views, I could solve lot of things in the development.
    rgds
    Farhad

    >
    Farhad Islam wrote:
    > This view i could not use from ABAP codes, ABAP/4 only identified by views which we would create from T-code se11. Now tell me how could I solve this issue. Because in this query i did some UNION which is not directly available in teh se11.
    >
    >
    > Please help me how to handle this situation. Because if I can use this sort of native sql views, I could solve lot of things in the development.
    >
    > rgds
    > Farhad
    You can use real SQL to query non SE11 created database tables - look at the SAP help on EXEC SQL - but this is really not a good idea.  For example, it is database specific which removes one of the 'advantages' of SAP ie that it is portable between different database platforms;using SAP's Open SQL should mean that if your company moves to eg SQL Server it shouldn't be necessary to doing any re-coding whereas anything you've done in Oracle SQL will have to be re-coded. There are also other disadvantages of using real SQL eg you don't get any help from the syntax checker and I think you would bypass the whole SAP security level - SAP security is defined at application level and not via database grants.
    I would bet a reasonable amount of money that there is nothing that you can do in real SQL that you can't replicate in SAP's Open SQL .  Ok the Open SQL solution might be a bit more convoluted and possibly less elegant but you can make it do the same thing.  If you want to stick with Oracle then I guess you should look for a job that uses Oracle rather than SAP.

  • Browser back button not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine.
    Though, while navigating between pages, using browser back button , it is not redirecting the url properly
    Should Redirect it to : http://<hostname>:<port>/<contex-root>/<servlet>/<id>
    Presently Redirecting it to :http://<hostname>:<port>/<contex-root>
    As, directory browsing is not allowed, there is Error 403--Forbidden .
    Can anybody tell what changes needs to be made to make browser back button work.

    In some of the documentation I have read, they have mentioned that using the back button in a browser doesn't work too well with any JSF type of application (not just ADF and Jdeveloper apps).
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/web_form.htm#CFHHJGJH
    Instead, they suggest using buttons on the form.
    There is a video on using navigation between forms that may be of value: http://www.youtube.com/watch?v=bsPtmRID5XI&feature=plcp
    Stuart
    Edited by: Stuart Fleming on Sep 11, 2012 5:30 AM

  • Z Database view is not showing all the entries?

    Hello
    Last year I have created a Z table, say, its name is Z_TABL_1, its working fine, say, there is around 1000 entries in PRD, well
    Last week I have created another 2nd Z table, its name is Z_TABLE_2, now it has 50 entries in PRD
    In both tables the key field os the same (VISITOR_NUMBER) and there is only one key field in both tables, its the same
    When creating the 2nd table I forgot to specify the CHECK table relationship in 2nd table refering 1st table, I mean, dependent table is 2nd whereas reference is 1st table
    Now, I created a database view, say, my_db_view on these 2 tables.
    When I opened this my_db_view in SE16, I expected 1000 (this 1st table count) entries, but am seeing just 50 (the 2nd table has only 50 entries) entries!!
    Pls. let me know how can I view all the 1000 entries in SE16 for my_db_view?
    Thank you

    Hi,
    in your DB view tables are joined and database views implement an inner join (you can check here: http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ecab446011d189700000e8322d00/content.htm), that's why the system extracts only 50 records.
    It's not possible to have all the 1000 records using a database view.
    Marco

  • Database Views and Master-Detail using ADF

    How would I create a master-detail form using a database view for the search-able master table and a database view as the detail table?
    The detail-view will need to be update-able (adf-table) using an instead-of trigger to perform the updates to the database table.
    Thanks in advance...

    There are several sections in the ADF Developer's Guide about using views (http://www.oracle.com/technology/documentation/jdev/b25947_01/index.html):
    - 26.4 Basing an Entity Object on a PL/SQL Package API
    - 6.2.4 Creating an Entity Object for a Synonym or View
    You can also try Steve Muench's web log: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    There are at least two (old) items there that involve view with instead-off triggers:
    -      Composite Entity Using Stored Procedure API to Create/Modify/Remove Master and Children
    - Entity Object Based on View With Instead Of Triggers Avoiding Returning Into Clause
    Jan Kettenis

  • Database MDS personalization not working for ADF

    NA
    Edited by: Mukesh S Patil on May 28, 2013 1:52 PM

    Hi Frank and all
    1] The issue is when i deploy from console uploading the .ear file ( which has adf-config.xml ) , the application never connects to MDS database. I feel that it is not reading adf-config.xml at all
    2] However when i deploy same using JDeveloper, a window pop up asking the MDS partition name. This time it works . :-)
    But in production i can not deploy through JDeveloper. Then how to tell the application that there is configuration file,read it and store data ???
    Mukesh

  • ADFf 11g, view does not refresh when model changes

    Hi,
    I am really missing something about adf faces (jdev 11.1.1.3.0).
    I have a web app, with jspx, tabpanels and pojo data controls.
    Since there is a complex logic to open new pages/tabs, sometimes I have to open new pages/tabs programmatically, and also sometimes I have
    to refresh the model behind pages/tabs programmatically.
    When I say "programmatically" I mean that the model refresh is not started by an user action on the webpage, but is started by logic in the model layer
    (say, for example, you receive a JMS message and you want to reload the content of an entire page).
    I can succesfully update the model, using debug println I can see the model is updated, but there is no way I can update the view.
    I tryed with the "addPartialTarget" code and so on, but it does not work.
    I've also bought and read "Oracle JDeveloper 11g Handbook" and "Oracle Fusion Developer Guide", but I can't find anything that can help me.
    Can someone explain me: what am I missing? I am sure there is some concept in ADF Faces I missed: this framework is too
    big not to offer what I need, so I miss something for sure.
    I hope to get an answer, I hope Shay reads this too.
    Thanks all.

    Hi,
    Active Data Services (chapter 20 in the book) is what would allow you to synchronize the screen with the model changes. The problem you face is because the data you see is what is stored in the iterators of the binding layer. An alternative solution to using ADS is to use an af:poll component that refreshes the display component when the model has changed. For this your model exposes a method that returns a time stamp that changes whenever the data has changed. Upon af:poll expiring, it calls a managed bean method, which - through the ADF binding layer - checks for the time stamp and compares it with a local saved copy (whenever the time stamp has changed, the client side will e.g. write it to the viewScope or pageFlowScope). If the time stamp has changed, the managed bean re-executes the method populating the iterator for the UI components and then issues a partial refresh of the component(s). Instead of PPR'ing each component in turn, you can try setting the ChangeEventPolicy property of the iterators to ppr"
    This should solve the problem. The latter example is also explained in chapter 20, but for ADF BC
    Frank

  • Creating dynamic database connection (SQL server 2008) from Adf application

    Hello,
    I am creating an ADF Fusion Application. I use Jdev. 11.1.2.3.0 , WebLogic 10.3 and MS SQL server 2008 database. My question is that how can I create a database connection configuration file, now I connect to the database through hard coding, there should be a way to do this with sql server I think.
    my database name is : testDatabase
    my database username is : testUser
    my database password is : testPassword
    Anybody can help me please.
    Thanks,
    Shahe

    Hello Frank,
    The database schema is the same for all the users, but the location of the database differs, for example: I have set the hostname of the database to localhost because the database is installed on the local pc, but to other clients the database is installed on a managed server so in the hostname I should put the server's ip address or name. So I need an external file where I can set these options.
    Thanks,
    Shahe

  • Page Not found error + ADF application

    Hi,
    I am trying to deploy sample application developed using JSF+ADF to oracle applciation server 10g 10.1.3.3 version,but after login(uses jsecurity) applicaiton says Page Not Found eventhough the pages exist.
    I apache log i can it says File not exist,eventhough file exist in physical drive. Same application runs local Jdeveloper
    Please advice

    Check the web.xml file on your server to see what is the context of your applicaiton.
    Also try and place a simple HTML file with your JSF pages and see if you can access that HTML file.

  • Matrialized view not refreshing all records from source.

    My materialized view is not refreshing a fixed number of rows i.e 198 every time from source to target.What are the reasons for such behavior. Also what should i do to resolve this discrepancy.
    My mv is a FAST REFRESH ON DEMAND based on ROWID.
    It has a simple sql query select col1,col2,col3 from testschema.mytable@mydb;
    Thanks,
    Sandesh

    Hello Raman & KV,
    Thanks for your Suggestions.
    Unfortunately, I would not be able to implement any of your suggestions because, I m not allowed to change the DTP Settings.
    So, I m working on finding the root cause of this issue and came across a SAP Note - 1506944 - Only one package is always extracted during direct access , which says this is a Program Error.
    Hence, i m checking more with SAP on this and will share their insights once i hear back from them.
    Cheers
    Shiva

  • NWDS view not refreshing after changes in layout

    Hello experts..
    I'm using NWDS 7.0.13 and every time I'm modifiying a webdynpro view in layout mode the view does not refresh, instead I get this message:
    This program cannot display the webpage
       Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
    What you can try:
         Check your Internet connection. Try visiting another website to make sure you are connected.
         Retype the address.
         Go back to the previous page.
         More information 
    In order to display the changes I have made, I have to close the WD View and re open it, the funny thing is my other team mates can change their views and see their changes inmediately without closing/opening the view.. hope anybody can help me out on this one..
    Thanx in advance..
    JV

    Jesus,
    Do you have IE7 on your machine??  IE7 with a certain patch causes this issue.
    Check this thread for more details
    Probblems Net Weaver Developer Studio (NWDS) caused by Internet Explorer 7
    Chintan

  • What is the use of Database View, maintenace , projection and Help view

    hello friends,
    I created tables..and set check table relation.
    how to create Database View, maintenace , projection and Help view
    phani

    Hi,
    have a look at this.
    4 type of views
    database
    maintainance
    help
    projection view
    check this link as well
    (https://forums.sdn.sap.com/click.jspa?searchID=9904886&messageID=4885135)
    Database views are implemented with an equivalent view on the database.
    Projection views are used to hide fields of a table (only projection).
    Database views should be created if want to select logically connected data from different tables simultaneously.
    Database views implement an inner join.
    Application programs can access the data of a database view using the database interface. (Just as we write select queries on database tables, we can write them for views as well.)
    Includes in Database Views
    An entire table can be included in a database view. In this case all the fields of the included table will become fields of the view (whereby you can explicitly exclude certain fields).
    To include one of the tables in the view, enter character * in field View field, the name of the table to be included in field Table and character * again in field Field name on the View fields tab page of the maintenance screen of the view.
    You can also exclude individual fields of an included table. If you do not want to include a field of the included table in the view, enter - in field View field, the name of the included table in field Table and the name of the field to be excluded in field Field name.
    Inserts with Database Views
    If a database view contains only one single table, data can be inserted in this table with the view .
    You have the following options for the contents of the table fields not contained in the view:
    If the field is defined on the database with NOT NULL as initial value, the field is filled with the corresponding initial value.
    If the field is defined on the database as NOT NULL without initial value, an insert is not possible. This results in a database error.
    If the field is not defined on the database as NOT NULL, there will be a NULL value in this field.
    A maintenance view permits you to maintain the data of an application object together.
    The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.
    Read only: Data can only be read through the view.
    Read, change, delete, insert: Data of the tables contained in the view can be
    changed, deleted, and inserted through the view.
    Read and change: Existing view entries can be changed. However, records
    cannot be deleted or inserted.
    Read and change (time-dependent views): Only entries whose non-time
    dependent part of the key is the same as that of existing entries may be
    inserted.
    Maintenance View ( SE54 )
    You can use a maintenance view to maintain data, which is distributed over several tables, at the same time.
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Creating maintenance View:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ecdf446011d189700000e8322d00/frameset.htm
    regards,
    vipul

  • When I resume my laptop from sleep/hiberante, firefox is hung. It will prompt me with a dialog when I quit, so it is still running, but the page display is blank and will not refresh. I noticed this since about beta 7

    Firefox is running when my laptop comes out of system standby, but the page that was displaying when the laptop went into sleep mode is now a white canvas that does not refresh.
    The application is not hung, because I get prompted to save tabs when I quit, but for some reason, I can't prompt Firefox into refreshing the screen.
    I'm running Firefox on a Thinkpad T400 which has Intel 4 series Express integrated Graphics.

    This also happened if the network adapter is disabled then enabled. My computer is Windows 7 x64. Firefox needs to be killed from taskman before it will load a new instance of the application. I can also reproduce with all add-ons disabled.

Maybe you are looking for

  • Error message or program crashing when printing on Epson printer

    In July 2008, I upgraded my computer from a MacBook to a MacBook Pro (and bought a Time Machine so that all my files are backed up regularly!) I then bought my wife a MacBook Pro in November 2008. We both used to have iBook G4s. We have an Epson EPL-

  • What's wrong with it?

    my iPod nano is acting funny. I went to go to bed but remembered I needed to charge my nano. When I hooked it up to my computer, it started tweaking. I would see the apple screen flash on and then go away, flash on and then go away, etc. Eventually i

  • How do I get a data plan for my iPad in Paris?

    I'm travelling to Paris at the end of the month and I'm wondering if anyone can tell me the names of carriers that sell SIM card data plans for iPads, and if there are any special things to be aware of.

  • Call drop when VXML server goes down

    Can somebody tell me what should ideally happen in the below given scenario? We have two media/vxml servers. We have a ACE load balancer which sends calls to these two servers. When the customer call is sent to CVP for self service (VXML application)

  • Applet needing to access the client system

    Hi, Ive got an applet that I need to be able to launch a .exe that exists on a client's computer...the applet is going to be signed etc. Ive read that it can do this if the client running it explicitly allows the applet access to the required resourc