Remote Oracle database import table

We want to create a local copy of a remote Oracle database table, because we will use this table at about 14 locations to update other local tables. The table contains about 1 million records and does not change frequently. We can say that a row has changed in a month, but that's just guessing there is no guarantee.

The contract synchronization process he uses begins everyday. He gets the new copy of this table, update other tables based on this table and then clean the intermediate table. I want to know how can I copy data this staging table in my local machine. I have following options:

(1) using the Materialized view, do a full refresh every day before the process starts every day. (we cannot use fash refresh because we cannot change anything on the remote oracle database)

2) Insert like the select statement, but what happens if the user started two processes at the same time by mistake.

(3) just join with the remote table in each query, instead of making the local copy.

(4) use the temporary table and insert as the select statement.

BANNER

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

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - production

PL/SQL Release 10.2.0.4.0 - Production

CORE 10.2.0.4.0 Production

AMT for Linux: release 10.2.0.4.0 - Production

NLSRTL Version 10.2.0.4.0 - Production

I suggest also using a synchronization logic to only transfer new data in the remote table.

If data it does not change often (as you mentioned) then you can copy the table overall once, and after that the transfer only changed using some sort of regular job data.

This will not work if you have a mechanism to understand when a record has been changed in the table.

For example, if you have a timestamp column, which is always filled to insert and update you will be able to extract only the difference.

You will have a brief fight with deleted records but still doable

Tags: Database

