While problems brought together three tables in Oracle

Hello

I'm trying to join the three tables in Oracle, but get unexpected results. Here it is the situation.

Table A has 10 rows and I want the line with Max date, table B has 20 rows and I want the line with Max date, so these 2 tables, I want 2 rows. Similarly, there are 10 tables with a huge amount of data.
So I created another table called table key and extract the name of the Table, the Table key (common across all the tables and plan called of code) and entered into force (it is a date max)

If key table now has a line of each table.

When I joined the table a (E221), table B (E227) and key table with query below, it does not result in any line. Can you please on how it should be resolved. Here it is the data from 3 tables.

Table A (E221)
PLAN_CODE DATE CAR GRP
12040005 19900801 1204 0005 20
12040005 19850201 1204 0005 19
12040005 19840801 1204 0005 20
12040004 20080806 1204 0004 20
12040004 20080804 1204 0004 20
12040004 20070701 1204 0004 20
12040004 20060101 1204 0004 20
12040004 20020101 1204 0004 20
12040004 20010730 1204 0004 20

TABLE B (E227)

12040005 19850201 1204 0005 0005
12040005 19840801 1204 0005 0080
12040004 20091001 1204 0004 6782
12040004 20070901 1204 0004 6782
12040004 20051101 1204 0004 6782

Key table

12040004 20080806 E221
12040005 20080806 E221
12040004 20091001 E227
12040005 20091001 E227

Query used
SELECT E221.*,
E227.*,
KEY_PLAN_CODE.*
OF E221
JOIN INTERNAL KEY_PLAN_CODE
ON KEY_PLAN_CODE. EC_PLAN_CD = E221. EC_PLAN_CD AND KEY_PLAN_CODE. MAX_EFF_DATE = E221.cg_cvr_BS_EFF_DT
AND KEY_PLAN_CODE. EC_TRAN_CODE = E221. EC_TRAN_CODE
JOIN IN-HOUSE E227
ON (KEY_PLAN_CODE. EC_PLAN_CD = E227. EC_PLAN_CD
AND E227. PLAN_EFF_DT = KEY_PLAN_CODE. MAX_EFF_DATE
AND KEY_PLAN_CODE. EC_TRAN_CODE = E227. EC_TRAN_CODE)

Any suggestions would be helpful.

I'm still a little confused as to what should be returned.

Your key table includes:
12040004 20080806 E221
12040005 20080806 E221
12040004 20091001 E227
12040005 20091001 E227

I suppose you want returned:
E221 line with plan_code 12040004 and the date 20080806
E221 line with plan_code 12040005 and the date 12040004
Line E227 with plan_code 12040004 and the date 20091001
Line E227 with plan_code 12040005 and the date 20091001

Your query returns original nothing because, for example, the line containing plan_code 12040004 and date 20080806 can does not match anything in the E227 table with this plan_code and the date.

I think you are saying that what you want is, for each value of different plan_code, you want recording E221 corresponding to "E221" key_table folder with the date of the registration, and you also want to record E227 corresponding to "E227" key_table folder with the date of registration. I also guess that there must be a record E221 both INAT E227, otherwise nothing is returned for this plan_code.

I suppose also that there is no record more "E221" and no more a 'E227' record in key_table for any value special plan_code.

In this case, you want to do something like this:

SELECT K.*, E221.*, E227.*
FROM
(
  SELECT k221.ec_plan_cd, k221.max_eff_date AS e221_date, k227.max_eff_date AS e227_date
  FROM key_plan_code k221
  JOIN key_plan_code K227
  ON k227.ec_plan_cd = k221.ec_plan_cd
  WHERE k221.ec_tran_code = 'E221'
  AND k227.ec_tran_code = 'E227'
) K
INNER JOIN E221
ON (E221.ec_plan_cd = K.ec_plan_code AND E221.cg_cvr_bs_eff_dt = K.max_eff_date)
INNER JOIN E227
ON (E227.ec_plan_cd = K.ec_plan_code AND E227.plan_eff_dt = K.max_eff_date)

The subquery K Gets a line for each ec_plan_cd in key_plan_code with a record 'E221' and a «E227» folder

I'm assuning ec_tran_code is the column of key_plan_code with 'E221' and 'E227. " If this is not the case, use the correct name.

-Don

