Find SCN number of a transaction

Is it possible to find SCN number of a transaction made yesterday?

Hi,
I guess you are using atleast oralce 8i and if your answer is yes you can use oralce new utility called logminer.if you want to know the exact scn of the particular trancation you can use v$logminer_contents view to get the desired scn,but prior of that you need to execute some steps to get your logminer work.
thanks
Alok ....

Similar Messages

  • To find SCN number in standby database with Oracle 9i.

    Hi all,
    1.how to find SCN number in standby database with Oracle 9i.
    note:
    1.it is in mount stage.
    2.oracle 9i.
    regards,
    Jayaprakash.

    Hello;
    I have no Data Guard 9 to review. However I might try this :
    select * from "_DBA_APPLY_PROGRESS";
    OR
    select time_mp,time_dp,  scn_wrp, scn_bas, scn from smon_scn_time;Also found this: ( almost certainly NOT a physical Standby )
    SELECT APPLIED_SCN, NEWEST_SCN FROM DBA_LOGSTDBY_PROGRESS;Best Regards
    mseberg
    Not worth another post but I think v$database on Oracle 9 has these columns only :
    v$database on Oracle 9
    DBID                      
    NAME                      
    CREATED                   
    RESETLOGS_CHANGE#         
    RESETLOGS_TIME            
    PRIOR_RESETLOGS_CHANGE#   
    PRIOR_RESETLOGS_TIME      
    LOG_MODE                  
    CHECKPOINT_CHANGE#        
    ARCHIVE_CHANGE#           
    CONTROLFILE_TYPE          
    CONTROLFILE_CREATED       
    CONTROLFILE_SEQUENCE#     
    CONTROLFILE_CHANGE#       
    CONTROLFILE_TIME          
    OPEN_RESETLOGS            
    VERSION_TIME              
    OPEN_MODE                 
    PROTECTION_MODE           
    PROTECTION_LEVEL          
    REMOTE_ARCHIVE            
    ACTIVATION#               
    DATABASE_ROLE             
    ARCHIVELOG_CHANGE#        
    SWITCHOVER_STATUS         
    DATAGUARD_BROKER          
    GUARD_STATUS              
    SUPPLEMENTAL_LOG_DATA_MIN 
    SUPPLEMENTAL_LOG_DATA_PK  
    SUPPLEMENTAL_LOG_DATA_UI  
    FORCE_LOGGING              ."_DBA_REGISTERED_ARCHIVED_LOG" has a "NEXT_SCN"
    Edited by: mseberg on Dec 19, 2011 10:03 AM
    Edited by: mseberg on Dec 19, 2011 10:29 AM
    Much later
    Also found this :
    select dbms_flashback.get_system_change_number scn from dual;
    Edited by: mseberg on Dec 19, 2011 11:06 AM

  • How i can find out number of transaction code created in last 6 month

    Dear Friends,
    How i can find out number of transaction code created in last 6 month and last used date for each transaction code.
    System - ECC 5.0
    Plz help.
    Thanks,
    Regards,
    Sachin

    Hi,
    As per your query you can find out the list of t-code not to use in last time details in suim t-code.
    Anil

  • How to find the number of users log into ESS for last three months

    Hi Team
    Is there any transaction / Report to find the number of users logged into the ESS and used the payslip tab. Is this possible to find?
    Waiting for hopeful replies.
    Regards
    Bhaskar

    Bhaskar,
    you can use google analytics,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50b94044-7008-2b10-1680-c04e4526367b
    jo

  • How to find Spool number for a 2 steps background job.

    Hi All,
    How to find spool number (and also the background job name ) for a 2 steps background job.
    in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
    Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
    Thanks,
    Shiva.

    Which one creates the spool? (first one I guess)
    What kind of spool? (WRITE, sapscript, smartform, pdf...)
    Do you use special statements like NEW-PAGE, or other things?
    Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...)

  • How to find the number of records per months  in cube

    Hi,
      how to find the number of records per months for my all cubes?
      Can i use the ListCube transaction to find totl number f records per cube monthwise ?
    Jimmy

    Hi,
    Here is a program to generate no of records and list of ODS and Cubes in Active version.Schedule this program in background and create a cube to load this information and schedule to the data from the file generated by the program. Schedule this all per you requirement.
    1.Copy the code into your Z<programname> from Se38.
    2.change the FILENAME in CALL FUNCTION 'GUI_DOWNLOAD' in the program to the location from where you can pick the information to load data to cube(eg Application server).
    3.Save program.
    4.Schedule the program in background as required
    5.Create cube with infoobjects to hold no of records and Infoprovider name
    6.Load this cube based on event after the program job is done.
    Hence you can report on this cube to see no of records in  CUBE or ODS in your box.
    Please find the code below.
    Cheers,
    Kavitha Kamesh.
    types: begin of itabs ,
          tabname type dd02l-tabname,
          end of itabs.
    data: itab type itabs occurs 0 with header line.
    data: counter type i.
    data: begin of itab1 occurs 0,
    tabname type dd02l-tabname,
    counter type i,
    end of itab1.
    DATA: ITABTABNAME TYPE STRING.
    DATA: LENGTH TYPE I.
    DATA: OBJECT(30).
    data: str(6) type c.
    select  tabname from dd02l into table itab where ( tabname LIKE  '/BIC/F%' or tabname LIKE  '/BIC/A%00' )
    and TABCLASS = 'TRANSP' and AS4LOCAL = 'A'.
    loop at itab.
      select count(*) from (itab-tabname) into counter.
      str = itab-tabname.
      if str = '/BIC/F'.
    LENGTH  = STRLEN( ITAB-TABNAME ).
      SHIFT  itab-tabname BY 6 PLACES LEFT.
    ELSEIf  str = '/BIC/A'.
      SHIFT  itab-tabname BY 6 PLACES LEFT.
      LENGTH  = STRLEN( ITAB-TABNAME ).
    LENGTH = LENGTH - 2.
    endif.
      itab1-tabname = itab-tabname(LENGTH).
      append itab1.
      itab1-counter = counter.
      clear itab-tabname.
      clear:  COUNTER.
    endloop.
    *********** itab1
    loop at itab1.
    write:/ itab1-tabname, itab1-counter.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        FILENAME                        = 'c:records.xls'
        FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
        WRITE_FIELD_SEPARATOR           = ','
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab1
    *   FIELDNAMES                      =
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How can I determine what is the minimum SCN number I need to restore up to.

    Say if I have a full database backup, I know I have file inconsistency, but I want to know what is the minimum time or SCN number a need to roll forward to in order to be able to open the database?
    For example: I do a database restore.
    restore database ;
    RMAN> sql 'alter database open read only';
    sql statement: alter database open read only
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 03/16/2009 15:00:04
    RMAN-11003: failure during parse/execution of SQL statement: alter database open read only
    ORA-16004: backup database requires recovery
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I need need to apply archive log files. All references I find for ORA-00194 state the solution is to "apply more logs until the file is consistent " But "HOW MANY LOGS", or more apporaite up to what time or SCN? How does one determine what TIME or SCN is required to get all file consistent?
    I thought this query might provide the answer, but it doesn't
    select max(checkpoint_change#)
    from v$datafile_header
    MAX(CHECKPOINT_CHANGE#)
    7985876903
    --It applies a bit more redo, but not enough to make my datafiles consistent.
    recover database until SCN=7985876903 ;
    Starting recover at 03/16/09 15:04:54
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_DISK_5
    using channel ORA_DISK_6
    using channel ORA_DISK_7
    using channel ORA_DISK_8
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=18436
    channel ORA_DISK_1: reading from backup piece /temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1 tag=TAG20090315T041716
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
    archive log filename=/u01/app/oracle/flash_recovery_area/P1/archivelog/2009_03_16/o1_mf_1_18436_4vxd81yc_.arc thread=1 se quence=18436
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I've discover I need to apply archive logs until this query reports all datafiles as FUZZY=NO , but this only works by guessing at some time periord to roll forward to, then checking the FUZZY column, and try again. Is there a way to know, I have to roll forward to a specific SNC in order for all my datafiles to be consistent?
    select file#
         , status
         , checkpoint_change#
         , checkpoint_time
         , FUZZY
         , RECOVER
    ,LAST_DEALLOC_SCN
    from v$datafile_header
    order by checkpoint_time
    Thanks,
    Jason

    The minimum point in time is the time when the last backup piece for datafiles in that backup was completed.
    Your alert.log should show the redo log sequence number at that time.
    You can query V$ARCHIVED_LOG and get the FIRST_CHANGE# of the first archivedlog generated after that backup piece completed.
    A
    LIST BACKUP;in RMAN should also show you the SCNs at the time of the backups.
    You can also query SCN_TO_TIMESTAMP -- eg
    select timestamp_to_scn(to_timestamp('15-MAR-09 09:24:01','DD-MON-RR HH24:MI:SS')) from dual;will return an approximation of the SCN.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Mar 17, 2009 9:41 AM
    added the LIST BACKUP command from RMAN.

  • BAPI to find the number of records existing in HR module

    Hi ,
    I wanted to know if there exist BAPI  that would return me the number of SAP HR module users in a system.
    I cam across the BAPI's for info types like  personu2019s Personal Data (Infotype 0002)
    BAPI_PERSDATA_CHANGE u2013 Change personal data
    BAPI_PERSDATA_CREATE u2013 Create personal data
    BAPI_PERSDATA_CREATESUCCESSOR u2013 Create subsequent personal data record
    BAPI_PERSDATA_DELETE u2013 Delete personal data
    BAPI_PERSDATA_DELIMIT u2013 Delimit personal data validity period
    BAPI_PERSDATA_GETDETAIL u2013 Read personal data
    BAPI_PERSDATA_GETDETAILEDLIST u2013 read instances with data
    BAPI_PERSDATA_GETLIST u2013 Read instances
    But i wanted to know if there exist a master table which would  return me the number of records irresepctive of the  infotypes.
    Best Regards
    Manoj

    Hi,
    if you want to know the number of employees, then u should  use the infotype PA00001 and PA0000 with appropriate criteria. Infotype PA0002 should not be used to find the number of employees in the HR.
    As you requested there are no specific BAPI to find the records. Hope this helps you.
    Or u can use PAR2 transaction to find details.
    Thanks,
    Saibaba Kondani
    Edited by: Kondani Saibaba on Aug 19, 2009 7:33 AM

  • Find equipment number from the asset number

    hi,
    where i can find ( I NEED TABLE name ) Equipment number,
    its in transaction as03 ->allocations -> right to field Equipment number
    i press f1 and found it's a structure  ra02s
    where i can find it (which table)?
    i know equi is the master data table of equipment but i need to find equipment number from the asset number
    Regards
    Edited by: liu shaochang on Jan 21, 2010 3:31 AM

    Hi
    Please use view M_EQUIA . Hope this will serve your purpose.
    Regards
    Gaurav

  • Query to find vendor number with whom a particular item was last purchased.

    Hi All,
    I want to frame a SQL query to find vendor number with whom a particular item was last purchased.
    I got to know that we can find this by looking at the open Purchase Order or the Material Transactions for the transaction type of ‘PO Receipt’ whichever is the latest.
    Can anyone please help me in framing such query.
    Regards,
    Shruti

    Here is a hint
    Use the mtl_system_items_b table to get the inventory_item_id.
    Use it in the po_lines_all table to get po_header_id
    Use it in po_headers_all table to get vendor_id
    Use it in po_vendors to get segment1 (i.e. vendor#)
    Hope this helps,
    Sandeep Gandhi

  • SCN Number

    Hi,
    When is the SCN number exactly generated. I read that it is generated when commit happens. If that is the case. How does oracle know that (when rolledback) which transaction to roll back. I mean how does it monitor all the transactions ( Both commited and uncommited).
    Thanks
    Rakesh

    user8697235 wrote:
    I am aware of that part. My question was, how does Oracle keeps track of uncommited transactions?
    Rakesh,
    You don't need to worry about the SCN, oracle will take care of it. About the uncommitted transactions,there are couple of places where oracle keeps this info that the transaction is still alive. The very first is the transaction header of the data block where this info is alive that the status of the transaction is still Active. Also, the buffer's status is marked by oracle as dirty thus tells to the the dataabase that the buffer is no more consistent. The second place where this info is kept and also, from where its cleared in the first place when the tranaction gets over ( irrespective of commit/rollback) is the transaction table which is kept in the Undo segment header . In each of the undo segment , this info is kept and that's the place where Oracle finally goes and confirms that whether the transaction is still alive or not. And how oracle knows which undo segment to go, its kept in the transaction header in the form of the undo byte address (UBA) .
    HTH
    Aman....

  • About SCN number generation

    Hi all,
    1.what is SCN number?
    2.when it will happens?
    3.when will happen to commit single transaction?
    4.which BG process write the SCN to each transaction?
    Thanks in advance.

    jp wrote:
    Hi all,
    1.what is SCN number?System Commit Number, a no which is incremented with every commit.
    2.when it will happens?
    Almost all the time.
    3.when will happen to commit single transaction?No idea what you mean here!
    4.which BG process write the SCN to each transaction?Not everything is done by a process. SCN is a mechanism in its own.
    Search this forum for many discussions about the same topic. There are MANY threads about it.
    HTH
    Aman....

  • How to find the count of Daily transactions?

    Hi all,
    ThankQ for your help and suggestions for my previous questions. I have a new query now.
    I need to find out the number/count of transactions that happen each day. Please let me know if any database view or any things needs to be enabled.
    Thanks in advance.
    Regards,
    Sagar Maram

    v$log_history will still have entries but if there is no log switch happend between these hours then this select will not provide any result see below:
    SQL> SELECT 'DATABASE', 'Total transactions in last 24 Hrs',
    2 TO_CHAR (MAX (next_change#) - MIN (first_change#), '9,999,999,999')
    3 FROM v$log_history
    4 WHERE TO_DATE (first_time, 'DD/MM/RR HH24:MI:SS') >
    5 TRUNC (SYSDATE, 'HH24')
    6 - 1;
    'DATABAS 'TOTALTRANSACTIONSINLAST24HRS' TO_CHAR(MAX(NE
    DATABASE Total transactions in last 24 Hrs
    Result from v$log_history, the datbase is in noacrhivelog mode:
    select * from (SELECT to_char(FIRST_CHANGE#),FIRST_TIME,to_char(NEXT_CHANGE#) FROM v$log_history order by 2 desc)where rownum <10
    TO_CHAR(FIRST_CHANGE#) FIRST_TIM TO_CHAR(NEXT_CHANGE#)
    3421207734803 03-SEP-09 3421208397050
    3421207130708 28-AUG-09 3421207734803
    3421206412579 27-AUG-09 3421207130708
    3421206327917 27-AUG-09 3421206412579
    3421206320613 27-AUG-09 3421206327917
    3421206303828 26-AUG-09 3421206320613
    3421206147995 26-AUG-09 3421206303828
    3421206126217 26-AUG-09 3421206147995
    3421206101088 26-AUG-09 3421206126217
    TRUNC (SYSDATE, 'HH24') - 1--This will provide exact 24-hours before time but it may happen that first change is at 23:30 hours before, so transaction within that half hour will not be reported by above query. What is your take on this?
    Regards.

  • How to find serial number without using macbook?

    What can be used to find serial number of my macbook outside of using my macbook?
    My computer was stolen and I do not have the box nor do I have it registered in iCloud, I know that iTunes holds my computer as an authorized user for my ID so I am sure somewhere it hold the serial number to identify that computer.
    I just need to know how to access that information so I may register it in my name so I can have Apple help me track it.

    You store purchase receipt, the box it came in, where you wrote that information down.
    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T, Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. Lost or Stolen iPhone? Here’s What to do
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on MobileMe
      3. OS X Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
      1. VUWER 1.5.4
      2. Sneaky ******* 0.2.0
      3. Undercover 4.7
      4. LoJack for Laptops Premium Mac
      5. STEM 2.1
      6. MacPhoneHome 3.5

  • How to find the number of occurence of a string

    String str="The AR tech seeks experienced candidates in java,jsp. The candidates should have atleast 1 year of experience in the specified skills.";
    here i need to find the number of occurence of the string "experience".
    how to find it out?

    String str="The AR tech seeks experienced candidates in java,jsp. The candidates should have atleast 1 year of experience in the specified skills.";
    String findStr = "experience";
    int count = 0;
    int index = 0;
    while(index != -1) {
    index = str.indexOf(findStr, (count == 0 ? 0 : index + findStr.length()));
    if(index != -1) {
    count++;

Maybe you are looking for

  • How to port a number and how long it takes to take effect

    We've seen these questions come up a bit, so here's a brief summary A "port" is when you switch your phone service to Telstra from another provider but would like to keep your phone number You can do this in a Telstra shop (shops can be located and a

  • PDF to Excel creates garbage. I want a refund.

    Cannot find a way to export pdf to excel without getting garbage as a result.  May I have a refund please?

  • How to read data from txt file respectively

    Hi, I am triying to form an equation between two known points. I want to do this with the attached VI, the most critical point is that I will read the x1, y1, x2 and y2 coordinates from the same .txt file. They will be written in a .txt file and I wi

  • How to save an edited PDF in Acrobat Pro without any compression

    Hi, I just edited an existing PDF in Acrobat Pro 9 - actually I inserted some high resolution images in TIFF via the Touchup tool. What do I have to do to save it without any compression of the TIFFs - I tried a lot, but the outcome is always compres

  • DockMenuEnabler

    Hi, On every startup I get a window that says enter my password for DockMenuEnabler. I trust everyone gets that depending on what is in their dock. Question is, is there someway to get that in the keychain or something so that it doesn't have to be e