Quick question about System Change Number(SCN) in FlashBack Query topic

i know tht we can get the SCN of the database using flashback concept as follows
SQL> execute :myvariable:=dbms_flashback.get_system_change_number();
PL/SQL procedure successfully completed.
SQL> print myvariable;
MYVARIABLE
451578
for example i made some insertions into a table after this and commit is executed. If i want to rollback this transaction thn i can use
SQL> execute dbms_flashback.enable_at_system_change_number(:myvariable);
PL/SQL procedure successfully completed.
but what if i dont know the SCN of the database before the transaction(insertion in to the table). If i want to rollback the database to state where i don't know the SCN of that particular state, thn how can i do tht.
i know tht we can do it using timestamp method....but i want to know how we can use this SCN concept in this situation.
Thanks in advance....

Maybe you can use [ FLASHBACK_TRANSACTION_QUERY|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4186.htm#i1628130] view .

Similar Messages

  • Quick Question about Transposing/Crosstab SQL or PL/SQL query

    Hi All,
    Looking for how to transpose rows into column in SQL and/or PLSQL
    I've got thousands of rows in the format
    phone_no Code
    4161231234 A
    4161231234 B
    4161231234 C
    6471231234 A
    6471231234 B
    6471231234 C
    need to transpose this to
    phone_no Code_1 Code_2 Code_3
    4161231234 A B C
    6471231234 A B C
    Think max number of codes for phone_no is something like 10.
    Would appreciate if anybody gave guidance or direction.
    Cheers,

    Again Posted on another theard
    Sorry wanted to add 1 amendment as well in terms of Question 2)
    First Question 1)
    phone_no Code
    4161231234 A
    4161231234 B
    6471231234 A
    6471231234 C
    6471231234 D
    need to transpose this to
    phone_no A B C D
    4161231234 Y Y N N
    6471231234 Y N Y Y
    New Records such as
    6471231234 E would be appending later therefore the max number of codes for phone_no is dynamic
    Question 2)
    I also need the ability of the above table to add values of a third colum into the cross tab
    phone_no Code No_of_codes
    4161231234 A 2
    4161231234 B 1
    6471231234 A 3
    6471231234 C 1
    6471231234 D 5
    Transposes to
    phone_no A B C D
    4161231234 2 1 0 0
    6471231234 3 0 1 5
    and again
    New Records such as
    6471231234 E 7 would be appending later therefore the max number of codes for phone_no is dynamic
    Thanks for any help!!

  • Quick Question about Transposing/Crosstab SQL or PL/SQL query Version II

    Hi All,
    2nd time I'm asking this but a little different
    Looking for how to transpose rows into column in SQL and/or PLSQL but use the transpose into column headings.
    I've got thousands of rows in the format
    phone_no Code
    4161231234 A
    4161231234 B
    6471231234 A
    6471231234 C
    6471231234 D
    need to transpose this to
    phone_no A B C D
    4161231234 Y Y N N
    6471231234 Y N Y Y
    New Records such as
    6471231234 E would be appending later therefore the max number of codes for phone_no is dynamic
    Would appreciate if anybody gave guidance or direction.
    Cheers,

    Hi,
    If the number of columns is unknown, but within a known bound, then you can do something like this:
    WITH     got_jnum    AS
         SELECT       deptno
         ,       job
         ,       sal
         ,       DENSE_RANK () OVER (ORDER BY job)     AS jnum
         FROM       scott.emp
    SELECT       deptno
    ,       TO_CHAR (SUM (CASE WHEN jnum = 1 THEN sal END), '99999999')     AS job_1
    ,       TO_CHAR (SUM (CASE WHEN jnum = 2 THEN sal END), '99999999')     AS job_2
    ,       TO_CHAR (SUM (CASE WHEN jnum = 3 THEN sal END), '99999999')     AS job_3
    ,       TO_CHAR (SUM (CASE WHEN jnum = 4 THEN sal END), '99999999')     AS job_4
    FROM       got_jnum
    GROUP BY  deptno
        UNION ALL
    SELECT       NULL                                   AS deptno
    ,       MIN (CASE WHEN jnum = 1 THEN LPAD (job, 9) END)     AS job_1
    ,       MIN (CASE WHEN jnum = 2 THEN LPAD (job, 9) END)     AS job_2
    ,       MIN (CASE WHEN jnum = 3 THEN LPAD (job, 9) END)     AS job_3
    ,       MIN (CASE WHEN jnum = 4 THEN LPAD (job, 9) END)     AS job_4
    FROM       got_jnum
    ORDER BY  deptno     NULLS FIRST
    ;Output:
    .    DEPTNO JOB_1     JOB_2     JOB_3     JOB_4
                 ANALYST     CLERK   MANAGER PRESIDENT
            10                1300      2450      5000
            20      6000      1900      2975
            30                 950      2850See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=4051662&#4051662] for context.
    As mentioned there, String Aggregation is another possibility.
    If the number of columns is completely unknown, then I see your options as:
    (1) String Aggregation
    (2) Dynamic SQL
    (3) Wrapping (See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3527823])

  • How to skip or edit scn (system change number) for brarchive

    hi experts,
    I have searched for procedures but didnt find any accurate solution. I wanted to skip the scn or the system change number for my brarchive. I have manually transported my files in the DR site because of seems to be FTP problems. I have to skip those redologs which i have already transfered. How am i suppose to do these? I'm looking forward to a textfile or control file wherein i could edit the number of the next redolog to process or sql commands or something?
    Thanks in advance.

    Still not sure what exactly your problem is.
    You transferred redologs; are they still available in their original oraarch location?
    If no : See my answer above. Did that many times myself.
    If yes : Log files will be copied by brarchive as always. Make sure that no harm will be done if they are overwritten at a place where they already exist, and where they maybe currently are processed by another program!
    regards

  • System Change Number

    hi
    i know that each transaction that is committed is given a system change nunber...i saw in the
    Oracle 9i upgradation book and it was talking about the Check point system change number....i
    know about SCN but this thing has created some ambiguities in my mind...so is there anyone
    who could explain that what is Check point SCN....and another thing that is introduced in
    Oracle 9i is Row level SCN and previously SCN was Block level but still default is Block
    level and wqe can tell at Table creation that what should be used...whether Block level or
    Row level....
    kindly explain if someone could and also tell the whole functionally of SCN in database
    Regards

    Salman, as far as I know the checkpoint SCN is just the SCN number at the time of checkpoint.
    Also Oracle has had both block level and row level SCN numbers for some time. When a block is accessed and updated via indexes the row level SCN is generated while a full table scan just uses a block level SCN. This is a performance gain for the full scan that does not have to perform a row by row check.
    If you were to refer to the specific manual, topic, and section you are having a problem understanding I or another poster may be able to discuss the material with you.
    HTH -- Mark D Powell --

  • A quick question about WebDynpro SLD and R/3 with concurrent users

    Hello ,
    I have a very quick question about Webdynpros and SLD connecting to an R/3 system, when you configure a webdynpro to connect to an R/3 system using SLD, you configure a user name and password from the R/3  for the SLD to use. What I would like to know is when I have concurrent users of my webdynpro, how can I know what one user did in R/3 and what another user did? Is there a way for the users of the web dynpro to use their R/3 credentials so SLD can access the R/3? Like dynamically configuring the SLD for each user?
    - I would like to avoid leaving their their passwords open in the code ( configuring two variable to get the users username and password and use these variables as JCO username and password )
    Thanks Ubergeeks,
    Guy

    Hi Guy
    You will have to use Single Sign On to achieve this. In the destination you have defined to connect to R/3 , there is an option to 'useSSO' instead of userid and password. This will ensure that calls to R/3 will be with the userid that has logged into WAS. You wont need to pass any passwords because  a login ticket is generated from WAS and passed on to R/3. The userid is derived from this ticket.
    For this to happen you will have to maintain a trust relation ship between R/3 and your WAS ,there is detailed documentation of this in help files. Configuration is very straight forward and is easy to perform
    Regards
    Pran

  • QUICK QUESTION ABOUT PORTS

    Hi, I have a quick question about port forwarding/mapping. My question, lets say I am running MSN messenger, who's ports are 6880-6900. But lets say I am running a torrent application or something else that requires those ports. If both applications were running at the same time, would this cause interference with them on the same ports or now. Thanks
    Nathan

    Normally, only one application can listen to a specific port number at a time. If MSN is grabbing those 21 ports then your torrent app won't be able to run.
    However, most apps don't work that way - even if they use multiple ports, they don't use them all at the same time, so MSN might use 6880 when it starts up, leaving the others open for other applications to use if needed.
    Only experimentation will answer that one.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Quick question about making system calls

    hello all
    i have a simple quick question regarding making system calls. Basically I want to mimic the command "system" for perl. I am not quite sure how to do this for java.
    any feedback would be appreciated.

    look at:
    java.lang.RunTime

  • Quick Question about Cisco 3560 and the Web Device Manager

    Alright, I have a quick question that I am curious about but I haven't found any information
    about it.
    When I log into my Cisco 3560 using the web portal to get to the Device Manager. Below the
    diagram of the switch, then under the Dashboard there is section called Switch
    Health, Port Utilization.
    Under the Switch Health there is Bandwidth Used, Packet Error. Those two options just sit
    at zero and do not move. The Port tilization graph is also sitting at zero.
    Is there a way to make them functional?

    Anyone notice performance increase or decrease of their HD when using the nVidia IDE SW drivers?  particularly with a 74GB Raptor?  I've also heard of burner issues when installing the IDE SW but have not used my burner yet.

  • IMovie - quick questions about video files when importing and optimizing

    Hi, have some quick questions. I think they are simple.
    1. When I import a video (from say iPhoto), where does it get "Move" or "Copy" to?
    2. Why would I want to do "Copy" instead of "Move", because isn't it then taking up more space?
    3. I'm wondering if after I optimize a video, I can stash away the original (non-optimized video that I either "Move"d or "Copy"d earlier) into an external hd.
    4. By the way, what is the new file name of the optimized video?
    Though things are working fine in iMovie and iPhoto, I'm trying to manage hard disk space, and hope answers to these questions will help.
    Do you guys have a guideline on how to manage hard disk space when it comes to iphoto and imovie?
    Thanks.

    As has been suggested you can encourage people to download QuickTime player by doing something like this...
    http://www.mirroroftheuniverse.com/Songs.html
    You can also present your songs like this...
    http://roddymckay.com/Satellite/JukeBox.html
    This is a SnoCap jukebox and you need an account to use it but you'll get the link to ESnips on the above page.
    A 3 minute song has a file size of about 30 Mb in AIFF format. Converting it to MP3 reduces it to about 3.5 Mb and M4A to about 5.5 Mb.
    iTunes will do these conversions for you and M4A is far superior to MP3 as far as sound quality is concerned.

  • Quick Questions about the New T530

    With the T530 finally showing up online for those of us in the U.S., I have thrown it into the pool of models I am considering and comparing it to the T520, but it is getting very hard to find information about it. Here are my top questions about it that I can not find answer to.
    #1: Can the backlight on the keyboard (if you choose to get one with it) be toggled? If so, would it be through bios, a key combo, or software?
    #2: Will accessories for the T520 be compatible with the T530? Including the 9-cell and the slice?
    #3: Because this is a new item, and there might be high demand, is there a possibility of shipments bottlenecking? I.E.: if I buy one right now, will my order get postponed multiple times and take months?
    Sorry if these answers have already been answered elsewhere, but I really did try (used Google and the forum search) to find the answers before posting. Plus, I'm sure there are a few people like me trying to decide between the T520 and Ivy-equipped T530, so maybe this thread will help them too.

    joshua144,
    This is a bit outside my area of expertise, but I don't think the slice battery from T420/T520/W520 generation will work on the new systems like T430/T530/W530 which require battery authentication.
    Check the tabook  http://www.lenovo.com/psref/pdf/tabook.pdf  to know which battery options are supported on which systems.  And note that the slice battery option for T520 is different than the slice battery option for T530.
    Just because the 28++ battery (from your link) is backwards-compatible with the older systems, does not mean the older batteries like 27++ are forward-compatible with the new systems.
    As for your other question about FN and CTRL, the FN button is still on the outside of the keyboard just like ThinkPad has always been.  And there is still the BIOS option to swap CTRL and FN.

  • Two quick questions about Library after moving beginning on a new computer

    Hi there,
    I just moved from Windows to Mac, meaning I had to move my iTunes library from the old PC to my new MBA.
    Just a couple of quick questions.
    1. When I started iTunes on my new Mac, in the preferences I directed the media folder to the folder with all my itunes music/podcasts etc, and then I imported the Library XML file.  Is this incorrect? Should I have imported a different file? Should I have used the itl file instead? 
    If so, should I delete the library and start again?  (if this is the case, please suggest the best way of doing this without affecting my media)
    - a kind of sub-question to this one:  some of the media files arent showing up in the iTunes library, but they are in the media folder on the ext HDD.  Is there a way I can find out which ones havent been recognized by iTunes?  Whats the best way of getting them in to my library?
    2. Pretty much half of my podcasts have not been loaded in the new iTunes.  The ones that havent were ones that I subscribed to on my iPhone, whereas the ones that show up in iTunes were ones I downloaded from iTunes.  When I connect my iPhone and sync it with iTunes, will those podcasts show up in iTunes?  Or is there a risk that they will be deleted from my iPhone?
    Cheers,

    The .xml is lacking some information such as ratings, date added, and play count.  Using the .itl includes this information but cannot be imported using the method you did.
    A complete library is everything in the iTunes folder.  By using the method you did you left the artwork behind in the artwork folder on the other machine.
    Selecting the media folder in preferences does not get iTunes to recognize the media.  All it does is tell iTunes to start storing new media in that location.
    Using the method I outlined nothing will be missed (with the exception of WMA) because you aren't rebuilding your library, you are using the one that already exists.
    You don't have to re-copy everything as long as you get the stuff you missed and re-assemble it all as it was before except not on the Mac.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • Quick question about Quicktime media keys.......

    I had a question about encoding video and media keys. It seems to me that the only codec that allows you to encode it with a media key is Sorenson (Sorenson 3 I think). Why are they the only ones that are enabling that in their codecs? Is it kind of a dying technology or practice? I've experimented with Sorenson 3 and Sorenson Squeeze trials and, even though it looks ok, it simply doesn't stack up to others like Apple's H.264 or open-source x264 or even Xvid. I guess I wish there were a way to be able to use media key options with all the new H.264 codecs. Is it possible to do that, either with Xcode or AppleScript? Any help would be greatly appreciated!!

    QuickTime has supported 'media keys" since version 3 but you can only add them using the third party software.
    You would be better served by contacting Sorenson and asking them about their support for newer codecs.

  • Quick Question about fade effect

    Quick Question:
    If I wanted to add a Fade Effect from one state to another
    when a button is pressed.
    How would I do that within the code?

    quote:
    Originally posted by:
    atta707
    You can do something like on the click of the button:
    var fader:Fade = new Fade(targetUIComponent);
    fader.duration = 1000;
    fader...;
    fader.play();
    or listen for currentStateChanging event and write the same
    similar code.
    or define transitions from one state to another like:
    <mx:Transition id="toOneOnly" fromState="*"
    toState="OneOnly">
    <mx:Sequence id="t1" targets="{[p2]}">
    <mx:Iris showTarget="false" duration="350"/>
    <mx:SetPropertyAction name="visible"/>
    <mx:SetPropertyAction target="{p2}"
    name="includeInLayout"/>
    </mx:Sequence>
    </mx:Transition>
    Hey,
    I would like to use the "transition from one state to
    another", but if you can explain each part for me that would be
    helpful.
    If you can comment on each line of that code that would help
    thanks

Maybe you are looking for

  • Error in transaction MB90

    Hello All, I'm using the transaction MB90 and I try to view a Z form but appear next error 'Form Zxxx language EN is not active and has no errors' I don´t know why happend it because the form is activated and contain any errors. I don´t transport any

  • What is the meaning of "(MM)" in ipad (4th generation) wifi   cellular (mm) ?

    What is the meaning of "(MM)" in ipad (4th generation) wifi   cellular (mm) ?

  • Image Sequence Issue

    I've got some large pictures I've been asked to make into a sequence and retain as much of their quality as possible, they will be used in a PDF plan report. I started with Flash but it couldn't handle the full size images (5184x3456 - 72dpi). I've m

  • Change pointers dor LQUA table.

    I have a requirement to send stock information when ever there is an update in LQUA table for specific conditions.  Can I have change pointers set up on LQUA table. So when ever there is a new material movement posted in SAp I have to create an Idoc

  • Removing special characters

    Hi, I have to remove special characters from string and replace it with space. Kindly help its urgent. Thanks