On the basis of data

Hello

I don't understand the need for database links,

I think I can quote the remote database and the ip address of the remote server that has the database in the tnsnames.ora and I can connect.

so, what is the need of the db link?

I think I have a conflict, please clarify the question for me,

Thank you

> First point, I think I can do it with the tnsnames method, I've already mentioned?

Yes.

> 2nd point, which is the meanning to the DML distributed?

Look at the fourth example (below).

Definition:

What are distributed Transactions?

"A distributed transaction includes one or more instructions which, individually or in a group, update data on two or more separate nodes of a distributed data base."

1. SELECT distance

-Selects from a single database (remote)

-It is a non-distributed transaction (of course, this operation does not alter because it does contain no DML commands)

Select...

of remote table1@db2--table

where the...

commit;

2. remote DML, for example. Remote UPDATE

-Updates as a single database (remote)

-It is a non-distributed transaction

Update remote table1@db2--table

where the...

commit;

3. SELECT distribution

-Selects in two or more databases

-It is a non-distributed transaction (of course, this operation does not alter because it does contain no DML commands)

-We cannot do this without database link

Select...

FROM table1,-local table

Remote Table2@DB2--table

where the...

commit;

4 distributed DML, for example. INSERTION distributed

-Selection of two or more databases and inserts them into a single database (or selects a database and inserts into the second database)

-It is a non-distributed transaction

-We cannot do this without database link

Insert into table1... - local table

Select...

from table2,-local table

Remote table3@DB2--table

where the...

commit;

5 distributed transaction

-Once again: "a distributed transaction includes one or more instructions which, individually or in a group, update data on two or more nodes separate a database distributed."

-We cannot do this without database link

Insert into table1... - local table

Update remote [email protected]

commit;

Kind regards

Zlatko

Tags: Database

