Oracle's Flashback Technolgy

Hi,
Can any one kindly explain how the Oracle's Flashback Technology works? I mean OFT depends on Automatic Undo Managemet but how exactly it works? Whats the architecture?
Any good link or book name that explains the OFT in detail will be very helpfull.
Actually this was a Interview Question which i failed to answer. I just said that its dependent on Automatic Undo Management.. but they needed a more detailed answer.
Kindly explain.
Thanks in Advance.
SID

A lot of times, what is asked in the interview and what is expected by the interviewer, these are far away from what is there. If someone failed you saying that undo is used for Flashback, I would actually have asked what else he/she wants to know beyond this? And I won't suggest that you should spend time and energy thinking that you knwo somewhat lesser just because some one said to you that he is not happy from your answer. You should have asked what's the answer he is looking for then?
In 10g, except for Flashback database, rest of the entire stuff is based on the Undo data only. That's it! In 11g, there are changes to this but that needs to be told that the person who is asking is willing to know about 11g's enhancements.
HTH
Aman....

Similar Messages

  • Oracle 10gR2 Flashback Size

    Hi,
    I have following configured for flashback -
    *.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
    *.db_recovery_file_dest_size = 4G
    I have 3 Oracle Instances running and so, with the same above mentioned parameters, I guess, Oracle created the folders as { I believe Oracle adds $ORACLE_SID folder under flash_recovery_area } -
    /u01/app/oracle/flash_recovery_area/DBPROD1
    /u01/app/oracle/flash_recovery_area/DBPROD2
    /u01/app/oracle/flash_recovery_area/DBTEST
    This is not a problem. I was under impression that each of these folder will have 4GB limit for storing the flashback logs. But, looks like that is not the case. One of my database's (DBTEST) flash area was full and then the other two databases started throwing ORA-19815 error in the alert log file. This means Oracle instance doesn't look at it's own area to determine the size of flashback usage? How do we fix this? Just changing the db_recovery_file_dest parameter to '/u01/app/oracle/flash_recovery_area/<database_name>' will solve the issue?
    Please reply.
    Thanks

    As matter of fact Oracle allow such setup
    Sharing a Flash Recovery Area Among Multiple Databases
    Mutliple database can have the same value for DB_RECOVERY_FILE_DEST, if one of the following conditions is met:
    No two databases for which DB_UNIQUE_NAME is specified have the same value for DB_UNIQUE_NAME.
    For those databases where no DB_UNIQUE_NAME is provided, no two databases have the same value for DB_NAME.
    When databases share a single flash recovery area in this fashion, the file system or ASM disk group holding the flash recovery area should be large enough to hold all of the recovery files for all of the databases. Add all the values for DB_RECOVERY_FILE_DEST_SIZE for the different databases, and then allow for any overhead such as mirroring or compression in allocating actual disk space, as described in "Flash Recovery Area Size: DB_RECOVERY_FILE_DEST_SIZE".

  • Oracle 10g Flashback

    Hi experts,
    We have tried to flashback the data from oracle 10g database. for this we have executed AS OF TIMESTAMP query, the Undo has been set 900 and db_flashback_retention_target also 1440 but we can get 4 days old data with help of 'AS OF TIMESTAMP" query, Can you please clarify is there any internal table is for maintaing the old data since undo retention value also very small archive log file also deleted every 4 hours once , then how its possible to get the 4 days old data, where the old data actually stored? Please help on this.

    Your old data is stored in UNDO segments. In order to flash back as of timestamp (4 days prior), you must set UNDO retention to 4 days or higher (900 Seconds is default). You must also ensure your UNDO tablespace is sized large enough to hold all data to satisfy retention.
    You will not be able to perform flashback on the table if there were any DDL's executed on the table and structure of table is changed since 4 days..
    Thanks

  • How To Deploy Application In Oracle Application Server

    Hi All,
    We have devloped an application in whic we have used tomcat server .
    Now we want to deploy that application in Oracle application server.
    technolgy used: J2ee
    : Shark work flowserver
    database:Oracle(XE)
    Platform: windows XP
    IDE:Eclipse (ganymede)
    Web server:tomcat(6.0)
    Thnaks and regards,
    DK.

    I think you put the questionin the wrong forum, this is all about Oracle SOA Technology, and deployment is a task within SOA.
    I have created a deployment guide/tool for Oracle SOA products (see my blog, includes java deployment).
    Put your question in :
    Oracle Application Server - General (AS General Forum)
    Marc
    http://orasoa.blogspot.com

  • Oracle 10g Database course

    Hi Guys, i am currently doing my oracle database 10g, SQL fundamental 1, from NIIT, i have been suggested i do the PL/SQL Course and then appear for the ocp and oca exam and once i pass the exam then i should enroll my self for 10g workshop one and workshop two, and again appear for the oca and ocp exam, my question to u all is what are the oppurtunies of doing the oracle database 10g course?as i dont have any experiance earlier, will i get an job after completing my course? i have done my php and my sql course,it was an certification course no exam was held i have also done java again havnt given any exam. need suggestion's

    Guys, this is what i am being taught at NIIT for oracle 10g
    1.     Oracle 10g: Introduction to SQL Ed 3
    This course is divided in 2 parts:
    1.     Oracle Database 10g: SQL Fundamentals (Part I)
    2.     Oracle Database 10g: SQL Fundamentals (Part II)
    •     Run data manipulation statements (DML) to update data in the Oracle Database 10g
    •     Create tables to store and utilize views to display and retrieve data
    •     Identify the major structural components of Oracle Database 10g
    •     Create reports of sorted, restricted and aggregated data
    •     Employ SQL functions to generate and retrieve customized data
    •     Retrieve row and column data from tables with the SELECT statement
    •     Manage Schema Objects
    •     Manipulate large Datasets
    •     Generate Reports by Grouping Related Data
    •     Retrieve data using Sub-queries
    2.     Oracle Database 10g: PL/SQL Fundamentals
    •     Use PL/SQL programming constructs and conditional control statements
    •     Write PL/SQL code to interface with the database
    •     Design PL/SQL program units that execute efficiently
    •     Handle run-time errors
    3.     Oracle Database 10g: Administration Workshop I
    •     Install Oracle Database 10g and configure a database
    •     Manage the Oracle instance
    •     Manage the Database storage structures
    •     Create and administer user accounts
    •     Perform backup and recovery of a database
    •     Monitor, troubleshoot, and maintain a database
    •     Configure Oracle Net services
    •     Move data between databases and files
    4.     Oracle Database 10g: Administration Workshop II
    •     Use RMAN to create and manage backup sets and image copies
    •     Recover the database to a previous point in time
    •     Use Oracle Secure Backup to backup and recover a database
    •     Use Oracle's Flashback technology to recover your database
    •     Detect block corruptions and take appropriate measures to correct them
    •     Use the various Database advisors and views to monitor and improve database performance
    •     Control database resource usage with the Resource Manager
    •     Simplify management tasks by using the Scheduler
    •     Review database log files for diagnostic purposes
    •     Customize language-dependent behavior for the database and individual sessions
    •     Administer a VLDB
    •     Implement a secure database
    •     Transport data across platforms
    5.     Oracle Database 10g: Backup and Recovery
    •     Plan effective backup and recovery procedures
    •     Use Recovery Manager to create backups and perform recovery operations
    •     Use Oracle Flashback technologies to recover from human error
    •     Install Oracle Secure Backup
    •     Perform an Oracle-suggested backup to tape
    •     Use Oracle Secure Backup to perform a file system backup
    •     Use Oracle Secure Backup to perform a file system restoration
    •     Perform an encrypted database backup and restore
    •     Manage the Oracle Secure Backup environment
    •     Monitor and tune Recovery Manager
    •     Perform tablespace point-in-time recovery
    •     Create a duplicate database
    •     Create and manage a recovery catalog database
    6.     Oracle Database 10g: Performance Tuning
    •     Use the Oracle Database tuning methodology appropriate to the available tool
    •     Utilize database advisors to proactively tune an Oracle database
    •     Use the tools based on the Automatic Workload Repository to tune the database
    •     Use Statspack reports to tune the database
    •     Diagnose and tune common database performance problems
    •     Use Enterprise Manager performance-related pages to monitor an Oracle database
    7.     Oracle Database 10g: Security Release 2
    •     Use basic database security features
    •     Choose a user authentication model
    •     Secure the database and its listener
    •     Use the Enterprise Security Manager tool
    •     Manage users using proxy authentication
    •     Implement Enterprise User Security
    •     Describe the benefits and requirements associated with the Advanced Security Option
    •     Manage secure application roles
    •     Implement fine-grain access control
    •     Manage the Virtual Private Database (VPD)
    •     Implement fine-grain auditing
    •     Use Transparent Data Encryption
    •     Use file encryption
    •     Encrypting and Decrypt table columns
    •     Setup a simple Label Security policy
    8.     Oracle Database 10g: SQL Tuning Workshop
    •     Describe the basic steps in processing SQL statements
    •     Describe the causes of performance problems
    •     Understand where SQL tuning fits in an overall tuning methodology
    •     Describe Automatic SQL Tuning
    •     Use the diagnostic tools to gather information about SQL statement processing
    •     Understand Optimizer behavior
    •     Influence the optimizer behavior
    •     Influence the physical data model so as to avoid performance problems
    Is this enought to qualify for a job as a DBA in a good company?also after this can i qualify for ocp and oca exam?

  • Flashback queries

    Does the flashback queries work incase of truncate command. As per the oracle documents, you can revert back the prior state using oracle's flashback query based on timestamp or SCN.
    This is acceptableand agreed upong DML operations. But want to check if the same concepts works incase of 'TRUNCATE' command.
    Anyone ideas/ suggestions from experts are wc.
    Chers........ Bob

    But want to check if the same concepts works incase of 'TRUNCATE' commandWhy not to check then ?
    SQL> select * from t;
           TID I
             1 A
             1 B
             1 D
             2 A
             2 C
             2 C
             2 B
             3 A
             3 C
             4 A
             4 B
             4 C
             5 A
             6 A
             7 A
    15 rows selected.
    SQL> select DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER from dual;
    GET_SYSTEM_CHANGE_NUMBER
                     5228349
    SQL> truncate table t;
    Table truncated.
    SQL> select * from t as of scn 5228349;
    select * from t as of scn 5228349
    ERROR at line 1:
    ORA-01466: unable to read data - table definition has changedMoreover, the answer is described in the documentation:
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#sthref2174
    Flashback Query does not work through DDL operations that modify columns, or drop or truncate tables
    Rgds.

  • Error ORA-00980: synonym translation is no longer valid when i issue

    i accidentally drop one of my table. To bring it back i used Imp tool. But it gives an error ORA-00980: synonym translation is no longer valid when i issue
    Select * from ship_sched_fact_notice_det
    Action taken using Imp
    Username: erpdada
    Password:
    Connected to: Oracle Database 10g Release 10.1.0.2.0 - Production
    Import file: EXPDAT.DMP > e:\erpdada_august13.dmp
    Enter insert buffer size (minimum is 8192) 30720> 30720
    Export file created by EXPORT:V10.01.00 via conventional path
    Warning: the objects were exported by SYSTEM, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    List contents of import file only (yes/no): no > y
    Import entire export file (yes/no): no > n
    Username: erpdada
    Enter table(T) or partition(T:P) names. Null list means all tables for user
    Enter table(T) or partition(T:P) name or . if done: ship_sched_fact_notice_det
    Enter table(T) or partition(T:P) name or . if done: .
    "CREATE PUBLIC SYNONYM "XMLTYPE" FOR "SYS"."XMLTYPE""
    "CREATE TABLE "SHIP_SCHED_FACT_NOTICE_DET" ("SSFND_ITEM_NOT_DET_ID" NUMBER, "
    ""SSFN_FACTORY_ID" VARCHAR2(40) NOT NULL ENABLE, "SSFN_FAC_NOTICE_ID" NUMBER"
    " NOT NULL ENABLE, "SSD_SHIP_ITEM_ID" NUMBER NOT NULL ENABLE, "OI_ITEM_ID" N"
    "UMBER NOT NULL ENABLE, "ORDER_TYPE" VARCHAR2(1), "SSFND_ITEM_CODE" VARCHAR2"
    "(300), "SSFND_QTY" NUMBER, "SSFND_CTN" NUMBER, "SSFND_TOT_CBM" NUMBER, "SSF"
    "ND_REM1" VARCHAR2(256), "SSFND_REM2" VARCHAR2(256), "SSFND_UNIT_ID" VARCHAR"
    "2(40), "SSFND_IS_EXCL_SUMMARY" VARCHAR2(1))  PCTFREE 10 PCTUSED 40 INITRANS"
    " 1 MAXTRANS 255 STORAGE(INITIAL 81920 FREELISTS 1 FREELIST GROUPS 1 BUFFER_"
    "POOL DEFAULT) TABLESPACE "ORDER_DATA01" LOGGING NOCOMPRESS"
    . . skipping table "SHIP_SCHED_FACT_NOTICE_DET"
    "GRANT DELETE ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "GRANT INSERT ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "GRANT SELECT ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "GRANT UPDATE ON "SHIP_SCHED_FACT_NOTICE_DET" TO "SHIPMENT_NOTICE""
    "CREATE UNIQUE INDEX "PK_SHIP_SCHED_FACT_NOTICE_DET" ON "SHIP_SCHED_FACT_NOT"
    "ICE_DET" ("SSFND_ITEM_NOT_DET_ID" )  PCTFREE 10 INITRANS 2 MAXTRANS 255 STO"
    "RAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLE"
    "SPACE "ORDER_DATA01" LOGGING"
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ADD  CONSTRAINT "PK_SHIP_SCHED_FAC"
    "T_NOTICE_DET" PRIMARY KEY ("SSFND_ITEM_NOT_DET_ID") USING INDEX PCTFREE 10 "
    "INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1"
    " BUFFER_POOL DEFAULT) TABLESPACE "ORDER_DATA01" LOGGING ENABLE "
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ADD CONSTRAINT "SHIP_SCHED_FACT_NO"
    "TICE_DE_FK1" FOREIGN KEY ("SSD_SHIP_ITEM_ID") REFERENCES "SHIPPING_SCHEDULE"
    "_DETAILS" ("SSD_SHIP_ITEM_ID") ENABLE NOVALIDATE"
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ADD CONSTRAINT "SHIP_SCHED_FACT_NO"
    "TICE_DE_FK2" FOREIGN KEY ("SSFN_FAC_NOTICE_ID") REFERENCES "SHIP_SCHED_FACT"
    "ORY_NOTICE" ("SSFN_FAC_NOTICE_ID") ENABLE NOVALIDATE"
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ENABLE CONSTRAINT "SHIP_SCHED_FACT"
    "_NOTICE_DE_FK1""
    "ALTER TABLE "SHIP_SCHED_FACT_NOTICE_DET" ENABLE CONSTRAINT "SHIP_SCHED_FACT"
    "_NOTICE_DE_FK2""
    Import terminated successfully with warnings.
    I drop the old synonym and re-create it but still it gives the same error...

    Since you are on 10g did you try flashback table feature - http://tonguc.wordpress.com/2007/01/01/oracle-10g-flashback-versions-query-drop-table-and-recyclebin-management/
    FLASHBACK TABLE <tabname> TO BEFORE DROP;
    If you didnt use purge option, the dropped object is on your recyclebin - http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9018.htm#sthref9593
    Best regards.

  • Problem when exporting and importing project from odi 10g to odi 11g

    Hi,
    I want to migrate my project from odi 10g to odi 11g.
    But when i am importing the interface then it is giving the error of mising references .
    I have exported the project(without its child component),models
    (including my datastore),KM's,folder (without its child component),packages(with child components),interaces(with child components),procedures(with child components),variables from odi 10g.
    After exporting all these objects i imported all the objects with import type set as "Synonym mode insert" into odi 11g but when i imported the interface it is giving the error of missing references.
    Source technolgy is Oracle and target technolgy is Postgres.
    Topologies have been made in the ODI 11g same as in ODI 10g.
    Please help.

    You dont need to migrate the complete repository. You can migrate a project at a time into ODI 11.1.1.5.x
    You have to be careful while importing. You have to follow a sequence when importing.
    Empty Project -> KMs -> Models (with DB Stores) -> Variable -> Empty Folders -> Interfaces -> Procedures -> Packages ---- All in SYNONYM mode insert (no exceptions)
    And your repository id in 11g MUST be different from the one in 10g.

  • How to get back deleted data logically

    Hi
    Friends
    Once again need your guidance to solve my this problem.
    If I have deleted data and commited.Now I want to bring that data back.
    How m I to do this.I want to do it logically.
    Pls help me.Is there any thirdparty software to do it logically if yes thwn what its name
    Hope to hear soon
    Regrds,
    Chandrima Roy

    There are number of ways to recover from such user erros:
    1). RMAN incomplete recovery, if you have proper backups and redo logs to recover until the time just before the user error happened.
    http://www.kods.net/use-rman-based-incomplete-recovery-time/
    2). Flash back query, if UNDO is being managed properly.
    http://www.orafaq.com/node/50
    3). Flashback database if set to ON and flashback logs are being written.
    http://www.oracle-base.com/articles/10g/Flashback10g.php#flashback_database
    4). Last but not the least, Oracle LogMiner, required minimal setup i.e. db should be in Archive Log Mode.
    For Oracle 10g:
    http://www.oracleflash.com/25/Using-Oracle-LogMiner-to-undo-incorrectly-committed-changes.html
    For Oracle 11g:
    http://www.oracleflash.com/31/Oracle-11g-DBMS_FLASHBACK-TRANSACTION_BACKOUT.html
    http://www.oracleflash.com/30/Oracle-11g-Flashback-Transaction-in-OEM-LogMiner-Interface.html

  • Searching time of insertion of a row in a table

    Hi all ,
    My problem is the following.
    I would want to know if it there's a way , under TOAD or SQL*Plus, to have the time when a row has been inserted in an Oracle table.
    Thank you very much.

    Hi,
    If you know the time, for example you want to know the data about one hour back (based on the flashback setting)
    you can get from flashback pseudo columns (ORACLE 10g)
    Flashback Version Query
    VERSIONS_XID - The transaction id that created this version of the row
    VERSIONS_OPERATION - The action that created this version of the row (such as delete, insert, and update)
    VERSIONS_STARTSCN - The SCN in which this row version first occurred
    VERSIONS_ENDSCN - The SCN in which this row version was changed.
    Exmaple :-
    select versions_starttime, versions_endtime, versions_xid, versions_operation, Dept from Dept versions between timestamp minvalue and maxvalue
    order by VERSIONS_STARTTIME
    will return something like :
    VERSIONS_STARTTIME VERSIONS_ENDTIME VERSIONS_XID V Dept
    01-DEC-03 03.57.12 PM 01-DEC-03 03.57.30 PM 0002002800000C61 I 10
    01-DEC-03 03.57.30 PM 01-DEC-03 03.57.39 PM 000A000A00000029 U 11
    01-DEC-03 03.57.39 PM 01-DEC-03 03.57.55 PM 000A000B00000029 U 12
    10, 11 and 12 is actual data
    Further id youwant to generat an undo for that...
    SQL>SELECT UNDO_SQL FROM FLASHBACK_TRANSACTION_QUERY
    WHERE XID = '000A000A00000029';
    - output : update "SCOTT"."Dept" set "Dept" = '12' where ROWID = 'AAAMicAAEAAAAA/AAA';
    Else you can Add a Column to the Table for Tracing the results about the your data like
    Custom Method
    Created by
    Created Date
    Modified by
    Modified Date
    - Pavan Kumar N

  • How to create rollback statements automatically

    Hi People
    I need to write a script which can generate the ROLLBACK statements for the IMPLEMENTATIONS(Create table, view, index, package, trigger etc Insert table, update table, delete table, Grant etc - which means that implementation could be anything) .
    Is there is anyway that I can create or generate corresponding ROLLBACK statements for each statement that i exceute on my database?
    Basically there could be a list of operations that I will do and later on I would like to bring the database back to where it was prior to the implementation.

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
    >
    Is there is anyway that I can create or generate corresponding ROLLBACK statements for each statement that i exceute on my database?
    Basically there could be a list of operations that I will do and later on I would like to bring the database back to where it was prior to the implementation.
    >
    You could use Oracle's FLASHBACK DATABASE funtionality. See Using Flashback Database and Restore Points in the backup and recovery doc
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/flashdb.htm
    Chapter 16 of that doc shows how to do it - Performing Flashback and Database Point-In-Time Recovery
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmflash.htm

  • GL_INTERFACE table accidentally dropped

    Hi all,
    Please this is urgent, i dropped the gl_interface table accidentally, oracle 10g, flashback wasnt enabled, so recyclebin doesnt hold it. so what can i do now? can i still possible recover the table or can the gl_Interface table be generated again, is there any other alternative?
    thank you
    larry

    This DDL is for
    RDBMS : 10.2.0.2.0
    Oracle Applications : 11.5.10.2
    CREATE TABLE GL_INTERFACE
    STATUS VARCHAR2(50 BYTE) NOT NULL,
    SET_OF_BOOKS_ID NUMBER(15) NOT NULL,
    ACCOUNTING_DATE DATE NOT NULL,
    CURRENCY_CODE VARCHAR2(15 BYTE) NOT NULL,
    DATE_CREATED DATE NOT NULL,
    CREATED_BY NUMBER(15) NOT NULL,
    ACTUAL_FLAG VARCHAR2(1 BYTE) NOT NULL,
    USER_JE_CATEGORY_NAME VARCHAR2(25 BYTE) NOT NULL,
    USER_JE_SOURCE_NAME VARCHAR2(25 BYTE) NOT NULL,
    CURRENCY_CONVERSION_DATE DATE,
    ENCUMBRANCE_TYPE_ID NUMBER,
    BUDGET_VERSION_ID NUMBER,
    USER_CURRENCY_CONVERSION_TYPE VARCHAR2(30 BYTE),
    CURRENCY_CONVERSION_RATE NUMBER,
    SEGMENT1 VARCHAR2(25 BYTE),
    SEGMENT2 VARCHAR2(25 BYTE),
    SEGMENT3 VARCHAR2(25 BYTE),
    SEGMENT4 VARCHAR2(25 BYTE),
    SEGMENT5 VARCHAR2(25 BYTE),
    SEGMENT6 VARCHAR2(25 BYTE),
    SEGMENT7 VARCHAR2(25 BYTE),
    SEGMENT8 VARCHAR2(25 BYTE),
    SEGMENT9 VARCHAR2(25 BYTE),
    SEGMENT10 VARCHAR2(25 BYTE),
    SEGMENT11 VARCHAR2(25 BYTE),
    SEGMENT12 VARCHAR2(25 BYTE),
    SEGMENT13 VARCHAR2(25 BYTE),
    SEGMENT14 VARCHAR2(25 BYTE),
    SEGMENT15 VARCHAR2(25 BYTE),
    SEGMENT16 VARCHAR2(25 BYTE),
    SEGMENT17 VARCHAR2(25 BYTE),
    SEGMENT18 VARCHAR2(25 BYTE),
    SEGMENT19 VARCHAR2(25 BYTE),
    SEGMENT20 VARCHAR2(25 BYTE),
    SEGMENT21 VARCHAR2(25 BYTE),
    SEGMENT22 VARCHAR2(25 BYTE),
    SEGMENT23 VARCHAR2(25 BYTE),
    SEGMENT24 VARCHAR2(25 BYTE),
    SEGMENT25 VARCHAR2(25 BYTE),
    SEGMENT26 VARCHAR2(25 BYTE),
    SEGMENT27 VARCHAR2(25 BYTE),
    SEGMENT28 VARCHAR2(25 BYTE),
    SEGMENT29 VARCHAR2(25 BYTE),
    SEGMENT30 VARCHAR2(25 BYTE),
    ENTERED_DR NUMBER,
    ENTERED_CR NUMBER,
    ACCOUNTED_DR NUMBER,
    ACCOUNTED_CR NUMBER,
    TRANSACTION_DATE DATE,
    REFERENCE1 VARCHAR2(100 BYTE),
    REFERENCE2 VARCHAR2(240 BYTE),
    REFERENCE3 VARCHAR2(100 BYTE),
    REFERENCE4 VARCHAR2(100 BYTE),
    REFERENCE5 VARCHAR2(240 BYTE),
    REFERENCE6 VARCHAR2(100 BYTE),
    REFERENCE7 VARCHAR2(100 BYTE),
    REFERENCE8 VARCHAR2(100 BYTE),
    REFERENCE9 VARCHAR2(100 BYTE),
    REFERENCE10 VARCHAR2(240 BYTE),
    REFERENCE11 VARCHAR2(100 BYTE),
    REFERENCE12 VARCHAR2(100 BYTE),
    REFERENCE13 VARCHAR2(100 BYTE),
    REFERENCE14 VARCHAR2(100 BYTE),
    REFERENCE15 VARCHAR2(100 BYTE),
    REFERENCE16 VARCHAR2(100 BYTE),
    REFERENCE17 VARCHAR2(100 BYTE),
    REFERENCE18 VARCHAR2(100 BYTE),
    REFERENCE19 VARCHAR2(100 BYTE),
    REFERENCE20 VARCHAR2(100 BYTE),
    REFERENCE21 VARCHAR2(240 BYTE),
    REFERENCE22 VARCHAR2(240 BYTE),
    REFERENCE23 VARCHAR2(240 BYTE),
    REFERENCE24 VARCHAR2(240 BYTE),
    REFERENCE25 VARCHAR2(240 BYTE),
    REFERENCE26 VARCHAR2(240 BYTE),
    REFERENCE27 VARCHAR2(240 BYTE),
    REFERENCE28 VARCHAR2(240 BYTE),
    REFERENCE29 VARCHAR2(240 BYTE),
    REFERENCE30 VARCHAR2(240 BYTE),
    JE_BATCH_ID NUMBER(15),
    PERIOD_NAME VARCHAR2(15 BYTE),
    JE_HEADER_ID NUMBER(15),
    JE_LINE_NUM NUMBER(15),
    CHART_OF_ACCOUNTS_ID NUMBER(15),
    FUNCTIONAL_CURRENCY_CODE VARCHAR2(15 BYTE),
    CODE_COMBINATION_ID NUMBER(15),
    DATE_CREATED_IN_GL DATE,
    WARNING_CODE VARCHAR2(4 BYTE),
    STATUS_DESCRIPTION VARCHAR2(240 BYTE),
    STAT_AMOUNT NUMBER,
    GROUP_ID NUMBER(15),
    REQUEST_ID NUMBER(15),
    SUBLEDGER_DOC_SEQUENCE_ID NUMBER,
    SUBLEDGER_DOC_SEQUENCE_VALUE NUMBER,
    ATTRIBUTE1 VARCHAR2(150 BYTE),
    ATTRIBUTE2 VARCHAR2(150 BYTE),
    ATTRIBUTE3 VARCHAR2(150 BYTE),
    ATTRIBUTE4 VARCHAR2(150 BYTE),
    ATTRIBUTE5 VARCHAR2(150 BYTE),
    ATTRIBUTE6 VARCHAR2(150 BYTE),
    ATTRIBUTE7 VARCHAR2(150 BYTE),
    ATTRIBUTE8 VARCHAR2(150 BYTE),
    ATTRIBUTE9 VARCHAR2(150 BYTE),
    ATTRIBUTE10 VARCHAR2(150 BYTE),
    ATTRIBUTE11 VARCHAR2(150 BYTE),
    ATTRIBUTE12 VARCHAR2(150 BYTE),
    ATTRIBUTE13 VARCHAR2(150 BYTE),
    ATTRIBUTE14 VARCHAR2(150 BYTE),
    ATTRIBUTE15 VARCHAR2(150 BYTE),
    ATTRIBUTE16 VARCHAR2(150 BYTE),
    ATTRIBUTE17 VARCHAR2(150 BYTE),
    ATTRIBUTE18 VARCHAR2(150 BYTE),
    ATTRIBUTE19 VARCHAR2(150 BYTE),
    ATTRIBUTE20 VARCHAR2(150 BYTE),
    CONTEXT VARCHAR2(150 BYTE),
    CONTEXT2 VARCHAR2(150 BYTE),
    INVOICE_DATE DATE,
    TAX_CODE VARCHAR2(15 BYTE),
    INVOICE_IDENTIFIER VARCHAR2(20 BYTE),
    INVOICE_AMOUNT NUMBER,
    CONTEXT3 VARCHAR2(150 BYTE),
    USSGL_TRANSACTION_CODE VARCHAR2(30 BYTE),
    DESCR_FLEX_ERROR_MESSAGE VARCHAR2(240 BYTE),
    JGZZ_RECON_REF VARCHAR2(240 BYTE),
    AVERAGE_JOURNAL_FLAG VARCHAR2(1 BYTE),
    ORIGINATING_BAL_SEG_VALUE VARCHAR2(25 BYTE),
    GL_SL_LINK_ID NUMBER,
    GL_SL_LINK_TABLE VARCHAR2(30 BYTE),
    REFERENCE_DATE DATE
    TABLESPACE APPS_TS_TX_INTERFACE
    PCTUSED 0
    PCTFREE 10
    INITRANS 10
    MAXTRANS 255
    STORAGE (
    INITIAL 128K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    CREATE INDEX GL_INTERFACE_N3 ON GL_INTERFACE
    (SUBLEDGER_DOC_SEQUENCE_VALUE, SUBLEDGER_DOC_SEQUENCE_ID)
    LOGGING
    TABLESPACE APPS_TS_TX_INTERFACE
    PCTFREE 10
    INITRANS 11
    MAXTRANS 255
    STORAGE (
    INITIAL 128K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE INDEX GL_INTERFACE_N4 ON GL_INTERFACE
    (REFERENCE26, REFERENCE22, REFERENCE23)
    LOGGING
    TABLESPACE APPS_TS_TX_INTERFACE
    PCTFREE 10
    INITRANS 11
    MAXTRANS 255
    STORAGE (
    INITIAL 128K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE INDEX GL_INTERFACE_N2 ON GL_INTERFACE
    (REQUEST_ID, JE_HEADER_ID, STATUS, CODE_COMBINATION_ID)
    LOGGING
    TABLESPACE APPS_TS_TX_INTERFACE
    PCTFREE 0
    INITRANS 11
    MAXTRANS 255
    STORAGE (
    INITIAL 128K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE INDEX GL_INTERFACE_N1 ON GL_INTERFACE
    (USER_JE_SOURCE_NAME, SET_OF_BOOKS_ID, GROUP_ID)
    LOGGING
    TABLESPACE APPS_TS_TX_INTERFACE
    PCTFREE 0
    INITRANS 11
    MAXTRANS 255
    STORAGE (
    INITIAL 128K
    NEXT 128K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOPARALLEL;
    CREATE SYNONYM APPS.GL_INTERFACE FOR GL_INTERFACE;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO AP WITH GRANT OPTION;
    GRANT ALTER, DELETE, INDEX, INSERT, REFERENCES, SELECT, UPDATE, ON COMMIT REFRESH, QUERY REWRITE, DEBUG, FLASHBACK ON GL_INTERFACE TO APPS WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO AR WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO BOM WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO CE WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO CN WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO CRP WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO HR WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO HR_SECURE_USER;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO INV WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO JG WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO MFG WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO MRP WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO OE WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO OSM WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO PA WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO PO WITH GRANT OPTION;
    GRANT DELETE, INSERT, SELECT, UPDATE ON GL_INTERFACE TO QA WITH GRANT OPTION;

  • Expdp seems to be inconsistent with multiple on delete cascade foreign keys

    Hi,
    I've raised an SR for this with Oracle already and am waiting for a reply but in the mean time i was hoping someone could give me a hint about something we're doing that is obviously wrong or if anyone else is aware of similar issues. The steps we are following are these:
    1) 10.2.0.4.0 source system on SLES10 - we are doing a full schema level export using
    FLASHBACK_TIME="to_timestamp(to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS')"
    This should guarantee us a consistent export of the schema at the closest SCN to that timestamp
    We get no errors during the export
    2) we copy that file to a destination box which is 11.2.0.3.1 on SLES10
    3) we import that file - all the table data loads fine and the row counts are the same as those in the export log.
    4) when datapump reached the FK constraints 6 of them woouldn't enable with 'parent keys not found'
    The 6 FK's in question are all on delete cascade references back to the same parent table, there are a further 3 child tables which also reference back to the same parent table (all on the same parent PK single column) which do enable OK. The parent rows are indeed not there. In live those rows no longer exist. It appears as if the extract has been don ehalf way between the parent being deleted and the children then being deleted - but i didn't think this would be possible with a 'consistent' datapump export?
    So my question is how is this possible?
    All i can think is:
    a) the tables are being extracted a slightly different scn's due to some datapump bug?
    b) on delete cascade actions are somehow in a different scn to the initial delete from the parent table (seems unlikely)
    Can anyone shed any light on this?
    Regards,
    Harry

    Hi Srini,
    Here you go:
    Export command
    DIRECTORY=pumpy2
    DUMPFILE=expdp_eltp_tp_prod_464.dmp
    logfile=expdp_eltp_tp_prod_464.log
    SCHEMAS=TP_PROD
    PARALLEL=2
    USERID=xx/xx
    STATUS=120
    FLASHBACK_TIME="to_timestamp(to_char(sysdate, 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS')"
    first bit of log
    Export: Release 10.2.0.4.0 - 64bit Production on Monday, 20 August, 2012 11:14:54
    Copyright (c) 2003, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01":  parfile=expdp_eltp_tp_prod_464.par
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 147.6 GB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    Processing object type SCHEMA_EXPORT/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
    last bit of log
    . . exported "TP_PROD"."ASSET_RESTRICTION"                   0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_BLOB_TRIGGERS"                  0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_CALENDARS"                      0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_FIRED_TRIGGERS"                 0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_JOB_LISTENERS"                  0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_PAUSED_TRIGGER_GRPS"            0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_SCHEDULER_STATE"                0 KB       0 rows
    . . exported "TP_PROD"."QRTZ_TRIGGER_LISTENERS"              0 KB       0 rows
    . . exported "TP_PROD"."SQLN_EXPLAIN_PLAN"                   0 KB       0 rows
    . . exported "TP_PROD"."TPPRD_FUEL_SPLITS_BACKUP_STATS"      0 KB       0 rows
    Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
      /oracle/ELUMPS/flashback/ELTP_datapump/expdp_eltp_tp_prod_464.dmp
    Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at 13:08:43
    import command
    impdp / directory=FROMLIVE transform=oid:n transform=segment_attributes:n remap_schema=TP_PROD:TP_INT_DEMO remap_tablespace=TP_DATA:tpcons_comp parallel=4 dumpfile=expdp_eltp_tp_prod_464.dmp remap_tablespace=temp01:temp
    First bit of log
    Import: Release 11.2.0.3.0 - Production on Mon Aug 20 18:04:43 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    Master table "ORACLE"."SYS_IMPORT_FULL_03" successfully loaded/unloaded
    Starting "ORACLE"."SYS_IMPORT_FULL_03":  /******** directory=FROMLIVE transform=oid:n transform=segment_attributes:n remap_schema=TP_PROD:TP_INT_DEMO remap_tablespace=TP_DATA:tpcons_comp parallel=4 dumpfile=expdp_eltp_tp_prod_464.dmp remap_tablespace=temp01:temp
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    Processing object type SCHEMA_EXPORT/SEQUENCE/GRANT/OWNER_GRANT/OBJECT_GRANT
    last bit of log
    ORA-39083: Object type JOB failed to create with error:
    ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
    Failing sql is:
    BEGIN SYS.DBMS_IJOB.SUBMIT( JOB=> 103, LUSER=> 'TP_INT_DEMO', PUSER=> 'TP_INT_DEMO', CUSER=> 'TP_INT_DEMO', NEXT_DATE=> TO_DATE('2012-08-20 11:40:08', 'YYYY-MM-DD:HH24:MI:SS'), INTERVAL=> '(sysdate + (1/(24*2))) ', BROKEN=>  FALSE, WHAT=> 'dbms_refresh.refresh(''"TP_PROD"."TP_LEVEL"'');', NLSENV=> 'NLS_LANGUAGE=''AMERICAN'' NLS_TERRITORY=''AMERICA'' NLS_CURRENCY=''$'' NLS_ISO_CURREN
    ORA-39083: Object type JOB failed to create with error:
    ORA-00001: unique constraint (SYS.I_JOB_JOB) violated
    Failing sql is:
    BEGIN SYS.DBMS_IJOB.SUBMIT( JOB=> 104, LUSER=> 'TP_INT_DEMO', PUSER=> 'TP_INT_DEMO', CUSER=> 'TP_INT_DEMO', NEXT_DATE=> TO_DATE('2012-08-20 19:08:56', 'YYYY-MM-DD:HH24:MI:SS'), INTERVAL=> 'sysdate + 1', BROKEN=>  FALSE, WHAT=> 'TP_PROD.SP_DELETE_MODEL_SCENARIO_DATA;', NLSENV=> 'NLS_LANGUAGE=''AMERICAN'' NLS_TERRITORY=''AMERICA'' NLS_CURRENCY=''$'' NLS_ISO_CURRENCY=''AMERICA'' NLS_NU
    Processing object type SCHEMA_EXPORT/REFRESH_GROUP
    ORA-39083: Object type REFRESH_GROUP failed to create with error:
    ORA-01435: user does not exist
    ORA-06512: at "SYS.DBMS_IREFRESH", line 85
    ORA-01403: no data found
    Failing sql is:
    BEGIN dbms_refresh.make('"TP_PROD"."TP_LEVEL"',list=>null,next_date=>null,interval=>null,implicit_destroy=>TRUE,lax=>FALSE,job=>103,rollback_seg=>NULL,push_deferred_rpc=>TRUE,refresh_after_errors=>FALSE,purge_option => 1,parallelism => 0,heap_size => 0);
    dbms_refresh.add(name=>'"TP_PROD"."TP_LEVEL"',list=>'"TP_PROD"."TP_LEVEL"',
    Job "ORACLE"."SYS_IMPORT_FULL_03" completed with 47 error(s) at 01:32:09There were various errors about grants and jobs but nothing that would affect the table data and the fk constraints. The row counts exactly match between the parent and child tables in the export and import logs - so it looks like whatever the issue is happened at the 10.2.0.4 end.
    Cheers,
    Harry

  • Is it possible to get the updated table records based on date & time.

    Is it possible to get the updated table records based on date & time in oracle.
    Thanks in advance.

    no, actually i am asking update records using 'UPDATE
    or DELETE' statement, but not insert statement.
    Is it possible?
    I think we can do using trigger on table, but problem
    is if i am having 20 tables means i have to write 20
    trigger. i don't want like this.Of course it's still possible, typically you'll find applications with a column LAST_UPDATE, probably a LAST_UPDATED_BY and so on column. You don't say what your business need is, if you just want a one of query of updates to particular records and have a recent version of Oracle, then flashback query may well help, if you want to record update timestamps you either have to modify the table, or write some code to store your updates in an audit table somewhere.
    Niall Litchfield
    http://www.orawin.info/

  • ORA-00980 Synonym Translation Error caused by WebUtil?

    I have setup WebUtil and applied some CLIENT_TEXT_IO code to a form. Everything worked perfectly running through 9iDS so I configured 9iAS to do the same.
    When running the form through 9iAS I am getting the ORA-00980 error about synonym translation. The same database instance was used so so webutil_db shouldn't be the problem but I cannot see how this error could be related to WebUtil - anyone have any ideas.
    The CLIENT_TEXT_IO code still works even though this error is reported.

    Since you are on 10g did you try flashback table feature - http://tonguc.wordpress.com/2007/01/01/oracle-10g-flashback-versions-query-drop-table-and-recyclebin-management/
    FLASHBACK TABLE <tabname> TO BEFORE DROP;
    If you didnt use purge option, the dropped object is on your recyclebin - http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9018.htm#sthref9593
    Best regards.

Maybe you are looking for

  • I am trying to continuously switch images on the VI, but it freezes when I try to access an oscilloscope through its instrument driver.

    I am drawing 2 different colored rectangles contiuously on the screen using a while loop. I try to get information from an oscilloscope while this is switching, but the loop stops while the instrument driver aquires the measurement. The oscilliscope

  • Reg payment..

    hi friends,              in <b>cash sales</b> i want to know the payment details, reg one sales order how much pending and how much paid, i want to display that details, so where can i get the payment details reg one SO.

  • Excel 10.1.9 will not open files in Leopard public folder

    My Excel files are in a public folder of iMac A (Leopard 10.5.1). When I try to open an Excel document from iMac B (Leopard 10.5.1 or Tiger 10.4.11) Excel starts and let me know "Document was not found". I can open all the other files on the public f

  • Realize essbase data cache through business rule

    Hi! Can any body guide me how to realize essbase data cache through business rule. Thanks

  • Burn imovie to cd

    I have imovie 3. I made a wedding movie of photos that's about 454 MB. I wanted to copy it to a cd that holds 700 MB so I could have a friend who has a newer mac with a dvd burner transfer the imovie to her computer and burn it to dvd. When I try to