Restoration of specific lines.

Hi all

DB: 11.2.0.3.0,

Is it possible to play only inserts recovery?

For example, I inserted 10 rows in a table, and in the same table, I insert more than 100 lines. and I need to restore only 100 lines, if I need.

Thank you

Are you talking about this?

SQL > create table t (n number);

Table created.

SQL > insert into t select object_id from dba_objects where rownum<=>

10 rows created.

SQL > savepoint first10;

Created backup point.

SQL > insert into t select object_id from dba_objects where rownum<=>

100 rows created.

SQL > select count (*) t;

COUNT (*)

--------------------

110

SQL > restore to first10;

Complete restoration.

SQL > select count (*) t;

COUNT (*)

--------------------

10

Tags: Database

Similar Questions

  • How to determine a specific line in the table clicked on

    Hello-

    I need to determine the specific line of a table control that is right-mouse-clicking.  I think that this is possible by using the context Menu Activation? event for the control of the table and get the vertical coordinate in the Coords filter options.

    He is performing experiments to determine the vertical amplitude of each row in the table, or maybe in determining the width of a line and using a linear relationship to determine the possible range of the following lines.  Do you feel it is the best strategy or is it maybe an another easier way to get this information?

    Thank you

    Don

    You can use the CtlRef with the Point in the array to the method line for the information.

    Ben64

    I was too slow to respond...

  • How do I script in DIAdem to include specific lines of code (similar to .ini in LabVIEW files) based on the computer/user?

    I took Basic training courses so DIAdem Advanced and have been scripting for several months.  I am interested in how to include specific lines of code based on the computer.  Told me it would be similar to .ini in LabVIEW files, although I've never used myself .ini files.

    Hi Karen,.

    What do you mean by "includes the lines of code?  Do you mean what happens when you run a command 'ScriptInclude()' or 'ScriptCmdAdd()' in a tiara VBScript?  Or do you mean that you want to run several lines as DIAdem begins, similar to 'ScriptStart() '?

    What do you mean by "computer-based?  Do you mean you want to implement different batch files on different computers, but you are still using the same file (named) command on each target computer?  Or do you mean that you want to implement the same command on all target computers file, but you want different commands to run this file based on the computer on which you are.  In the latter case, how do you determine computer on which you are on - MAC address, logged in user name, or what?

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • specific line of reading a file

    is there a VI to read a specific line of a csv file. I have a csv file that is too large to load and unfortunately whlle spreadsheet file reading, is useful in some cases, you can not specify which row to start from, it can begin in the first line.

    I saw a lot of other suggestions on recent discussions, but none of them are a convincing solution.

    It is absolutely wrong to say that reading worksheet cannot begin until the first line. There is an entry called 'start reading offset '.

    Reading in blocks is to use this with a shift register. For example, if you wanted to read 1000 rows at a time, you must specify that the number of lines to read and the release of 'brand after reading' would be connected to a shift to the right and left, register wired to the "start of playback. The shift register may be initialized to 0.

  • How can I change my code the method to set a specific line id in my lov as a default?

    Mr President.

    How can I change my code the method to set a specific line id in my lov as a default value instead of the first value?

        public String defaultDebit() {
    
    
           String debit = (String)getAttributeInternal(DEBIT);
           if (debit == null) {
              COAViewRowImpl coaRow = (COAViewRowImpl)getDebitView1().first();
              if (coaRow != null) {
                 debit = coaRow.getAcctId();
              }
           }
           return debit;
        }
    

    Concerning

    You can see the below example code. This code assumes a view attribute named AcctName and the code returns the AcctId when the AcctName is DEFAULT_DEBIT.

    public String defaultDebit() {}

    String output = (String) getAttributeInternal (DEBIT);
    If (flow == null) {}
    getDebitView1 (.reset ());
    While (getDebitView1 () .hasNext ()) {}
    COAViewRowImpl coaRow = (COAViewRowImpl) getDebitView1 () .next ();
    If (coaRow! = null) {}
    If (coaRow.getAcctName () .equals ("DEFAULT_DEBIT"))
    flow = coaRow.getAcctId ();
    }
    }
    }
    return flow;
    }

    Let us know if this does not work in your case.

    Thank you

  • Go to a specific line on the loading of the page

    i was working on JDeveloper 11.1.2.3

    How I navigate to a specific line on the loading of the page

    Concerning

    inside the workflow task Insert method call before your page and inside the method, you can set the line

  • Get a specific line of an iterator when loading of the page

    Hi all
    I m new on JDeveloper/Adf and I have a problem with that:
    I have an iterator that contains a few lines extracted from the base and I want to show the information of a specific line when I load the page. I get the values that identifies my line of parameters.
    What I want is to define an action such as 'Next' or 'Previous' in the definition of page my .jsf that I can use to get a specific line. Then invoke this action using 'invokeAction.
    I appreciate if anyone can help.
    Thanks in advance...

    Just played around with it. The carousel component does not set the current line automatically. You must add a spinListener as

    public void onSpin(CarouselSpinEvent carouselSpinEvent) {
                   List currentSelectedKey = (List) carouselSpinEvent.getNewItemKey();
    RichCarousel carousel = (RichCarousel) carouselSpinEvent.getSource();
                    CollectionModel componentModel =
                                  (CollectionModel) carousel.getValue();
    JUCtrlHierBinding carouselTreeBinding =
                       (JUCtrlHierBinding) componentModel.getWrappedData();
                    JUCtrlHierNodeBinding selectedCarouselItemNode =
                   carouselTreeBinding.findNodeByKeyPath(currentSelectedKey);
                    DCIteratorBinding dcIterBinding =
                                 carouselTreeBinding.getIteratorBinding();
                    dcIterBinding.setCurrentRowWithKey
                       (currentCarouselItemKey.toStringFormat(true));
    }
    

    to set it by code.

    Timo

  • Change specific line when you click the button on the table of the ADF

    We have a table column that contains 3 columns contain the adf (EDIT) button for each row.
    etc. click on Edit I want to change this specific line and ranks should be read only.

    Hello

    even if you use ADF you can work with the row index. You could use an af:clientAttribute and add context information to renderers of cell, which could also be the PK. Then, you use a setPropertyListener to define an attribute of scope memeory with the value of the button clicked (the index of the line or the PK ID line). During the re-rendering of the table, you will return a bean managed of the readOnly cell renderer property and make sure that the current line (#{line}) Pk is the same one that you saved on the button click. If so, you return true if the row in the table is editable

    Frank

  • Refresh the components within a specific line of an af:table programmatically

    How do I refresh the components within a specific line of an af:table programmatically without refreshing the entire table? _

    I have an af:table to display a view read-only object. There is a button change in the table by calling an af:popup, where the user can update the information and click on a submit button to commit its changes.
    The action of this button property is a method in a holder in the summer where
    -1: a stored procedure is called to update several tables (related to my read-only VO).
    -2: the VO is re-interviewed (refreshQueryKeepingCurrentRow() VO.)
    -3: updating of the whole table (AdfFacesContext.getCurrentInstance () .addPartialTarget (myTable))

    Is it possible to programmatically refresh some components of the current row in the table without refreshing the entire table (point 3)?

    I tried to play with the property "partialTrigger" to af: outputText (table: column: outputText), without success.

    Thank you

    Nicolas

    OK, that's a very clear answer, thank you.

    Now, first do a little optimization:

    if(!StringUtils.isStringEmpty(results) && results.equals("TRUE"))
    // should be
    if ("TRUE".equals(results))
    // since it's faster, simpler and requires one less dependency
    

    For your use case, you can say you want to always refresh the line, then you could link the table in your backing bean, retrieve the selectedRowKeys and then set the key for the current line on the model in the collection before adding the partial target. So, something like:

    Set selectedKeys = table.getSelectedRowKeys();
    assert selectedKeys.size() == 1;
    Object old = table.getRowKey();
    try
    {
        table.setRowKey(selectedKeys .iterator().next());
        addPartialTarget(outputText);
    }
    finally
    {
        table.setRowKey(old);
    }
    
    

    p.s. I checked the table rendering code to be sure and partial updating of the contents of the line must be possible without refreshing the entire table.

    Kind regards

    ~ Simon

  • How to check a restoration of specific "media_handle".

    Hello community!


    I need help. I'm trying to reproduce a PROD DB to the TEST environment with rman dual. The beginning of the script to function properly and in fact, is able to restore the controlfile she needs for the double, but when he begins to restore the data files that fails because not found in the NB the last backups_set layer that contains the data files:


    channel ch1: from the restore backup set data file

    channel ch1: specifying datafile (s) to restore from backup set

    channel ch1: restore datafile 00001 to /TEST/orabd1/datafile/system_PROD_01.dbf

    channel ch1: restore datafile 00002 to /TEST/orabd1/datafile/sysaux_PROD_01.dbf

    channel ch1: restore datafile 00003 to /TEST/orabd1/datafile/undo_PROD_01.dbf

    channel ch1: restore datafile 00004 in /TEST/orabd1/datafile/users_PROD_01.dbf

    channel ch1: reading of the element of backup 62qsd2ae_1_1

    channel ch1: ORA-19870: error when restoring the backup 62qsd2ae_1_1 piece

    «"ORA-19507: failed to retrieve the sequential file, handle ="62qsd2ae_1_1", parms ="»

    ORA-27029: skgfrtrv: sbtrestore returned error

    ORA-19511: error received from layer media manager, error text:

    Not found in the <62qsd2ae_1_1> NetBackup Catalog backup file

    switch to the previous backup

    I'm testing only the restoration of the data files in the "media_handle" which gives me this error, because NB administratos tells me that this copy is in NB device. But I'm not able to test the restoration of this handful of media:

    I try the following:


    RMAN > run

    2 > {}

    3 > allocate channel ch1 device type sbt PARMS 'ENV =(NB_ORA_CLIENT=tc_jup) ";

    4 > Send 'NB_ORA_POLICY = TC_BD_JUP_2, NB_ORA_SCHED is Full_Diario';.

    5 > restore datafile 4 of '62qsd2ae_1_1';

    6 > free channels ch1;

    {7 >}

    allocated channel: ch1

    channel ch1: SID = 145 device type = SBT_TAPE

    channel ch1: Veritas NetBackup for Oracle - version 7.6 (2014042414)

    command sent on the channel: ch1

    From restoration to January 27, 16

    output channel: ch1

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the restore command at 27/01/2016 11:37:41

    RMAN-06509: single file SPFILE or control can be restored from AUTOMATIC backup

    How can I test that I am able to restore this handful of specific media files?

    Thank you very much in advance,

    I happened to see now that you use Netbackup 7.6

    A couple of things to check:

    (1) ensure that NB administrators install an authorization file that allows to restore the backup to the source to the target.

    This file must exist on the media server install_path\Netbackup\db\altnames\. to content.

    or the install_path\Netbackup\db\altnames\No.Restrictions file must exist on the media server.

    (2) make sure that you use the source client in the NB_ORA_CLIENT on the RMAN channel.

    AJ

  • A user to return to a specific line on a report.

    Greetings,

    On APEX version 4.0.2.00.07. Soon get to 4.1

    I have a report that contains more than 100 lines on it. The report has a link that takes the user to a detail page. The user scroll down to line 90, clicks the link to edit this line of data, and then saves the data and refers to the report. They want the report on the position of line 90, not rank 1 when they come back to him. I think it's possible in the APEX. And I hope not too difficult. How would I go to do this?

    Thanks in advance for your help.

    Also, I apologize if this was already asked and answered. I can't find anything on a search.

    Tony

    >

    Hi Tony

    I have a report that contains more than 100 lines on it. The report has a link that takes the user to a detail page. The user scroll down to line 90, clicks the link to edit this line of data, and then saves the data and refers to the report. They want the report on the position of line 90, not rank 1 when they come back to him. I think it's possible in the APEX. And I hope not too difficult. How would I go to do this?

    Also, I apologize if this was already asked and answered. I can't find anything on a search.

    I'm surprised. This used to be a very frequent. I suppose that interactive reports and the inexplicable current fetish for tabular forms made it less necessary.

    As Andrew says, it can be done using an anchor element (although historically using the attribute name rather than id - where he was a named anchor ):

    
    

    However, in modern browsers a specific anchor is not required: the value of an attribute id on an element can serve as a link URL fragment identifier .

    There are 2 parts so to make this work:

    1 Add the unique id for each row in your report attributes.

    As you already have links on each line it is convenient to include the id attribute using the attributes of link property, with the PK (or all identifying unique that you use in the link) as the value of the id . Using an alphabetical prefix is recommended for compatibility with valid ID HTML inheritance rules:

    id="r-#REPORT_PK_COLUMN#"
    

    2. on the detail page, add identifier fragment required to the URL used to return to the report page.

    Assuming you are using branches to do this, change the target Type to "URL" rather than "Page in this Application" and build the URL to return to the report page. The fragment identifier is a "#", followed by the prefix of your use of the IDs, followed by the reference to substitution string to the agenda of the detail page containing the unique ID:

    f?p=&APP_ID.:1:&SESSION.::&DEBUG.:::#r-&P2_PK_ITEM.
    
  • Creating a spiral of a specific line length

    Hello

    We need create a line of VERY specific length that must be part of a spiral. I can use the spiral tool in Illustrator, but I have no idea of how to determine the length of the segment that it is created with. Any ideas?

    Thank you

    ---------S

    Information document > object will give the length of a path. Draw a couple and try to scale to get the length you need.

  • How to restore all the lines after you have inserted by OracleBulkCopy()

    Hello

    I tried to restore an outer transaction and also tried to abort OracleBulkCopy() but it is still inserted all the lines. Someone knows how to do this?

    Case 1: Failed. Any line inserted in any case.

    OracleConnection connection = new OracleConnection;
    connection. Open();
    OracleTransaction trans = connection. BeginTransaction();
    OracleBulkCopy bulkCopy = new OracleBulkCoopy (connection, OracleBulkCopyOptions.Default);
    bulkCopy.DestinationTableName = "SomeTable";

    bulkCopy.WriteToServer (SomeDataTable);
    TRANS. Rollback();

    Case 2: Use OracleRowsCopiedEventHandler delegate and in the reminder set Oracle.RowsCopiedEventsArgs.Abort to true and then restore on the transaction in the catch block. Does not work either.

    Thank you.
    Hoang

    OK, I got the answer of the Oracle. Transaction is not currently supported with OracleBulkCopy().

  • Replace the string on a specific line

    Hi everyone thanks in advance for your time.

    I have almost finished a project, (a software to manage the booking of hotel rooms and a database of passengers).

    I made a function that writes a .txt file a cluster with some personal information string type fields, each field is separated by tabs, and each client separated by a line news.

    Example: name address phone etc.

    Robert xxxxxx yyyyyyy

    Patrick xxxxxx yyyyyyy

    Mila xxxxxx yyyyyyy

    Now I don't know how I can do to perform a search by name and to be able to change each field.

    Example:

    If I search for Patrick, I want to be able to change the address or phone number or any other field.

    I know how to search in a text file, until I reach the word, but I don't find a way to change the field and write once again the information in the same file in the same line of origin.

    Any contribution will be great! Thanks again.


  • Add data at the end of a specific line in the text file

    Hello

    I'm trying to add data at the end of the last 4 lines of the text file attached with the ' table to add.  4 rows (422.5800 entry), I would add the first entry of the 'Array to add' entry, on the 5th line to add the second entry of the 'Add picture' and so on.  How can I do this?

    Any help will be appreciated.

    Sincerely,.

    hiNi.

    After re-reading your post, I think that's what you really want to start adding after the first 4 rows.

  • Maybe you are looking for