Problem with Javascript and opening a new page

Hi,
I'm developping a website with Java Server Faces.
I've a problem with JavaScript.
I have a table, and each row of that table, has a button, to display more information about that specific row. I want to display this information in a new window. For this I want to use JavaScript.
The new window, of course, needs some information of the other window, to show the right data.
The first time I click the 'more-information-button', it works perfectly, but from than on, he keeps showing the same information...
Here is my jsp-page of the first page (the one with the table):
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
         <f:loadBundle basename="languages.MessageBundle" var="bundle"/>
        <html>
            <head>
                <meta content="no-cache" http-equiv="Cache-Control"/>
                <meta content="no-cache" http-equiv="Pragma"/>
                <title>- UCV-Period -</title>
                <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
            </head>
            <body style="-rave-layout: grid">
                    <h:dataTable binding="#{UcvPeriod.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" rows="5"
                        style="left: 24px; top: 168px; position: absolute" value="#{UcvPeriod.dataTable1Model}" var="currentRow">
                        <h:column binding="#{UcvPeriod.column1}" id="column1">
                            <h:outputText binding="#{UcvPeriod.outputUcvPeriod}" id="outputUcvPeriod" value="#{currentRow['UCVPERIOD']}"/>
                            <f:facet name="header">
                                <h:outputText binding="#{UcvPeriod.outputText2}" id="outputText2" value="#{bundle.ucvPeriod_columnHeader_ucvPeriod}"/>
                            </f:facet>
                        </h:column>
                        <h:column binding="#{UcvPeriod.column11}" id="column11">
                            <h:commandButton action="#{UcvPeriod.btnDetails_action}" binding="#{UcvPeriod.btnDetails}" id="btnDetails" value="+" onclick="window.open('Details.jsp')"/>
                            <f:facet name="header">
                                <h:outputText binding="#{UcvPeriod.outputText21}" id="outputText21" value=""/>
                            </f:facet>
                        </h:column>
                    </h:dataTable>
                </h:form>
            </body>
        </html>
    </f:view>
