Trying to recover a database using HTTPService sequence number

I try to return a sequence number of a database and assign it to a variable "recordID".

When I call the getNextRecordID function with a button, the next sequence number returned ok.

The problem is that each subsequent call to this function returns the same number. Only when I close

and reopen the application needs to change.

Any ideas?

[Bindable]

private var recordID:String;

private void httpResult(event:ResultEvent):void

{

recordID = ";

recordID = event.result.root.sequence.seq;  Sequence.SEQ is returned from the database via xml

}

private function getNextRecordID (): void

{

var getRecordID:HTTPService = new HTTPService();

getRecordID.url = http://.../getNextSeqNo; call to the procedure of oracle database

getRecordID.addEventListener ('result', Httpresultat);

getRecordID.send ();

}

most likely the request is cached by the browser where subsequent requests are back the same number without hitting the server at all. try to add a random number to the url:

random var: int = new Date () .toTime (); or something like that to get ms right now!

getRecordID.url = "http://.../getNextSeqNo? r ="+ random

Tags: Flex

Similar Questions

  • Recover a database using the archivelogs

    We have restored a backup of cold base using avamar from one server to another. All data, controlfiles, pfiles files are in place right after restoration. It is a 9i database. All I have to do now is to recover the database to a point in time which is 3 days after the last cold backup. I have all necessary archivelogs that transferred to destination Ark. Here are the steps that I think we need to do to recover the database using the archivelogs until the point in time with RMAN:

    RUN {}

    BOOTABLE MEDIA;

    RECOVER THE DATABASE;

    ALTER DATABASE OPEN;

    }

    Please let me know if I'm missing something here.

    your third step is able, as sybrand_b said that your DB is already in a consistent state.

    The backup controlfile clause must notify oracle that SNA to controlfile is not common and needs recovery to bring back to the most recent State, is recommended to use the backup controlfile clause if you are recovering from an old controlfile or recreated controlfile.

    Mark post below to roll forward from a cold backup.

    Hemant Oracle DBA blog: RollForward from backup to cold

  • 15 - g013cl: trying to recover a laptop using the recovery of 10 USB windows

    Hello

    My computer son had a virus that can not be deleted, so we saved all of his records and built a 10-recovery windows drive.  I ran it on his computer after he erased the inet 10 failed windows hard disk.  I thought it was a generic load (and yes I check the box when you create the recovery disk to add all files in windows).  It is a place where I can download a factory image?

    Or help with the recovery process. . I have the newspaper eerror of load that I can share

    The f

    JeffKralik

    Hello;

    Let me welcome you on the HP forums!

    I read your post about your problems of recovery and wanted to help.

    HP recovery media is not available for download, instead, you must order the physical support of HP.

    We need the number of detailed PC product to see if these media are available.

    However, if this PC has been upgraded to Win10 a previous OS, the media would restore it to the original operating system, and not to Win10.

    Also, with a PC updated, if all you want to restore to Win10, you can create a Win10 installation media go to this link and do a clean install: http://windows.microsoft.com/en-us/windows-10/media-creation-tool-install?ocid=ms_wol_win10

    Note that when you download and build install media, the default tool corresponding to what is already installed on your PC (as in home for the House, and 64-bit to 64 - bit).  While you CAN change these settings, are NOT.  If you do, the media that results will be different and will force you to enter a NEW product code.

    Good luck

    I'm a volunteer and I do not work for, or represent, HP.
    ========================================================================
    If you feel that my suggestions helped you, please click on the thumbs-up symbol to say thank you!

    If they helped to solve your problem, please click 'Accept as Solution' to help others find similar information.

  • Impossible to connect to my database using net service name

    Hello all;

    I'm trying to connect my database using net service_name, but I get the error message.
    I have an entry in tnsnames.ora and listener.ora.
    Please, help me to crack this error.



    SQL > select name from v$ database;

    NAME

    ORCLTEST


    SQL > grant connect, resource to u1 identified by u1;
    Grant succeeded.

    SQL > grant sysdba to u1;
    Grant succeeded.

    SQL > show the passage of parameter;

    VALUE OF TYPE NAME
    Remote_login_passwordfile string EXCLUSIVE

    SQL > shutdown immediate;
    The database is closed.
    The database is dismounted.
    ORACLE instance stops.


    The DBS directory:

    [oracle@linuxserver dbs] $ orapwd file = orapworcltest password = entries asdf1234 = 3


    export ORACLE_SID = orcltest
    [oracle@linuxserver ~] $ sqlplus/nolog

    SQL * more: Release 10.2.0.1.0 - Production on Sat Mar 9 19:24:22 2013

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    ERROR when you try to connect

    SQL > conn u1/u1@ORCLMYTEST
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux error: 2: no such file or directory


    SQL > conn u1/asdf1234@ORCLMYTEST
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux error: 2: no such file or directory


    Thanks in advance...

    969352 wrote:

    But you should go and get some classes on Oracle OR understand the Oracle documentation otherwise, you won't learn anything ever.

    -Yes. I learn and I work very hard. Few things is not documented ex (even this thread).

    In any case thanks...

    IMO, it's a security risk to allow the connection AS SYSDBA through the network & I never turn on any DB.

  • creation of database using the SQL command * more

    Hello

    This isn't a matter of urgency.

    I learn the Oracle DBA. I have installed Oracle 9.2 in my windows system. And I'm trying to create a database using the SQL command.

    OracleVersion: 9.2
    Windows XP operating system

    CREATE DATABASE suri
    USER SYS identified by manager
    USER system identified by surendra
    LOGFILE GROUP 1 ('F:\Oracle\oradata\suri\redo01.log') SIZE 100M,
            GROUP 2 ('F:\Oracle\oradata\suri\redo02.log') SIZE 100M,
            GROUP 3 ('F:\Oracle\oradata\suri\redo03.log') SIZE 100M
       MAXLOGFILES 5
       MAXLOGMEMBERS 5
       MAXLOGHISTORY 1
       MAXDATAFILES 100
       MAXINSTANCES 1
       CHARACTER SET US7ASCII
       NATIONAL CHARACTER SET AL16UTF16
    DATAFILE 'F:\Oracle\oradata\suri\system01.dbf' size 200M EXTENT MANAGEMENT LOCAL
    UNDO tablespace undots datafile 'F:\Oracle\oradata\suri\undots01.dbf' size 200M
    DEFAULT TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL
    I get the error like below when executing the CREATE DATABASE command.

    ERROR at line 16:
    ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE
    I have validated the syntax but not able to find where is the error.

    Please let me know if you need more details.

    Thanks in advance for your help.


    Kind regards
    Suri

    OracleVersion: 9.2

    Why a so old version (and desupported)? In any case...

    TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100 M EXTENT MANAGEMENT LOCAL default

    .. try change DATAFILE with TEMPFILE.

  • recover the database to a time

    Hello
    10 g R2 on Win 2003 server. In what follows, I can recover my database using RMAN backups:
    RMAN>Run {
         allocate channel t1 type disk;
         restore database;
         recover database;
         sql "alter database open";
    }
    How can I set a time that I want to recover my database?
    For example, I have my backups of that night. My DB blocks at 11 in the morning today and I want to recover the DB as it was at 10:00. How can I indicate this time?

    Thanks a lot before.

    After 2500 messages you should have just searched in the internet

    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14192/flashptr006.htm

    Best regards
    Maran

  • How generations for db in the XSLT file sequence number

    Hello gurus SOA,.

    I have a requirement, please see below

    I am using SOA 11.1.1.6

    Insert a webservice to db, XSLT call, I have 10 items next to the source and 11 items next to the target.

    • Source to target first 10 mappings are performed.
    • Now the requirement is, for the 11th element target we must pass a sequence number to the database targeted, means-(sequence number must be generated for each execution of the XSLT execution)

    How do the last point?

    Can someone help me please

    Hello

    You can pass the sequence number in the 11th element to help. "oraext:sequence-next-val("Sequence name as a string", "Datasource as a string") function.

    Kind regards

    Anshul


  • Creating a trigger to insert delete update with the sequence number

    Hey all,.
    I have two tables. tbl_main, tbl_temp. Whenever a record is inserted, deleted, updated in tbl_main, I need to insert the records in tbl_temp. All field/column names are exactly the same, except that in tbl_temp, I now have a single column by using a sequence number, a column to determine if the record has been updated, remove, modified(hence the codes) and the date when a record has been added to the table.
    So far, that's what I have:

    create or replace
    audit_trg relaxation
    after update or insert or delete ON tbl_main
    for each line
    Start
    If the update can
    insert into tbl_temp (seq_id, idx, ctl, action_taken, date_added)
    VALUES
    (temp_seq.nextval, idx, mke, ctl, sysdate, 'U');
    ELSif INSERTION then
    insert into tbl_temp (seq_id, idx, ctl, action_taken, date_added)
    VALUES (temp_seq.nextval, idx, mke, ctl, 'n', sysdate);
    ELSIF deletion then
    insert into tbl_temp (seq_id, idx, ctl, action_taken, date_added)
    VALUES (temp_seq.nextval, idx, mke, ctl, would be ', sysdate);
    END IF;
    END audit_trg;

    I tried several combinations, but I get many compilation errors. This code looks good or I am the way of track? Thanks in advance.

    Who looks fine for me. What are the mistakes are you?

    Assuming that MKE and CTL are columns in the base table, your INSERT statements will insert either the: new.mke and: new.ctl values or the: old.mke and: old.ctl values in the table. Presumably, you could insert the: new values for inserts and updates, and the: old values for deletions.

    Justin

    Published by: Justin Cave 27 February 2009 16:08

    DOH! Just noticed the error...

  • Synthetic Primary Key (sequence number) vs natural primary key

    I wonder if the sequence number is better than the primary key. I found a few tables only use the sequence number, some tables use the primary key only, and a few tables use both. Can someone give me a clue, one that I use when you create a table? TX in advance.

    Published by: 1B, 3 may 2012 21:07

    I'm not sure I understand the question. I do not understand how it is either / or question.

    Virtually every table must have a primary key. You can either use a primary key natural (something in the data that is unique and immutable) or you would use a synthetic primary key which is filled from a sequence. I strongly suggest using synthetic primary keys generated from a sequence for your primary key.

    Justin

  • Help on recovering database /Restore - no available controlfiles kccpb_sanity_check_2 control file sequence number mismatch

    Hi all.

    I really need your help on this:

    (1) version: 11.2.0.1 EE / Windows.

    (2) database does not start, don't get database.

    Alert.log info:

    Instance of stopped by USER, pid = 3652

    2015-11-22 15:57:19.763000 - 04:30

    I found this after using adrci:

    2015-11-22 15:49:15.727

    SESSION ID: (191.1) 2015-11-22 15:49:15.727

    CUSTOMER ID :() 2015-11-22 15:49:15.727

    NAME OF THE SERVICE :() 2015-11-22 15:49:15.727

    MODULE NAME: (sqlplus.exe) 2015-11-22 15:49:15.727

    ACTION NAME :() 2015-11-22 15:49:15.727

    Informational message:

    Control file 1 has seq 2713995, low 2713994 file # 0

    Error: kccpb_sanity_check_2

    Control file sequence number mismatch!

    fhcsq: bhcsq 2713995: 2714016 cfn 0

    2015-11-22 15:49:15.758

    USER (ospid: 2504): put an end to the instance

    Verification of MOS Note: 435436.1 I must:

    (1) to restore a backup of a controlfile and recover

    OR

    (2) to recreate the controlfile

    OR

    (3) restore the backup data and recovery

    It is a database, that I was not, up to now administer. But:

    (1) I tried from the database with addressed controlfile (the one located in FRA). No luck. (Create pfile from spfile / startup pfile)

    (2) the database is not mount / open. It hangs on the editing process. So I can not issue an alter database controlfile to trace.

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    I found this link: http://gavinsoorma.com/2009/07/rman-recovery-from-loss-of-all-control-files/

    The procedure seems easy, but since this controlfile is not in the current SNA of database (data files, etc.). I'm not sure it if it would work.

    So in short, I think I have an automatic backup controlfile and it's OK. but a little old. I can restore from this copy of CF?

    Please I'm pressed real here, so help will be greatly appreciated!....

    Thanks in advance!

    Best regards, Luis...!

    Hello

    It seems that my options are:

    (1) manual creation of controlfile with open resetlogs option. This option is viable, but risky if we miss a datafile or something GOLD

    (2) restoration of RMAN backup. The thing is that the most recent copy of automatic backup of controlfile is since a few days early (4 / 5 days).

    It seems that you have few options,

    In my opinion, you should start with option 2), but you have logs archived redo and all and all the backups of catalog and perform a restore.

    After, if not works, you must manually create the control files, but you are right, you must carefully on all the data files. Here a log generated in the last level 0 RMAN backup could help you, don't forget the newspaper are all entries of data for backup files.

    I wish to have more ideas to help you, but I have no other.

    I hope this helps.

    Kind regards

    Juan M

  • Recover the database by using cold backup

    Hi all

    One of the table is deleted accidentally by one of our DBA of PROD. We have a backup to cold on a day before.

    Now, we try to restore from the backup to cold. DB PROD is in archivelog and all the archives are in tact.

    The resulting table truncated today at 20:00. We can apply the database until 20:00 so that we can restore the table truncated using cold backup.

    Please find the steps we use to restore below.

    create controlfile

    from the db in State of Mt.

    recover the database;

    It will ask for last log archive when we try to get it back.

    ENV details-

    DB - 11.2.0.1

    Please suggest.

    Thank you

    create controlfile

    from the db in State of Mt.

    recover the database;

    This method is not correct. Here are the four steps for incomplete recovery (which is what you need):

    Mount the database

    restore all data files

    recover the database up to the...

    ALTER database open resetlogs

    Your DBA (who say you was responsible for the error) will be familiar with the routine. Or it should be.

  • How can I restore and recover the database to a different server using RMAN?

    Hello Friend:

    How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.

    That's the two servers. different stored different on each server and a single link, a table library where backup set.

    I can only restore and recover the database of the Rman command. Could you give me a demo?

    Thank you

    How can I restore and recover the database to a different server using RMAN? I want to implement an enviroument which has a different enviroument and different directories.

    That's the two servers. different stored different on each server and a single link, a table library where backup set.

    I can only restore and recover the database of the Rman command. Could you give me a demo?

    Check this box
    * How to restore Rman backups on a different node when the Directory Structures are different [ID 419137.1] *.

  • recover the database unitl cancel using the control file

    I refreshed with db1 db2, copied all the newspapers dbfile and archive to the db2 server and setup/adjusted spfile, controlfile etc on the new db2 server and has
    recover the database unitl cancel using the control file.
    ALTER database open resetlogs.

    Now the customer want to refresh it after 2 days, I wonder of I need only archive newspapers or both? to do the same again?

    Published by: DBA2008 on November 11, 2009 09:49

    Yes, you can 'restore to cancel' several times.

  • RECOVER, DATABASE using backup controlfile until the

    Hello
    in 10g R2, may this work:
    RECOVER DATABASE using backup controlfile until '2009-05-21:12:47:30';
    Thank you.

    GregX wrote:
    In fact, it should say something like this:

    until time ' to_date (May 19, 2009 10:30 "," dd-mm-yyyy hh24:mi:ss') ";

    No, you needn't.
    Doc http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007361
    "+ If recovery up to one hour, the time is always specified using the following format, delimited by single quotes: 'YYYY-MM-' DD:HH24:MI:SS. '. + »

    Nicolas.

  • Recover the database failed after restoration

    Dear people,

    We are trying to restore the RMAN backup on another Linux machine. We did this activity several times. The backup has been taken from a RAC instance and we are trying to restore to RAC. After the success of the restoration of the data files, while we publish "recover the database'; It ends with the following error messages:

    RMAN-00571, RMAN-00569
    RMAN-03002 recover command failed

    RMAN-11003 failure during parsing / execution of the sql statement: alter database recover if necessary until cancel using backup control file

    ORA-19801: DB_RECOVERY_FILE_DEST initialization parameter is not defined

    ORA-00280: change 123123213123213123 thread 1 is in sequence #10787

    Kind regards

    Ali

    ProDBA wrote:

    Dear people,

    We are trying to restore the RMAN backup on another Linux machine. We did this activity several times. The backup has been taken from a RAC instance and we are trying to restore to RAC. After the success of the restoration of the data files, while we publish "recover the database'; It ends with the following error messages:

    RMAN-00571, RMAN-00569
    RMAN-03002 recover command failed

    RMAN-11003 failure during parsing / execution of the sql statement: alter database recover if necessary until cancel using backup control file

    ORA-19801: DB_RECOVERY_FILE_DEST initialization parameter is not defined

    ORA-00280: change 123123213123213123 thread 1 is in sequence #10787

    Kind regards

    Ali

    1. as you have said several times, you performed the restore, then you have not yet checked the parameter above so defined or not?

    2. I hope that its very easy to understand ENGLISH characters

    3 try to correctly set the parameter and size, try again to display the error (since some changes for thread 1 is necessary (hopefully, you gave 123 repeatedly instead of posting of the number of real change in your message))

    -Pavan Kumar N

Maybe you are looking for