doubt on FLASHBACK TABLE

Dear members,
I do FLASHBACK TABLE as the user sys. I know that the FLASHBACK TABLE cannot be used for the SYS user.
always I have run this command with clouse to file and
When I run this command with timestamp clouse, I get error.
Can you get it someone please tell me why this is happening?
ORACLE: 11 GR 2
OS: FEDORA 14
-----
$ sqlplus / as sysdba
SQL > insert into values t11 ('k');

1 line of creation.

SQL >! day;
Sea 30 mai 15:45: 13 IST 2012

SQL > insert into values t11 ('z');

1 line of creation.

SQL > drop table t11.

Deleted table.

SQL > select * from dba_recyclebin;

OWNER OBJECT_NAME ORIGINAL_NAME OPERATION TYPE TS_NAME CREATETIME DROPTIME DROPSCN NOM_PARTITION RELATED BASE_OBJECT PURGE_OBJECT SPACE CANCAN
------------------------------ ------------------------------ -------------------------------- --------- ------------------------- ------------------------------ ------------------- ------------------- ---------- -------------------------------- --- --- ---------- ----------- ------------ ----------
SYS, BIN$ wT5v1Gw96zbgQGSsOaoM4g == $0 T11 DROP TABLE NISHANT 2012-05 - 30:14:47:37 2012-05 - 30:15:45:36 17728226 YES YES 85115 85115 85115 8