Similar Questions

  • generating triggers composed on the basis of data Oracle 11 GR 2

    Hello SDDM users.

    Does anyone have an idea how to force the SQL Developer Data Modeler to produce the compound triggers on tables during DDL generation?

    I saw that there was a similar question of 2011 on this forum.  At the request of development was honoured again?

    Thanks for any info

    concerning

    Wouter

    Hi Wouter,

    We can operate in DM 4.1 production code.

    Philippe

  • can I create an EM 12 c database with the preconfigured repository database use, models on the basis of data Oracle 12 c

    The installation for EM 12 c document indicates "Install Oracle Database 11 g Release 2 (11.2.0.3) software on the host computer, where you want to create the database".  I want to use Oracle database 12 c.  Is there a template to preconfigure the repository on a database of 12 c?  Or is there a work around?

    For the version EM Cloud control 12.1.0.5, which is the most recent version of the MA, the models for the 12.1.0.2 of the database version is available here.

    Model of data base for the installation of Oracle Enterprise Manager Cloud control 12 c Release 5 (12.1.0.5)

    Note that, although a DB template helps you to simplify the installation process, you can always install EM12c without one. If necessary, look at the manual below:

    http://docs.Oracle.com/CD/E24628_01/install.121/e22624/install_em_exist_db.htm#EMBSC159

    Kind regards

    -Loc

  • SOA Suite, on the basis of data applications

    Hello

    SOA Suite (10.0.1.3.1 with 10.0.1.3.5 update) installed on the database with the Applications of the E-Business Suite does 11i both 12R?

    Or should she have separate database for himself?

    Thanks for your help
    Pawel

    Yes, SOA Suite (10.1.3.x) is using its own scheme to store its data. This does not disturb the EBS.

    Marc
    http://orasoa.blogspot.com

  • Grant 'select only "on the basis of data

    Hello

    10.2.0.2 Dim.

    I want to give a user with "Select any object in the database"

    Thank you
    KSG

    >
    I am also finding an alternative path to the query below. (since there are more than 100 patterns and n number of objects) ("grant select on any table of " is not a best choic)
    >
    You are the only person who can assess your security needs.

    But if you want to exercise a positive security measures do not TAKE SHORTCUTS. This means put in place restrictions known on well-known objects and not grant on a table or an object and any grants a single user or super role.

    Aman and others have already said a good security refers to the compartmentalization and a rigid hierarchy. The objective of the implementation process and standards is not to make developers work more easier or faster. Yes - do the work correctly on 100 patterns and a large number of objects in each scheme will be tedious. You can automatically generate basic subsidies and coil them to scripts. But don't try to automate the entire process from beginning to end. That will leave large enough for a bus through security holes.

    Create a hierarchy in the sense of

    1. a schema at a time
    a. purpose of subsidies - for tables, views, procedures, etc. to a role. Best is to use a separate role for each type of object
    2 grant the role of schema for users who need

    Build small pieces manageable and controllable. Then combine these pieces into a top-level component. Not just make a huge mess of subsidies.

  • How to load data from matrix report in the base using ODI table data

    Hello

    How to load matrix report data in the base table data using oracle Data Integrator?

    Description of the requirement:

    This is the data from matrix report:
    JOB                       DEPT10                DEPT20  
    ___________________________ _____________
    ANALYST                                           6000
    CLERK                   1300                     1900 
    Need to convert it to the format below:
    JOB                             Dept                        Salary
    _____________________________________________
    ANALYST                  DEPT10      
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        
    Thank you for your help in advance. Let me know if any other explanation is needed.

    Your list seems to be a bit restrictive, you can do much more with the procedures of ODI.

    If you create the new procedure and add a step. In the 'source' tab command you define technology and pattern according to your source database. Use the unpivot operator as described in the link, please, instead of using "SELECT *' use the column names and aliases for example:"

    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    Then in your tab 'command on target' defined technology and drawing on your target db, then put your INSERT statement for example:

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    VALUES
    (
    : job,.
    : deptsal,.
    : saledesc
    )

    That's why you use bind variables from source to load data into the target.

    Obviously if the source and target table is in the same database, you can have it all in a single statement to the "command on target' as

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    also assign the log count "Insert" on the tab corresponding to your INSERT statement, so that you know how many rows you insert into the table.

    I hope this helps.

    BUT remember that this feature is out in Oracle 11 g.

  • A full import by using datapump will overwrite the target database data dictionary?

    Hello

    I have a 11G with 127 GB database. I did a full export using expdp as a user of the system. I'll import the created dump file (which is 33 GB) on the basis of data from 12 c target.

    When I do the full import on the 12 c database data dictionary is updated with new data. But as is it already contained data dictionary? It will also change?

    Thanks in advance

    Hello

    In addition to the responses of the other comrades

    To start, you need to know some basic things:

    The dictionary database tables are owned by SYS and must of these tables is created when the database is created.

    Thus, in the different versions of database Oracle there could be less or more data dictionary tables of different structure database,.

    so if this SYSTEM base tables are exported and imported between different versions of oracle, could damage the features of database

    because the tables do not correspond with the version of database.

    See the Ref:

    SYS, owner of the data dictionary

    Database Oracle SYS user is owner of all the base tables and a view of the data available to the user dictionary. No Oracle database user should never change (UPDATE, DELETE, or INSERT) ranks or schema objects contained in the SYS schema, because this activity can compromise the integrity of the data. Security administrator must keep strict control of this central account.

    Source: http://docs.oracle.com/cd/B28359_01/server.111/b28318/datadict.htm

    Prosecutor, the utilities for export cannot export the dictionary SYS base tables and is marked

    as a note in the documentation:

    Data Pump export Modes

    Note:

    Several patterns of system cannot be exported because they are not user patterns; they contain metadata and data managed by Oracle. Examples of system schemas that are not exported MDSYS SYS and ORDSYS.

    Source: https://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL826

    That's why import cannot modify/alter/drop/create dictionary database tables. If you can not export, so you can not import.

    Import just to add new Non - SYS objects/data in the database, therefore new data are added to the dictionary base tables (as new users, new tables, code pl/sql etc).

    I hope that this might answer your question.

    Kind regards

    Juan M

  • Custody of the archivelogs pending data

    As a proof of concept, I've created a primary and standby a physical database. The archivelogs occur from the primary to the waiting and they are applied correctly. My question is how people manage remove the applied primary archive logs that are now on the standby server? I hesitate to simply run a script to delete them all from time to time because I don't want to delete a journal which has not been applied yet or is being implemented.

    What is the best way to remove the logs applied?

    Thank you!
    Sharon

    Adding Pavan...

    When backups of archived redo log files are taken on the basis of data pending:

    Issue the following command on the primary database:
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

    Issue the following command on the database pending:
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY;

    When backups of archived redo log files are taken on the primary database:

    Issue the following command on the database pending:
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

    Issue the following command on the primary database:
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY;

    Reference: http://www.acs.ilstu.edu/docs/Oracle/server.101/b10823/manage_ps.htm#1024046

    But I would like to write a script that will identify the applied (only) newspapers and remove... Based on the rate of newspapers, I will define the planning of this work...

  • How to compare the length of the data to a staging table with the definition of the base table

    Hello
    I have two tables: staging of the table and the base table.
    I get flatfiles data in the staging of the table, depending on the structure of the requirement of staging of the table and the base table (length of each column in the staging table is 25% more data dump without errors) are different for ex: If we have the city long varchar 40 column in table staging there 25 in the base table. Once data are discharged into the intermediate table that I want to compare the actual length of the data for each column in the staging table with the database table definition (data_length for each column of all_tab_columns) and if no column is different length that I need to update the corresponding line in the intermediate table which also has an indicator called err_length.

    so for that I use the cursor c1 is select length (a.id), length (b.SID) of staging_table;
    c2 (name varchar2) cursor is select data_length all_tab_columns where table_name = 'BASE_TABLE' and column_name = name;
    But we get atonce data in the first query while the second slider, I need to get for each column and then compare with the first?
    Can someone tell me how to get the desired results?

    Thank you
    Manoi.

    Hey, Marco.

    Of course, you can set src.err_length in the USING clause (where you can reference all_tab_columns) and use this value in the SET clause.
    It is:

    MERGE INTO  staging_table   dst
    USING  (
           WITH     got_lengths     AS
                     (
              SELECT  MAX (CASE WHEN column_name = 'ENAME' THEN data_length END)     AS ename_len
              ,     MAX (CASE WHEN column_name = 'JOB'   THEN data_length END)     AS job_len
              FROM     all_tab_columns
              WHERE     owner          = 'SCOTT'
              AND     table_name     = 'EMP'
              )
         SELECT     s.ename
         ,     s.job
         ,     CASE WHEN LENGTH (s.ename) > l.ename_len THEN 'ENAME ' END     ||
              CASE WHEN LENGTH (s.job)   > l.job_len   THEN 'JOB '   END     AS err_length
         FROM     staging_table     s
         JOIN     got_lengths     l     ON     LENGTH (s.ename)     > l.ename_len
                             OR     LENGTH (s.job)          > l.job_len
         )     src
    ON     (src.ename     = dst.ename)
    WHEN MATCHED THEN UPDATE
         SET     dst.err_length     = src.err_length
    ;
    

    As you can see, you have to hardcode the names of the columns common to several places. I swam () to simplify that, but I found an interesting (at least for me) alternative grouping function involving the STRAGG user_defined.
    As you can see, only the subquery USING is changed.

    MERGE INTO  staging_table   dst
    USING  (
           SELECT       s.ename
           ,       s.job
           ,       STRAGG (l.column_name)     AS err_length
           FROM       staging_table          s
           JOIN       all_tab_columns     l
          ON       l.data_length  < LENGTH ( CASE  l.column_name
                                              WHEN  'ENAME'
                                    THEN      ename
                                    WHEN  'JOB'
                                    THEN      job
                                       END
                               )
           WHERE     l.owner      = 'SCOTT'
           AND      l.table_name     = 'EMP'
           AND      l.data_type     = 'VARCHAR2'
           GROUP BY      s.ename
           ,           s.job
           )     src
    ON     (src.ename     = dst.ename)
    WHEN MATCHED THEN UPDATE
         SET     dst.err_length     = src.err_length
    ;
    

    Instead of the user-defined STRAGG (that you can copy from AskTom), you can also use the undocumented, or from Oracle 11.2, WM_CONCAT LISTAGG built-in function.

  • Data block in the procedure and the Base Table

    Hello

    I hava a form with a block of master and detail. The fields in the Master block are

    Emp_name, DateOfJoin, salary... I created this block with the procedure with a Ref Cursor, becaue the user
    want to load the data based on the conditions it enter for example: DateOfJoin < = Sysdate and DateOfJoinn July 1, 2008 "."
    SO I created a block of control with the fields name, MiddleName, LastName, of DateOfJoin, in DateOfJoin, the salary, and when the user clicks on the data loading
    button, I load the data to block under these conditions using the procedure.
    Note that in the Emp_Name table if a field, but contain first name, middle name, and last name with a separate space.

    My needs is, is there any method to develop this master block with a database table, so that if the user want to select it
    data based on other conditions, it can enter directly into the block of data using Qry enter and run Qry, also if he wants to
    Select data based on the top-level asked the search criteria, it will click Load Data.
    I hope that in this case, when the user selected the Load data button, I need to change the data source to the Type of procedure and set the source of data on behalf of the procedure name.

    Is there any other easy solution flor this

    Thanks in advance

    not sure if I get your needs. I understand the following:
    You have a block based on table emp, containing a DateOfJoin column and the user should be able to enter into a 'complex' where denomination.

    To do this, you do not have to base block one a procedure or ref_cursor. Two possibilities:

    Add two fields more directly in the block that are non-base of data-objects of type date fixed query on yes and let the user to enter a date range in these columns. In the accumulation of PRE-QUERY-trigger a WHERE condition by using the value in this field:

    something like:

    DECLARE
      vcMin VARCHAR2(10):='01.01.1700';
      vcMax VARCHAR2(10):='01.01.2999';
    BEGIN
      IF :BLOCK.DATE_FROM_JOIN IS NOT NULL THEN
        vcMin:=TO_CHAR(:BLOCK.DATE_FROM_JOIN, 'DD.MM.YYYY');
      END IF;
      IF :BLOCK.DATE_TO_JOIN IS NOT NULL THEN
        vcMax:=TO_CHAR(:BLOCK.DATE_TO_JOIN, 'DD.MM.YYYY');
      END IF;
      SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'DATEOFJOIN BETWEEN TO_DATE(''' || vcMin || ''', ''DD.MM.YYYY'') AND TO_DATE(''' || vcMax || ''', ''DD.MM.YYYY'')');
    END;
    

    Another option:
    together, the length of the request of the DATEOFJOIN field to say 255, then the user can directly enter #BETWEEN fromdate AND fodate in the field.

  • component module (function) in the Toolbox of data base

    Hi, I have been using the Toolbox of data a lot, but I've never used a function of my Access database before.

    I have a function called "Work_Days" that takes two dates as Inparameters and calculate how many working days it is. This function is stored in the Modules section in Access.

    I have a working query I can run with access which looks like this:

    SELECT tblActiveCCU.ID, tblActiveCCU.DateReceived, tblActiveCCU.DateTransferred, Work_Days([DateReceived],[DateTransferred]) AS NetDays
    FROM tblActiveCCU
    WHERE (((tblActiveCCU.ID)=97));
    

    The output looks like this:

    ID   DateReceived    DateTransferred NetDays
    97  3/16/2016   3/30/2016   11
    

    Now to the question, how I implemented this request in LabView?

    In my attached code, I got a "syntax error" FROM clause


  • Creating a copy of the base data missing data UNDO files

    I need to create a copy of a database 11G on a windows server (using a script to create controlfile with database set = "database_name") from a cold backup that was taken at the time, but the backup lacks 2 3 of the UNDO tablespace data files.

    There is a lot of advice to suggest that setting undo_management = 'MANUAL' a database can be restarted and the missing data files dropped (and recreated)... However, I don't know if it is a solution that works in the context of rename the database by using create controlfile method

    does anyone know if the parameter undo_management = 'MANUAL' is all I have to do? or is it more...

    any suggestion would be received with gratitude...

    Dear patrichards,

    Your quite welcome. I am pleased that you have solved your problem.

    Kind regards.

    Ogan

  • How to read the Serial Arduino data using labview VISA?

    Hi =). Im a beginner work reading data series from an arduino but im facing... Lets do it step by step

    I built a voltage divider circuit which gives from output
    from 0 to 5V. The output of this circuit is sent to a 0 analog input pin
    of a Committee of Arduino Duemilanove.

    (1) Firstly, I connected the cable to connect to my laptop USB the Arduino.

    (2) I went to start-> control
    Control Panel-> system-> hardware-> Device Manager. Check the Ports (COM
    & LPT). In my laptop I can see USB Serial Port (COM4). Now I know only in
    LabVIEW that I must read the data series COM 4.

    (3) to the side of the arduino, here's the code to read changes in voltage
    entered to analog pin 0. The last line of 'delay' determines the sampling
    Rate of how we want to taste the output of the voltage divider:

    int potPin = 0;    Select the input pin for the output of the voltage divider
    int val = 0;       variable to store the value from the probe

    void setup()
    {
    Serial.begin(9600) (9600);    Opens the serial port, establishes the rate of 9600 bps data
    }

    void loop() {}
    Val = analogRead (potPin); read the value of the voltage divider
    Serial.println (Val);
    Delay (10);
    }

    I slightly modified the basis series reading writing VI... I have
    attached the block schema used with comments. Basically, I tried to read
    data series, divide by 1023 and multiply by 5 to graphic voltage
    variations of the voltage divider circuit.  But Im not getting
    the correct voltage output values. The value of the tension just keeps go
    0 and coming again, as shown in the photo.

    Could you guys please guide me on what went wrong?

    Thank you!

    -you read the data, even if there is no data on the port. If 0 bytes are read => «»

    -in the case of false, you resources VISA wired for the output of channel tunnel?

    -There is no close VISA at the end of the VI resources

    -you're not a loop this VI reading bytes

    I added an addaption of your VI that you should give a try maybe

  • The fixed Point data

    It is possible to specify the length of Word and whole for the fixed point data format, and if so where this work?

    The module I use is a NI 9205 in a cRIO-9074 and seems to have a fixed point default data format of <+-, 26,="" 5="">, which I interpret as meaning that the data is signed, has a length of 26 Word and a length of whole number of 5. This gives a maximum of 16, a minimum of-16 and a size of minimum step of ~4.768 x 10 ^-7, that is to say 1/2 ^ 2.

    Could someone please confirm that this is the correct interpretation, and also explain how it is possible to obtain a length of 26 Word when the analog digital converter / base is only 16 bits.

    Best regards

    amendments


  • Subtraction and the determination of the base

    Hi everyone - I need help to determine how best to make a determination of the base then subtract leaving just the tops.  My data are profilometry measurements on a substrate surface.  As you can see in the table below the substrate surface is pretty simple but not lying flat on the scanner table.  I'm looking for a simple method identify the linear base line, then he subtract from the raw data, leaving the four peaks with essentially a zero/horizontal) basis.  Then I can use the Ridge detector to identify the peaks and their locations so that I can make additional calculations (especially area of the PEAK and average maximum height).

    Any suggestions on the best way to go about this?

    An polynomial fit using the "less absolute residual" is relatively sensitive to outliers and seems to work quite well in this particular case.

    See if it works for you.

Maybe you are looking for

  • about connection iPod video car

    I have an old video of ipod. I connect it to my car with a usb adapter that is due to the fact battery will not hold a charge. He however repeat myself "ok to disconnect" on the screen even if it will play the music. I have to unplug the unit to see

  • I use Safari v8.0.8 and has problems

    I use Safari v8.0.8 (10600.8.9) on OS X Yosemite v10.10.5. Several months ago, everything was fine. Now Safari will not open certain Web pages not limited to Google, Yahoo, Gmail and Facebook. I don't know what to do to solve this problem. Help, plea

  • How to produce either open or grounded through a PIN?

    We develop in Labview and are connected to a PXI chassis containing a handful of modules. We try to produce a list of signals for our client. For example, between the 15 pins must 30v or on the ground. We were able to generate these types of signals

  • E-mail blackBerry Z30 problems

    I noticed that when I compose a cc recipients are automatically inserted in the cc field. Anyone can help explain what is happening here and how to fix it? It's really annoying. Thank youDan

  • try to watch the movie netflex

    When I try to watch a movie on netflex my computer tells me to install Microsoft Silverlight... I installed it and it does not recognize.  What should I do to tell my computer that it is installed?