Trying to find the last committed SCN

My developers have told me that schema refreshes (export/import) done via DataPump (without using either of the FLASHBACK_* parameters) have caused some sequences to be out of sync with the data in their associated tables. My research into the DataPump documentation directs me to the FLASHBACK_SCN parameter, but the only method I find in documentation to find an SCN is to use DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER to get the current SCN. However, to ensure we resolve the aforementioned issue of out-of-sync objects, I would prefer to use the last committed SCN. Unfortunately, I can find no documentation to suggest how I might derive that value. Can anyone here point me in the right direction for this, or perhaps even provide a solution?
Thank you in advance for your attention, consideration, and enlightened feedback!
Mark C (a.k.a. user621573)

Sequences are database objects but are not really protected by transactions: if you rollback your transaction that doesn't rollbacks sequence numbers. I'm not sure that using some SCN parameters is the solution for Data Pump.
There are known limitations when using old export/import.
I cannot find documentation about Data Pump limitations when dealing with sequences.

Similar Messages

  • I understand many find my iphone app users have this question... I am trying to find the last location of my Iphone before it went off line... The information contained in the app is misleading.. does anyone have advice?

    The information in the app (find my iphone) is misleading. Italing that your device will show its last location for up to 24 hours...

    Even if it does show the last location, that is of little value, once the iPhone is off or restored to factory settings it is untrackable.  It is best to inform your carrier immediately with the IMEI number so they can blacklist the iPhone, if they will provide that service.  Some do, some don't.  Apple will not assist other than maintaining their own records of lost/stolen iPhones.

  • Trying to determine the last occurence of a number within a word string.

    Hi All,
    I am trying to find the last occurence of a number within a string. I have had a quick look at the Java Tutorial and know about lastIndexOf and substring. The thing is I have to test for the existance of the numbers 0-9 within a product code that typically looks like this:
    s1_14G12B
    s1_17G1BA
    s2_24GD
    The only part of the above strings that I am interested in is the letter(s) that follow the very last number, so in the case of those codes presented above, I would like to extract the following:
    B
    BA
    D
    I have written some code that performs a similar operation:
    public class FindPriceCode
      private String priceCode;
      private String[] numberValues = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
      public FindPriceCode()
        priceCode = "s2_71G4BA";
        for(int i=0; i<numberValues.length; i++)
          int location = priceCode.lastIndexOf(numberValues);
    System.out.println("Character " + numberValues[i] + " found at position: " + location);
    public static void main(String[] args)
    FindPriceCode myPriceCode = new FindPriceCode();
    ...finding the location of numberValues string within the given example code. I am now at a loss as to how I can determine the location of the last number occurence (moving right to left) and then build a substring from that number. Any help will be greatly appreicated.
    Thanks
    David

    Hello,
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CutNumberTest extends JFrame implements ActionListener {
         private JTextField input= new JTextField(10);
         private JTextArea result=new JTextArea(10,10);
         char[]numbers=new char[]{'0','1','2','3','4','5','6','7','8','9'};
         public CutNumberTest() {
              super("CutNumberTest");
              setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              JButton cutButton = new JButton("cut number");
              cutButton.addActionListener(this);
              JPanel topPanel=new JPanel();
              JLabel label=new JLabel("Please enter price-code:");
              topPanel.add(label);
              topPanel.add(input);
              topPanel.add(cutButton);
              getContentPane().add(topPanel, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(result));
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent e) {
              char[] code=input.getText().toCharArray();          
              int counter=code.length;
              boolean lastNumFound=false;
              while(!lastNumFound && --counter >= 0)
                   lastNumFound=isNumber(code[counter]);
              result.append(lastNumFound ? "result: "+input.getText().substring(counter+1)+"\n" : "No number found!\n");
         private boolean isNumber(char chr){
              boolean isNumber=false;
              int counter=-1;
              while(++counter < numbers.length && !isNumber)
                   isNumber=numbers[counter]==chr;
              return isNumber;
         public static void main(String[] args) {
              new CutNumberTest().setVisible(true);
    }//copy/paste:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CutNumberTest extends JFrame implements ActionListener {
         private JTextField input= new JTextField(10);
         private JTextArea result=new JTextArea(10,10);
         char[]numbers=new char[]{'0','1','2','3','4','5','6','7','8','9'};
         public CutNumberTest() {
              super("CutNumberTest");
              setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              JButton cutButton = new JButton("cut number");
              cutButton.addActionListener(this);
              JPanel topPanel=new JPanel();
              JLabel label=new JLabel("Please enter price-code:");
              topPanel.add(label);
              topPanel.add(input);
              topPanel.add(cutButton);
              getContentPane().add(topPanel, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(result));
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent e) {
              char[] code=input.getText().toCharArray();          
              int counter=code.length;
              boolean lastNumFound=false;
              while(!lastNumFound && --counter >= 0)
                   lastNumFound=isNumber(code[counter]);
              result.append(lastNumFound ? "result: "+input.getText().substring(counter+1)+"\n" : "No number found!\n");
         private boolean isNumber(char chr){
              boolean isNumber=false;
              int counter=-1;
              while(++counter < numbers.length && !isNumber)
                   isNumber=numbers[counter]==chr;
              return isNumber;
         public static void main(String[] args) {
              new CutNumberTest().setVisible(true);
    Regards,
    Tim

  • Trying to find the prefs for importing text (retainFormat)

    In my (model only) plugin wich only deals with custom data link, I'm trying to find the last chosen user preference for things like 'retainFormat' for importing files.
    What I want is my plugin to do exactly the same as when a text file is dragged from the desktop, but then from my own source.
    Everything works just fine, except for the options in 'IImportManagerOptions'.
    I can't figure out a way to get to these. Is that only available for UI plugins?
    Anyone?
    thanks!

    Thanks Bartek!
    I already looked at that code but didn't get it to work. Messed something up with headers and then jumped to the wrong conclusions...
    Now it works
    Thanks again!

  • How to find the last string value in dynamic object?

    Hi All,
    I am trying to find the last string value in dyanamic objects,Any one have solution for this.
    Ex:
    my data :12347-ebjdone-525-ecgfjf-25236-defdafgdeg
    And i want to show the output is :defdafgdeg
    Any ideas:
    Thanks
    Srini

    For oracle try using oracle function.
    e.g.
    SELECT  reverse(substr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),1,instr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),'-','1'))) from dual
    Object definition might look like:
    reverse(substr(reverse({ObjectName}),1,instr(reverse({ObjectsName}),'-','1')))
    Regards,
    Kuldeep
    Edited by: Kuldeep Chitrakar on Feb 12, 2010 8:12 AM

  • Help find the Last run date from previous month

    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMK

    Welcome to the forum!
    user2931503 wrote:
    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
    Normally, the "previous" month means the month before the current month. In April, the previous month is March.
    By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMKTry this:
    WITH   got_real_date   AS
         SELECT     TO_DATE ( SUBSTR (date_ran, 1, 14)
                   , 'MM/DD/RR-HH24:MI'
                   )     AS real_date
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT     TO_CHAR ( MAX (real_date)
              , 'MM/DD/RR-HH24:MI'
              )     AS last_date
    FROM    got_month_num
    WHERE     real_date     < (
                               SELECT  TRUNC (MAX (real_date), 'MONTH')
                         FROM    got_real_date
    ;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM

  • Trying to find the number of rows in a ResultSet

    I am trying to find the number of rows in a ResultSet, using the following code:
    rs = st.executeQuery(query);
    rs.last(); // to move the cursor to the last row
    System.out.println(rs.getRow());
    However, I am getting this error:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported method: ResultSet.last
    Whats going wrong??

    praveen_potru wrote:
    You might have not used scrollable result set..
    Try like this:
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);rs = stmt.executeQuery(sqlString);
    // Point to the last row in resultset.
    rs.last();
    // Get the row position which is also the number of rows in the ResultSet.
    int rowcount = rs.getRow();
    System.out.println("Total rows for the query: "+rowcount);
    cheersAnd I hope the OP would read it because the thread is a year old.

  • How to re-add the iPhone into the Find My iPhone and than to find the last known possition?

    Hello,
    I've got my iPhone stolen yesterday in the bar.
    In the morning I tried find it by Find My iPhone app but I hit the "remove" button by mistake. Is it possible to reverse this acction even without the iPhone in the hand?
    I need to re-add the iPhone into the iCloud (Find My iPhone) and than to find the last known possition. It's serial number is C3******39D
    Thank you
    Libor
    <Edited bu Host>

    Ringtones are a one-time only download from the store. You will need to connect the device that you downloaded it on to your computer's iTunes and do File > Devices > Transfer Purchases to copy it over to the Tones part of your computer's iTunes library and you can then sync it to your other device(s).

  • Just found Ipad Nano in Big Island Hawaii. Trying to find the owner to return it back. Tell me what is the color, how many songs and your name(its personalize with a name).

    Just found Ipad Nano in Big Island Hawaii. Trying to find the owner to return it back. Tell me what is the color, how many songs and your name(its personalize with a name).

    I only wish that when I called Apple, they would match the serial number with the owner and give me the contact
    Hopefully you left Apple your contact info (name phone #, email address).
    Apple would simply pass your contact to the last registered owner. It would be up to the owner to contact you. As Dave mentioned, Apple will not give you any info (except may to tell you it was or was not registered, but not to who). Turn it on once in a while and maybe they have activated FindMyiPad and a message will pop up (don't need to be logged onto the iPad to a message).

  • Function to find the Last Date of Month One Year Ago - RETURNS ERROR

    I've written sql code which takes a date and finds the Last Day of the Month one year ago. For example,  it takes the date '2015-04-17' and returns the date '2014-04-30'. The code works fine in a query. Now I'm trying to turn this into a function. However,
    when I try to create the function I get the error:
    Operand type clash: date is incompatible with int
    Why is this error being returned?
    Here is my function:
    CREATE FUNCTION dbo.zEOM_LY_D(@Input Date)
           RETURNS date
    AS
    BEGIN;
      DECLARE @Result date;
      SET @Result =  convert(DATE, DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
        RETURN @Result;
    END;
    Thanks for any help you can give.
                     

    Stan,
    Thanks very much- that does the trick. I should have said I am using SQL 2008 so EOMONTH is not available to me. I still don't get why I got an error though, since I was treating a date like a date and not like an int.
    Thanks, John
    I think i found the issue but i do not know why it is causing the issue. i think may be the way dates are treated/stored internally..i think dates are stored as no of days after 0001/01/01 but cannot see how this cwould effect..may be somebody else can through
    some light..... 
    if you make it as datetime it will work,
    if you leave it as date - eliminate adding 1...  you should prefer to use dateadd to add/substract dates.
    try this to understand..
    --removed the +1 in the code
    declare @input date
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)),0)),101)
    go
    --made the datatype as datetime
    declare @input datetime
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
    Hope it Helps!!

  • How to find the Last logon detail of a deleted user?

    I need to find the last logon detail of a deleted user.I have tried with SM20 i got the details,but i coildnt get for few users.Is there any other way to get this?

    Hi Eva,
    Follow below:-
    1. Go to Se16
    2. table name either USH02 or USH04
    3. provide BNAME row as your user name then execute it
    4. you will get all the entries for that user in the next output screen
    5. Check the Column names like
    MODDA 
    MODTI
    MODBE   
    TCODE REPID
    For the Details which you need.
    The descriptions of this columns are as below:-
    MANDT                        
    Client
    BNAME                        
    User
    MODDA                        
    Modification date
    MODTI                        
    Modification time
    MODBE                        
    Changed by
    TCODE                        
    Not More Closely Defined Area, Pos
    REPID                        
    Program Name
    BCODE                        
    Initial password
    GLTGV                        
    Valid from
    GLTGB                        
    Valid through
    USTYP                        
    User Type
    CLASS                        
    User group
    UFLAG                        
    User Lock Status
    ACCNT                        
    Account number
    PASSCODE                     
    Password Hash Val.(SAH1, 160 Bit)
    CODVN                        
    Password Code Vers.
    PWDINITIAL                   
    Indicator: Password Is Initial
    Let me know if you need further help in this.
    Regards,
    Ram

  • I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see t

    I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.

    If you only see the time then that would mean that you see an entry of the current day (today).
    History items from past days should have the date as well in the Most Recent Visit column.
    You should be able to see this changing if you open the last 7 days folder and scroll down.

  • How do i find the last selection OR the highlighted selection?

    When i select some items in indesign i have the option of "command + click" to highlight one of the selections. How would i find that highlighted element in scripting?
    OR
    How would i go about finding the last item selected in indesign.
    I'm trying to write a script that relies on some properties of the highlighted element or the last item selected.
    thanks

    Thanks myDavey. That's not exactly what i was looking for, but it had good information on something else i am working on.
    I found the solution to my problem. That highlighted selection is apparently called the "key object".
    And it can be used in scripting as app.selectionKeyObject. This solved what i was looking for.
    And one can find the last selection by picking the last element in the selection array.

  • I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    Contact iTunes support & request they clear the balance:
    http://www.apple.com/support/itunes/

  • I'm trying to find the download for Adobe Creative Suite that I bought.

    I'm trying to find the download for Adobe Creative Suite that I bought.
    I have it in my order history with the serial clearly displayed, but no download button and it can't be found on the adobe site. I know it's old, but I don't care. I paid for it and I want to use it.

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for

  • Report for GR/IR line items - with PO details - profit center wise

    Hi My client uploaded stock and instead of using MIRO, directly passed the journal entry Consumption To Vendor Now, the original entry of Stock To GR/IR remains. How can I make the GR/IR account nil and also remove the open items in the corresponding

  • Can't launch Cisco Configuration Professional on Windows Vista x64

    The Help is necessary to resole the issue (see subject). Tech enveronment Windows Vista x64 Adobe Reader X ver. 10.1.0 (Russian) Cisco Configuration Professional 2.5 JRE 6 update 27 JRE 6 update 27 (64-bit) Internet Explorer 9.0.8112.16421IS While la

  • Live Video encoder for Mac.  Does it exist?

    Looking to d a live video stream. Would like to use Vp6 I do not think Adobe had a Flash video encoder for the mac. As always, thanks for your time and help. Mike

  • Lost iPod touch

    I know the day and location of losing my device, but when I returned the following day, of course, it was gone. Is there any recourse? Someone told me that it can be "reset" to factory settings by the person who stole it, but I thought you had to hav

  • Back to mac and broadband issues

    Hi all. I have a problem with back to mac on mountain lion on my MacBook. I am trying to access my iMac. However looking in the control panel for iCloud it is saying that I need to turn on unp? Which I have in my router settings. It is now saying bac