SQL > flashback table "BIN$ wT5v1Gw96zbgQGSsOaoM4g == $0 ' timestamp to_time (May 30, 2012 15:45:13 ',' dd/mm/yyyy hh24:mi:ss');
flashback table "BIN$ wT5v1Gw96zbgQGSsOaoM4g == $0" to to_time timestamp (May 30, 2012 15:45:13 ',' dd/mm/yyyy hh24:mi:ss')
*
ERROR on line 1:
ORA-08185: Flashback not supported for user SYS


SQL > flashback table "BIN$ wT5v1Gw96zbgQGSsOaoM4g == $0" before dropping.

Flashback complete.

before drop between recyclebin area (* flashback drop option *)

trying to flashback with data undo timestamp (* flashback table option *), is not supported for sys.

and the table created in the non-system tablespace

----------
SYS, BIN$ wT5v1Gw96zbgQGSsOaoM4g == $0 T11 DROP TABLE NISHANT 2012-05 - 30:14:47:37 2012-05 - 30:15:45:36 17728226 YES YES 85115 85115 85115 8

independent system LMT TBS will support recyclebin functionality

Published by: rash on May 30, 2012 18:07

Tags: Database

Similar Questions

  • ORA-00439: feature not enabled: Flashback Table

    If someone could help because I do not know why I get the error at the end of the script.

    Thank you very much

    CODD> select * from v$version;
    
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    
    CODD> create table test (cola number) enable row movement;
    
    
    Table created.
    
    
    CODD> drop table test;
    
    
    Table dropped.
    
    
    CODD> select original_name, operation, ts_name, droptime from recyclebin;
    
    
    ORIGINAL_NAME                    OPERATION TS_NAME                        DROPTIME
    -------------------------------- --------- ------------------------------ -------------------
    TEST                             DROP      USERS                          2014-01-08:13:08:27
    
    
    CODD> flashback table test to before drop;
    
    
    Flashback complete.
    
    
    CODD> insert into test values(10);
    
    
    1 row created.
    
    
    CODD> insert into test values(20);
    
    
    1 row created.
    
    
    CODD> select current_timestamp from dual;
    
    
    CURRENT_TIMESTAMP
    ---------------------------------------------------------------------------
    08-JAN-14 13.10.50.330000 +00:00
    
    
    CODD> insert into test values(100);
    
    
    1 row created.
    
    
    CODD> flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00';
    flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00'
    *
    ERROR at line 1:
    ORA-00439: feature not enabled: Flashback Table
    
    
    
    
    CODD> commit;
    
    
    Commit complete.
    
    
    CODD> flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00';
    flashback table test to timestamp timestamp '2014-01-08 13:10:50.00 +00:00'
    *
    ERROR at line 1:
    ORA-00439: feature not enabled: Flashback Table
    

    You use the Express edition. This includes no Flashback Table.

    Oracle® Database Express Edition

  • URGENT: Need to flashback table, how to find SNA for quite some time before the update that's happened?

    Hi all

    I have a new database 11G, I haven't used before flashback, but my retention time is a day... I have once the developer did a massive update to a table to corrupt.

    How can I find the RCS for this time so I can try this table of flashback?

    Thank you

    Cayenne

    Thank you.. I also found that it works:

    SQL > select timestamp_to_scn (to_timestamp('20140103152000','YYYYMMDDHH24MISS')) SNA double;

    SNA

    ----------

    98344246

    Although does NOT work all the time. But that's just what Oracle when you give him a timestamp to flashback to: it converts the timestamp of a SNA and then restores the data based on the SNA.

    See table of Flashback in the language SQL doc

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_9012.htm

    TIMESTAMP CLAUSE

    Specify a value of timestamp corresponding to the point in time to which you want to return to the table. The expr must evaluate to a valid time stamp in the past. The table will flash back to a period of about 3 seconds to the specified timestamp.

    This precision "3 seconds" is because of this conversion to SNA - Oracle uses its internal table.

    YVERT is accurate, if you know, but you typically do not have.

    Read and consider these warnings in app dev guide advanced

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28424/adfns_flashback.htm

    Guidelines for Oracle Flashback Query

    . . .

    General guidelines for Oracle Flashback Table

    . . .

    • For querying the latest data at a specific time, use a SNA. If you use a timestamp, questioned real time can be up to 3 seconds before the time you specify. Oracle database uses the SNA and assigns them to the timestamps to a granularity of 3 seconds.

    For example, suppose values SNA 1000 and 1005 are mapped on the timestamps 08:41 and 08:46, respectively. A query for a moment between 08:41 and 08:45:59 is mapped to the SCN 1000; an Oracle Flashback Query at 08:46 is mapped to the SNA 1005.

    By reason of this time-to-SNA map, if you specify a time slightly after a DDL (such as a table creation) Oracle database operation can use a SNA which is located just before the DDL operation, causing the error ORA-1466.

    . . .

  • Flashback table

    Hello
    I want to know if ALLOW the MOVEMENT of the LINE is required on all tables to support the return of flame?

    Let's take an example

    Create table emp (identification number, name varchar2 (10));
    drop table emp;

    Flashback table emp to before drop;

    would this work? I have not activated the movement line on table above. I have 10g Express edition, so I'm not able to verify the check it.please he answer me with a terse response

    Thanks in advance

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/statements_9012.htm#SQLRF01802
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_9012.htm#SQLRF01802

    Concerning

    Etbin

    Edited by: Etbin on 31.8.2011 21:18
    10g added link

  • Prerequisite to FLASHBACK TABLE

    Version: 10.2, 11.2

    I will say I've accidentally updated a table without specifying the WHERE clause. Can I use FLASHBACK TABLE command to restore it to the former State.

    Question1
    I have to run the FLASHBACK TABLE before UNDO_RETENTION period. That is to say. If my UNDO_RETENTION is set to 900 (15 minutes), I have to run the less command FLASHBACK TABLE 15 minutes of the error to the user. Right?


    Question2
    My current UNDO_RETENTION is 900 and UNDO_TBS size is 2.5 GB. If I want to increase UNDO_RETENTION 7200 (2 hours), I should increase the UNDO_TBS as well. Right? But, how to estimate this?

    Hello

    Question1
    I should execute the FLASHBACK TABLE command before UNDO_RETENTION time expires. ie. If my UNDO_RETENTION is set to 900(15 minutes) , i must execute the FLASHBACK TABLE command withing 15 minutes of the user error. Right?
    

    UNDO_RETENTION initialization parameter must be set to a value that is large enough to cover the period specified in the FLASHBACK TABLE statement.
    doc: http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/undo.htm#i1008150

    Question2
    My current UNDO_RETENTION is 900 and UNDO_TBS size is 2.5 gb. If i want to increase UNDO_RETENTION to 7200 (2 hours), i should increase the UNDO_TBS as well. Right ? But , how will i estimate this ?
    

    May not be necessary to increase the cancellation SCT size, maybe check and estimate the size of the cancellation of queries undo_stats

    CONSERVATION OPTIMAL UNDO = UNDO FULL SIZE / (DB_BLOCK_SIZE * UNDO_BLOCK_PER_SEC)

    SELECT MAX (undoblks/((end_time-begin_time) * 3600 * 24))
    'UNDO_BLOCK_PER_SEC '.
    V $ undostat;

    HTH

    -Pavan Kumar N

  • Flashback table does not work in 10.2?

    I thought that you can cancel a water drop and retrieve any table with FLASHBACK TABLE feature that comes with default 10.2 (i.e. no special set-up is required). But I get this error when I try to do.

    ORA-00439: feature not enabled: Flashback Table

    I've used FLASHBACK TABLE < table name > before dropping.

    Ahmer Mansoor says:
    Dear David,

    Please make sure the recyclebin parameter is on, if it is not, then follow these steps.

    SQL > ALTER SYSTEM SET RECYCLEBIN = SCOPE = BOTH;

    Well, you should check before posting a statement that if its working or not. Your answer will not actually in any way. First, the parameter is a static parameter and cannot be changed by the option TOGETHER. It must be spfile and will ask for a restart of the db. Please see below,

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> alter system set recyclebin=off;
    alter system set recyclebin=off
                                  *
    ERROR at line 1:
    ORA-02096: specified initialization parameter is not modifiable with this
    option
    
    SQL> alter system set recyclebin=off scope=both;
    alter system set recyclebin=off scope=both
                                    *
    ERROR at line 1:
    ORA-02096: specified initialization parameter is not modifiable with this
    option
    
    SQL> alter system set recyclebin=off scope=spfile;
    
    System altered.
    
    SQL> startup force
    ORACLE instance started.
    
    Total System Global Area  263639040 bytes
    Fixed Size                  1373964 bytes
    Variable Size             205523188 bytes
    Database Buffers           50331648 bytes
    Redo Buffers                6410240 bytes
    Database mounted.
    Database opened.
    
    SQL> show parameter recyclebin
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- -----------------------------
    recyclebin                           string      OFF
    SQL>
    

    Secondly, there is no relationship between the value of the start parameter and the message that receives the OP. If the parameter is set to OFF, it would be the message,

    SQL> conn aman/aman
    Connected.
    SQL> create table test_tab(a number);
    
    Table created.
    
    SQL> drop table test_tab;
    
    Table dropped.
    
    SQL> flashback table test_tab to before drop;
    flashback table test_tab to before drop
    *
    ERROR at line 1:
    ORA-38305: object not in RECYCLE BIN
    
    SQL> show parameter recyclebin
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- --------------------------
    recyclebin                           string      OFF
    SQL> select * from V$version;
    
    BANNER
    ---------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL>
    

    HTH
    Aman...

  • flashback table does not

    Hello

    I use oracle 10g R2 on linux X 86. I got reminiscence are the true value. one of my table was accidentally truncated.
    now I want what he back.other tables are reduced thanks to the flashback technology.

    but this error that "the definition of table has been changed" I not made any changes to the table definition.

    What could be the problem? even if I have backup, but would still like to know and retrieve it using flashback.

    return of flame retention objective has been set at 900. and table was droped well before that.

    Help, please

    Thanks and greetings
    VD

    Well it's okay and it isn't a mistake. Flashback table does NOT work with the DDL changes that you did on your table to Truncate. If you want to return to the table with Flashback, you need to use Flashback Database technology or traditional backup and restore techniques are the only station.
    HTH
    Aman...

  • Flashback Table: Oracle PW

    I find that I restore a table due to the error of the user, to return the data she had this morning - the loss of some data. Oracle 10Gex and then Apex 3.2.1 installation - I didn't know what was the password for database user 'Oracle '.

    When the desktop of the server - running the SQLPlus tool - I can connect to the database with SYS (or SYSTEM) DBA - but those ID's have no rights on the schema - at least I can't see the tables in the schema PRD/tablespace. Yes - during the installation, I created a specific tablespace of the user for the applications and it's data.

    I think that the 'oracle' user is that I need to connect to SQLPlus with to run the commands in flashback the table... but I could be wrong.

    What are your suggestions?

    Help!

    Rich

    Rich,

    Sorry, I don't know what give advised based flashback.
    Don't want to give the wrong information.

    Ask this question in the forums of database - general or SQL and PL/SQL .
    These forums are very active - in half an hour, you will know everything
    you need about flashback or how to restore your data.

    Kind regards
    Lev

  • Doubt of external Table

    Hi Master,

    Using Sql * Loader I can load the dat/csv/txt data to oracle tables. I can use it when clause contained in the data file and load control in different tables.

    e.g. when deptno = 20 then table 1. Where deptno = 10 then table2 etc...

    But using the external table... How can I load data in different tables as an example above? I googled. but do not get appropriate information. Please advise... !!

    Concerning

    AR

    Bad code. You use positional WHEN when you define variable length fields. As a result, your code will load Department 201, 2090,...:

    SQL > create table T_DEPTNO_20)

    NUMBER 2 DEPTNO,

    3 DNAME VARCHAR2 (14).

    LOC 4 VARCHAR2 (13)

    5)

    6 EXTERNAL ORGANIZATION

    () 7

    ORACLE_LOADER TYPE 8

    9 DEFAULT TEMP DIRECTORY

    10 ACCESS SETTINGS

    (11)

    12 RECORDS DELIMITED BY NEWLINE

    13 CHARGE WHEN (1:2) = "20"

    14 LOGFILE 'MyFile.log.

    15 BADFILE "MyFile.bad."

    16 NODISCARDFILE

    17 FIELDS TERMINATED BY ', '.

    18 EVENTUALLY FRAMED BY "" "

    RTRIM 19

    20 MISSING FIELD VALUES ARE NULL

    (21)

    22 DEPTNO,

    23 DNAME,

    LOC 24

    25)

    26)

    27 RENTAL ("MyFile.csv")

    28)

    RELEASE 29 UNLIMITED LIMIT

    30.

    Table created.

    SQL > select * from T_DEPTNO_20

    2.

    DEPTNO DNAME LOC

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

    SEARCH 20 DALLAS

    201 DO NOT LOAD ARMPIT

    SQL > drop table T_DEPTNO_20

    2.

    Deleted table.

    SQL > create table T_DEPTNO_20)

    NUMBER 2 DEPTNO,

    3 DNAME VARCHAR2 (14).

    LOC 4 VARCHAR2 (13)

    5)

    6 EXTERNAL ORGANIZATION

    () 7

    ORACLE_LOADER TYPE 8

    9 DEFAULT TEMP DIRECTORY

    10 ACCESS SETTINGS

    (11)

    12 RECORDS DELIMITED BY NEWLINE

    13 CHARGER WHEN deptno = '20'

    14 LOGFILE 'MyFile.log.

    15 BADFILE "MyFile.bad."

    16 NODISCARDFILE

    17 FIELDS TERMINATED BY ', '.

    18 EVENTUALLY FRAMED BY "" "

    RTRIM 19

    20 MISSING FIELD VALUES ARE NULL

    (21)

    22 DEPTNO,

    23 DNAME,

    LOC 24

    25)

    26)

    27 RENTAL ("MyFile.csv")

    28)

    RELEASE 29 UNLIMITED LIMIT

    30.

    Table created.

    SQL > select * from T_DEPTNO_20

    2.

    DEPTNO DNAME LOC

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

    SEARCH 20 DALLAS

    SQL >

    SY.

  • doubt in a table subpartitioning

    Hi gems... good evening...

    I have a table that was previously only range partitions.
    Now I changed it to the partitioning composite range-hash.

    There are 6 partition tablespaces namely TS_PART1, TS_PART2... TS_PART 6.
    The default tablespace of the schema is TS_PROD.

    The table had following structure previously:


    create the table ORDER_BOOK
    (
    CUST_ID NUMBER (10),
    PROFILE_ID NUMBER (10),
    PRODUCT_ID NUMBER (10),
    SUB_PROFILE_ID VARCHAR2 (25).
    DATE OF CASHFLOW_DATE,
    NUMBER (24.6) OF EARNINGS.
    constraint ORDER_BOOK_PK primary key (CUST_ID, PROFILE_ID, PRODUCT_ID, SUB_PROFILE_ID, CASHFLOW_DATE)
    )
    partition by range (CASHFLOW_DATE)
    (
    partition values ORDER_BOOK_PART1 less (TO_DATE (January 1, 2003 ',' DD-MM-YYYY "")) tablespace TS_PART1;
    partition values ORDER_BOOK_PART2 less (TO_DATE (January 1, 2006 ',' DD-MM-YYYY "")) tablespace TS_PART2;
    partition values ORDER_BOOK_PART3 less (TO_DATE (January 1, 2009 ',' DD-MM-YYYY "")) tablespace TS_PART3;
    partition values ORDER_BOOK_PART4 less (TO_DATE (1 January 2012 ',' DD-MM-YYYY "")) tablespace TS_PART4;
    partition values ORDER_BOOK_PART5 less (TO_DATE (1 January 2015 ',' DD-MM-YYYY "")) tablespace TS_PART5;
    partition values ORDER_BOOK_PART6 less (TO_DATE (1 January 2018 ',' DD-MM-YYYY "")) tablespace TS_PART6
    )
    ;
    create index ORDER_BOOK_IDX on ORDER_BOOK (PRODUCT_ID, CASHFLOW_DATE);





    Now, I did the following steps to change the existing partitions to the new partitions composite range-hash:

    Start
    DBMS_REDEFINITION. CAN_REDEF_TABLE
    (uname = > 'DEMO_TEST',)
    tNom = > "ORDER_BOOK"
    options_flag = > DBMS_REDEFINITION. CONS_USE_PK);
    end;
    /


    create the table INTERIM_ORDER_BOOK
    (
    CUST_ID NUMBER (10),
    PROFILE_ID NUMBER (10),
    PRODUCT_ID NUMBER (10),
    SUB_PROFILE_ID VARCHAR2 (25).
    DATE OF CASHFLOW_DATE,
    NUMBER (24.6) OF EARNINGS.
    constraint INTERIM_ORDER_BOOK_PK primary key (CUST_ID, PROFILE_ID, PRODUCT_ID, SUB_PROFILE_ID, CASHFLOW_DATE)
    )
    partition of range (CASHFLOW_DATE)
    SUBPARTITION by hash (CUST_ID)
    model SUBPARTITION
    (
    SUBPARTITION SP1 tablespace TS_PART1,
    SUBPARTITION SP2 tablespace TS_PART2,
    SUBPARTITION SP3 tablespace TS_PART3,
    SUBPARTITION SP4 tablespace TS_PART4,
    SUBPARTITION SP5 tablespace TS_PART5,
    SUBPARTITION SP6 tablespace TS_PART6
    )
    (values less than P1 (to_date('01-01-2003','DD-MM-YYYY')) partition,
    values of partition P2 lower (to_date('01-01-2006','DD-MM-YYYY')),
    values of partition P3 lower (to_date('01-01-2009','DD-MM-YYYY')),
    partition P4 values less than (to_date('01-01-2012','DD-MM-YYYY')),
    values for partition P5 lower (to_date('01-01-2015','DD-MM-YYYY')),
    values of partition P6 lower (to_date('01-01-2018','DD-MM-YYYY')))
    allow the movement of the line;


    Start
    dbms_redifinition.start_redef_table
    (uname = > 'DEMO_TEST',)
    orig_table = > 'ORDER_BOOK ',.
    int_table = > 'INTERIM_ORDER_BOOK ',.
    options_flag = > DBMS_REDEFINITION. CONS_USE_PK);
    end;
    /


    Start
    DBMS_REDEFINITION.finish_redef_table
    (uname = > 'DEMO_TEST',)
    orig_table = > 'ORDER_BOOK ',.
    int_table = > 'INTERIM_ORDER_BOOK');
    end;
    /




    After I did the index with the LOCAL clause is to say local indexes.

    But the problem is that... at the beginning when there is only the range partitioning, then the data will tablespaces corresponding score.

    But after editing the table, fill the array results in consumption of space in partition as well as the default tablespace storage.
    I checked the size of the storage space. Since I came to know about it.

    The output of the USER_TAB_SUBPARTITIONS is correct... each subparts are in the corresponding storage spaces.

    But the primary partitions (USER_TAB_PARTITION) are in the default tablespace.



    Please help me... thanks in advance...

    Published by: user12780416 on April 13, 2012 07:46

    >
    But the primary partitions (USER_TAB_PARTITION) are in the default tablespace.
    >
    Yes - so why is it a surprise?

    You have created a new table and storage for partitions has not specified then the default tablespace has been used. You did not specify tablespaces for subparts to each of them uses the specified tablespace.

    Don't you see the difference between the original

    partition ORDER_BOOK_PART1 values less than (TO_DATE('01-01-2003', 'DD-MM-YYYY')) tablespace TS_PART1,
    

    and the new

    (partition P1 values less than (to_date('01-01-2003','DD-MM-YYYY')),
    
  • Doubt PLSQL cursor table variable record

    Hi all

    My version of Oracle: Oracle 10 G

    I have a cursor, allows day:

    cursor c_emp
    is
    (select * from emp where empina = 10); -Now this * returns me 5 values, IE empid (100), (rahul) fname, lname (smith), sal (9000), deptid (10)

    Now, in my home, I have a cursor loop for example, like this:

    Start
    for rec_c_emp in c_emp
    loop
    ..
    ..
    ..
    end of loop
    end;

    Now my requirement is I need to capture these values(rec_c_emp.empid,rec_c_emp.fname,rec_c_emp.lname,rec_c_emp.sal,rec_c_emp.deptid) 5
    in a table that is to say i [0], I [1], I [2], I [3], I [4]

    Now please note that in the future my ' select * from emp' could make me more values and so I need to capture these values without changing my code.

    I hope that I clearly explained my problem, please help.

    Concerning
    Rahul

    Mac_Freak_Rahul wrote:

    Let's say I have a cursor:

    cursor c_emp is
    Select to_char (empid) empid, fname to_char (fname), lname to_char (lname), to_char (sal) sal to_char (deptid) deptid from emp where empno = 100;

    want these values to be assigned to my table of varchar2, as:
    a [0]: 100
    [1]: rahul
    [2]: smith
    [3]: 9000
    [4]: 10

    Possible - but not really reasonable.

    The projection of SQL itself must be a single table. For example

    SQL> create or replace type TArray is table of varchar2(4000);
      2  /
    
    Type created.
    
    SQL>
    SQL> col ARRAY format a50
    SQL> select TArray(empno,ename,job,sal) as ARRAY from emp order by empno;
    
    ARRAY
    --------------------------------------------------
    TARRAY('7369', 'SMITH', 'CLERK', '800')
    TARRAY('7499', 'ALLEN', 'SALESMAN', '1600')
    TARRAY('7521', 'WARD', 'SALESMAN', '1250')
    TARRAY('7566', 'JONES', 'MANAGER', '2975')
    TARRAY('7654', 'MARTIN', 'SALESMAN', '1250')
    TARRAY('7698', 'BLAKE', 'MANAGER', '2850')
    TARRAY('7782', 'CLARK', 'MANAGER', '2450')
    TARRAY('7788', 'SCOTT', 'ANALYST', '3000')
    TARRAY('7839', 'KING', 'PRESIDENT', '5000')
    TARRAY('7844', 'TURNER', 'SALESMAN', '1500')
    TARRAY('7876', 'ADAMS', 'CLERK', '1100')
    TARRAY('7900', 'JAMES', 'CLERK', '950')
    TARRAY('7902', 'FORD', 'ANALYST', '3000')
    TARRAY('7934', 'MILLER', 'CLERK', '1300')
    
    14 rows selected.
    
    SQL>
    SQL> begin
      2          for c in(
      3                  select TArray(empno,ename,job,sal) as array from emp where rownum < 3
      4          ) loop
      5                  DBMS_OUTPUT.put_line( 'ROW' );
      6                  for i in 1..c.Array.Count loop
      7                          DBMS_OUTPUT.put_line( 'array['||i||']='||c.Array(i) );
      8                  end loop;
      9          end loop;
     10  end;
     11  /
    ROW
    array[1]=7369
    array[2]=SMITH
    array[3]=CLERK
    array[4]=800
    ROW
    array[1]=7499
    array[2]=ALLEN
    array[3]=SALESMAN
    array[4]=1600
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • Doubt regarding accessible Table via DB link

    I have the following SQL code:

    Select * from tab1@db_link tab1, tab2
    where tab1.col1 = tab2.col2
    and tab1.col2 = 99;

    Can I make sure that Oracle provides data for:
    Select * from tab1 tab1@db_link
    where tab1 = 99;
    and then joined the data with tab2.

    What could be the most fast way to access the data in this way? Basically, I need to resolve a similar application.

    No not much difference. On both cases, oracle goes for the same plan. Here is a small test case

    select t.*
      from t@to_inlabnew t, t1
     where t.object_id = t1.object_id
       and t.object_type = 'TABLE'
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.03       0.16          0          0          1           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch      171      1.09       1.68          0          6          0        2544
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total      173      1.12       1.84          0          6          1        2544
    
    Rows     Execution Plan
    -------  ---------------------------------------------------
          0  SELECT STATEMENT   GOAL: ALL_ROWS
       2544   HASH JOIN
       1000    INDEX   GOAL: ANALYZED (FAST FULL SCAN) OF 'T1_IDX' (INDEX)
     199792    REMOTE OF 'T' (REMOTE)
                   [TO_INLABNEW.REGRESS.RDBMS.DEV.US.ORACLE.COM]
                  SELECT "OWNER","OBJECT_NAME","SUBOBJECT_NAME","OBJECT_ID",
                  "DATA_OBJECT_ID","OBJECT_TYPE","CREATED","LAST_DDL_TIME",
                  "TIMESTAMP","STATUS","TEMPORARY","GENERATED","SECONDARY" FROM
                    "T" "T" WHERE "OBJECT_TYPE"='TABLE'
    
    select t.*
      from (select * from t@to_inlabnew where object_type = 'TABLE') t, t1
     where t.object_id = t1.object_id
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch      171      1.09       1.46          0          6          0        2544
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total      173      1.09       1.46          0          6          0        2544
    
    Rows     Execution Plan
    -------  ---------------------------------------------------
          0  SELECT STATEMENT   GOAL: ALL_ROWS
       2544   HASH JOIN
       1000    INDEX   GOAL: ANALYZED (FAST FULL SCAN) OF 'T1_IDX' (INDEX)
     199792    REMOTE OF 'T' (REMOTE)
                   [TO_INLABNEW.REGRESS.RDBMS.DEV.US.ORACLE.COM]
                  SELECT "OWNER","OBJECT_NAME","SUBOBJECT_NAME","OBJECT_ID",
                  "DATA_OBJECT_ID","OBJECT_TYPE","CREATED","LAST_DDL_TIME",
                  "TIMESTAMP","STATUS","TEMPORARY","GENERATED","SECONDARY" FROM
                    "T" "T" WHERE "OBJECT_TYPE"='TABLE'
    
  • Table of Flashback and the movement of the line!

    Hello Experts,

    I have a doubt in the next box.

    Movement of the line must be activated for all tables to be able to use the Flashback table feature unless you are flashing back the table TO BEFORE DROP . According to my understanding, you can not enable Row movement for a table that is not partitioned. This finish not FLASHBACK table with activated line movement, you can and you can't activate a movement row for a table that is not partitioned.  So, how can I use FLASHBACK table to NOT partitioned table function?

    Please see the error message when I tried to enable ROW movement for a non-partitioned table below.

    SQL error: ORA-14066: illegal option for a not partitioned index organized table

    14066 00000 - "illegal option for a table held in index unpartitioned.

    * Cause: An attempt was made to issue a CREATE or ALTER TABLE

    command on an unpartitioned ITO, but the order contains a

    option that is legal only for partitioned tables organized by index.

    These options are: ENABLE ROW MOVEMENT and DISABLE ROW.

    Thank you

    No - your question is about FLASHBACK and IOT.

    So, how can I use FLASHBACK table to NOT partitioned table function?

    I have already posted the link to doc as telss you that you cannot enable row movement for a not partitioned IOT.

    View sample data for this table (in the form of INSERT statements) and queries, DML and FLASHBACK that you try to use this table that is a failure.

  • Flashback work table with a deleted column

    Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Hello

    I have the following problem.

    I accidentally dropped a column containing the data of a table and to restore the state table, it was before I did.

    I found a reference on the internet which States that you can use flashback to retrieve a table to a set in the past point, even if you deleted a column.
    Flashback Table
    
    Just as the flashback query helps to retrieve rows of a table, FLASHBACK TABLE helps to restore the state of a table to a certain point in time - even if a table structure change has occurred since then. The following simple command will take us to the table state at the specified timestamp:
    
    SQL> FLASHBACK TABLE Employee TO 
               TIMESTAMP ('13-SEP-06 8:50:58','DD-MON-YY HH24: MI: SS');
    
    Reference - http://www.orafaq.com/node/872
    My DBA has sent me the following information;
    Oracle Metalink note  
    
    Limitations and Restrictions on Flashback Table :
    
    Flashback Table operations are not valid for the following type objects: tables that are part of a cluster, materialized views, Advanced Queuing (AQ) tables, static data dictionary tables, system tables, remote tables, object tables, nested tables, or individual table partitions or subpartitions.
    
    The following DDL operations change the structure of a table, so that you cannot subsequently use the TO SCN or TO TIMESTAMP clause to flash the table back to a time preceding the operation: upgrading, moving, or truncating a table; adding a constraint to a table, adding a table to a cluster; modifying or dropping a column; adding, dropping, merging, splitting, coalescing, or truncating a partition or subpartition (with the exception of adding a range partition).
    
    You cannot rollback a FLASHBACK TABLE statement. However, you can issue another FLASHBACK TABLE statement and specify a time just prior to the current time. Therefore, it is advisable to record the current SCN before issuing a FLASHBACK TABLE clause.
    Then my return of flame using DBA in this situation or not?

    Ben

    >
    Is the ORAFAQ, a site with a good reputation for more information.
    >
    I found that it is quite reliable. But when ANY site talking about a newly introduced feature, it must trigger at least one indicator "attention". There may be so many variables affecting the functioning of a new feature or is used unless you see a working example, you must create your own test case.

    As I said some things, like your question above, can be easily verified, so there is no reason to rely on any document to see if it works.
    >
    Is anyway to cancel this kind of thing or it is unrecoverable?
    >
    Almost nothing is "sunk", if you have the right type of backup. For a deleted column, you have an export of the table before the fall.

    Recommended for small changes DDL (for example related to an incremental update) is to take an export of the affected table.

  • Deleted lines flashback: unable to read data - table definition has changed

    Hi all

    Its really Important.

    I unfortunately truncated a table using
    Trancate table mytable;

    and made an alter table to reduce the length of the pricision data.

    But I need back data of tabla

    I used the command to get the deleted lines, below, it shows error.

    query: select * from pol_tot versions between timestamp systimestamp-1 and systimestamp;
    error: ORA-01466: unable to read data - table definition has changed

    query: flashback table pol_tot to timestamp systimestamp - interval '45' minutes;
    error: ORA-01466: unable to read data - table definition has changed

    Well want to share your ideas how can I deleted thoose Records.

    Edited by: 887268 July 8, 2012 12:26

    This

    and Made a alter table to decrease data pricision length.
    

    is the cause of your error.

    Now please do what is obvious.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Desktop API

    Hello I know that you have retired from the API on the desk and I also read that you reversed this decision for some aspects of the API, which is good news at least for our society. However, we must Access the API documentation to really do something

  • Unoock bootloader code

    Neee bootloader on my Xperia M4 Aqua code unlocking, how yo get it? Sony Xperia care allways me referring to this page, bougth this month of the device there is, at first startup after update almost no space is available on the internal satorage, ins

  • My logon user profile not working after a windows update, I can't connect to my computer.

    Last week I got an automatic update of windows on my computer (17 new). After that, I couldn't connect to my computer again. Loading the windows page, it shows two users icons profiles that were created and when I click on the profile of each user, i

  • Windows 7 creates a RECOVERY PARTITION? __Si Yes, what size?

    Windows 7 creates a RECOVERY PARTITION?If so, what size?

  • Problem using ArrayDataModel &amp; ListView

    Hi all, I do not understand how to use ArrayDataModel with the ImageView as a ListItemComponent in the ListView. Is this possible? ListView { id: myList dataModel: ArrayDataModel { id: theDataModel } onCreationCompleted: { theDataModel.append("../ima