Tags: Database

Similar Questions

  • TO THE FUNCTION SUM WHILE JOINING THREE TABLES

    Hello

    I meet three tables as below in my oracle 9i DB.
    create table ac 
    (account_no varchar2(10),
    bal number)
    
    
    create table c
    (cid number,
    aid number,
    cname varchar2(50)
    )
    
    create table mu
    (ms number,
    BILLING_ACC_NO varchar2(10),
    aid number,
    cid number)
    and I have examples of data like this
    insert into ac (account_no,bal ) values ('1234',3456);
    insert into ac (account_no,bal ) values ('98767',567);
    insert into ac (account_no,bal ) values ('6754',6789);
    insert into ac (account_no,bal ) values ('54678',9453);
    
    insert into c (cid,aid,cname ) values (231,5050,'asdf');
    insert into c (cid,aid,cname ) values (131,5150,'fghj');
    insert into c (cid,aid,cname ) values (221,5050,'rtyu');
    insert into c (cid,aid,cname ) values (931,5151,'asdf');
    
    
    insert into MU (cid,aid,BILLING_ACC_NO ,MS) values (231,5050,'1234',987654);
    insert into MU (cid,aid,BILLING_ACC_NO ,MS) values (231,5050,'98767',8987654);
    insert into MU (cid,aid,BILLING_ACC_NO ,MS) values (221,5050,'6754',3434343);
    insert into MU (cid,aid,BILLING_ACC_NO ,MS) values (221,5050,'54678',667799);
    insert into MU (cid,aid,BILLING_ACC_NO ,MS) values (131,5150,'546738',66779933);
    I need the output as below help = 5050 table c.

    >
    c.CID, c.cname, sum (ac.bal)
    231, asdf, (3456 + 567 = 4023)
    221, rtyu, (6789 + 9453 = 16242)
    >

    selected the cid, cname in table c and found the list BILLING_ACC_NO table mu for help 5050 and every cid after found the sum (bal) for all these account_no (BILLING_ACC_NO MU).

    CID 231 cname asdf is to have BILLING_ACC_NO listed as 1234, 98767 and for these account_no in the ac table ball are 3 456 567 so its sum is needed.

    hope I explained it clearly.

    pls help me to get there.

    SELECT c.cid,
    c.CNAME,
    RTrim (regexp_replace (xmlagg (xmlelement (e, ac.bal |)))) ','))
    . Extract ('//Text ()'),
    ',',
    '+'),
    '+') || '=' || Sum (AC.bal)
    C, mu, ac
    WHERE mu.cid = c.cid
    AND mu.aid = c.aid
    AND account_no = mu.billing_acc_no
    GROUP OF c.cid, c.cname;

  • Mapping of 12 ODI is a failure loading the table to the table in oracle DB

    Hi Experts,

    I'm starting to ODI, attempts to load data from the Table to the Table in Oracle DB. Source table and target table are in the same PB in different schema

    I created my own work, also agent and master repository.

    Started with the agent, and I could see the status as Planner started for referential work * on Agent OracleDIAgent1.

    Created the agent in topology and successfully tested.

    Created data and connections physical schema of the source and target servers, Test connection is successful.

    Created the context and logical schema defined for the source and the target.

    Mapped to the corresponding physical schema context.

    Diagram logical and physical mapping is accomplished in the context.

    Created for source and target models, able to view the data in the source model.

    Created a simple map and put in source and target component context.

    LKM selected as LKM SQL for SQL

    Select IKM as IKM Oracle Insert.GLOBAL

    After execution, the mapping is a failure with the error below

    Drop table work - LKM SQL for SQL

    ODI-1222: start failure on agent edge internal: logical schema * is not found in the main repository.

    Create the table work - LKM SQL for SQL

    ODI-1222: start failure on agent edge internal: logical schema * is not found in the main repository.

    ODI-1222: start failure on agent edge internal: logical schema * is not found in the main repository.

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.getSrcDataServer(AbstractSessionTask.java:1646)

    at oracle.odi.runtime.agent.execution.interpreter.SessionTaskCodeInterpreter.codeInterpretation(SessionTaskCodeInterpreter.java:132)

    at oracle.odi.runtime.agent.execution.interpreter.SessionTaskCodeInterpreter.codeInterpretation(SessionTaskCodeInterpreter.java:80)

    at oracle.odi.runtime.agent.execution.SessionTask.createTaskLog(SessionTask.java:324)

    at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:821)

    to oracle.odi.runtime.agent.execution.SessionExecutor$ SerialTrain.runTasks (SessionExecutor.java:2024)

    at oracle.odi.runtime.agent.execution.SessionExecutor.executeSession(SessionExecutor.java:562)

    to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:718)

    to oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$ 1.doAction(TaskExecutorAgentRequestProcessor.java:611)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:203)

    at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor.doProcessStartAgentTask(TaskExecutorAgentRequestProcessor.java:800)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 1400 (StartSessRequestProcessor.java:74)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:702)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:180)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:108)

    at java.lang.Thread.run(Thread.java:722)

    Please help me with the problem above,

    Thanks in advance.

    Kind regards

    Srikanth

    Hi Srikanth,

    It is usually better to create a separate scheme for the scheme of work, but you can keep the data and schema of work even. Also in your error log, the error should now be to the right of the IKM? No LKM. Try changing the logical schema name and see if it works.

    Thank you

    Ajay

  • How to remove data in three tables at once with the same key.

    I am new to Oracle ADF, I have a requirement like these, I have three tables such as employee salaries, teams of all these have a common EmpNo as common attribute, I have the search form these returns all employees related to this search query, when I click on the button Delete the particular employee data should delete all tables of the three based on the EmpNo.



    Any help is appreciated...

    (1) the easiest way is to mark the constraints of foreign key to WAGES employees and TEAMS of EMPLOYEES like ON DELETE CASCADE. The DB server then removes the necessary lines each time you remove a line from the employee.

    (2) another way is to implement a Before delete e-DB trigger on the EMPLOYEES table, where you can remove the related rows in other tables (have in mind that if you have foreign keys you can get an Exception Table mutation, so this approach is perhaps not very good).

    (3) an ADF is to implement a custom EntityImpl class for the Employee entity and substitute the remove() method where you can find the related entities of TeamMember and salary (via EntityAssoc accessors) and call remove() methods too.

    (4) another way of the ADF is to implement a custom EntityImpl class for the Employee entity and override the doDML() method where you can remove the lines needed in SALARIES and TEAMS through JDBC calls tables whenever a DELETE operation is performed on the Employee of the underlying entity.

    Dimitar

  • Extraction of data from three tables.

    Hi all


    I have three tables company (com_id (PK), com_name),
    contact (contact_id (PK), com_id (FK), first_name, email),
    Rental (loc_id (PK), com_id (FK), Country).

    I need a query to extract the first name, the e-mail, the com_name and the country.

    I used:
    Select contact.first_name, m.country, company.com_name, contact.email in contact
    LEFT JOIN place m ON contact.com_id = m.com_id
    Contact.com_id = c.com_id ON LEFT JOIN c company

    but his return lines in double.

    I'm new on this. Please tell me how to solve this problem.


    Thank you

    Sophie wrote:
    Hi all

    I have three tables company (com_id (PK), com_name),
    contact (contact_id (PK), com_id (FK), first_name, email),
    Rental (loc_id (PK), com_id (FK), Country).

    I need a query to extract the first name, the e-mail, the com_name and the country.

    I used:
    Select contact.first_name, m.country, company.com_name, contact.email in contact
    LEFT JOIN place m ON contact.com_id = m.com_id
    Contact.com_id = c.com_id ON LEFT JOIN c company

    but his return lines in double.

    I'm new on this. Please tell me how to solve this problem.

    Thank you

    Hello

    select
        b.first_name,
        b.email,
        a.com_name,
        c.country
    from
        company a,
        contact   b,
        loaction   c
    where
        a.com_id=b.com_id
        and
        a.com_id=c.com_id;
    

    Thanks in advance.

  • difference in size of the Table in oracle and timesten

    Hi all


    I have a large table with 2 million records,

    I see no big difference in the size of the table in oracle and Timesten
    In oracle table size to 4 GB, but in Timesten is arround 15 GB (using ttSize for 2 M lines)

    Could you please tell me what could be the cause of this difference?
    Is the size of the table in Timesten is always more than oracle?
    What are the factors and parameters affecting the size of Perm?

    It is typical for the storage needs for a DataSet to be significantly larger in TimesTen in Oracle. This is due to the Organization of the very different internal storage in TT from Oracle; Oracle is optimized to save space while TT is optimized for performance.

    Ways to minimize these costs are:

    1. make sure you use TimesTen 11.2.1. This has some characteristics compare compact (minor) and earlier versions.

    2 assess the use of numeric types; native types TimesTen (TT_TINYINT, TT_SMALLINT, TT_INTEGER and TT_BIGINT) use less space than MANY and longer by the effective calculation as well.

    3. check use of data of variable length (VARCHAR2, VARBINARY, NVARCHAR) and the trade-offs between online and online storage (see documentation for the compromise between these options stirage TT).

    Even when you use the foregoing, you will still see a storage important "inflation" for TT from Oracle.

    Chris

  • Left join with three-table join query

    I am trying to create a query that left me speechless. Most of the query is simple enough, but I have a problem I do not know how to solve.

    Background:
    We have stock stored in i_action.

    We have the attributes available for each type of action. The attributes available for each action are described in shared_action_attribute. Each type of action can have three attributes or none at all.

    We have the values stored for the attributes in i_attribute_value.

    An example says:
    We have a transfer action (action_code B4). The action of B4 entry into i_action records the fact that the transfer took place and the date at which he spoke. The attributes available for a transfer action are the function code receiver, the receiving unit number and the reason of transfer code. These types of attributes available and their order are stored in shared_action_attribute. The actual values of the attributes for a specific action of transfer are stored in i_attribute_value.

    Now i_action and i_attribute_value can be connected directly in action_seq in i_action and ia_action_seq in i_attribute_value. A left join on these two tables provides results for all actions (including actions that have no attributes) and assign values (see Query 1 below).

    There are two questions. First of all, I want only the first two attributes. To specify the attributes of the first two, I also i_attribute_value a link to shared_action_attribute (which is where the order is stored). I can build a simple query (without the left join) which connects the three tables, but then shares without attributes would be excluded from my result (see Query 2 below).

    The second problem is that I'd actually a row returned for each action with first_attribute and second_attribute in the form of columns instead of two lines.

    The final query will be used to create a materialized view.

    Here are the tables and examples of what is stored in the:

    TABLE i_action
    Name Type
    ----
    ACTION_SEQ NUMBER (10)
    DATE OF ACTION_DATE
    ACTION_CODE VARCHAR2 (3)
    VARCHAR2 (1) DELETED

    EXAMPLE OF LINES
    ACTION_SEQ ACTION_DATE DELETED ACTION_CODE
    ----
    45765668 9 OCTOBER 09 B2 HAS
    45765670 9 OCTOBER 09 BA HAS
    45765672 B6 9 OCTOBER 09A
    45765673 9 OCTOBER 09 B4 HAS
    45765674 9 OCTOBER 09 G1 HAS
    45765675 9 OCTOBER 09 M3 HAS

    TABLE i_attribute_value
    Name Type
    ---
    IA_ACTION_SEQ NUMBER (10)
    SACTATT_SACT_CODE VARCHAR2 (3)
    SACTATT_SAT_TYPE VARCHAR2 (3)
    VARCHAR2 VALUE (50)

    EXAMPLE OF LINES
    IA_ACTION_SEQ SACTATT_SACT_CODE SACTATT_SAT_TYPE VALUE
    ----
    45765668 B2 COA 37 B
    45765670 BA ROA D
    45765670 BA ROR P
    45765672 B6 CAT C
    B4 45765673 RFC E
    45765673 B4 TRC P
    B4 45765673 RUN 7
    45765674 G1 SS 23567
    G1 45765674 ASG W

    TABLE shared_action_attribute
    Name Type
    ---
    SACT_CODE VARCHAR2 (3)
    SAT_TYPE VARCHAR2 (3)
    ORDER NUMBER (2)
    TITLE VARCHAR2 (60)

    EXAMPLE OF LINES
    SACT_CODE SAT_TYPE UNDER THE ORDER
    ----
    B2 ACO 1 Office code
    BA ROR 1 reason to re-open
    Authority of BA ROA 2 reopen
    B6 CAT 1 category
    B4 RFC 1 reception function code
    B4 RUN 2 receives the unit code
    B4 TRC 3 transfer of reason code
    Sequence of G1 SS 1 personal
    Reason for G1 ASG 2 assignment

    QUERY 1:
    It's my current query as well as its results. Most are select simple but only one column is filled using the function analytic last_value (thank you guys). The last column in the view sub stores the value of the attribute. What I want is to replace this single column with two columns named first_attribute and second_attribute and eliminate all other attributes.
    SELECT ia.action_seq, ia.action_date, ia.action_code cod,
    NVL
    (LAST_VALUE (CASE
    WHEN ia.action_code = "G1".
    AND iav.sactatt_sat_type = 'SS '.
    THEN THE VALUE
    WHEN ia.action_code IN ('A0', 'A1')
    THEN '67089'
    END IGNORE NULLS
    ) OVER (PARTITION BY ia.ici_charge_inquiry_seq ORDER BY ia.action_date,
    IA.serial_number, ia.action_seq),
    '67089'
    ) staff_seq,.
    value
    From i_action LEFT JOIN i_attribute_value iav AI
    ON iav.ia_action_seq = ia.action_seq
    WHERE ia.deleted = 'A ';

    ACTION_SEQ ACTION_DA COD STAFF_SEQ VALUE
    ----
    45765668 9 OCTOBER 09 B2 67089 37 B
    45765670 9 OCTOBER 09 BA D 67089
    45765670 9 OCTOBER 09 BA 67089 P
    45765672 9 OCTOBER 09 B6 67089 C
    45765673 9 OCTOBER 09 B4 67089 E
    45765673 9 OCTOBER 09 B4 67089 P
    45765673 9 OCTOBER 09 67089 7 B4
    45765674 9 OCTOBER 09 23567 23567 G1
    45765674 9 OCTOBER 09 G1 23567 W
    45765675 9 OCTOBER 09 M3 23567

    QUERY 2:
    This query is limited to the first two attributes but he also filed actions which have no attributes, and it creates still several lines for each action instead of a single line with two columns for attributes.
    SELECT ia.action_seq, ia.action_date, ia.action_code cod,
    NVL
    (LAST_VALUE (CASE
    WHEN ia.action_code = "G1".
    AND iav.sactatt_sat_type = 'SS '.
    THEN THE VALUE
    WHEN ia.action_code IN ('A0', 'A1')
    THEN '67089'
    END IGNORE NULLS
    ) OVER (PARTITION BY ia.ici_charge_inquiry_seq ORDER BY ia.action_date,
    IA.serial_number, ia.action_seq),
    '67089'
    ) staff_seq,.
    value
    OF shared_action_attribute saa, ims_action AI, ims_attribute_value iav
    WHERE iav.ia_action_seq = ia.action_seq
    AND iav.sactatt_sact_code = saa.sact_code
    AND iav.sactatt_sat_type = saa.sat_type
    AND saa.display_order IN ('1 ', ' 2')
    AND ia.deleted = 'A ';

    ACTION_SEQ ACTION_DA VALUE OF COD
    ----
    45765668 9 OCTOBER 09 B2 67089 37 B
    45765670 9 OCTOBER 09 BA D 67089
    45765670 9 OCTOBER 09 BA 67089 P
    45765672 9 OCTOBER 09 B6 67089 C
    45765673 9 OCTOBER 09 B4 67089 E
    45765673 9 OCTOBER 09 67089 7 B4
    45765674 9 OCTOBER 09 23567 23567 G1
    45765674 9 OCTOBER 09 G1 23567 W

    I found it quite complex to try to write - I hope that I was clear.

    Thank you very much!

    Hello

    You can use an alias for column (such as staff_seq) in the ORDER BY. Unfortunately, it's the only place where you can use it in the same query, where it was defined.
    You can use it anywhere in the super-requetes, however, so you can still work around this problem in assigning the aliases in a subquery and GROUP BY (or other) in a Super query, like this:

    WITH   ungrouped_data      AS
    (
        SELECT ia.action_seq, ia.action_date, ia.action_code,
              NVL
                  (LAST_VALUE (CASE
                                  WHEN ia.action_code = 'G1'
                                   AND sactatt_sat_type = 'SS'
                                     THEN VALUE
                                  WHEN ia.action_code IN ('A0', 'A1')
                                     THEN '67089'
                               END IGNORE NULLS
                              ) OVER (PARTITION BY ia.ici_charge_inquiry_seq ORDER BY ia.action_date, ia.action_seq),
                   '67089'
                  )staff_seq,
               (CASE
                  WHEN display_order = '1'
                  THEN VALUE
               END) first_attribute,
               (CASE
                  WHEN display_order = '2'
                  THEN VALUE
               END) second_attribute
          FROM i_action ia
          LEFT JOIN i_attribute_value iav
               ON iav.ia_action_seq = ia.action_seq
          LEFT JOIN shared_action_attribute
               ON sactatt_sact_code = sact_code
             AND sactatt_sat_type = sat_type
         WHERE ia.deleted = 'A'
    )
    SELECT       action_seq
    ,       action_date
    ,       action_code
    ,       staff_seq
    ,       MIN (first_attribute)          AS first_attribute
    ,       MIN (second_attribute)     AS second_attribute
    FROM       ungrouped_data
    GROUP BY  action_seq
    ,       action_date
    ,       action_code
    ,       staff_seq
    ;
    

    There are other alternatives for special cases, but none of them work in this particular case.

  • Dynamics of programming possible of tables in Oracle 10 g 2D or not?

    Hi all
    Is there the 2D tables in Oracle? and when not, how can I implement any algorithm of dynamic programming (a [Knapsack Problem | http://en.wikipedia.org/wiki/Knapsack_problem]) on the data that I have

    Thanks in advance

    Published by: ZiKaS on Dec 28, 2008 07:10

    Hello

    Combining collections of unique dimension, you can build a matrix of dimension 2, 3 or x:

    Declare
      type  typ_int is table of integer index by binary_integer ;
      type  typ_tab_int is table of typ_int index by binary_integer ;
      my_table typ_tab_int ;
    Begin
      for i in 1..10 loop
        for j in 1..5 loop
          my_table(i,j) := i * j ;
        end loop;
      end loop;
    End;
    

    François

  • to merge the three table

    Hi all

    I have three table as follows:

    Table of values (2, 3, 5, 1, 0, 4)

    Two Array (00, 01, 03, 04, 05, 02) values

    Table 3 (name1, name2, Name3, name4, name5, Name6) values

    Now I have to merge these three table in a table as follows:

    Table (2_00_NAME1, 3_01_Name2, 5_03_Name3... and so on)

    Can someone help me with this? I don't know how to merge it as one?

    If anyone can help I'd be very happy...

    Thanks in advance...

    Pals

    You don't know what it is just that you want, but this could be a start.

  • How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    How can I add data file to an existing table on Oracle RAC ASM with no OMF? Thank you!

    Hello

    So I guess you have some files in ASM, see your first existing file structure

    Select file_name

    from dba_data_files;

    and to add to an existing table, the example below (even if you're better sticking with OMFs!)-is that what you are looking for?

    SQL > create tablespace TEST1

    2 datafile '+ DATA' size 1 M;

    Created tablespace.

    SQL > select file_name in dba_data_files;

    FILE_NAME

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

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    6 selected lines.

    SQL > alter tablespace TEST1

    2 Add datafile ' + DATA / mynewfile01.dbf ' size 2 m;

    Tablespace altered.

    SQL > select file_name in dba_data_files;

    FILE_NAME

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

    +Data/orcl2/datafile/users.259.859820983

    +Data/orcl2/datafile/undotbs1.258.859820983

    +Data/orcl2/datafile/SYSAUX.257.859820983

    +Data/orcl2/datafile/system.256.859820981

    +Data/orcl2/datafile/example.269.859821049

    +Data/orcl2/datafile/Test1.271.859843053

    + DATA / mynewfile01.dbf

    Thank you

  • Ongoing replication of the selected tables from Oracle to SQL Server

    Hi all

    How can we replicate selected tables to Oracle 11 g for SQL Server 2008/2012?

    Is GoldenGate the only option

    No matter who did it before or have the steps to do it?

    Thank you

    Define "replicate".

    If you have no budget, you can open a connection directly from SQL Server to Oracle, or vice versa. In Oracle, they are called links DB; in SQL Server, they are called "linked servers".

    Datanamic also have tools that claim to do the cross-DB replication. I have no experience with them and is not an endorsement - I know they exist.

  • I want to know when we issue statement truncate table in oracle.

    I want to know when we issue statement truncate table in oracle. No newspaper will be write in the redo log. But we can recover data using flashback or SNA. I want to know where the actually truncate table statement log is stored in the oracle database. Please explain to me in detail step by step.

    >
    I understand your SNA. But I want to know where the truncate statement stored log. But in the redo log, no entry for truncate.but I want to go which connect there is no market value back...
    >
    If you are still wondering after getting the answer so you don't "understand".

    You have received the reply above. Archive of flashback stores data.

    See the link provided above to CREATE an ARCHIVE of FLASHBACK in the doc of SQL language
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_5010.htm
    >
    TABLESPACE clause

    Specify the table space where the data archived for this flashback data archive referring to be stored. You can specify that a tablespace with this clause. However, you can then add tablespaces to archive flashback with a statement ALTER FLASHBACK ARCHIVE database.
    >
    The data is moved to storage of archives and restored from there when you query for archive flashback.

  • Save a table in Oracle R12

    Dear members,

    Are the steps to save a table in Oracle R12 is identical to the one off Oracle 11i?

    I want to say can we use the same ADD_DD package and record all custom tables and their corresponding columns?

    Can someone please shed some light on this.

    Thanks in advance.

    Yes - same as in 11i - pl see the documentation - http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T303920.htm#I_sx2Daoltabl

    HTH
    Srini

  • I am new to FDQM I need to connect from the table Source 'Oracle '...

    This is the first time for me to do this, you have any Document to the connection on the Source table in Oracle, to any table target using FDQM
    is it valid?
    If valid how can I make the integration with FDQM...?
    I called ODI,
    Can be defined from any source to any target,
    In FDQM I can set to take data from the Source of the table is Oracle to load in the EPM or any target system.

    Published by: Joe on December 10, 2011 19:52

    Please refer to paragraph "Example of Script integration" on page 200 of the FDQM 11.1.2 administration guide.
    This example connects to a SQL Server table (you may have to tweak it a little so you can connect to Oracle table), but the example can give you a good impression of what is necessary to establish a direct link.
    Kind regards
    Jeroen

  • What are the different types of tables in oracle - please help

    I want to know the different types of tables of orcle... Please help me

    There are seven types of tables in Oracle.

    1. organized bunch of tables
    2 index organized tables
    3 clustered index tables
    4 hash clustered tables
    5. nested tables
    6. global temporary tables
    7 tables of objects
    Source: http://www.adp-gmbh.ch/ora/concepts/tables.html

    But if you ask the types of tables in sense of the uses they are n types:
    1 step tables
    2. operational tables
    3. functional tables
    4. layout tables
    5 archive tables
    6. other tables
    Source: http://www.databasejournal.com/features/oracle/article.php/3616476/Types-of-Tables-in-Oracle.htm

    And of course, the full details can be found in the documentation.

    HTH
    Girish Sharma

Maybe you are looking for

  • Where to find the software 3G for Portege R500

    I just bought a R500 with built-in 3G and applied the XP downgrade CD.I have inserted a valid Telstra 3G sim card, but cannot find the software to establish a modem connection. The modem in Control Panel seems not to work OK.I tried to install the So

  • DesignJet 5000 'CHANGE printhead 2516' customer error said

    On a DJ, customer 5000 (sold the plotter to him a week ago) has used a printhead light cyan #83 for a week. Now says he gets 'CHANGE printheads 2516' error (it may indicate more precisely "replace 2516", but not sure "). Before use, the print head ha

  • Mystery in the bin file will not go away

    I need help with a problem of recycler. If I right-click and empty basket, I get an "access denied" message with a strange file name. I started in safe mode, I tried the "rd /s c:\recycler' command and got the following:"access denied that the file i

  • Laptop series dv9410us - Vista repair after replacing motherboard - instead of relocation?

    Laptop series dv9410us. Black screen. No startup. HP agreed to repair free of charge. I have a question. I tried to save my personal data, on the eve of the blackout, but received a message that the backup failed. So no backup of some important files

  • BlackBerry 9530 Smartphones vs 9550

    I currently own a 9530... I bought it until I've done enough research. Knowing what I know now, here, I had the 9550. (I really wish I had the WiFi option.) My question: Is the difference between the two material, or is - something that just software