Similar Questions

  • Unable to connect to remote oracle database!  Help, please!

    Hi all-

    I am a new user Oracle and you are allowed to access a remote Oracle database, however I have problems with the installation/configuration program! I downloaded the driver Oracle and the Instant Client (11.2.0.2.0) because I need to use Microsoft Access for the data access (the Access database is already configured to the correct Oracle database). I'm under the impression that, to do this, I need to be able to use the ODBC Administrator to get all set up. Note: Im working on Windows XP.

    I have questions:

    -I don't seem to have installed Netca (which seems to be the recommended method to configure a connection). I have manually adjusted the TNSNAMES file. ORA file so it matches the database, but I'm not sure what would be my next step.

    -When I open SqlPlus it wants a username and password, and I tried the default settings and got an error each time. I must first use SqlPlus, or establish a connection via ODBC first?

    -Also: ODBC requires a TNS Service name, and I'm not sure, where this is established; something that would give the database manager?

    I really just do not know how to configure this remote connection! I continue to run with obstacles and really want a reference "step by step" on the way to do it, if there is such a thing. Any help or additional reference material would be appreciated! I ran by the content of the forum, but have not been able to decode the jargon! Thank you very much in advance.

    Marilyn

    MsMonroe wrote:
    Hi Ed-

    I use the Oracle's ODBC driver. I think there may be a problem with the TNSnames file because I tried to add this file as a"Data Source", and he also said that a connection could not be established. What do you mean by the MS implemented? A configuration of Data Source?

    By MS implemented, I was referring to the MS ODBC for Oracle driver, against the Oracle ODBC for Oracle driver.

    The "source of data file' has nothing to do with the tnsnames file. The ODBC Manager retains its DSN definitions in one of three places. "User DSN" is stored in the HKEY_LOCAL_USER registry, the "System DSN" definitions are stored in the HKEY_LOCAL_MACHINE registry and 'FILE DSN"definitions is stored in a file... I don't remember exactly where or what it's name is as I have (when he is forced to deal with odbc) just keep things simple and use "system dsn". But these aren't all the definitions of ODBC, Oracle tnsnames file.

    The link between the ODBC DSN and the tnsnames.ora presents itself as a property of the ODBC definition. Suppose you have this for a tnsnames.ora entry:

    houston =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = vmlnx01)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
        )
      )
    

    Then
    -When you set up your odbc dsn, if you use the MS for Oracle driver, you must specify 'houston' as the 'server '.
    -When you set up your odbc dsn, if you use the Oracle odbc driver, you must specify "houston" as "the TNS Service name".

    >

    Im going to try to post a modified version of the content of my TNSnames.ora file (for some reason any the "content is not allowed ' by the forum), but I would like to get some comments on whether the structure of the content may be the problem.

  • Import .dmp to a remote oracle database?

    Hello!

    How can I do a remote import from a dump file (* .dmp) to an oracle database?

    Thank you!

    Hello

    If we want to do the remote import

    (1) take the export of remote database (Say Source DB)

    (2) via ftp or ssh copy this dump exp you are local DB (Say Destination DB)

    (3) import the dump file using required imp import parameters.

    (GOLD)

    With the help of DB link we can also make the remote imp.

    http://docs.Oracle.com/CD/B10500_01/server.920/a96652/CH02.htm (for import options)

    Thank you
    Srini...

    Published by: Srini on April 12, 2012 05:41

  • sqlplus to connect to remote oracle database server

    Hello

    I have the server database oracle 10g on solaris 10 and I usually connect using my account to solaris and run sqlplus on the server itself. This works!

    I downloaded and installed the client instant oracle for solaris 64 and I can launch sqlplus command but I'm confused on what should be the syntax of the command to connect to remote oracle and solaris 10 database server where I have the system account.

    I tried sqlplus help but still I could not correct syntax that may be used to authenticate to the oracle server.

    I tried

    sqlplus user@hostname:1512/SID

    then he asked for password, but when I typed the password and you press on enter, it gave some error

    but he still asked as username so I type user@SID and then prompt password - typed password and it works!

    so I do not understand what should be the correct syntax for that in the first attempt, I'm able to connect.

    If possible, please give the exact command with realworld examples, (I tried with sqlplus - help already)

    Thanks in advance.

    wonder what if I didn't tnsnames.ora on the client machine, how will be the syntax?

    You generally need (or at least strongly want) a file tnsnames.ora on the client machine.

    -You could configure Oracle Internet Directory and allow this product provide TNS alias resolution for the Organization (similar to the DNS configuration for a LAN).
    -Many tools (I have not personally tried SQL * more and it can be dependent on version) allow you to specify the whole TNS alias in the tnsnames.ora file (i.e. everything that follows the abcd.domain.com = entry) but which is extremely heavy for type
    -According to the version of the Oracle file sqlnet.ora, the complexity of your configuration client (that is, if you try to use the more advanced features such as failover), you may be able to use the syntax EZConnect

    sqlplus username/password@host:port:SID/service_name
    

    Where host is the server that the database is running, the port is the port the listener (i.e. 1521 default) listening and SID/service_name is the SID or service name, you are trying to connect to.

    Justin

  • Check the connection to a remote Oracle database


    Hello

    I have an application that runs on a server that connects to an Oracle database on another server.  The application uses Java and JNDI to connect, there is no Oracle client installed on the server hosting the application.  The application seems to have been to connect to the database on the other server.  How can I check that the connection to the database still work from the server hosting the application?  Is there a software tool that I use does not require Oracle client must be installed.

    Thanks in advance

    Alanjo

    the connection request is saved in the file listener.log on the DB server

  • Using Oracle ODBC connection to a remote Oracle database gateway

    Oracle 11 g 2

    RHEL 6.4

    Someone at - it use the Oracle ODBC gateway to connect to a different Oracle database?  Problems with this configuration?  Where can I get the drivers for Linux ODBC?

    (I know, "why not use a dblink?" -Well that would be against the strategies of enterprise security)

    Thanks for your reply.  What I wanted was 'just' a dblink of 1 db Oracle to another Oracle db w/o the use of the ODBC bridge.

  • Unable to connect to remote oracle database

    Hello

    I am trying to connect to the database on a remote server oracle in visual studio 2005 by using instant client for windows.

    In visual studio 2005 Server Explorer, I clicked on add a connection
    Server name: I entered the server ip:1521@my instance name
    then user and password.

    It gives me the error: ORA-12546 TNS permission denied.

    I tried searching for lsnrctl status on the remote server, it works fine, and I can connect using sqlplus.

    I also disabled the firewall to avoid the risk of blocking, however tried my windows box: telnet ip 1521, it just does not respond and seems to timeout.

    should I set in the remote server first to accept connecting from outside?

    To connect via .NET with Instant Client, you will need the version 11 ODAC, see
    http://www.Oracle.com/technology/software/tech/Windows/odpnet/utilsoft.html

    The regular customer Instant download from http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    does not contain the provider .NET.

    If telnet hangs without error message, this is of course no evidence that you can successfully connect to the database.
    It only means that you have reached the listening process, which is the best you can do with telnet.

    Yours,
    Laurenz Albe

  • Comparing the data set of Oracle database local to the Remote SQL Server database

    Hello

    I have a table in an Oracle database that is gradually being updated with a table in SQL server through the database link. There is a field "Date of creation" in the table in SQL server that I used to find the newly created records and shoot and insert them into the local table to the Oracle database.

    Now the question is the documents/data in the SQL server remote can be deleted as well and I see a lot of files are already deleted and I couldn't find a way to capture the information of deleted data to remove from my local table.

    I tried

    SELECT id local_table

    where there is no

    (select * (or 1))

    of remote_table@database_link

    where remote_table.id = local_table.id).

    And I tried to replace not exist with no so.

    The problem is that the query is too slow with link of database for IN/NOT EXISTS clause NO. So, I'm trying to find an effective way to capture the lines deleted in the remote to remove as a result of my local table table.

    Any help is appreciated.

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit

    Thank you

    Chrystelle

    It is perhaps easier

    Select pk / * or sustitutive key * / from Oracle.tba

    less

    Select pk / * or sustitutive key * / from SQLSERVER.tab

    This returns the rows that exist in Oracle but not in SQL SERVER-> delteted lines in SQL Server.

    Another way is to create a trigger to remove in sqlserver and track in a table delete lines.

    HTH - Antonio NAVARRO

    http://SQL1.WordPress.com/

  • What is the name of the table that has the name of the custom in the Oracle database Section?

    What is the name of the table that has the name of the custom in the Oracle database Section?

    Thank you

    Nefertari

    The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.

  • How to insert the output in the Oracle database table records

    Nice day

    I have two tables (table A and table B) in my oracle database I created a process for mapping from Table A duplicate records to Table B, and the result (reports) must be inserted into the Table B. I can't make this process. Can someone help me please.

    Thank you and best regards,

    Muhammed Faraz

    Hi Muhammed,

    You will need create an export job and set up a new job as a result. Take a look in the help topic "export data" as he will explain the different options [Add/Remove and insert/etc.].

    Thank you

    Nick

  • How to find this value in the oracle database to find out the table

    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    918440 wrote:
    Hi expert,

    I know there is a value in the oracle database, please show me how to find this value in the oracle database to find out the table that contains this value.

    Thank you very much

    Go to the online documentation and discover the data dictionary. You may be interested in reading about ALL_TAB_COLUMNS, but you will need to know what you want until you can query the view to find information

  • With the help of Oracle heterogeneous access table to sql server database services

    I created a dblink "POC_HS" of oracle to sql (heterogeneous services implemented) and I can't go out data from the default database to which the DSN (for sql server) is connected successfully.

    So, this ' select * from ' Test@POC_HS is works perfectly well on the Oracle database as 'Test' table resides in the default database (that the system DSN is connected to).

    But when I do ' select * Abc.Test@POC_HS' where the Test table resides in the 'ABC' database which is not the default survey database an error as follows:

    ORA-00942: table or view does not exist the name of incorrect [generic object using ODBC Connectivity] [Microsoft] [ODBC SQL Server driver] [SQL Server] 'Abc.Test '. [Microsoft] [ODBC SQL Server driver] [SQL Server] Instructions could not be prepared. (SQL State: S0002;) SQL code: 208)

    I also tried "select * from Abc.dbo.Test@POC_HS' but oracle throws this exception" ORA-00933: not correctly completed SQL command "."

    The dblink and system DSN user account has access to database 'Abc '.

    Thoughts?

    No, this is not possible.

  • Copying or cloning of a local of the Oracle database on a remote server

    Hello

    I'm NOT a database administrator. A requirement came as I had to take the role of the database administrator. The problem is like this...

    I have an oracle 10 g 2 (development) database on a Windows 2003 server locally (in India). I need to copy or clone this Oracle database to another server located remotely (USA) Windows 2003.

    How can I do this? Well, I did a websearch and discovered various methods such as RMAN DUPLICATE and so on. I do not understand RMAN - I'm not an administrator.

    Please give me the operation step by step I have to do to solve my problem.

    Thanks in advance for your help and support.

    Renj
    ----------

    So you don't want to make the effort to understand RMAN, you don't want to copy the data manually, what else? Refuse this work activity.

    Nicolas.

  • How do I get the name of the web page in v$ session table in the Oracle database

    We have asp.net web application hosted on IIS (windows) and the connection to the Oracle (10g) database.


    When I query the table v$ session in the database as a Jr.DBA, I don't see the name of the program as "w3wp.exe.
    coming from the computer host IIS (web server).

    Now, it is difficult to diagnose as session in the database that refers to what web page in the web application.

    If I have 10 web pages open in my web application connecting to the Oracle database, now if I wanted to go
    session info, when I browse the v$ session all it shows me what "w3wp.exe.

    Now is there a way to get the name of the web page in the session of $ v.

    (maybe he needs a few changes to the code in the application web asp.net, change in the configuration of IIS web server as well).

    Let me know

    Dear johnpau2013,

    It's an interesting question. See the documentation below and see if they help you or not?

    DBMS_APPLICATION_INFO;

    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#CHEEFBBD
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#i999290
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_appinf.htm#ARPLS003

    Hope that helps.

    Ogan

  • How know what the largest table of my oracle database?

    How know what the largest table of my oracle database?

    SELECT * FROM
    (
    SELECT
    NOM_SEGMENT,
    SEGMENT_TYPE,
    BYTES/1024/1024 MB
    TABLESPACE_NAME
    Of
    DBA_SEGMENTS
    WHERE
    SEGMENT_TYPE = 'TABLE '.
    ORDER BY DESC 3
    )
    WHERE
    ROWNUM<=>

Maybe you are looking for