Deferred and autoquery

hi guys, my form consists of master detail over tabed pages, tab 1 is the master of tab 2 and when the user clicks on tab 2 it auto querries as set in the relationship properties. However i had to make a change to my underlying view (went into datablock wizard and refresed the view and added two more columns) of tab 1 and now i have added in columns and autoquery and deffered is still set to yes, yet it doesnt seem to autoquery when i go to tab 2. Would anyone know the reason for this?
On a side note: another problem I have is that I need to create a unique constraint on the database over 2 columns. my table has 2 columns of interest which need to be unque values.
I.E. i can have 1,2, 1,3 1,4 2,2 2,3
over the two columns
but if i have a 1,1 in the two columns i dont want to be able to add another 1,1 if you get my drift. The two numbers need to be unique. Could anyone direct me how to acheive that.
Thanks.
Edited by: 786733 on 19-Nov-2010 08:18

If the view changes didn't change the relation-columns then it should work as is. Check the relation properties and make sure the join condition is set correctly and newly added columns are Database columns. It may be easier to drop and re-create the relation and try.
As far as uniqueness of columns is concerned, you can create a composit unique constraint on table like this:
ALTER TABLE YourTable
    ADD CONSTRAINT constraint_name UNIQUE (column1, column2);Did you face any issue in this? or you want to enforce validtion on front-end? If that is the case, you may validate the columns uniqueness in WHEN-VALIDATE-RECORD trigger.

