Copying data from other database

I'm trying to create Job Schedule, which involve 2 diff database (Oracle & Visual Foxpro). But when i create database link, and try VF connection i got this error ORA-06401: NETCMN : invalid driver designator.
PS: I already create connection VF thru ODBC, its work fine if im using SQLPlus and connect directly. only error if using database link, any suggestion?

Susmita,
I gave
[copy]
COPY from scott/tiger@ora52 to scott/tiger@ora87 insert emp using (select * from emp);
[copy]
The following error has occured..
[copy]
SQL* plus command ignored.
invalid sql command...
[copy]
Thank you
Edited by: user636482 on Apr 29, 2009 5:17 AM

Similar Messages

  • Adding fields to database table and copying data from other fields

    Hi All,
    I am having a database table where in I am having a column 'FIELD1'.
    My requirement is that I want to add two more fields in the table 'FIELD2' and 'FIELD3'.
    I then want to copy all the data in field1 to field2 and field3. then I want to delete the original field1.
    for Ex.
    lets say FIELD1 = 100.
    now I want to add FIELD2 and FIELD3 in the table and make FIELD2 = 100 AND FIELD3 = 100. The FIELD1 will be deleted from table.
    Please suggest the methods to do so.
    It is urgent.

    Hi Gaurav,
    do this way ...
    data : begin of it_ztab occurs 0 with header line,
              fld1 like ztab-fld1,
              fld2 like ztab-fld2,
              fld3 like ztab-fld3,
            end of it_ztab.
    data : wa_ztab like it_ztab.
    it_ztab-fld1 = '100'.
    append it_ztab.
    clear    it_ztab.
    loop at it_ztab.
      wa_ztab-fld2 = it_ztab-fld1.
      wa_ztab-fld3 = it_ztab-fld1.
      wa_ztab-fld1 = ' '.
    * Make sure that the structure of internal table/ workarea and database table shoud be same
      modify ztab from wa_ztab.
    endloop.

  • I need to copy data from sysbase database to oracle database

    I have to database one on sybase and the other on oracle ,them have the same tables i need to copy the data in the table of sybase to the tables in oracle

    I setup the getway already but after this the oracle client didnt connect to any thing even the oracle server which was conneted succesfully before setup the getway
    I sorry for long and thanks for your advice

  • How to query data from other Database

    Dear Community;
    Please help me, I want to connect with another Database in apex query. I have been created TNS and also query run proper in Toad, but when I give schema name with table it does not run and give error.
    So how I can use this query in Apex.
    Regards
    Shahab Ahmed Khan

    We do this by creating a database link from DB1 (Apex database) to DB2 (main database) then writing queries like this in Apex:
    select foo, bar from atable@db2

  • Copying data to another database after little transformation

    Hi,
    Is there any better pattern for
    copying data from one database to another database after some little transformation(can be simple SQL join).
    I see couple of options like..
    1. Using materialized views
    2. Writing a simple procedure to do copy and transformation.
    3. Using a pure ETL tool.
    Is there any other simple and secure way of doing this ?
    Thanks in advance,
    Vijay.
    Message was edited by:
    user487780

    Hi Justin,
    A couple of questions
    1) Are you copying from an Oracle database to another
    Oracle database? Or are there non-Oracle databases
    involved?I am copying from Oracle to Oracle.
    2) Are there just two databases? Or more?Only two.
    3) Are you copying all the data from one database to
    another? Or are you copying just a subset of data?I just need to copy a subset(can get using SQL join) of data
    4) How frequently does the data need to be copied?exactly 500 times, but at different intervals..
    How soon after the data changes in the source system
    m does in need to be changed in the destination
    system?the copying process has to be triggered based on some data in source database.
    5) Is the data flowing in only one direction?Yes
    6) Is there some drawback to the three options you've
    outlined that you're trying to avoid? If one of
    these options meets all your requirements, I'd assume
    that you wouldn't bother posting a question. That
    implies to me that there is some unstated requirement
    that you're trying to meet...I just want to know, whether there is any standard(typical) way to do this.
    Thanks,
    Vijay.
    >
    Justin

  • Table Data From One DataBase to another

    Dear Fellows,
    There are two DataBases running in my NT Server. I want to pull data of a table from other database. Does any body know how can I do it if I dont want to export and then import.
    Thanks in advance
    Danish

    Please find the help for SQL*PLUS command COPY.
    It will be useful when you want to copy datas from one database from another database without using import & export.

  • Select data from different database

    hi,
    may I know how to select data from different database?
    for example,
    I've 2 databases, OracleDB and OracleAR
    Connect with OracleAR in SQL*Plus
    select * from OracleDB.TableName
    does Oracle support this kind of query?
    how can I retrieve data from other database while im connecting with
    other database?

    Hi,
    Yes, it's possible. No, your syntax won't work.
    First of all you have to define a DATABASE LINK inside the DB where you are already connected (in this case OracleAR). Read docs how to do that.
    Second thing is the query. It will look like
    SELECT * from TableName@<NameOfDatabaseLink>Greetings,
    Guido

  • I need to copy data from a table in one database (db1) to another table in

    Hi
    I need to copy data from a table in one database (db1) to another table in another database (db2).
    I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
    How am I supposed to this using sql statements..?
    I shall be happy if it is explained SQL also...
    Thanking in advance

    How many rows does the table contains? There are manyway you can achieve this.
    1. export and import.
    2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
    example:
    create a dblink in db2 database for db1 database.
    create table table1 as select * from table1@db1 -- when there is no structure present
    -- you need to add constraints manually, if any exists.
    insert into table1 select * from table1@db1 -- when there is structure present.
    If the table contains large volume of data, I would suggest you to use export and import.
    Jaffar

  • Copy data from mysql to oracle database help?

    Im an sql newb and trying to understand how I can automatically copy data from one dtabase to another systems database on the same server.
    We have two differnt applications, but both share customer information, but one is on a win server, while the other is on oracle.
    Each time a customer contacts us via online chat (win server, mysql), we want to copy their entire chat transcript into our CRM's (oracle) customer account. So the folks that use the CRM can see the past chat histories. I hope this makes sense.
    Where can i look to get started on this?
    Thanks

    You could look at Heterogeneous Services (see the forum here Heterogeneous Connectivity but if you want to push data from mysql to oracle you might be better looking at it from the mssql side. I don't know what they offer.
    It might be simpler to do it at the client end. ie cut and paste from the online chat application into a new utility which inserts into the oracle database.
    Incidentally, this forum is specifically for the SQLDeveloper tool. You might get more general help in the "database - general" or "sql and pl/sql" forums

  • How to copy the data from one database to another database without DB link

    Good Day,
    I want to copy the data from one database to another database with out DB link but the structure is same in both.
    Thanks
    Nihar

    You could use SQL*Plus' COPY command
    http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
    Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM

  • How to copy data from one planning area to other planning area

    Hi ,
    I need to copy data from one planning area to other planning area, the MPOS for two planning areas are differant and  here my scenario is one planning area having extra key figures.
    First i need to release forecast data to CIP planning area and then,  i load the data from infocube  to MPS planning area and copy the data from CIP planning area. here both MPS and CIP planning areas having different MPOS .
    Please help me in this. Please give me the stepls i need to follow.
    Thanks in advance.
    Regards,
    Chandu

    Hi,
    You can use the transaction /sapapo/tscopy.
    In this you can configure your source plng area and destination plng area. You also have an option to map your KF. There is no problem if the MPOS are different as long as you are able to map the characteristics between the 2 MPOS.
    Alternatively, you can create an Infocube which shares common ground between the 2 planning areas and extract data from CIP plng area into the infocube and then copy teh data from infocube to MPS plng area using the the transaction /sapapo/tscube.
    Hope this helps.
    Thanks
    Mani Suresh

  • Move all data from one database to other using oracle expdp and impdp tool

    I need to move all of the data from one database to another. For that I am using oracle expdp and impdp tool.
    I have the full database export dump file. I moved that dump file to my other database.
    Now when I try to use impdp tools it gives lots of error regarding path mismatch,user not exists, role not exists.
    As my datafile path of source database does not match with the target database path , also the users are not there in target database. I dont want to create all the tablespaces that in my source database as there are 82 tablespaces.Is there any way by which I can move my all data without using remap option for tablespaces or users and grants.

    The FULL parameter indicates that a complete database export is required. The following is an example of the full database export and import syntax.
    The user must have the privielge of EXP_FULL_DATABASE
    expdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=expdpDB10G.log
    impdp system/password@db10g full=Y directory=TEST_DIR dumpfile=DB10G.dmp logfile=impdpDB10G.logGO through below linkfor more details...
    http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
    Regards
    Umi
    Edited by: Umi on Feb 4, 2011 2:27 AM

  • Cannot insert data from local database into remote database using subquery

    I have two oracle databases on different host.
    One is version 8i in Host A and the other is 9i in Host B.
    First, I try to create a dblink in 8i to 9i, but it fail.
    Then, I create a dblink in 9i to 8i, it success.
    I have already tried some select statement in 9i to view the table in 8i, which is success and that means the dblink is really work.
    The sql statement is like
    Select * from table1@hostA
    Then I have tried running some INSERT statement in 9i, which is copy data from table 1 in 8i to table 2 in 8i, both tables are in 8i. The sql statement is like
    Insert INTO table2@hostA(field1, field2)
    select field1, field2
    from table1@hostA
    This also success.
    Also, I have tried to use the following INSERT statement
    Insert INTO table2@hostA(field1, field2) values ('XXX', 'XXX)
    This also success.
    However, when I try to insert data from table in 9i to table in 8i using the following INSERT statement, it failed.
    Insert INTO table2@hostA(field1, field2)
    select field1, field2
    from table1
    The statement can execute, but all the rows inserted with every field value equal to NULL. I have tried to run the select part, it can return the data. But when I run the INSERT statement above, the value inserted into table2 is all equal to NULL.
    One more thing, I discover that the databases are using different NLS_CHARACTERSET
    9i is AL32UTF8
    8i is WE8ISO8859P1
    Is this relevant to my problem?
    Does anyone know the solution about this problem?
    Thanks!!

    How is the best way to do this ?How much are you planning to send?
    You can use COPY command. Ensure that you have valid database link between two databases.
    Available options are:
    create - creates a new table. errors out if the destination table exists.
    replace - drop the destination table and re-creates with data.
    insert - inserts data if the destination table exists.
    append– appends data into an existing table.
    use set arraysize 5000 -The arraysize specifies the number of rows that SQL*Plus will retrieve from the database at one time.
    copy from scott/tiger@ORCL to scott/tiger@ORCL92 create new_emp using select * from emp;

  • How do I copy recordsets from one database table to another?

    I am using the Database Connectivity Toolset, and would like to copy either one recordset or multiple recordsets from one Access table to a table in a different database. I would like to do it directly with the data in variant form, but I can't get it to work. I can get it to work(on a small test table) if I first convert my source variant data to a cluster, then insert that into the other database table. My real database has many items with a variety of date types. Can I copy directly variant to variant?

    Is it necessary to read all the data back into LabVIEW first? The reason I'm asking is that it is much more efficient to just use SQL statements to get the data you need and write that directly to the second database. I did a quick Google search on it and came up with lots of responses on what the correct syntax is for setting that up. Using an SQL command to copy the data back and forth is analogous to copying data from one file to another using the Copy file function rather than reading the entire contents of the file, converting the file string to the data arrays, converting back to a string, and then writing it back to another file.
    Chapter 5 of the Database Connectivity Toolset User Manual describes how to execute SQL queries.
    If you do need to actually
    see the data in LabVIEW first, then the only way to get it back into the other database is to convert those variants to LV datatypes and then cluster those values again and write them back out to the second database.

  • Copy data from one Table to another Table

    How can I copy data from one Oracle Table to another Oracle Table on a different server? Question 2: How can I clear all of the data in one Table with a single SQL script?
    Thanks...

    Question 1:
    I assume you have the privileges. If you don't, ask the DBA to give them to you. Then
    1. Login to database_source (It could be either the source or the target. Let's assume it's the source.)
    2. Create a database link to database_target: CREATE DATABASE LINK link_to_database_target CONNECT TO myuserid IDENTIFIED BY mypassword USING 'database_target'; Note the single quotes.
    3. Copy the table data: INSERT INTO targetowner.mytable@link_to_database_target SELECT * FROM sourceowner.mytable; COMMIT;
    Question 2:
    You have two options, but you may not have privileges for both.
    Option 1:
    DELETE FROM tableowner.tablename; COMMIT;
    Advantage: Since this is a DML (Data Manipulation Language) statement, you have to commit the transaction. Also, the data will be gone but the table size is NOT changed, so it's ready for accepting replacement data. DML statements can simply be executed not only from SQL scripts, but from PL/SQL scripts as well.
    Disadvantage: Slow, because all record deletion is logged, so you can recover from it by issuing a ROLLBACK; instead of the COMMIT; above. The table size is NOT changed, so if you are short of disk space or tablespace space, you have not resolved the issue.
    Option 2:
    TRUNCATE TABLE tableowner.tablename;
    Advantage: Since this is a DDL (Data Definition Language) command, you do NOT have to commit the transaction. (DDL commands automatically commit both before and after their execution.) The table size will be changed back to the initial extent size which is the minimum size a table can have and can only be set when the table is created. If it needs to be changed, the table has to be dropped and recreated with a different initial extent size. The statement execution of this command is not logged, therefore it's much faster then the DELETE.
    Disadvantage: No rollback. Being a DDL, this command cannot be executed straight from PL/SQL. If you need to issue this within PL/SQL, you will have to use dynamic SQL.

Maybe you are looking for

  • No audio output on speakers plugged into 3000 H210

    I recently purchased a 3000 H210 57094408 running Vista home premium Service Pack 2 (all recent Vista updates have been installed).  With speakers plugged into the back output port, I was able to open Lenovo HD Audio Manager and obtain test tones in

  • HP 1012 printing problem

    I bought a new iMac in late January and immediately went to HP's site to download the driver for OS 10.6.2. It worked perfectly for a month, but lately will show an error message in the Printer Center window. The printer light blinks once, then nothi

  • Premiere to Color (Native)

    Hi all, I'd like to migrate over to Premiere from FCP, before I make the leap I hope I can nail down a workflow that can take me back to FCP for grading in Color on the Native Red files. Has anyone here attempted this workflow yet? Many thanks. J

  • How can I determine how long it take the lab view circuit to execute once?

    I'm working on a temperature control labview simulation that works with an external temperature device and I have my labview stimulation set up so that I can turn a external light on or off (which is in a chamber) and the temperature is measured insi

  • Financial Program For MAC

    I currently have a Windows XP computer with Quicken 2007 and Quicken works well, especially the one-step update. Scanning the Quicken forum, I find nothing but horror stories from people who have switched from Windows to MAC and then try to convert t