Database copy and CLOB columns

Hi,
I have tried to copy a database to anoter. It just works fine.
But, if a table has a column with CLOB datatype, the generated SQL is wrong.
Example of generated SQL :
insert into my_table(id, clob_col) values (1, (CLOB));
Any workaround ?
Stephan
Oracle 10g

You can not "copy a database" with SQL Developer. Are you confusing Oracle with a Microsoft product?
A database is Oracle is not a schema and a database is not a table ... a database is a collection of physical files ... datafiles, tempfiles, control files, log files.
When you define, in Oracle terms, what you are actually trying to do someone will likely help you.

Similar Messages

  • What are  Pre Database Copy and Post data base copy activity list, Pre Migration and Post Migration activity list from SAP BW 7.0 to SAP BW 7.4 SPS6.

    BW on HANA :  Pre Database Copy and Post data base copy activity list, Pre Migration and Post Migration activity list from SAP BW 7.0 to SAP BW 7.4 SPS6.
    We are trying to copy database from SAP BW7.0 to SAP BW on HANA 7.4 SPS6 so we are in search for list of steps or activities during database copy both pre and post steps.
    Along with the above we are in search of Pre and post migration steps ones database is transferred successfully from oracle to HANA on 7.4 SPS6.
    Kindly help us in getting the exact course of action as requested.
    Thanks and Regards,
    Lavina Joshi

    Hi Lavina,
    try this link for starters: Upgrade and Migration - BW on HANA | SAP HANA
    Points to remember are:
    Preparation:
         -- Hardware Sizing
         -- Preparation of Data Centres
         -- HANA Hardware preparation
         -- System Landscape Readiness (upgrade software downloads, system readiness checks, etc)
         -- House Keeping activities on BW system (data clean up, etc)
    Post Installation:
         -- Sanity checks / Preparation and License checks
         -- JAVA Configurations
         -- Infoprovider conversions 
    Overall Stages are described below:
    # Environmental setup (HANA box)
         -- Initial system checks and Building Activities (system copy, Appln server setups, etc)
    # System readiness
                   - ZBW_HANA_COCKPIT Tool
                   - ZBW_HANA_CHECKLIST Tool
                   - ZBW_ABAP_ANALYZER Tool
                   - ZBW_TRANSFORM_FINDER Tool
                   - SIZING Report
                   - System Clean up Activities
                   - Impact of 7.4 on source system checks
                   - Java Upgrade for portal
    # DMO Stages
                   - Preparation & Pre Migration checks
                   - Execution / Migration
                   - Post Migration Activities
    # Testing Phase
                   - Source system checks/Activities
                   - System and Integration Testing
                   - End to End Testing
                   - Performance testing
                   - Reports
                   - BO reports / Interfaces
    Do let me know if you require any further information.
    Regards,
    Naren

  • How to Create a database copy and specify the source database.

    Hello,
    In my dag environment I would like to create a new database copy and specify the source. My company has database copies in 2 locations. Instead of transferring the data from one location to the other, I would like to specify the source be the copy that is
    in the same location.
    Thank you,
    ~Mark

    Hi,
    We can create a mailbox database, then run EMC and EMS to create a database copy.
    More details about Add a Mailbox Database Copy, for your reference:
    https://technet.microsoft.com/en-us/library/dd298080(v=exchg.141).aspx
    Note: please pay attention to Prerequisites section, for example: 
    1. The specified Mailbox server must not already host a copy of the specified mailbox database.
    2. The server hosting the specified database and the server that will host the database copy must both be in the same database availability group (DAG). The DAG must also have quorum and be healthy.
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • SQL Developer Database Copy truncates DATE columns

    Hope someone can help me. I want to copy all object from one schema to another schema in my Database. I have used the "tools - Database Copy" utility and it copies all of the objects and data however when I query the DATE columns in the destination schema the time element has been truncated? Why has this happened?
    tab_h contains a column h_date of type DATE
    Query
    SELECT TO_CHAR(H_DATE, 'MM-DD-YYYY HH24:MI:SS') from tab_h;
    returns
    02-07-2012 09:54:14
    from the source table
    yet returns
    02-07-2012 00:00:00
    from destination schema? This is the case for all DATE columns in the tables.
    I noticed this was happening in 3.0.04.34 and I upgraded to 3.1.07.42 and it still happens.
    Thank you

    Maybe there's a problem getting the OS settings right; try to add this to \sqldeveloper\bin\sqldeveloper.conf:
    AddVMOption -Duser.region=USIf that works, you can try others closer to you.
    Hope that helps,
    K.

  • Oracle Streams and CLOB column

    Hi there,
    We are using "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit". My question is "Does Oracle Streams captures, propagates (source capture method) and applies CLOB column changes?"
    If yes, is this default behavior? Can we tell Streams to exclude the CLOB column from the whole (capture-propage-apply) process?
    Thanks in advance!

    You can exclude columns via a rule (dbms_streams_adm.delete_column).
    CLOBs are captured.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17069/strms_capture.htm#i1006263

  • Fail to add mailbox database copy

    Hello,
    When I am trying to add a mailbox database copy in DAG, I receive the following error:
    error
    The seeding operation failed. Error: An error occurred while performing the seed operation. Error: Failed to notify source server 'mbx1.domain.local' about the local truncation point. Hresult: 0xc8000713. Error: Unable to find the file.
    when viewing details of the passiv, error message shows:
    The database file wasn't found after log replay. The copy will be set to failed
    Please help. Thanks

    Hi,
    Please use the Get-MailboxDatabaseCopyStatus cmdlet to check the health and status of mailbox database copy.
    Please dismount and remount the active mailbox database, remove the failed passive database copy and then add it again to check the result.
    Besides, please check the application log to see if there is any related events.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Remove mailbox database copy from DAG

    Hi There,
    We would like to remove the mailbox database copy from our exchange server as we are lack of the space on our fixed vhd and we hope to be able to free about 100GB from the passive database copies as we have deployed DAG. is there any guidelines or procedures
    to safely remove the database copies? currently, we have 4 mailbox servers, HQMB01, HQMB02, SSMB01, and SSMB02. HQMB01 and HQMB02 is already part of DAG members by itself. however, on ssmb01 and ssmb02, we also add in HQMB01 and HQMB02 as the DAG member,
    thus they can fail over to HQMB01 or HQMB02 if their server have issue. in this situation, SSMB01 and SSMB02 passive copies is also inside our HQMB01 and HQMB02. As the our HQMB01 and HQMB02 is lack of the disk space and we would like to remove SSMB01
    and SSMB02 from the DAG, thus we could remove the passive database copies. The following is the picture of the activation preference for all servers. what is the procedures and the guidelines to remove mailbox database copy and also remove the server from
    the DAG members? we are quite confuse and worry that after we are removing wrongly and cause the active database to lost as we understand that there is replication happening between them. as we have 4 mailbox servers from which server we should perform
    the task? Wish to get some advises from the exchange guru from this forum. we are on exchange server 2010 sp1 and windows server 2008 R2.Thanks so much.
    Name                 : HQDB01
    Servers              : {HQMB01, HQMB02}
    ActivationPreference : {[HQMB01, 1], [HQMB02, 2]}
    ReplayLagTimes       : {[HQMB01, 00:00:00], [HQMB02, 00:00:00]}
    TruncationLagTimes   : {[HQMB01, 00:00:00], [HQMB02, 00:00:00]}
    Name                 : HQDB02
    Servers              : {HQMB02, HQMB01}
    ActivationPreference : {[HQMB02, 1], [HQMB01, 2]}
    ReplayLagTimes       : {[HQMB02, 00:00:00], [HQMB01, 00:00:00]}
    TruncationLagTimes   : {[HQMB02, 00:00:00], [HQMB01, 00:00:00]}
    Name                 : SSDB01
    Servers              : {SSMB01, SSMB02, HQMB01, HQMB02}
    ActivationPreference : {[SSMB01, 1], [SSMB02, 2], [HQMB01, 3], [HQMB02, 4]}
    ReplayLagTimes       : {[SSMB01, 00:00:00], [SSMB02, 00:00:00], [HQMB01, 00:00:00], [HQMB02, 00:00:00]}
    TruncationLagTimes   : {[SSMB01, 00:00:00], [SSMB02, 00:00:00], [HQMB01, 00:00:00], [HQMB02, 00:00:00]}
    Name                 : SSDB02
    Servers              : {SSMB02, SSMB01, HQMB01, HQMB02}
    ActivationPreference : {[SSMB02, 1], [SSMB01, 2], [HQMB01, 3], [HQMB02, 4]}
    ReplayLagTimes       : {[SSMB02, 00:00:00], [SSMB01, 00:00:00], [HQMB01, 00:00:00], [HQMB02, 00:00:00]}
    TruncationLagTimes   : {[SSMB02, 00:00:00], [SSMB01, 00:00:00], [HQMB01, 00:00:00], [HQMB02, 00:00:00]}

    Hi Exchange Guru,
    thanks so much for the prompt response..i have few queries to ask following your guidelines above:
    1. from the show result above, I am still confuse which server that I should go to remove as this is involving 4 database copies. from what I understand from the truncation or replay lag times of SSDB01 and SSDB02, I can see that HQMB01 and HQMB02 are on
    the third and fourth preference, which means that SSDB01 and SSDB02 will be able to failover to each of them when there is a failure and it cause the passive copies of both of SSDB01 and SSDB02 to be stored in the HQMB01 and HQMB02. what my purpose
    is to remove both SSDB01 and SSDB02 passive copies in HQMB01 and HQMB02. in this case, should I login to SSDB01 or SSDB02 mailbox servers to perform the removal with your guidelines above?
    2. is the command as below:
    Remove-MailboxDatabaseCopy -Identity SSDB01\HQMB01 -Confirm:$False
    Remove-MailboxDatabaseCopy -Identity SSDB01HQMB02 -Confirm:$False
    Remove-MailboxDatabaseCopy -Identity SSDB02\HQMB01 -Confirm:$False
    Remove-MailboxDatabaseCopy -Identity SSDB02\HQMB02 -Confirm:$False 
    will this cause the risk either of my HQDB01, HQDB02, SSDB01, and SSDB02 active copies accidentally  being removed? I am sorry that I am a bit naggy and always want a confirmation as this is very critical and I must be super careful.
    3. If after the removal successful, when is the best time to go to the drive where the passive copies stored and remove them so I can clear some space on  my disk? and is it just as simple by going to the drive and do a folder file deletion manually?
    because I just worry when I delete the file and the server is still replicating between each other, which will cause even corruption to the active database.
    4. From point 3, you mention about when the server is empty. what do you mean by that? do you mean that when the passive copies are no more there? and what command that I used to check?
    5. From point 4, is removing the server from DAG the last step to be performed? yes, I want to remove them from DAG, thus will left only HQMB01 and HQMB02 as one DAG and SSMB01 and SSMB02 as one DAG.
    Thank so so much for your patient and attention.
    Regards,
    Henry

  • Error when trying to use (GUI Wizards) on Table with BLOB, CLOB columns.

    I enjoyed watching the demo of ODP.NET/VS 2005 Environment where you can just drag the new command builders, data sets, etc.. but when I try this with a table that contains a BLOB and CLOB column it returns an error and basically cannot build the SQL needed to process these field types.
    I would assume it could do this natively since it is somewhat of a primitive type. I also tried to point it to a Stored Proc that returned a blob and it caused an error when building the SQL.
    So it appears it is not possible to use the GUI data access wizards for these column types. I can use them in code with the ODP.NET with no problems but it would be nice to be able to utilize the GUI Command Builders, etc...

    blob and clob are not supported i guess. oracle is a bit sluggish when it comes to VS and MS products!

  • Database copy Move data

    Hello,
    I have a database A. of about 15GB size and want to copy the data across to database B. - same schema just a few additional tables.
    When I use Oracle Sql developer and click on tools- database copy and select my source A and destination B. truncate objects the process starts
    but..does not copy any data at all. - it takes only 3 minutes as well.
    why is that?

    well I dont just want to create a duplicate of database A. because B. contains some tables that are still important but unique to B.
    most of the tables between A. and B. are the same and I just want to copy them over from A to B.
    Using the Oracle SQL Developer seems to get the similarities between the schemas and copy those table over BUT it somehow forgets the data altough there
    is a DATA MOVE as part of the copying procedure.
    I know there is the options to create migration repositories but this all seems to complicated to me.
    metalray

  • How to copy a table with LONG and CLOB datatype over a dblink?

    Hi All,
    I need to copy a table from an external database into a local one. Note that this table has both LONG and CLOB datatypes included.
    I have taken 2 approaches to do this:
    1. Use the CREATE TABLE AS....
    SQL> create table XXXX_TEST as select * from XXXX_INDV_DOCS@ext_db;
    create table XXXX_TEST as select * from XXXX_INDV_DOCS@ext_db
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatype
    2. After reading some threads I tried to use the COPY command:
    SQL> COPY FROM xxxx/pass@ext_db TO xxxx/pass@target_db REPLACE XXXX_INDV_DOCS USING SELECT * FROM XXXX_INDV_DOCS;
    Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    CPY-0012: Datatype cannot be copied
    If my understanding is correct the 1st statement fails because there is a LONG datatype in XXXX_INDV_DOCS table and 2nd one fails because there is a CLOB datatype.
    Is there a way to copy the entire table (all columns including both LONG and CLOB) over a dblink?
    Would greatelly appriciate any workaround or ideas!
    Regards,
    Pawel.

    Hi Nicolas,
    There is a reason I am not using export/import:
    - I would like to have a one-script solution for this problem (meaning execute one script on one machine)
    - I am not able to make an SSH connection from the target DB to the local one (although the otherway it works fine) which means I cannot copy the dump file from target server to local one.
    - with export/import I need to have an SSH connection on the target DB in order to issue the exp command...
    Therefore, I am looking for a solution (or a workaround) which will work over a DBLINK.
    Regards,
    Pawel.

  • XML in clob columns and OWB

    I’m building some ETL process to extract data from XML in CLOB columns. I know that there are solutions to use functions as extractvalue() of WB_XML_LOAD(), but I want to know if there is any other way to deal with XML. The reason for that is because my XML files have multiple namespaces and nodes, and I need something more complex to deal with that, since I already tried those two first solutions.
    My first solution was to create a PL/SQL that parses the XML and looks for tags and elements. It populates a relational table, and I might use OWB to extract the data from this table. But I’m dealing with a large table and it takes a while for processing, plus my code is hude!
    My question is: Does someone have any experience with complex XML in Clob columns? If so, what was your solution for that?
    Thanks a lot!
    Angelo Buss
    [email protected]

    CLOB is a fully-updateable, character large object that is stored inside the database. It can be text-indexed using interMedia for document searching.
    BFILE is a readonly pointer to a file on the external file system whose content is not physically stored in the database. It can also be text-indexed for document searching, but it can't be updated.

  • Can clob columns be selected across a database link (synonym)?

    Hello,
    I would like to do something like this...
    insert into archive_table (id, msg, start_date)
    select id, msg, startdate from synonym_table
    where start_date < whatever;
    ...where msg represents a clob column and synonym_table represents a synonym in the current table space which accesses another Oracle table using a database link.
    Is this possible?

    http://asktom.oracle.com/pls/ask/f?p=4950:8:15261108079829288196::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:950029833940

  • Show clob column in TextArea and save the format

    Hi, everybody!
    I have a problem and if someone is able to help me it will be great!
    I have column SQL_PLAN_TEXT (CLOB) which has the sql plan of certain statement.
    I would like to show the sql plan of statement A and next to it the sql plan of statement B.
    I decided to use to TextArea items situated next to each other . Everything works except that the format of the text in tetxtareas is not the same as when I opened the clob column in the database.
    Any ideas ?

    I've never worked with Clobs in Excel output, but from the sounds of it, all of your data is present in the Excel output, it's just that the column is not wide enough or the cell is not tall enough to display all of the data.
    As "rick_me" wrote in this post Re: Number and cell formatting in RTF
    Excel takes it's cue from the RTF template for how to size the columns.
    You can also give Excel general guidlines as to the row height.
    Put your data into a Table in the RTF template and experiment by altering the height and width of the table cells.

  • Is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.

    In iTunes, is there any way to do a mass copy and paste of song titles from the "name" column to the "sort name" column? I know it can be done with individual titles but I have over 6,000 titles in my library.

    Thank you. I have heard of Logic Pro 7, but I have never personally used it. I'm still growing in the world of Composition, and I know that it is something I will be studying in one of my Computer Music classes coming up for my degree. I think it is something I will look into getting once I can justify the price of it. I guess for the time being, I will continue to play and grow in my ability to use and take advantage of GB, and then see what I can do about or with Logic Pro when I'm ready. The thought of spending $1000 for a program is hard to bite, because I've already spent a lot to produce my music, not only electronic music, but also chamber music and so on. I had no idea it would be so expensive to dive deep into the world of composition! lol.
    Finale 2007: $500
    Sibelius 4: $500
    Jam Packs: $400
    Midi Keyboard Interface: $100
    PowerBook: $1700
    Printer for printing scores and analysis: $150
    Logic Pro 7: Oy!
    As you can see it adds up very quickly...that doesn't even include my personal instruments and study materials.
    Thank you for your input, as I haven't really worked much with LP, and therefore didn't know which features are available. I will talk with some of my Composition buddies, and professors and see what they have to say as well, and who knows, I may be able to get the express version through one of them.

  • Creation of view with clob column in select and group by clause.

    Hi,
    We are trying to migrate a view from sql server2005 to oracle 10g. It has clob column which is used in group by clause. How can the same be achived in oracle 10g.
    Below is the sql statament used in creating view aling with its datatypes.
    CREATE OR REPLACE FORCE VIEW "TEST" ("CONTENT_ID", "TITLE", "KEYWORDS", "CONTENT", "ISPOPUP", "CREATED", "SEARCHSTARTDATE", "SEARCHENDDATE", "HITS", "TYPE", "CREATEDBY", "UPDATED", "ISDISPLAYED", "UPDATEDBY", "AVERAGERATING", "VOTES") AS
      SELECT content_ec.content_id,
              content_ec.title,
              content_ec.keywords,
              content_ec.content content ,
              content_ec.ispopup,
              content_ec.created,
              content_ec.searchstartdate,
              content_ec.searchenddate,
            COUNT(contenttracker_ec.contenttracker_id) hits,
              contenttypes_ec.type,
              users_ec_1.username createdby,
              Backup_Latest.created updated,
              Backup_Latest.isdisplayed,
              users_ec_1.username updatedby,
              guideratings.averagerating,
              guideratings.votes
         FROM users_ec users_ec_1
                JOIN Backup_Latest
                 ON users_ec_1.USER_ID = Backup_Latest.USER_ID
                RIGHT JOIN content_ec
                JOIN contenttypes_ec
                 ON content_ec.contenttype_id = contenttypes_ec.contenttype_id
                 ON Backup_Latest.content_id = content_ec.content_id
                LEFT JOIN guideratings
                 ON content_ec.content_id = guideratings.content_id
                LEFT JOIN contenttracker_ec
                 ON content_ec.content_id = contenttracker_ec.content_id
                LEFT JOIN users_ec users_ec_2
                 ON content_ec.user_id = users_ec_2.USER_ID
         GROUP BY content_ec.content_id,
         content_ec.title,
         content_ec.keywords,
         to_char(content_ec.content) ,
         content_ec.ispopup,
         content_ec.created,
         content_ec.searchstartdate,
         content_ec.searchenddate,
         contenttypes_ec.type,
         users_ec_1.username,
         Backup_Latest.created,
         Backup_Latest.isdisplayed,
         users_ec_1.username,
         guideratings.averagerating,
         guideratings.votes;
    Column Name      Data TYpe
    CONTENT_ID     NUMBER(10,0)
    TITLE          VARCHAR2(50)
    KEYWORDS     VARCHAR2(100)
    CONTENT          CLOB
    ISPOPUP          NUMBER(1,0)
    CREATED          TIMESTAMP(6)
    SEARCHSTARTDATE     TIMESTAMP(6)
    SEARCHENDDATE     TIMESTAMP(6)
    HITS          NUMBER
    TYPE          VARCHAR2(50)
    CREATEDBY     VARCHAR2(20)
    UPDATED          TIMESTAMP(6)
    ISDISPLAYED     NUMBER(1,0)
    UPDATEDBY     VARCHAR2(20)
    AVERAGERATING     NUMBER
    VOTES          NUMBERAny help realyy appreciated.
    Thanks in advance
    Edited by: user512743 on Dec 10, 2008 10:46 PM

    Hello,
    Specifically, this should be asked in the
    ASP.Net MVC forum on forums.asp.net.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Maybe you are looking for