IKM Oracle incremental vs. IKM SQL command Append

We will charge a lot of files at the same TIME (asynchronous mode) on a daily basis. We develop interfaces to load these files in the Oracle database. Data can be sometimes important. What IKM (IKM Oracle incremental update vs. IKM SQL command Append) is best to use in interfaces? If we use IKM SQL append, it a problem if load us several files at the same time (asynchronous mode) this charge table IKM target mode replace. I don't know what is this mode of replace? It truncates the temporary tables for each load?

I would be grateful if someone clarifies and suggest what is the best way to use one of these IKMs in interfaces design.

Thank you
RP

Hi, PR,

Good to know that your issue has been clarified.

Please close the message if you feel.

Thank you
Guru

Tags: Business Intelligence

Similar Questions

  • IKM SQL file Append-controlled fails when it is used with the Scheduler

    Hello
    We have an interface in our package where we use IKM SQL file Append-controlled. It is supposed to do an insert/truncate a local file destination. This step fails with the error 7000 run with the Scheduler. Looks like some sort of permission error.
    When the package is run manually (in the same location as the Planner), he runs this interface successfully.
    Any suggestions?
    Wwhen the IKM research, it does not say that the "target file must be physically accessible by sunopsis agent." The file is local to the server running the Scheduler; by operating manually also, it is run from the server.
    This is the error to "truncate": step
    7000: null: java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv
    java.sql.SQLException: file not found: \ < filepath > / < Filename > .tsv

    Any suggestions?
    Thank you
    Elkaïm

    Published by: 784749 on February 1st, 2011 05:47

    HI -.
    Agent ODI connection users that you have provided to the service Windows ODI. If you have not provided one that he would use the native ID (one that was created when installing the OS I think). If you have not provided any newspaper on before its best to provide to a user that has enough previlage.

    -app

  • OutOfMemoryError: Limit superior GC exceeded when loading directly the source using IKM sql for sql. Growing ODI_MAX_HEAP do not solve the problem.

    OutOfMemoryError: GC overhead limit at execution a loading interface directly sql for sql with no work table.

    I get the error message: error: exception OutOfMemoryError: higher GC limit exceeded when executing an interface making a direct using IKM SQL for SQL command load Append, source a 150millions lines table.

    I have increased the ODI_MAX_HEAP and the interface run longer and failed. I'm already at: ODI_MAX_HEAP = 12560 m I tested with ODI_MAX_HEAP = 52560 m and still error.

    I am following up to the memory of the server and I still have available memory...

    Apart from the problem of memory I know that this type of load should be possible because the step of data load on LKM SQL to Oracle is able to load the work table $ CAN. Ideally, I want to emulate this behavior by using SQL for SQL IKM.

    1 - What is the right path to follow here? (change the parameters of memory or modify the IKM?)


    2 - ideas on how to solve the OutOfMemoryError: GC overhead limit exceeded error? (GC means Garbage Collector)

    Execution of the IKM interface in the Simulator generates this code:

    Load (Source) command:

    Select

    source - tbl.col1 COL1,

    source - tbl.col2 COL2,

    source-tbl. "' COL3 ' COL3

    of public.source - tbl AS source-tbl

    where

    (1 = 1)

    Default command (Destination):

    insert into the source-tbl

    (

    col1,

    col2,

    COL3

    )

    values

    (

    : COL1,.

    : COL2.

    : COL3

    )

    My experience is very limited with ODI so I don't know about changing the code to the KMs

    Thanks in advance.

    Find a work around the error of generals limit exceeded GC:

    -in my case I was running without the IDE so that changes made to the odiparams.sh were not useful.

    -This means that I need to change the JVM settings to:

    $ODI_HOME/oracledi/client/odi/bin/odi.conf

    AddVMOption - XX: MaxPermSize = NNNNM

    $$ODI_HOME/oracledi/client/ide/bin/ide.conf

    AddVMOption - XmxNNNNM

    AddVMOption - XmsNNNNM

    Where NNNN is a higher value.

  • IKM SQL for Hyperion Essbase (data) error

    Hello
    I've created an interface between Oracle DB and Essbase 11.1.2.
    I used Oracle DB as transit zone. I used IKM SQL for Hyperion Essbase (data) as a selector IKM.
    But I got an error as below in step ("Load Data on Essbase"); Can you help me? Thank you...

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (most recent call changed):
    File "< string >", line 21, < module >


    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)

    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)

    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)

    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)

    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)

    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)

    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:919)

    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1261)

    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1419)

    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1668)

    at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:432)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)


    java.sql.SQLSyntaxErrorException: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression


    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:346)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2457)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:338)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:263)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:822)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    Hello

    finished column mapping, or be owned by mapping active of course active for each column.

  • IKM SQL for Hyperion Essbase (metadata) - problem when you dial the name of the Member

    Hello world

    I need to load the metadata to Essbase to a relational database.
    Essbase: 9.3, Oracle 9i, ODI 10.1.3.5.0
    I have a dimensional table contains the data in the Scenario dimension. The table has 3 columns: code, alias, consolidation.
    Example of 2 lines:
    Effective law-
    BDG budget-

    I created a rule file load_scn.rul to update the scenario dimension in my essbase cube and at the launch of the console of administration services it does not work. Each Member has his alias and it is sign of such consolidation as specified in the table.

    In ODI
    I created an essbase data store, a data store for my table and an interface. The interface uses the knowledge "IKM SQL for Hyperion Essbase (metadata)" module and the load_scn.rul of State of charge.
    When I run the interface, it will end successfully, but when I check the Essbase outline, the two members were loaded with the name of name of Member composed of all 3 columns in the table dimensional as a single string line!
    I have a member named ' law, real, + "and another called ' bdg, budget,-'."
    Members have no alias and peacebuilding is the default ('+') and not '-' as shown in the dimensional table.

    Has anyone of you had this problem? If so, how to solve it?

    Any help will be very appreciated!
    Daniela

    Sounds like in the rule under load in the IKM options you have to have the separator rules comma value and data > defined in the tab, replace it with commas in the rule of data source properties.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Definition of IKM SQL permission to add files

    Hi all

    I am inserting data into a table to deposit using IKM SQL to add files. Is it possible to control the permission chmod the created file

    Thanks in advance

    Hello

    create an OS command and run the command chmod by using this aclling celebrate your Interface.

    Or where applicable (in certain cases) customize your KM

    Create a KM duplicate and rename it (according to your choice)
    Add a step before adding / after apeending (according to the guidelines of the business rule)
    write your chmod step in that.

    Please let me know if you need more information on this

    You can leave a mail at [email protected] (now I m not having the time to go through the forum)

    Kind regards
    Pascale of M

  • Apex - dbms_job.submit (Oracle) in SQL commands

    I have connected to oracle apex (version 4.2.5.00.08) at the URL https://apex.oracle.com/pls/apex/f?p=4550:1:0:

    I am trying to execute the procedure of dbms_job.submit through SQL Workshop-> SQL commands)

    The code is as shown below

    *************************************************************************************************************************

    declare

    -jobno number;

    jobno varchar2 (20);

    Start

    dbms_job. Submit (work = >: jobno,)

    This = > ' START

    emp_pack.remove_dept (16);

    END;',

    next_date = > trunc (sysdate + 1).

    interval = > 'trunc(sysdate+1) '.

    );

    -dbms_output.put_line ('Job No. :'||: jobno);

    commit;

    dbms_output.put_line ('Job No. :'|| is jobno);

    end;

    *************************************************************************************************************************

    The procedure of package I'm talking in the parameter 'WHAT' is defined as shown below

    create or replace package emp_pack is

    process remove_emp()emp_id in NUMBER)

    process remove_dept()dept_id in NUMBER)

    end emp_pack ;


    create or replace package body emp_pack

    is

    process remove_emp()emp_id in NUMBER( )

    is

    begin

    delete from EMP

      where EMP .EmpNo = emp_id ;

    end remove_emp;

    process remove_dept()dept_id in NUMBER( )

    is

    begin

    delete from dept

      where Dept .DeptNo = dept_id ;

    end remove_dept

    end emp_pack ;

    *************************************************************************************************************************

    while trying to run the piece of code (I'm passing avlaue from 35 to the jobno to the RUN time parameter) is the error I get

    ORA-06502: PL/SQL: digital or value error: character string buffer too small


    I tried to know everything, I have, but have not been able to determine what is causing the error. Help, please

    Super weird... I just ran the following on apex.oracle.com and got "1 row (s) deleted', not 'treated statement."

    declare
      l_job int;
    begin
      /* dbms_job.submit( l_job, 'begin delete from emp; end;' ); */
      rollback;
    end;
    
  • IKM SQL for Hyperion Essbase (data)

    I am trying to load data into essbase through the ODI interface however module "IKM SQL for Hyperion Essbase (data)".

    Whenever data gets overwritten, how I accumulate this data during loading. As it is quite difficult for me to summarize the data, then load.

    Kind regards

    Amine ravi

    Use a rule to load and set to add to the existing values in the State of charge, adjustable load rule name in the options of the IKM.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • The IKM selector selection error: IKM SQL for Hyperion Planning

    Hello

    On the tab 'Flow' of my model, I click on my head to target. Then on the drop down 'Selector IKM', select 'IKM SQL for Hyperion Planning. It gives the error:

    Internal error: ODI-15526: IKM IKM SQL for Hyperion Planning not accepted for stage director and target technology


    Any ideas? I am really new green on ODI and I am at the end to try to run my dimension build. Any help is appreciated.

    You must select a transit area which is different to the planning, because this isn't an intermediate technology supported. What you need to do is to go to the tab definition of your interface tick the 'target different transit zone"and then select a relational technology (that is, one that takes supported SQL) in the drop-down list below. If you have no relational db on stage your data and then select ENGINE SUNOPSIS MEMORY which is the memory in DB that is provided as part of the ODI.

  • IKM SQL FOR SQL query add

    Hello
    I went through this link:
    Ask about the creation and filling I$ table on different condition


    But I read in the case of IKM SQL FOR SQL add no I$ table is created.
    If this is true please tell me why not I$ is created for this IKM?
    So please tell me how the Frother is checked it to Check Knowledge Module (CKM)?

    Thank you
    Sébastien

    PS:
    I'm a freshness in tech ODI. So I can fool me please don't bother me

    1. you need to create a mapping. Next, you need to see the code generated at each stage of all.
    Try to analyze it. Then you will have a clear idea.

    If see vedio carefully as given below, you can find staging area is on the source. So its directly select all the columns in the source tab and the insertion of these value in the tab target. No need to use I$ table. Yet once there is no option of flow_control. You can find the static_control.
    http://S3.amazonaws.com/ora/ODI-Simple_SELECT_and_INSERT-interface.swf

    To learn more about flow_control and static_control please go through
    http://odiexperts.com/flow-control-and-static-control/

    Thank you.

  • ODI IKM SQL to the issue of planning

    Can someone help me with this one? I try to run a planning revenge for updating a dimension planning metadata schema and uses the IKM SQL for planning. After execution of this fact, the operator indicates the status finished, but an exception occurred in one of the steps, "statistical report. I use the Sunopsis_Memory_Engine as my sleeping area and my flowchart begin with a flat file (LKM SQL file), transit area Sunopsis target is planning (IKM SQL to planning). In my mapping schema, I have all the columns to run on the staging area, except for columns parent and children that I performed on the source. This is the message of the step execution of 'Statistical report' which seems to fail. Someone knows how to fix this?


    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):

    "< String >" file, line 2, in there?

    Planning, writer load summary:

    Number of rows processed successfully: 0

    Number of lines dismissed: 237



    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)

    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)

    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)

    at com.sunopsis.dwg.cmd.e.i (e.java)

    at com.sunopsis.dwg.cmd.g.y (g.java)

    at com.sunopsis.dwg.cmd.e.run (e.java)

    at java.lang.Thread.run (unknown Source)

    Hello

    Also helped the error logs in the IKM as this newspaper should also explain why they are rejected.
    The operator a failure is a red icon, icons you are pointing out are yellow, they may be a mistake but they are not serious, for example, he tries to drop a table if there is no he warns and practices, if the table is going to happen, these aren't serious failings, to worry are red.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • GET with multiple PL/SQL commands

    Hello!

    I m try to load a file into sqlplus using the GET command. I can't use or BEGIN (if you want to know why: set escape)

    The problem is that this file has more than one command, like this:

    drop table teste_cardia;
    
    create table teste_cardia (
        id number,
        nome varchar2(255)
     );
    

    When I run the loaded file (with /). I got this error:

    C:\Cardia>sqlplus /NOLOG @aaaa.sql
    SQL*Plus: Release 11.1.0.7.0 - Production on Qua Fev 4 10:42:16 2015
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    
    SQL> CONNECT SATIR/XPTO11TB@IDEV10G
    Conectado.
    SQL> SET SQLPROMPT "SQL>"
    SQL>SET SERVEROUTPUT OFF
    SQL>SET LINESIZE 255
    SQL>SET SCAN OFF
    SQL>SET DEFINE OFF
    SQL>SET SERVEROUTPUT ON
    SQL>SET SQLBLANKLINES ON
    SQL>SET VERIFY OFF
    SQL>SET ESCAPE ON
    SQL>GET teste4.sql
      1  drop table teste_cardia;
      2  create table teste_cardia (
      3      id number,
      4      nome varchar2(255)
      5*  );
      6  /
    drop table teste_cardia;
                           *
    ERRO na linha 1:
    ORA-00911: invalid character
    

    If I run a file with a single command without «;» This works.

    I tried to replace ';' by ' / '. Didn t work. Tried using sqlterminador, cmdsep and none of it worked.

    It s possible to have multiple commands in a file and run with GET and /?

    Hi Mario,.

    In my view, that the GET command has no for this.

    The documentation says https://docs.oracle.com/cd/B10501_01/server.920/a90842/ch13.htm

    GET loads a host operating system file in the SQL buffer.

    And in the SQL buffer, you can execute only one statement at a time.

    You can not do this

    < verdi_takt:op56 > select user from dual; select sysdate from dual;
    select user from dual; select sysdate from dual
                         *
    ERROR at line 1:
    ORA-00911: invalid character
    
    < verdi_takt:op56 > select user from dual
      2  select sysdate from dual;
    select sysdate from dual
    *
    ERROR at line 2:
    ORA-00933: SQL command not properly ended
    

    So your file with the command of 2 or more must fail.

    concerning
    Kay

  • LOV query fails, but works in SQL commands

    I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:

    Impossible to analyze the query SQL LOV!

    ORA-00942: table or view does not exist

    Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?

    The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.

    SELECT
          PG.POST_CODE||' '||PT.NAAM
    FROM
          V_PRT_GEM_T PT
          INNER JOIN
          PRT_GEM PG
          ON
          PT.NR = PG.NR
    WHERE
          LAN_NR = 4
    
    

    Julijan wrote:

    I am trying to create a type with semi-automatic item text field, but the query I fill in the definition of LOV returns an error:

    Impossible to analyze the query SQL LOV!

    ORA-00942: table or view does not exist

    Although when I try the same query in the form of SQL commands, it works without any problem. No idea what I am doing wrong?

    The query is as follows, where v_prt_gem_t is a view and prt_gem is a table.

    1. SELECT
    2. PG. POST_CODE | » '|| PT. NAAM
    3. Of
    4. PT V_PRT_GEM_T
    5. JOIN IN-HOUSE
    6. PG PRT_GEM
    7. WE
    8. PT. NR = PG. NR
    9. WHERE
    10. LAN_NR = 4

    It is likely that CERTAIN privileges on one or two tables/views used are granted for the scheme of the analysis of the application through a role, not directly to the schema. Role-based privileges will be observed in the workshop of SQL in the latest versions of database, but not for running applications. See (YABAOAE) yet another Blog about Oracle Application Express: Application Express and SQL Analysis for detailed information.

    That's why you always have to give the full APEX and the database version numbers when you ask a question: implementations and features change over time. If we know exactly which versions are used so we can determine what behavior is expected, and what bugs exist or have been corrected...

  • SP2-0309: SQL * command procedures can only be nested to a depth of 20

    HELLO EVERYONE

    HAVE THIS CODE:

    clear the screen

    prompt ***********************************************

    prompt *                                                                    *

    prompt *                                                                    *

    Guest * CHOOSE ONE OF THE OPTIONS: *.

    prompt *                                                                    *

    Guest * 1. Create the role *.

    Guest * 2. Privilege to grant to a role *.

    Guest * 3. Create user *.

    Guest * 4. Role of granting a user *.

    prompt *                                                                    *

    prompt *                                                                    *

    prompt ***********************************************

    accept the choice prompt "enter choice:

    fixed term off

    column virt_col new_value by v_choice

    Select

    case '& choice '.

    When '1', then 'C:\PLSQLII\mid_lab\script1.sql '.

    When '2' then 'C:\PLSQLII\mid_lab\script2.sql '.

    When '3' then 'C:\PLSQLII\mid_lab\script3.sql '.

    When '4' then 'C:\PLSQLII\mid_lab\script4.sql '.

    end

    as virt_col

    Double;

    Set term on

    @& v_choice

    SO WHEN I GET 1 I CALL THIS CODE:

    set verify off

    Set serveroutput on

    clear the screen

    prompt ***********************************************

    prompt *                                                         *

    prompt *                                                         *

    Guest * CREATE ROLE *.

    prompt *                                                         *

    prompt *                                                         *

    prompt ***********************************************

    accept invites role "Enter role to create:

    declare

    Report number;

    Start

    CREATE_ROLE ('& role ', status);

    If (status = 1) then

    dbms_output.put_line ("' this role already exists!");

    on the other

    dbms_output.put_line ('role created.');

    end if;

    end;

    prompt *********************************************************

    accept invites of choice «Press any key to return to the main menu...» »

    @ "C:\PLSQLII\mid_lab\menu.sql".

    BUT WHEN I ENTER A NAME FOR A ROLE, HE ME GIVES THIS ERROR:

    SP2-0309: SQL * command procedures can only be nested to a depth of 20...

    COULD YOU PLEASE HELP?

    Thank you!

    Who executes the PL/SQL block in your second script, then you'll want to add it to your script.

    See: http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve037.htm

    Furthermore, your caps-lock key seems to be broken...

  • FLASHBACK Database: rman vs. sql command differences

    I am new to Oracle and want to understand the difference and that is the correct way of rear turn signals to the database?


    RMAN command vs SQL command on the use of FLASHBACK DATABASE
     SQL> FLASHBACK DATABASE TO RESTORE POINT BEFORE_ONLINE_TEST;  {CODE} Vs 
    RMAN > run {}
    flashback database to restore the BEFORE_TEST_320130313 point;
    SQL ' alter database open resetlogs; }
     
    Referring this article on http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmflash.htm#BGBDCAFA it says we can use both RMAN and SQL command for database flashback.
    
    Questions:
    
    1. Difference between using RMAN and SQL command on database flashback?
    
    2. When to use RMAN or SQL on the  database flashback?
    
    3. Which is the Oracle recommended or best way ?
    
    Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM
    
    Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM
    
    Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM
    
    Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM
    
    Edited by: Sivaprasad S on Mar 15, 2013 7:28 PM
    
    Edited by: Sivaprasad S on Mar 15, 2013 7:29 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    So when you run your SQLPlus flashback, you get the following error:

    ORA-38761: redo log sequence 1 in thread 1, incarnation 3 could not be found

    This means so that the sequence 1 has probably been removed from the disk and is necessary.

    When you run the RMAN command look at the log what RMAN:

    * journal archived for thread 1 sequence 2 is already on the disc in the file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_2.3612.810054205*
    * journal archived for thread 1 with sequence 3 is already on the disc in the file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_3.1588.810054205*

    So sequence 2 and 3 are already on record according to the above message.

    Then you get this message:

    channel dev_2: restoration of archives Journal
    Archives journal thread = 1 sequence = 1

    So RMAN knows he needs 1 thus sequence and restores this newspaper archive she needs for recovery.

    In a Word while running SQLPlus she communicate with RMAN and restore the log file for you, however with RMAN, it won't.

    You can restore the newspaper archive manually, and then run in SQLPlus that will then work.

    Published by: Freddie Essex on March 18, 2013 12:46

Maybe you are looking for