</jsp:root>Here is my action, when someone clicks on the 'more-information-button':
public String bthnDetails_action() {
   Object s = outputUcvPeriod.getValue();
   BigDecimal ucvPeriod = (BigDecimal)outputUcvPeriod.getValue();
   this.getSessionBean().setUcvPeriod(new Integer(ucvPeriod.intValue());
   return "detail_ucvperiod";
}Here is my constructor of the Detailspage.
    public Details() {
         this.txtUcvPeriod.setValue(this.getSessionBean().getUcvPeriod());
    }Here is the navigation part for this part of my faces-config.xml .
<navigation-rule>
   <from-view-id>/UcvPeriod.jsp</from-view-id>
   <navigation-case>
       <from-outcome>detail_ucvperiod</from-outcome>
       <to-view-id>/UcvPeriod.jsp</to-view-id>
   </navigation-case>
</navigation-rule>Thx a lot....
Anneke

See the tutorial "Sharing Data Between Two Pages" at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/data_sharing_twopages.html and the FAQ "How can I pass data between pages without creating SessionBean variables in Creator?" at http://devservices.sun.com/premium/jscreator/standard/reference/faqs/technical/javasource/passing_data.html. Since you can open a new window when your button is clicked, the tutorial and FAQ will explain ways to pass your data to the new window.

Similar Messages

  • Does anyone know if there is a way to arrange songs on a playlist that has 100 songs? I used to be alble to double click and open a new page but that is no longer an option. Because you cant get a total view of the playlist it is almost impossible

    I used to be alble to double click and open a new page but that is no longer an option. Because you cant get a total view of the playlist it is almost impossible.. if a song is in position 95 and I want to put it at 3 I have to hold it and drag it till the curor moves.. This makes creating an order almnost impossible because you cn only see half of the songs

    1.SmartyPanouZe3rd,
    Sep 4, 2013 1:03 PM   in reply to SmartyPanouZe3rd
    This is a follow-up to the above question I had.
    Since i noticed people looking at the question, but no replies showing up, i contacted BC support directly with the same question.
    I got a reply.
    I did tests based on the reply.
    Here is what is going on based on the reply.
    (spoiler alert : It works... but it's not yet a perfect score.)
    All the details are posted here :
    http://www.animavdo.com/mut/ambiguity-001.html
    Hope this can help others.
    Cheers.
    PS  I still will use DW for the heavy lifting...
           But MUSE is nice for quickly putting together a mini website.
           Highly recommended App.

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I shall open delete my present account with iTunes and open a new one - but I do not have the password. How can I then delete the present account??

    I shall open delete my present account with iTunes and open a new one - but I do not have the password. How can I then delete the present account??

    Since you can't delete Apple IDs and having multiple Apple IDs can cause confusion, what you may want to do is rename your existing Apple ID to the new email (desired Apple ID).  That would in effect do what you want, get rid of the old and give you the new.
    See "Apple ID: Changing your Apple ID"
    ivan

  • How to click on h:datatable and open a new page

    Hi,
    I'm new to JSF. I have a basic example with JSF h:datatable which displays data. When I click on the table row new page is opened and an argument s passed via the http header:
    Datatable:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core">
        <head>
            <title>test</title>
            <script type="text/javascript">
                function addOnclickToDatatableRows() {
                    //gets all the generated rows in the html table
                    var trs = document.getElementById('myForm:dataTable').getElementsByTagName('tbody')[0]
                    .getElementsByTagName('tr');
                    //on every row, add onclick function (this is what you're looking for)
                    for (var i = 0; trs.length > i; i++) {
                        trs.onclick = new Function("rowOnclick(this)");
    function rowOnclick(tr) {
    // var childNodes = tr.childNodes;
    // for(var i = 0; childNodes.length > i; i++) {
    var elements = tr.cells[0].childNodes;
    for(var i = 0; elements.length > i; i++) {
    if ((typeof elements[i].id !== "undefined") &amp;&amp;
    (elements[i].id.indexOf("lnkHidden") > -1)) {
    //opne in a new window// window.open(elements[i].href);
    location.href=elements[i].href
    break;
    return false;
    </script>
    </head>
    <body onload="addOnclickToDatatableRows();">
    <h:form id="myForm">
    <h1>Click on table row example</h1>
    <h:dataTable id="dataTable" var="data" value="#{datatableBean.lstData}" border="1">
    <h:column>
    <f:facet name="header">
    <h:outputText value="ID" />
    </f:facet>
    <h:outputText value="#{data.id}" />
    <h:outputLink id="lnkHidden" value="AnotherPage.xhtml"
    style="display:none">
    <f:param name="id" value="#{data.id}" />
    </h:outputLink>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Value1" />
    </f:facet>
    <h:outputText value="#{data.value}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Value2" />
    </f:facet>
    <h:outputText value="#{data.value}" />
    </h:column>
    </h:dataTable>
    </h:form>
    </body>
    </html>
    Managed bean:package edu.home;
    import edu.home.model.Data;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.bean.ManagedBean;
    import javax.faces.bean.ViewScoped;
    @ManagedBean
    @ViewScoped
    public class DatatableBean {
    private List<Data> lstData;
    * Creates a new instance of datatableBean
    public DatatableBean() {
    lstData = new ArrayList<Data>();
    lstData.add(new Data(1, "Hello World"));
    lstData.add(new Data(2, "Hello 123"));
    lstData.add(new Data(3, "Hello abv"));
    lstData.add(new Data(4, "Hello qaz"));
    * @return the lstData
    public List<Data> getLstData() {
    return lstData;
    * @param lstData the lstData to set
    public void setLstData(List<Data> lstData) {
    this.lstData = lstData;
    The Java object:package edu.home.model;
    public class Data {
    private int id;
    private String value;
    public Data(int id, String value) {
    this.id = id;
    this.value = value;
    * @return the id
    public int getId() {
    return id;
    * @param id the id to set
    public void setId(int id) {
    this.id = id;
    * @return the value
    public String getValue() {
    return value;
    * @param value the value to set
    public void setValue(String value) {
    this.value = value;
    The page which is opened after the row is clicked:<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html">
    <head>
    <title>TODO supply a title</title>
    </head>
    <body>
    <h1>This is another page</h1>
    <h:panelGrid columns="2">
    <h:outputText value="Selected ID" />
    <h:outputText value="#{anotherPageBean.id}" />
    </h:panelGrid>
    </body>
    </html>
    The managed bean of the opened page:package edu.home;
    import javax.faces.bean.ManagedBean;
    import javax.faces.bean.RequestScoped;
    import javax.faces.context.FacesContext;
    @ManagedBean
    @RequestScoped
    public class AnotherPageBean {
    private int id;
    * Creates a new instance of AnotherPageBean
    public AnotherPageBean() {
    try {
    this.id = Integer.parseInt((String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id"));
    catch (Exception e) {
    this.id = 0;
    * @return the id
    public int getId() {
    return id;
    * @param id the id to set
    public void setId(int id) {
    this.id = id;
    My question is how I can pass the argument into the background, without using the http header? Can you help me to implement this example?
    Best Wishes
    Peter
    Edited by: 932633 on May 7, 2012 3:18 PM
    Edited by: 932633 on May 7, 2012 3:18 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    EJP wrote:
    And why all the futzing around in Javascript? Why not just use &lt;a&gt; or <h:outputLink> in the normal way? What value are you trying to add here?
    I'm new to JSF.OP answered that already. I guess the OP really wants to turn a table row into something clickable, a link won't suffice then. Basic JSF tags don't support tagging event handlers to individual rows/columns as far as I know.
    @OP: you should really check out extension frameworks like Primefaces which have more advanced datatable implementations. Check out this for example:
    http://www.primefaces.org/showcase/ui/datatableRowSelectionInstant.jsf
    There is also Richfaces, Icefaces, Tomahawk. Probably using any of these extension frameworks you hardly ever have to write manual javascript.

  • Problem with item and/or data during page-processing-PS/SQL

    Greetings!
    On my page I have a custom report (from 2 tables) and a small form-field, that adds and edits data in the report. After generating the form with the wizard I added an extra item, to store the id from one of the tables from the report data.
    Now, on submit a calculation should take place, that updates data according user input with a procedure in Page-Prosseses:
    declare a number;
    begin
    case :PLATZ
    when 1 then a:=100;
    when 2 then a:= 50;
    else a:=25;
    end case;
    update TBL_MITGLIEDER set TURNIERPUNKTE = TURNIERPUNKTE + a
    where ID_MITGL = :P14_ID_MITGL;
    end;
    :PLATZ is user selected (1,2,3), :P14_ID_MITGL stores the reference to TBL_MITGLIEDER (and shows the change, when I select another record)
    As I understand, that process should also run, when I submit a chance, but nothing happens then.
    But when I try to save a new record (which worked without any problems before adding that process), I get this error message:
    ORA-06550: line 1, column 64: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table TBL_TURNIERSIEGER.
    Then, when I go back into the app-builder and try to run the page again, I get this message:
    ORA-01403: no data found
         Error      Unable to fetch row.
    I am not sure, if you guys have all the information you need, to know whats going on. Maybe this has to do with session-id and the whay, items are updated. I hope you can help me.
    Thanks, best regards,
    tobi

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

  • Need help on filtering out one record from a report and open in new page

    Hi I am new and embarrassed to write in the forum asking silly questions. Thing is I am learning all from scratch without help from anyone. I have created a database (have previous knowledge only from Access) and have managed to create a beautiful report from a search filter. This report lines up several records matching what I needed. Now, I want to make the whole report with hyperlinks to a detailed page on each of the records in the report. I have tried using the feature where one can make one column hyperlinked and redirect to a new page, where I am getting all the records again - instead of only getting the record I am clicking on. I have looked and looked in the forums without finding solution and I have tested and tried various methods without luck. I am suspecting that I need some sort of knowledge on how to write a select query with where conditions that can apply to filtering out a record from one report to get another detailed on only one object (i.e. record). :/ Stupid or what?

    Hrefna.
    What you need to look into is two things:
    1) The link you defined, needs to set additional attributes for the target page. In the "Column Link" box, you have set the link to "Page in this Application" and followed by the page number (let's say, Page 10). Below that, you should set an Item to an item on you target page (let's call that P10_PRODUCT_ID). This item should be the primary key of your detail table (on the targe page). You can select this item from the popup list. The Value of the item should be picked from a popup list as well, being the value from the record you clicked on. This should then transfer your selected item to your page. The URL will then have something like P10_PRODUCT_ID:5 at the end.
    2) On the target page, 10, you must change the query slightly, so that it adds a WHERE clause:
    WHERE PRODUCT_ID = :P10_PRODUCT_ID
    Now, you should be set.
    Hope this helps.
    Borkur

  • My interactive form is a hot mess (multiple problems with javascript and formcalc)

    I have been working on a dynamic expense report form for our company but have run into a number of problems. I would appreciate help with any of these!
    Problem 1:
    Last subform: Table 4 (Miscellaneous Expenses) - This subform does not force down the footer section (signature, comments) like the other subforms do. The table is located in a positioned subform inside a flowed subform. The other 3 tables have no problem pushing the data down.
    Problem2:
    The minus button on the tables (to subtract a row) USED to work but now do not.The minus button on EVERY table is broken.
    Problem 3:
    The add row button still works fine on most of the tables (with exception of the last table, MISC Expenses). If I add a few lines to the last subform it seems the buttons stops working altogether past row 3. you have to add 2 rows to the final table (Misc Expenses) to see what I mean. It seems to me that this problem is probably related to Problem 1 somehow.
    Problem 4:
    Can't get GRAND TOTAL working no matter what I try.
    I uploaded my work in progress here: www.essential-equipment.com/pdf/ExpenseReport.pdf
    If anyone is able to help me I would greatly appreciate it.  Also, would it be hard to make this form able to carry over to a new page?
    Thanks in advance to anyone that helps

    Hi.
    Problem 1:
    The sourrounding subform "Table4Subform" is not set to fit the hight automatically.
    Problem 2.
    The remove script is way to complex, use this script instead:
    if (this.parent.parent.instanceManager.count > 1) {
              this.parent.parent.instanceManager.removeInstance(this.parent.parent.index);
    Problem 3:
    Remove the Grouping "Body", then the subform flow crrectly to the next page.
    Problem 4:
    The reference to the total fields are not correct, that's why the grand total script fails.
    Change it into:
    Sum(Table1Subform.Table1.FooterRow.Total1, Table23Subform.Table2.FooterRow.Total2, Table23Subform.Table3.FooterRow.Total3, Table4.FooterRow.Total4)

  • Problems with ARD and headless MacMini (new 1,66 DualCore)

    Hi,
    i would like to set my brandnew MacMini 1,66 as webserver.
    And there the problem starts: when the MacMini runs headless (without monitor attached) it thinks that there is a television attached and i get a very distorted screen when connecting via ARD 2.2. Attaching the DVI-VGA adapter does not help!
    How can i tell the Mini to switch to a "normal" resolution without attaching a monitor?
    I seems not to be very useful to connect a monitor to a computer that is supposed to run headless...
    HELP!!!
    1.66GHz Intel Core Duo processor   Mac OS X (10.4.7)   ARD 2.2

    I have the exact same problem with two PowerMac G5's. I need to have full resolution on the remote G5 which has no monitor connected, but only get to choose between PAL and NTSC TV resolution. This is really annoying, and in my opinion a major bug in ARD 3.1 and below. Why is the user forced to see such a small remote window if the remote computer is capable of much more?

  • JavaScript and "Open In New Window" not working.

    I've been using Safari 5 since it came out and there were no problems. But recently my JavaScript has stopped working. Whenever I click on a link that is supposed to run a script nothing happens. Similarly when I click a link that is supposed to open automatically in a new window, nothing happens. I've tried reseting Safari but that did not help. I had this same issue with Safari 4 and the update to 5 solved it, but now I do not know what to do.

    HI and welcome to Apple Discussions...
    From the Safari Menu Bar click Safari/Preferences then select the Security tab.
    Make sure Java is enabled.
    And, from a Finder window select your Home Folder in the Sidebar on the left. Then open the Library folder, then the Caches folder, then the com.apple.Safari folder. Move the cache.db file to the Trash.
    Relaunch Safari. If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
    I had this same issue with Safari 4 and the update to 5 solved it, but now I do not know what to do.
    If nothing above helps, install the v10.6.4 Combo Update
    Then repair permissions.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and *restart your Mac*.
    Carolyn

  • [HELP] Problem with restore and recovery to new host

    Hi, guys!
    I have been trying for two days, but still cannot get it to work.
    I have taken a full hot(online) backup with archive logs as well as the control file and SPFILE, and then copied the backup to the new host with the same directory structure and settings. Finally, I have tried to restore & recover the database on the new host but failed during the restore process.
    Both the original host and the new host have the same Oracle installed down to the patch level. I couldn't figure out the proper solution to this problem base on my limited knowledge about Oracle DB.
    Could anyone help me out here? Any advice would be appreciated!
    RMAN> restore database until sequence 10 thread 1;
    Starting restore at 08-NOV-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to D:\DBDATA\PRODDB\SYSTEM01.DBF
    restoring datafile 00002 to D:\DBDATA\PRODDB\UNDOTBS01.DBF
    restoring datafile 00003 to D:\DBDATA\PRODDB\SYSAUX01.DBF
    restoring datafile 00004 to D:\DBDATA\PRODDB\USERS01.DBF
    restoring datafile 00005 to D:\ORA_DATADATA01.DBF
    restoring datafile 00006 to D:\ORA_DATA\DATA02.DBF
    restoring datafile 00007 to D:\ORA_DATA\INDX01.DBF
    restoring datafile 00008 to D:\ORA_DATA\INDX02.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\PRODDB\BACKUPSET\2011_11_07\O1_MF_NNNDF_TAG20111107T175037_7CH6YYVJ_.BK
    P
    failover to previous backup
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/08/2011 11:41:33
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Here is some extra information that you might want to know about:
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 PRODDB 3774691295 PARENT 1 17-APR-07
    2 2 PRODDB 3774691295 PARENT 521803 06-OCT-11
    3 3 PRODDB 3774691295 PARENT 1595143 20-OCT-11
    4 4 PRODDB 3774691295 PARENT 1600974 20-OCT-11
    5 5 PRODDB 3774691295 PARENT 1952053 27-OCT-11
    6 6 PRODDB 3774691295 CURRENT 2146951 07-NOV-11
    RMAN> list backup recoverable;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    37 Full 822.34M DISK 00:29:47 07-NOV-11
    BP Key: 37 Status: AVAILABLE Compressed: NO Tag: TAG20111107T175037
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\BACKUPSET\
    2011_11_07\O1_MF_NNNDF_TAG20111107T175037_7CH6YYVJ_.BKP
    List of Datafiles in backup set 37
    File LV Type Ckp SCN Ckp Time Name
    1 Full 2149673 07-NOV-11 D:\DBDATA\PRODDB\SYSTEM01.DBF
    2 Full 2149673 07-NOV-11 D:\DBDATA\PRODDB\UNDOTBS01.DBF
    3 Full 2149673 07-NOV-11 D:\DBDATA\PRODDB\SYSAUX01.DBF
    4 Full 2149673 07-NOV-11 D:\DBDATA\PRODDB\USERS01.DBF
    5 Full 2149673 07-NOV-11 D:\ORA_DATA\DATA01.DBF
    6 Full 2149673 07-NOV-11 D:\ORA_DATA\DATA02.DBF
    7 Full 2149673 07-NOV-11 D:\ORA_DATA\INDX01.DBF
    8 Full 2149673 07-NOV-11 D:\ORA_DATA\INDX02.DBF
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    38 Full 6.95M DISK 00:00:03 07-NOV-11
    BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20111107T182034
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\AUTOBACKUP
    \2011_11_07\O1_MF_S_766606834_7CH8Q439_.BKP
    Control File Included: Ckp SCN: 2151141 Ckp time: 07-NOV-11
    SPFILE Included: Modification time: 07-NOV-11
    BS Key Size Device Type Elapsed Time Completion Time
    39 18.46M DISK 00:00:05 08-NOV-11
    BP Key: 39 Status: AVAILABLE Compressed: NO Tag: TAG20111108T093359
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\BACKUPSET\
    2011_11_08\O1_MF_ANNNN_TAG20111108T093359_7CJY7TG1_.BKP
    List of Archived Logs in backup set 39
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 1 2146951 07-NOV-11 2149493 07-NOV-11
    1 2 2149493 07-NOV-11 2149519 07-NOV-11
    1 3 2149519 07-NOV-11 2149565 07-NOV-11
    1 4 2149565 07-NOV-11 2149641 07-NOV-11
    1 5 2149641 07-NOV-11 2172859 07-NOV-11
    1 6 2172859 07-NOV-11 2197851 07-NOV-11
    1 7 2197851 07-NOV-11 2220349 08-NOV-11
    1 8 2220349 08-NOV-11 2222621 08-NOV-11
    1 9 2222621 08-NOV-11 2222729 08-NOV-11
    1 10 2222729 08-NOV-11 2223088 08-NOV-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    40 Full 6.95M DISK 00:00:00 08-NOV-11
    BP Key: 40 Status: AVAILABLE Compressed: NO Tag: TAG20111108T093411
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\AUTOBACKUP
    \2011_11_08\O1_MF_S_766661651_7CJY84LK_.BKP
    Control File Included: Ckp SCN: 2223097 Ckp time: 08-NOV-11
    SPFILE Included: Modification time: 08-NOV-11
    Thanks in advance!
    Jay

    Thank you for your reply,Hemant K Chitale!
    >
    a) Does the directory structur exist on the new server :
    D:\DBDATA\PRODDB\ --- for files 1 to 4
    D:\ --- for file 5
    D:\ORA_DATA\ --- for files 6 to 8
    >
    Yep, I have doubled check the directory structure that get in the way, and they are all exist.
    Would it be something to do with the folder permissions?
    >
    b) Apparently a RESETLOGS has been issued on 07-Nov. Which controflile backup do you have restored and mounted on the new server ? It should be the one after the RESETLOGS.
    >
    I restored the one included with the backup. Should I take another backup of controlfile seperately and restore from it instead?
    >
    (I assume that you did a RESTORE CONTROLFILE followed by sql "alter database mount" before the attempt to RESTORE DATABASE)
    >
    Yep, that's exactly what I did.
    //executed @ RMAN prompt of the new host
    startup nomount; 'the new host has the right SPFILE to start with so i didn''t bother to RESTORE SPFILE first.
    restore controlfile from autobackup;
    alter database mount;
    restore  database sequence 10 thread 1;
    //get stucked here with RMAN-06026, 06023
    //...the following is not executed yet.... :-(
    recover database until sequence 10;
    alter database open resetlogs;Edited by: HappyJay on 2011/11/08 13:25
    I have made several attemps with your advice, but still get the same type of errors.
    Here is the output:
    RMAN> list backup of controlfile;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    38 Full 6.95M DISK 00:00:03 07-NOV-11
    BP Key: 38 Status: AVAILABLE Compressed: NO Tag: TAG20111107T182034
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\AUTOBACKUP
    \2011_11_07\O1_MF_S_766606834_7CH8Q439_.BKP
    Control File Included: Ckp SCN: 2151141 Ckp time: 07-NOV-11
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    40 Full 6.95M DISK 00:00:00 08-NOV-11
    BP Key: 40 Status: AVAILABLE Compressed: NO Tag: TAG20111108T093411
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\AUTOBACKUP
    +\2011_11_08\O1_MF_S_766661651_7CJY84LK_.BKP+
    Control File Included: Ckp SCN: 2223097      Ckp time: 08-NOV-11
    as you suggested, this backup piece of controlfile should be right one to be restored.
    RMAN> shutdown;
    database dismounted
    Oracle instance shut down
    RMAN> startup nomount;
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 490733568 bytes
    Fixed Size 1291360 bytes
    Variable Size 364907424 bytes
    Database Buffers 121634816 bytes
    Redo Buffers 2899968 bytes
    RMAN> restore controlfile from autobackup;
    Starting restore at 08-NOV-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    recovery area destination: C:\oracle\product\10.2.0\flash_recovery_area
    database name (or database unique name) used for search: PRODDB
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AR
    EA\PRODDB\AUTOBACKUP\2011_11_08\O1_MF_S_766661651_7CJY84LK_.BKP
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=D:\DBDATA\PRODDB\CONTROL01.CTL
    output filename=D:\DBDATA\PRODDB\CONTROL02.CTL
    output filename=D:\DBDATA\PRODDB\CONTROL03.CTL
    Finished restore at 08-NOV-11
    tried shutdown normally and mount again instead.
    RMAN> shutdown;
    Oracle instance shut down
    RMAN> exit
    Recovery Manager complete.
    C:\>rman target /
    Recovery Manager: Release 10.2.0.3.0 - Production on Tue Nov 8 13:49:42 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database (not started)
    RMAN> startup mount;
    Oracle instance started
    database mounted
    Total System Global Area 490733568 bytes
    Fixed Size 1291360 bytes
    Variable Size 369101728 bytes
    Database Buffers 117440512 bytes
    Redo Buffers 2899968 bytes
    RMAN> restore database until sequence 10 thread 1;
    Starting restore at 08-NOV-11
    Starting implicit crosscheck backup at 08-NOV-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 08-NOV-11
    Starting implicit crosscheck copy at 08-NOV-11
    using channel ORA_DISK_1
    Crosschecked 2 objects
    Finished implicit crosscheck copy at 08-NOV-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\PRODDB\AUTOBACKUP\2011_11_
    08\O1_MF_S_766661651_7CJY84LK_.BKP
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to D:\DBDATA\PRODDB\SYSTEM01.DBF
    restoring datafile 00002 to D:\DBDATA\PRODDB\UNDOTBS01.DBF
    restoring datafile 00003 to D:\DBDATA\PRODDB\SYSAUX01.DBF
    restoring datafile 00004 to D:\DBDATA\PRODDB\USERS01.DBF
    restoring datafile 00005 to D:\ORA_DATA\DATA01.DBF
    restoring datafile 00006 to D:\ORA_DATA\DATA02.DBF
    restoring datafile 00007 to D:\ORA_DATA\INDX01.DBF
    restoring datafile 00008 to D:\ORA_DATA\INDX02.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\PRODDB\BACKUPSET\2011_11_07\O1_MF_NNNDF_TAG20111107T175037_7CH6YYVJ_.BK
    P
    failover to previous backup
    //however, still get the same results(ended up with errors)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/08/2011 13:50:29
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Edited by: HappyJay on 2011/11/08 13:59

  • Speaker problem with t420i and adding a new graphics card question

    I bought a t420i about a month ago and noticed that the speakers could not properly handle muliple sounds at once.  What happens is that, say in a music video, the music plays loud and clear, but once the lyrics start the background music fades a bit to about 85% of it's original volume.  I had returned the laptop because of this problem but the replacement I got has the SAME exact problem.
    In case im not clear, try this example.  You know the beeping noise you get when you press an incompatible set of keys?  ( like g, h, and b).  When I have this noise going simultaneously with a song, the song's sound fades a bit.
    This does not happen with headphones, therefore i believe the problem is with the way the speakers are programmed.
    Also, if I bought a t420 with just integrated graphics, could I still add a new graphics card?  Or can you only add a new graphics card to a thinkpad that initially comes with discrete graphics?

    I think the main purpose of the nvs4200m is the ability to use three displays (internal + 2 external). Additionally, nVidia has better driver support for games so even though it is around the same speed, the drivers are better. 
    The shared ram is still used, unless you disable the HD3000 in the BIOS and run with only the nvs4200m at all times. 
    When asking for help, post your question in the forum. Remember to include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help others with the same question in the future.
    My TPs: Twist 2HU: i5-3317U Win 8 Pro, 4GB RAM 250GB Samsung 840 | T420 4177CTO: i5-2520M, HD+, Win 7 Pro x64, 8GB RAM, Optimus, 160GB Intel 320 SSD, Intel 6300 WiFi, BT 3.0 | T400 2764CTO: P8700, WXGA, Win 7 Ult x64, AMD 3470, 8GB RAM, 64GB Samsung SSD, BT, Intel 5300 WiFi | A20m 14.1" PIII 500 (retired). Monitors: 2x Dell U2211h IPS 100% sRGB calibrated w/ Spyder3.

  • Please help meeee!! Problems with library and syncing on new laptop

    Hi I've bought a new laptop and want to start using itunes on the new one, however:
    Problem 1- Even though I've enabled both devices and have clicked on the home sharing, only the songs I have purchased from itunes show in my library and playlists (I managed to import my playlist titles by copying the file and emailing it to myself but it won't show songs other than those purchased from itunes) How can I get the library to show the 500 odd songs I've painstakingly spent importing to itunes on my old, slow laptop? If I have to do them all again I may just have a breakdown!!!
    Problem 2- Have imported a CD into itunes library using my new laptop but it won't show on my ipod after syncing it. I think I have enough space cos the bottom bar says 3.26 GB free!
    I'm really not very techie and don't use itunes much so there may be something glaringly obvious that I'm doing wrong. If anyone can help I'd really appreciate it
    Thanks
    Cheryl

    Home Sharing doesn't really matter, if you plan to stop using the old computer for iTunes.
    Apple has this document
    http://support.apple.com/kb/HT4527
    You should use the method titled External drive. If you use this method, you can ignore the rest of the document.
    The details are in the document, but to summarize this process (so that you have the "big picture" before reading the details)...
    You are copying your iTunes folder from the old laptop to the external drive, and then copying that iTunes folder from the external drive to the new laptop.  When you copy the iTunes folder to the new laptop, you are replacing the existing iTunes folder.  The next time you start up iTunes on the new laptop, it will use the iTunes folder from the old laptop, and it should look like iTunes running on the old laptop. 
    When you read through the document, it may be easier to understand if you keep my "overview" in mind. Please ask any questions you may have about the "details" in the document.
    NOTE:  If you have new songs on the new laptop that are not in your old laptop's iTunes library, you need to keep the existing iTunes folder on the new laptop.  After you have successfully transfered your iTunes folder from the old laptop to the new laptop, and everything is OK when you run iTunes on the new laptop, THEN add the new songs.  This is in the document. 
    You should put Problem 2 aside until the above is completed.

  • I've started having problems with downloading and opening PDF files.  Any hints?

    This started late yesterday and I've been unable to download or open or view any PDF files.  I've restarted my computer a few times, made sure Preview was open then when those things didn't work downloaded Adobe PDF reader and that didn't work either.  Any other ideas????

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Problem with download and open files

    Why can't I open or download any book on my iPad (over drive)after I updated my iPad and the over drive?

    I don't know why, but this is the Reader forum, and the Digital Editions one is here:
    http://forums.adobe.com/community/adobe_digital_editions

Maybe you are looking for