Copying data contianing long datatype from one schema to another

I'm using Oracle 8.1.7 and trying to move copy data from one schema to another.
Usually an easy task. This time the data contains longs so I can't use standard SQL. The data in the long is too long for a PL/SQL long datatype so that's not worked.
I've tried the COPY FROM command but get the invalid sql command error.
Can anyone save my hair?

The COPY command doesn't have to be all on one line. The continuation character for SQL*Plus commands is a hyphen.
SQL> prompt "Hello"
"Hello"
SQL> prompt -
"Hello""Hello"
SQL>Metalink is the website for customers that pay for Oracle support. Go to www.oracle.com and click on the metalink button on the top left of the screen. It's called Metalink because Oracle support levels are named after metals: bronze, silver, gold.

Similar Messages

  • How to copy data for certain member from one dimension to another dimension

    Dear ,
    I want to copy data for certain member ("511102") from one dimension to another combinations of dimensions ,
    I have the following combinations for "511102" :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","1011","G_10","custom Grades")_
    I want to copy "511102"  to "salary"
    -salary have the following dimensions :
    _("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")_
    , I don't know if I could do it by datacopy of cross dimensional , But I don't HOW >>>
    Thanks in advance

    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance","General group","All grades","General Employees")
    "salary"="511102"->"1011"->"G_10"->"custom Grades";
    ENDFIX
    or
    FIX("Budget2012","FY12","Working.V01","SAR","BegBalance")
    DATACOPY "511102"->"1011"->"G_10"->"custom Grades" to "salary"->"General group"->"All grades"->"General Employees";
    ENDFIX
    Key thing in datacopy is to place the dimensions in cross dimension in the same order. Both sides (before and after "TO") should have equal number of dimension members specified.
    Cheers,
    Alp

  • Copy data from one schema to another schema tables

    Hi,
    I was doing a copy using sql developer copy feature, data copy worked perfect but for few table data didn't move there are about 30 tables from schema prod to schema dev i need to move tables are already created only data needs to be moved from prod to dev
    Can you suggest me any method were I can move all the tables data at a time from one schema to another. Please suggest.
    Thanks
    Sudhir

    Hi,
    If table structure is the same then:
    insert into dev.table_name
    select
    from
      prod.table_name  --if prod is in another database change to prod.table_name@db_link_to_prod_db
    commit
    ;Hope this helps. Otherwise give some more info about where these schema's are.
    Regards,
    Peter

  • Best LKM to move data from with in Oracle from one schema to another Schema

    Hi Gurus,
    What is the best KM to move data from one schema to another schema within same oracle database.
    Thanks in advance

    Dear,
    If your source and target are on the same database server then you dont need LKM.
    You have to 1. create one data server for the database server
    2. Create one physical schema for your source and another physical schema for your target under the above created data server.
    3. Then create models for each above created physical schema
    In this case you just need IKM knowledge module
    Please refer http://oditrainings.blogspot.in/2012/08/odi-interface-source-target-on-same.html
    If your source and target are on different server then you must create two different data servers in topology. You have to use LKM.
    The best LKM to use is LKM oracle to Oracle dblink. But you should have proper grants to use it
    If your source has very few records you can go with LKM SQL to Oracle other wise use LKM oracle to Oracle dblink

  • Transfer data in the Ztable from one client to another client in a same ser

    Hi all,
    How can i transfer or move data in the Ztable from one client to another client in a same server .
    Thanks
    Ajay

    hi,
    create a transport request (Workbench type) and add the following line into the transport request:
    R3TR TABU name_of_table
    save and doubleclick this line and enter the table keys for the required entries (if you need all antries: client and an asterisk will do).
    When it is done save again, release the transport and ask basis to import into target client (or you can do on your own in SCC1 transaction)
    hope this helps
    ec

  • How do I move a table from one schema to another schema on Oracle XE?

    How do I move a table from one schema to another schema on Oracle XE?

    Hi,
    I tried to use the insert/select statement that you had given, it did not work.
    The error is ORA-00913: too many values.
    But finally what I did was, I went into the system schema where the table was and generated the DDL through the utilities and afterwards I imported them into the schema that I am currently working on. It solved the problem!
    However I am still curious to know why the insert/select statement did not work? Do you know any site/tutorial which gives a real time example?
    Thank you
    Skye

  • How do I move a table from one schema to another schema?

    How do I move a table from one schema to another schema?

    Grant access to the table from the source schema to destination schema.
      GRANT SELECT ON <TABLE_NAME> TO  <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
      CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
    So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
    After the table is created, Insert the records using SELECT.
    INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b>

  • How to copy a physical Alias table from one rpd to another

    Hi
    I am copy pasting the physical tables from one rpd to another. I first copied the physical table and then tried to copy the alias table i get the message ' Unknown Error' when i click ok it says
    'Failed to copy from clip board"

    Identify the "class=MyStyle" string in the MTML code, and use the Multi-File Find and Replace feature to step through each topic and change the specific instances to "class=MyOtherStyle." (I doubt that you'll want to "Replace All".)
    Sorry, there's no silver bullet!
    Good luck,
    Leon

  • Moving procedures and sequences from one schema to another

    Hi all,
    Is there any way to export the procedures and sequences alone from one schema to another? If not is there any way to generate the procedure creating scripts from the source schema.
    I used the following script SET HEADING OFF
    SET PAGESIZE 999
    SET LINESIZE 100
    SELECT DBMS_METADATA.GET_DDL('PROCEDURE', NAME, owner) || '/' FROM ALL_SOURCE WHERE
    OWNER='SCOTT' AND TYPE='PROCEDURE'
    SPOOL C:\A.SQL
    SPOOL OFF
    [/CODE]
    But the problem is in the out put script it is cutting the line .. for egCREATE OR REPLACE PROCEDURE "QC_PFIZER_REL5"."SPGETNEXTDS
    S_ID"
    ( V_ID OUT NUMBER )
    IS
    BEGIN
    SELECT SEQUENCE_DSS_Id.NEXTVAL INTO V_ID FROM DUAL;
    END ;
    i experimented with increasing linesize but it is not helping. I am using 9.2.0.5 on windows 2003.
    Thanks
    Muneer

    Similar to getting the code from user_source, you could get sequences from user_sequences.
    SQL> select dbms_metadata.get_ddl('SEQUENCE', sequence_name) from user_sequences ;
    DBMS_METADATA.GET_DDL('SEQUENCE',SEQUENCE_NAME)
       CREATE SEQUENCE  "SCOTT"."SEQ"  MINVALUE 1 MAXVALUE 1.00000000000000E+27 INCR
    EMENT BY 1 START WITH 1 CACHE 20 NOORDER  NOCYCLE
    1 row selected.
    SQL>

  • Copying a Single BEx Query from One Infoprovider to Another

    Is it possible to copy just a single query from one Infoprovider to another?
    I know how to copy all of them at once, but I want to know if there is a way to do it just for a single query.

    Ah.  That worked perfectly.
    Awarding points.
    Thank you.

  • Copy Long raw from one table to another.

    Hi
    I am trying to copy data from one table to another. Source has one Long Raw column. There are about million rows in source table. And I am using Oracle 8.1.5. Whenever I execute the copy command, I get the following error message: Can someone help me?
    SQL> set long 64000000
    SQL> set copycommit 1
    SQL> set arraysize 100
    SQL> COPY to test/test@testfix CREATE resume_bkup1 using select * from resume;
    Array fetch/bind size is 100. (arraysize is 100)
    Will commit after every array bind. (copycommit is 1)
    Maximum long size is 64000000. (long is 64000000)
    ERROR:
    ORA-01084: invalid argument in OCI call
    SQL>
    Thanks
    V Prakash

    insert into emp_personal(emp_no, emp_pic) select emp_no, emp_pic from emp_personal_old where empno = '10059'
    Read the documentation as suggested by sol.beach.
    And fix your front-end to use supported datatypes.

  • Data to be moved from one instance to another

    Hi All,
    I don't have any data administration experience. All i am looking for is a document or process flow on the data movement between 2 oracle 9i instances on UNIX. Suppose there are 2 Oracle 9i instances - A and B. At some point of time, some transaction would come into A and those new/modified/deleted transactions need to be moved to B so that at any point of time both A and B are in sync.
    I want to move the data alone from A to B. Pls note that both the instances will have billions of records and atleast 30-35 K tables. It would be of great help if some one could provide me a link to the document mentioning the approach that can be taken to achieve this.
    Thanks In Advance
    RK

    Ram,
    Yes import/export utilities can do many things. Some of which are outlined below:
    create table structures with no data, no constraints, on grants
    create table structures and include any of the things like constraints, grants, ect
    move data without creating table structures
    move only a select set of data based on query in export
    move the entire database
    move a selected set of users (schemas)
    There are other possibilities depending on your environment. There are transportable tablespaces where basically you can copy the datafiles from one system to another.
    Standby databases which can be either scheduled to have updates, updated in real-time/delayed, they can be logical or physical, they can allow reporting to be offloaded to it rather than be ran against the production database.
    There are many different possibilities depending on the business/user requirements. This topic is very, very complex. If you are new to Oracle I don't think that you can understand all the possibilities unless you do a whole bunch of reading.
    As stated before by someone else, the import/export is probably not the solution you want if the tables are as large as you indicated earlier. Again though it will depend a lot on the requirements, business logic and hardware/software you have available. You probably need to hire an "Oracle expert" for this type of analysis.
    Regards
    Tim

  • While copying condition records in pricing from one customer to another

    While copying condition records from one customer to another for one material, need to give select rule, when I click that it supposed to come with values like "rule 1" but it does not have values. So I cannot copy data.
    Any experts solution?
    Fully rewarded.
    Thanks,
    Manohar

    Hi,
    for the condition copy, you must maintain the copy control for condition. the path:Sales and Distribution>Basic Functions>Pricing-->Copy Control For Conditions.
    this is the reqirement.
    I hope this useful for you.

  • How do I copy and paste vector art from one layer to another, keeping all of its attributes?

    When I copy a vector shape from one layer to another, the shape picks up the color attributes of an existing shape in the second layer (or sometimes only the outline of the shape appears). What to I do to avoid this from happening (I just just want to paste the shape in its original form and color)?

    OK - I guess this is a little more difficult than I imagined...
    Merge Layers rasterizes all the vector shapes - I want all the shapes to stay as vectors in the second (pasted) layer.
    Merge Shapes changes the color of the copied vector shape - I don't want to change the color
    Shape Layer via Copy [Ctrl] +[J] copies the layer containing the vector shape, but doesn't paste it into the second layer
    Any other ideas? Or, is it possible that PhotoShop doesn't support varied colored vector shapes on the same layer? I am coming from an InDesign background, and there was no issue having many different (colored) vector objects on the same layer.

  • How to copy paste a office document from one folder to another using J2SE

    HI!
    How can i copy a document file(.rtf,.docx.pdf) from one folder to another folder by executing Java code?
    Help needed

    Hi! You can use my api com.gmail.ronilloang.util.FileUtil for copying files. You can download it at my homepage [RA (TM) i-Software|http://ang.ronillo.estares.googlepages.com/]

Maybe you are looking for

  • Have multiple users in home - all were purchased on my account need to segregate but how?

    Running Mac OSx attached to Itunes account...wife and children each have devices - phones, ipads, ipods, ect. Need to segregate accounts so each child has separate and want to provide home sharing...how?

  • How to delete on Apple TV

    I have TV programs and Films on my Apple TV and I've seen them, but cannot find how to delete them, as the hard drive is starting to get full up. Can anyone help?

  • Mapping templet

    Hi friends, I have done one complex mapping.. Now i have to use same logic for other mapping which has same structure.. How to create mapping templet and how to make use of this .. when i need to select 2 or more source fileds what is the procedure..

  • Message storage in PI while it in queue ?

    Hi All, If we process the message into XI queue and it holds there. where it  stores the data during the scheduled status or waiting status? Thanks in advance kartikeya

  • Facebook app download

    Hi Pls help. Whenever I want to download fb or twitter via blackberry I receive the following error: Invalid manifest or application descriptor the 'MIDleti-Name' attribute is missing Thnx Paddick