Similar Messages

  • What do MANUAL, DEFERRED and IMMEDIATE mean here?

    See the following query. I find the OPER_MODE has the values: MANUAL, DEFERRED and IMMEDIATE
    SQL> desc V$MEMORY_RESIZE_OPS
    Name                                                                                                      Null?    Type
    COMPONENT                                                                                                          VARCHAR2(64)
    OPER_TYPE                                                                                                          VARCHAR2(13)
    OPER_MODE                                                                                                          VARCHAR2(9)
    PARAMETER                                                                                                          VARCHAR2(80)
    INITIAL_SIZE                                                                                                       NUMBER
    TARGET_SIZE                                                                                                        NUMBER
    FINAL_SIZE                                                                                                         NUMBER
    STATUS                                                                                                             VARCHAR2(9)
    START_TIME                                                                                                         DATE
    END_TIME                                                                                                           DATEThe OPER_MODE column have the following values:
    * MANUAL
    * DEFERRED
    * IMMEDIATE
    What do MANUAL, DEFERRED and IMMEDIATE mean here?

    MANUAL: You as a DBA are responsible for the change, for example because you created a keep cache by specifying DB_KEEP_CACHE_SIZE>0
    DEFERRED: MMAN did the change, but it may have taken a while until proceeded, for example a decrease of the shared pool size took some time until enough objects have been aged out.
    IMMEDIATE: MMAN did the change because of an emergency case; some component needed to grow in order to let an action proceed, for example a parallel query needs an increases large pool to complete.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Mail deferring and sitting in queue

    We have a xserve G5 running 10.4.11 with all latest updates. Today I updated spamassassin and amavisd-new per osx.topicdesk.com. Now mail won't deliver in either direction and is adding up fast in the queue. Also, SA won't turn respond to turning off virus and spam filtering anymore. I turn them off to see if it helps mail delivery and save and the checkmarks turn right back on. I have rebooted the server and still the same. Here is piece of the log:
    Apr 15 13:58:35 mother postfix/smtp[1021]: C36C07CBC6E: to=<[email protected]>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Here is postconf output:
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    disablevrfycommand = yes
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    luser_relay =
    mail_owner = postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 0
    mydestination = $myhostname,localhost.$mydomain,localhost,cecenergy.com
    mydomain = cecenergy.com
    mydomain_fallback = localhost
    myhostname = mail.cecenergy.com
    mynetworks = 127.0.0.1/32,192.168.1.0/24
    mynetworks_style = host
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = postdrop
    smtpdclientrestrictions = permitsaslauthenticated, permit_mynetworks, rejectrblclient zen.spamhaus.org, permit
    smtpddatarestrictions = permit_mynetworks, rejectunauthpipelining, permit
    smtpdhelorequired = yes
    smtpdhelorestrictions = permitsaslauthenticated, permit_mynetworks, checkheloaccess hash:/etc/postfix/helo_access, rejectnon_fqdnhostname, rejectinvalidhostname, permit
    smtpdrecipientrestrictions = rejectinvalidhostname, rejectnon_fqdnsender, rejectnon_fqdnrecipient, permitsaslauthenticated, permit_mynetworks, rejectunauthdestination, rejectunlistedrecipient, rejectrblclient zen.spamhaus.org, permit
    smtpdsenderrestrictions = permitsaslauthenticated, permit_mynetworks, rejectnon_fqdnsender, permit
    smtpdtls_keyfile =
    unknownlocal_recipient_rejectcode = 550
    Help is much appreciated.
    I'm really an electrical engineer but inherited IT responsibilities since I am computer savvy. So far the users haven't noticed their email isn't working.

    Hi Sparkyetc ... I can't speak for him, but I don't think David was "offended." I think he was giving you a "zin-like" introduction to some special challenges you are faced with based on your expressed frustration with the new, adopted job.
    If you go back three years on this forum, you'll see posts by me that were astoundingly clueless, guys like Pterobyte, UptimeJeff, David_x, davidh, and others were great tutors. In my humble opinion, there really isn't a good introductory book on the topic of administering internet services on the Apple Server. So, there are some special challenges you face. I think the reason that I started my initial post to you with "don't panic," is that I believe that directive was one of the first things Pterobyte said to me when I overwrote my amavisd.conf file with the default and killed amavisd on my server (the second thing he told me was to always make backups before mucking around with your server). Later, I leaned the third administrator's axiom, never muck around with your server after four or more bourbons.
    One thing is generally true, when you see an error message, you can usually search here or use Google to find a solution. For example, the "lint" error you got (it's not an important message, so I didn't address it), can be eliminated by visiting this page <http://wiki.apache.org/spamassassin/SpamAssassinon_Mac_OS_XServer> and scrolling to the "Lint (the nasty stuff that grows between your toes)" section of the page.
    Finally, you might consider taking a look at topicdesk.com's "Mail server checkup." I think it is a bargain and will ensure that your basic internet services configuration is adhering to best practices.

  • Multimedia Center deferred and never installs

    I have two items that never get installed. They are both "deferred". I have installed them at least 4 times each, by selecting them and clicking install. They both seem to run the installation normally. I have run them separately and together. Nothing seems to clear them out from the Thinkvantage System Update screen.
    One is
    Multimedia Center for Think Offerings
    for Microsoft Windows Vista
    Version 9.06b29e Full Install Release C
    Installation README
    The second is 
    Software Name      BIOS Update Utility
    Version            2.24-1.08
    Issue date         August 25, 2008
    I had already downloaded and updated the Bios using the separate CD image.
    1) How can I remove the "deferred" BIOS update from the computer and allow any new update to be installed?
    2) How can I get the Media Center software correctly installed?
    Running Thinkvantage 3.14.0017
    T61p Vista Ultimate, everything up to date.

    The great idea is - to update Media Player. But telling you by secret - it's a bad idea. The really great idea - not to use MP at all. Use Winamp, foobar, VLC(+skins) or iTunes, but not MP...
    No trust for MicroSoft since Longhorn appeared.
    //help will save the world

  • Master - detail autoquery

    Hi guys, i have a few master detail blocks on my form spread over tabbed canvases. Now for all but one of my master detail relationships i select the master then select the tab with the dataitems of the detail block, when the tab is selected i do: go_to(block_name) this then means when the user goes to the tab they are already in the block and the query has been executed. However, with one of my blocks i go to the tab and the cursor just sits in the detail block and its not untill i hit the execute query button that the block populates.
    I do have autoquery set to yes and honestly have no idea why this block wouldnt be working like the other, does anyone have any idea what the reason could be?
    Thank you.

    Hi,
    Firstly does the block have any master block or does a relationship with the block as detail exists?
    If a relationship exists check what are the values for the Properties Deferred and Automatic Query.
    Check the values for deferred and Automatic Query ans set it according to your requirements.
    Deferred=No,Automatic Query ignored     The default setting. When a coordination-causing event occurs in the master block, the detail records are fetched immediately.
    Deferred=Yes, Automatic Query=Yes     When a coordination-causing event occurs, Form Builder defers fetching the associated detail records until the operator navigates to the detail block.
    Deferred=Yes, Automatic Query=No     When a coordination-causing event occurs, Form Builder defers fetching the associated detail records until the operator navigates to the detail block and explicitly executes a query.
    Deferred=No,Automatic Query=Yes     Not a valid setting.
    Hope this helps.
    Best Regards
    Arif Khadas

  • JDeveloper 11.1.2.1, IE8 and erratic popup behavior

    I am trying to do a simple proof of concept in JDeveloper 11.1.2.1 involving a databound table and a popup. I want to add a row to the table by filling in a form on the popup. The popup is opened via an action by clicking a button in the form. I used the Code Corner example #77 as a template for adding rows. Using IE8 (not in compatibility mode), I click on the "Add" button and the popup opens. However, error messages in the dialog also appear indicating that non-null fields require values. Here's where it gets interesting. If I create the exact same form, managed bean, entity/view objects in JDeveloper 11.1.1.6, then everything works fine while adding rows. I am guessing I am missing some sort of property setting, but I have yet to find it. I am new to JDeveloper/ADF. Form structure and managed bean code is below. Any ideas?
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="popuptest.jsf" id="d1">
    <af:messages id="m1" inline="false"/>
    <af:form id="f1">
    <af:table value="#{bindings.allDepartments.collectionModel}" var="row"
    rows="#{bindings.allDepartments.rangeSize}"
    emptyText="#{bindings.allDepartments.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.allDepartments.rangeSize}" rowBandingInterval="0"
    selectedRowKeys="#{bindings.allDepartments.collectionModel.selectedRow}"
    selectionListener="#{bindings.allDepartments.collectionModel.makeCurrent}" rowSelection="single"
    id="t1" partialTriggers="::cb1" binding="#{CreateDepartmentPageHelper.departmentsTable}">
    <af:column sortProperty="#{bindings.allDepartments.hints.DepartmentId.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.DepartmentId.label}" id="c1">
    <af:outputText value="#{row.DepartmentId}" id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.allDepartments.hints.DepartmentId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="#{bindings.allDepartments.hints.DepartmentName.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.DepartmentName.label}" id="c2">
    <af:outputText value="#{row.DepartmentName}" id="ot2"/>
    </af:column>
    <af:column sortProperty="#{bindings.allDepartments.hints.ManagerId.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.ManagerId.label}" id="c3">
    <af:outputText value="#{row.ManagerId}" id="ot3">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.allDepartments.hints.ManagerId.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="#{bindings.allDepartments.hints.LocationId.name}" sortable="false"
    headerText="#{bindings.allDepartments.hints.LocationId.label}" id="c4">
    <af:outputText value="#{row.LocationId}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.allDepartments.hints.LocationId.format}"/>
    </af:outputText>
    </af:column>
    </af:table>
    <af:commandButton text="Add" id="cb1" partialSubmit="true"
    action="#{CreateDepartmentPageHelper.cb1_action}"/>
    <af:popup autoCancel="enabled" id="p1"
    binding="#{CreateDepartmentPageHelper.popup}"
    contentDelivery="lazyUncached" eventContext="self">
    <af:dialog id="d2">
    <f:facet name="buttonBar"/>
    <af:panelFormLayout id="pfl1">
    <af:inputText value="#{bindings.DepartmentId.inputValue}"
    label="#{bindings.DepartmentId.hints.label}"
    required="#{bindings.DepartmentId.hints.mandatory}"
    columns="#{bindings.DepartmentId.hints.displayWidth}"
    maximumLength="#{bindings.DepartmentId.hints.precision}"
    shortDesc="#{bindings.DepartmentId.hints.tooltip}" id="it1">
    <f:validator binding="#{bindings.DepartmentId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.DepartmentId.format}"/>
    </af:inputText>
    <af:inputText value="#{bindings.DepartmentName.inputValue}"
    label="#{bindings.DepartmentName.hints.label}"
    required="#{bindings.DepartmentName.hints.mandatory}"
    columns="#{bindings.DepartmentName.hints.displayWidth}"
    maximumLength="#{bindings.DepartmentName.hints.precision}"
    shortDesc="#{bindings.DepartmentName.hints.tooltip}" id="it2">
    <f:validator binding="#{bindings.DepartmentName.validator}"/>
    </af:inputText>
    <af:inputText value="#{bindings.ManagerId.inputValue}" label="#{bindings.ManagerId.hints.label}"
    required="#{bindings.ManagerId.hints.mandatory}"
    columns="#{bindings.ManagerId.hints.displayWidth}"
    maximumLength="#{bindings.ManagerId.hints.precision}"
    shortDesc="#{bindings.ManagerId.hints.tooltip}" id="it3">
    <f:validator binding="#{bindings.ManagerId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.ManagerId.format}"/>
    </af:inputText>
    <af:inputText value="#{bindings.LocationId.inputValue}"
    label="#{bindings.LocationId.hints.label}"
    required="#{bindings.LocationId.hints.mandatory}"
    columns="#{bindings.LocationId.hints.displayWidth}"
    maximumLength="#{bindings.LocationId.hints.precision}"
    shortDesc="#{bindings.LocationId.hints.tooltip}" id="it4">
    <f:validator binding="#{bindings.LocationId.validator}"/>
    <af:convertNumber groupingUsed="false" pattern="#{bindings.LocationId.format}"/>
    </af:inputText>
    </af:panelFormLayout>
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    <!--oracle-jdev-comment:preferred-managed-bean-name:CreateDepartmentPageHelper-->
    </f:view>
    BACKING BEAN CODE:
    package view;
    import javax.faces.context.FacesContext;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.ADFContext;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import oracle.adf.view.rich.component.rich.data.RichTable;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import oracle.adf.view.rich.event.DialogEvent;
    import oracle.adf.view.rich.event.DialogEvent.Outcome;
    import oracle.adf.view.rich.render.ClientEvent;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    import oracle.adf.view.rich.util.ResetUtils;
    import oracle.jbo.Row;
    import oracle.jbo.server.ViewRowImpl;
    public class CreateDepartmentPageHelper {
    //old "current row" value is saved in view scope in case the rw creation is
    //cancelled, in which case this row needs to become current again
    final String OLD_CURR_KEY_VIEWSCOPE_ATTR = "__oldCurrentRowKey__";
    private RichPopup popup;
    private RichTable departmentsTable;
    public CreateDepartmentPageHelper() {
    public void setPopup(RichPopup popup) {
    this.popup = popup;
    public RichPopup getPopup() {
    return popup;
    //system generated method when you create a managed bean method for
    //a component that has an ADF binding referenced in its action listener
    public BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    //command action that create a new row in teh departments table and then
    //opens an edit dialog for commit/cancel
    public String cb1_action() {
    BindingContainer bindings = getBindings();
    //get current row and save its rowKey in view scope for later use
    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("allDepartmentsIterator");
    Row oldCcurrentRow = dciter.getCurrentRow();
    //ADFContext is a convenient way to access all kinds of memory scopes.
    //If you like to be persistent in yur ADF coding then this is what you
    //want to use
    ADFContext adfCtx = ADFContext.getCurrent();
    adfCtx.getViewScope().put(OLD_CURR_KEY_VIEWSCOPE_ATTR,
    oldCcurrentRow.getKey().toStringFormat(true));
    //perform row create
    OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    //access the popup dialog and bring it up. The reference is through a
    //JSF component binding reference using the popup "binding" property
    RichPopup popup = this.getPopup();
    RichPopup.PopupHints hints = new RichPopup.PopupHints();
    //empty hints renders dialog in center of screen
    popup.show(hints);
    return null;
    public void onDialogAction(DialogEvent dialogEvent) {
    Outcome outcome = dialogEvent.getOutcome();
    //the dialog event only propagates yes, no, ok actions to the
    //server. The cancel outcome is only available on the browser
    //client. If there is a need to handle the cancel even then you
    //need to use a clientListener and JavaScript as we do on this
    //example
    if(outcome == Outcome.ok){
    //commit
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    //handle errors if any
    return;
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getDepartmentsTable());
    public void setDepartmentsTable(RichTable departmentsTable) {
    this.departmentsTable = departmentsTable;
    public RichTable getDepartmentsTable() {
    return departmentsTable;
    //method that is called from the serverListener on the client. The server
    //listener is used to queue a custom event and pass information from the
    //client to the server using JavaScript. Its actually doing this Ajax thing
    //that everyone wants to do using the XmlHTTPRequest object
    public void onDialogCancel(ClientEvent clientEvent) {
    BindingContainer bindings = getBindings();
    RichPopup popup = this.getPopup();
    popup.hide();
    ResetUtils.reset(clientEvent.getComponent());
    //the cancel operation is executed with immediate=true to bypass the
    //model update. Therefore we manually deletethe new row from the iterator
    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("allDepartmentsIterator");
    dciter.removeCurrentRow();
    //set current row back to original row
    ADFContext adfCtx = ADFContext.getCurrent();
    String oldCurrentRowKey = (String) adfCtx.getViewScope().get(OLD_CURR_KEY_VIEWSCOPE_ATTR);
    dciter.setCurrentRowWithKey(oldCurrentRowKey);
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getDepartmentsTable());
    FacesContext fctx = FacesContext.getCurrentInstance();
    //we don't want to continue with the remainder of the lifecycle and
    //thus skip the rest
    fctx.renderResponse();
    }

    Hi Frank,
    Thanks for the reply. I retested with a .jspx file just to confirm my results. I've tried Facelets as well without success. Results for .jspx are as follows:
    1. If the add button PartialSubmit property is set to true, and the popup's ContentDelivery=lazyUncached, ChildCreation=deferred, and AutoCancel=disabled, then:
    the popup appears with error messages outlining the required fields
    2. If the add button PartialSubmit Property is set to false and popup properties are the same as above then the popup opens as expected. However, if an attempt is made to insert a duplicate record - using departments table as an example, trying to create a row with an existing department - then a red box appears around the DepartmentId cell in the popup without any error message. If I press OK again, then the duplicate key error message appears as expected.

  • Oracle ADF refresh as deferred does not execute query on page load

    In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
    a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
    b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
    For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
    When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
    Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
    Please let me know the best way to fix this issue.

    Hi,
    I think you need a method in an application module to init your data.
    In your AM : create a method like :
    public void init(){
    getViewObject().executeQuery();
    }In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
    and keep refresh as "deferred " in your pageDef.
    Clément

  • V$dataguard_stats showing 8 hrs delay between Primary and standby

    Hello All,
    My Primary and standby database are in sync but v$dataguard_stats on standby server showing 8 hrs delay between Primary and standby.
    DB Version:11.2.0.1.0
    Server :AIX
    Primary:
    SQL> select /*+ FULL(c) PARALLEL(c, 35) */ distinct SEQUENCE# "Last Sequence Generated" FROM V$ARCHIVED_LOG c WHERE (THREAD#,FIRST_TIME ) IN (select /*+ FULL(c) PARALLEL(c, 35) */ THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG c GROUP BY THREAD#);
    Last Sequence Generated
                       4521
    Standby:
    SQL> SELECT  APPL.SEQUENCE# "Last Sequence Applied"
    FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
      2    3  (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
      4  WHERE ARCH.THREAD# = APPL.THREAD#;
    Last Sequence Applied
                     4521
    SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
      2  FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
      3  (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
    WHERE ARCH.THREAD# = APPL.THREAD#;
      4
        Thread Last Sequence Received Last Sequence Applied Difference
             1                   4521                  4521          0
    SQL> select name, 'Hours', to_number(substr(value,5,2)) from v$dataguard_stats where name = 'apply lag' ;
    NAME                             'HOUR TO_NUMBER(SUBSTR(VALUE,5,2))
    apply lag                        Hours                            8------------------------------------------------------------------>>>Problem area

    SQL> SELECT status, error
    FROM V$ARCHIVE_DEST_STATUS
    WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE';  2    3
    STATUS    ERROR
    VALID
    VALID
    Standby--Generally in Night it happens that primary and standby 'apply lag' is 8/10/4 hrs .When manually checked database are in sync but  v$dataguard_stats showing difference in hrs
    NAME                             'AL
    SUBSTR(VALUE,1,12)
    apply lag                        ALL
    +00 04:11:03
    SQL> SQL>   2
    NAME                             'SECOND TO_NUMBER(SUBSTR(VALUE,11,2))
    apply lag                        Seconds                             3
    SQL> SQL>   2
    NAME                             'MINUTE TO_NUMBER(SUBSTR(VALUE,8,2))
    apply lag                        Minutes                           11
    SQL> SQL>   2
    NAME                             'HOUR TO_NUMBER(SUBSTR(VALUE,5,2))
    apply lag                        Hours                            4
    SQL> SQL>   2
    NAME                             'DAY TO_NUMBER(SUBSTR(VALUE,2,2))
    apply lag                        Days                            0

  • Retrieve Title field values from multiple lists and add into another list

    Hi , Iam trying to retrieve Title field value from multiple lists. and add them into another list. using Javascript. Can any one help me in doing this. Below is the code.. function save() { clientContext = new SP.ClientContext.get_current(); oWebsite = clientContext.get_web(); oList = clientContext.get_web().get_lists().getByTitle('MainList'); clientContext.load(oList); clientContext.executeQueryAsync(OnSucceeded, onQueryFailed); } function GetListItemValue(listName, fieldName) { var list = oWebsite.get_lists().getByTitle(listName); var eventValue = document.getElementById(fieldName).value; eventValue = eventValue.replace(",", ""); var camlQuery = new SP.CamlQuery(); var filterdata = '<view><query><where><eq><fieldref name="Title/"><value type="Text">' + myreqValue.trim() + '</value></fieldref></eq></where></query></view>'; camlQuery.set_viewXml(filterdata); listItems = list.getItems(camlQuery); clientContext.load(list); clientContext.load(listItems, 'Include(Id)'); clientContext.executeQueryAsync(Succeeded,Failed); } function OnSucceeded() { itemCreateInfo = new SP.ListItemCreationInformation(); oListItem = oList.addItem(itemCreateInfo); oListItem.set_item('Title', 'My New Title'); var deptItemLookupField = new SP.FieldLookupValue(); //Problem in below line...I was unable to get ID var getId = GetListItemValue("Listname1", "txtboxname1"); alert("ID" + getId); if (getId != undefined) { deptItemLookupField.set_lookupId(getId); } var getId12 = GetListItemValue("Listname12", "txtboxname12"); alert("ID" + getId12); if (getId12 != undefined) { deptItemLookupField.set_lookupId(getId12); } oListItem.update(); clientContext.executeQueryAsync(itemadded, itemFailed); } function itemadded() { alert('Item added successfully'); } function itemFailed(sender, args) { alert('Item added itemFailed' + args.get_message() + '\n' + args.get_stackTrace()); }
    Raj

    Hi,
    For this requirement, you will need to retrieve all the lists objects you want firstly, then execute the requests one by one to get the value of the Title column using CAML or
    LINQ.
    How to: Retrieve Lists Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185009(v=office.14).aspx
    About
    retrieve list items:
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    You can use
    Promise in your script to make your requests sequentially:
    http://www.shillier.com/archive/2013/03/04/using-promises-with-the-javascript-client-object-model-in-sharepoint-2013.aspx
    http://www.learningsharepoint.com/2013/08/13/using-deferred-and-promise-to-handle-async-calls-in-sharepoint-client-object-model/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Re Nokia E5 Issues and Problems

    Hai 
    I am using nokia E5 it have recently got updated
    since then i am facing lot of problems and issues
    1. it was showing phone memory full but nothing is visible in phone memory
    2. when ever i open youtube and mp3 in other window volume key doesnt work in mp3
    3.very recently ovi site is getting too worse when i ask topsearch top free is shows alll paid 
    but suprisingly it says you are logged in and every thing but i cannot download
    4.when ever i made my contacts backup in memory card i loose defaults ring tones
    5. i couldnt configure my in.com mail on new mail upgrade.
    and also previously when i ever i am composing mail and typing address at sender ( To , BCC ,or Cc) my mail contacts appeared but now it was showing my phone contacts whoes mail id are in thais
    6. sending sms to group while sending a group sms to may in a mean while if at all we receive call of kept in charging all messages simply stays at OUT BOX as Defered and again for each i have to sent individually
    7.when i kept delivery repors yes, when ever i receive message delivered rather than text appearing it just give me tone what i have kept for the meassage incoming ring tone.
    8.when i strictly selecting SMS wht was the reasont to display email id in every contact if i accidently selected it it was converting sms to MMS and subscriber is killing my balance in an instance.
    please help me to come out of this problems
    thanks regards yor valuable customer

    Firstly, this is a user to user support forum, so w are all Nokia users here.
    I find issues starting following an updatecan usually be resolvd a hard reset. I suggest backing up your data only and not the settings. Then reset the phone using the *#7370# reset. Once done, check that the issues are resolved before restoring your data and reinstalling apps.

  • Checking status of Deferred/Immediate constraints

    I know I can check the status of a Disabled/Enabled constraint in oracle by:
    select status from <constraint table> where <constraint name> and that's peachy, what i'm trying to do is check the status of a constraint that i've deferred that is normally immediate and so far i've come up empty handed.
    for example: the constraint resides in user_constraints, the columns deferrable, deferred and status are of no help since they contain information about the normal state of the constraint.
    so doing
    select constraint_name, deferred from user_constraints;
    set constraint cons_name deferred;
    select constraint_name, deferred from user_constraints;yields the same information (ie..useless)
    any ideas?

    The application code is doing a SET CONSTRAINT call at some appropriate place in the code. One application module may decide to defer it to continue processing whereas some other module may decide to leave it as-is.
    At one point in time, one transaction may have issued SET CONSTRAINT to defer it and other transaction involving same table may not have done so. You cannot look at the dictionary table to see what is the state, since the state is being altered by the transaction in progress, and there may be many transactions at the same time - one status cannot give information about all.

  • Deferring constraints

    Hi,
    What's the difference between initially immediate and NOT DEFFERABLE? so initially deferred waits to check the constraint until the transaction ends. But when?! After issuing commit/rollback?
    and initially immediate checks the constraint at the statement execution. so in my opinion INITIALLY IMMEDIATE is same as NOT DEFERRABLE.
    By default the constraint is NOT DEFERRABLE, so the validity is checked immediately after the DML statement.
    thanks
    Edited by: Roger22 on 09.09.2011 14:08

    Also, something else to be aware of, which is not necessarily a difference
    the ROLLBACK occurs on all transactions, even those that were succecsfull when DEFERRED, and a COMMIT failed on a check;
    Whereas when IMMEDIATE, the rollback would occur only on the transaction that failed.
    SQL> insert into t1 values (1,1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> insert into t2 values (1);
    1 row created.
    SQL> insert into t2 values (2);
    insert into t2 values (2)
    ERROR at line 1:
    ORA-02291: integrity constraint (XDB_DEV3.T2_FK) violated - parent key not found
    SQL> select * from t2;
             A
             1
    SQL> rollback;
    Rollback complete.
    SQL> select * from t2;
    no rows selected
    SQL> alter session set constraints = deferred;
    Session altered.
    SQL> insert into t2 values (1);
    1 row created.
    SQL> insert into t2 values (2);
    1 row created.
    SQL> commit;
    commit
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (XDB_DEV3.T2_FK) violated - parent key not found
    SQL> select * from t2;
    no rows selected

  • Difference between batch job and Background Job

    Hi Forum,
    Can anyone distinguish between batch job and background job for me please ?
    SK

    Hi,
    Batch Job:
    A batch job is a process that runs in the background, often deferred and unattended, to process data in groups (batch) rather than by individual transactions (e.g. a monthly phone bill rather than a bill for each individual phone call). A batch job executes a sequence of programs and technical instructions that are stored in a command file. Progress and error messages are output to a log file allowing users to determine, at any time, if the batch job completed successfully or identify the cause of the problem. Because batch jobs run in the background they are less visible to the end user.
    In a business-computing context, batch job scheduling implies the automatic execution of background tasks (batch jobs) at pre-determined points in time (e.g. every day at 8pm, midday on Wednesday).
    3 types of batch job scheduling can be distinguished: native, basic and advanced batch job scheduling.
    Most operating systems and some business solutions software come equipped with native batch job scheduling tools that provide a limited service (e.g. Windows Scheduled Tasks, UNIX crontab, SAP CCMS) locally to each installation. However, business processes may span multiple platforms, applications, countries and companies. Their complexity may require much more functional power as provided by basic batch job scheduling including national and regional variations in the working calendar, sequence variations according to the day of the month, triggering of jobs by the successful completion of preceding jobs, elimination of gaps and reduced batch windows. Major benefits of basic batch job scheduling are enhanced productivity, operations reliability and cost-reduction. For e-business applications that require real-time processing, the distance between interactive individual processing and batch processing tends to decrease. Advanced batch job scheduling can handle these advanced requirements: event-driven scheduling for a real-time synchronization with interactive processing, just-in-time scheduling to run operations as soon as possible, cross-platform and cross application services for the entire IT landscape, real-time overall monitoring to track background operations for all applications on all servers.
    The standard benefits of batch job scheduling are drastically amplified when job schedulers can handle the end-to-end automation and monitoring requirements for all background operations.
    To schedule a back ground job follow the below steps:
    1. Use Transaction SM36.
    2. Assign a job name.
    3. Set the job’s priority, or “Job Class”:
    High --- Class A
    Medium --- Class B
    Low ---Class C
    4. Here you can specify,when the job is to start by choosing Start Condition. If you want the job to repeat, or be periodic, check the box at the bottom.
    Else click on the immediate and save this.
    5. Now,define the job’s steps by choosing Step.
    Here you need to give the ABAP program that has been used and the name of the variant thats being used.
    6. Save the fully defined job to submit it to the background processing system.(You need to click save button on the main screen i.e SM36)
    7. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
    8. Release the job so that it can run.
    The job, even those scheduled for immediate processing, can not run without first being released.So,do remember to release.
    Hope this helps you.
    Regards,
    Rakesh

  • Deferred Instantiation

    We have a collection business object that contains business objects. Within
    this collection object we have an attribute which is itself a business
    collection object. What we would like to do is this. We want to be able to
    instantiate the "main" collection object without instantiating its
    attribute's collection object (thus we wish to defer instantiation of
    subcollections within this collection object).
    As it stands to instantiate our subcollection object we perform something
    like the following when the user calls a method on the main collection like
    GetSubCollectAttrib():
    if SubCollectionAttrib = NIL then
    SubCollectionAttrib = ServerSO.GetSubCollection();
    end if;
    return SubCollectionAttrib;
    My questions are these. Should a business object have any knowledge that a
    ServerSO even exists? What other ways have people gotten around the issue
    of deferred instantiation? (Or is there a white paper or tech note we should
    be looking at.)
    Thanks in advance.
    Anthony J. Falabella
    [email protected]

    Tony -
    There may well be problems with a business data object (BDO) referencing an
    SO to fill in the deferred attributes - if the BDO migrates between
    partitions the SO reference may become either unsupported or inappropriate.
    One approach is to place the deferred instantiation logic in what has been
    called a Partition-Visible object; this has been discussed previously in
    this list - feel free to contact me for details. The BDO (or any other
    party) can call this universal local facility to perform the deferred
    instantiation, passing the BDO reference. A related problem is how to
    determine which of three states an attribute is in: valued, deferred, or
    NIL; using NIL for deferred is obviously a problem if three-way resolution
    is needed. Not distinguishing between deferred and NIL states may be
    expensive, if database i/o or other overhead is involved in instantiation.
    Possible solutions that come to mind are paired flag attributes, flag
    attributes reflecting the state of a whole group of value attributes, and
    byte-string flags - I'd be interested in hearing othe suggestions on this
    issue....
    All the best -
    Gerard R. Connolly
    GRC Associates, Inc. - A Forte Consultancy
    610/296-0688

  • Problem in query detail block

    hello all,
    i have a form having master and detail block. in master we have store_cd and location code(primary key in master table),
    based on that detail recrds fetch in detail block. perfectly fine. but when i query within detail block records then it show no record found. please tell me what can be wrong.
    detail table primary key is (store_cd, location_code and storage_co) , in realtion i mentioned
    masterblock.store_cd=detailblock.store_cd and masterblock.location_cd=detailblock.location_cd
    Thanks
    yash

    yes, there are records in detail table... table structure(master and detail block)
    SQL> desc ivt_store_mst
    Name Null? Type
    STORE_CD NOT NULL VARCHAR2(3)
    STORE_DESC NOT NULL VARCHAR2(25)
    LVL_REF_CD NOT NULL VARCHAR2(6)
    STORE_TYPE VARCHAR2(2)
    Primary key(store_cd,lvl_ref_cd)
    SQL> desc ivt_storg_mst;
    Name Null? Type
    STORE_CD NOT NULL VARCHAR2(3)
    STORAGE_SRL_NO NOT NULL NUMBER(10)
    STORAGE_CD VARCHAR2(10)
    ITEM_CD NOT NULL VARCHAR2(10)
    BAY_NO VARCHAR2(10)
    SHELF_NO VARCHAR2(10)
    ROW_NO VARCHAR2(10)
    TIER_NO VARCHAR2(10)
    BIN_CARD_NO VARCHAR2(10)
    INSERT_DT DATE
    GRN_NO VARCHAR2(12)
    GRN_FIN_YR_CD VARCHAR2(8)
    PLEVEL_REF_CD NOT NULL VARCHAR2(6)
    PGRN_LEVEL_REF_CD VARCHAR2(6)
    Primary key(store_cd,storage_cd, plevel_ref_cd)
    relation property is: noo-isolated
    deferred: false
    autoquery: false
    block join condition based on detail_blk1.stor_cd=masteblk.store_cd
    when i query from master block , ALL detail blocks ITEMS are displaying. but when i query again among detail block items then, no record found base on query field(detail blk: item_cd which is base table field).
    when i query in detail block for all records then Every time only one item display with same item_cd...
    if further some info required, plz mention

Maybe you are looking for

  • How do I delete Twitter drop-down menu suggestions?

    When I go to log into twitter (on chrome, on a mac) there are suggestions that come up in a drop down menu, but how do I get rid of them? I tried shift+delete but it doesn't work. Neither does double clicking. Help. (P.S. I did it by accidentally put

  • Can i buy a case for my macbook pro late 2011 that is for retina display macs?

    i want to buy a case for my macbook because its starting to get more scratches at the bottom. i was thinking about getting this one: http://www.amazon.com/GMYLE-Turquoise-Rubberized-Transparent-Protective/dp/B0098 USJJ2/ref=sr_1_1?ie=UTF8&qid=1379609

  • Approval for Over receipt GR

    Hi Experts, My client want to restrict Over receipt of goods. He want to trigger approval procedure for this scenario. e.g PO Qty = 10, GR Qty = 11 , System should not allow user to post GR. System will trigger approval procedure & if authority appro

  • How to set and read a variable in a UIX page

    In a similar fashion to how JSP works, I need to set a variable if a certain condition occurs at a specific processing point in my UIX page, and then conditionally create output in the page based on the value in my variable. How can this be done in U

  • User Mode in ARD

    I am trying to figure out how to limit the access of ARD on an admin user mac account. I have a user that logs into his computer as an admin user. He needs access to only a few other computers on the network (to access applications - ie. download ema