Copy all the BLOBs from one table to another

Hi all

I hope that I put in the right place. I am trying to copy from one table to the other BLOBs, but were usuccessful. Here is the script that I wrote to do, but it just loaded a field saying not supported. Is there something I'm missing, I'm using the APEX 3.1.2.

Thanks for your help.

DECLARE
number of v_id;
v_document blob.
v_filename varchar2 (200);
v_mimetype varchar2 (200);



CURSOR c_Document IS
SELECT id, name of the document file, mimetype
IN v_id, v_document, v_filename, v_mimetype

OF CAB_APPEAL_ACTIONS
WHEN THE DOCUMENT IS NOT NULL;

BEGIN

FOR r_Document in c_Document
LOOP
INSERT INTO CAB_APPEAL_DOCUMENTS
(APPEAL_ACTION_ID,
DOCUMENT,
FILE NAME,
MIMETYPE
)
VALUES
(v_id,
v_document,
v_filename,
v_mimetype
);

END LOOP;

END;

In addition, what is wrong with just...

INSERT INTO CAB_APPEAL_DOCUMENTS (APPEAL_ACTION_ID,
                                  DOCUMENT,
                                  FILENAME,
                                  MIMETYPE)
   SELECT   id,
            document,
            filename,
            mimetype
     FROM   CAB_APPEAL_ACTIONS
    WHERE   DOCUMENT IS NOT NULL;

APEX will end process page in a BEGIN block... END; block anyway.

See you soon

Ben

Tags: Database

Similar Questions

  • How to copy all the files from one folder to another?

    Hi all

    I use this code but the files are not copied.

    sourceFolder var = new Folder("/Users/admin5/Desktop/Fonts");

    targetFolder var = new Folder("/Users/admin5/Desktop/123/");

    myFiles = sourceFolder.getFiles ();

    for (var i = 0; i < myFiles.length; i ++)

    {
    Alert (myfiles [i]);

    var myFile2 = new queue (myFiles [i]);    Alert (myFile2.fsName);
    If (myFile2.copy (targetFolder))

    {

    Alert ("Yes");

    }

    on the other
    {

    Alert ("no");

    }

    }

    var MYF = Folder("/Users/admin5/Desktop/Fonts");

    If (myf! = null)

    {

    var myfile = myf.getFiles ("*. *");

    var filename = myf.name;

    for (var i = 0; i)<>

    {

    var sourcePath = File("/Users/admin5/Desktop/Fonts/"+myFiles[i].name);

    var targetPath = File("/Users/admin5/Desktop/123/"+myfile[i].name);

    sourcePath.copy (targetPath);

    }

    }

  • Need some ideas on the copy of the data from one schema to another.

    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:


    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    Thanks in advance...

    Concerning
    Suresh

    GSKumar wrote:
    Dear all,

    I would like to know the best method and possible by copying data from one schema to another. (I won't use EXP / IMP).
    Example:
    I have a scheme of production on which I have hundreds of tables. I copy the data of the TEST environment after comparing data, I should copy the data incrementally.
    Maybe this copy of data may occur once a month, or on request.

    I want to have this done by a procedure.
    I was thinking about the logic below, using a procedure I will compare the tables and the structures between the two schemas.
    Then I willl use the primary key in both tables column and compare the data first. If the data if it does not exist then I only inserts these records in the target.
    The above said logic could be as similar as the synchronization of data or records, but the table does not all columns to track records archived / copied from the source.
    Suggest me so if you can give me the best logic or solution.

    I don't know why you don't want to opt for EXP/IMP.
    As an alternative, if you have a link DB between Production and Test pattern (which I seriously doubt), you can use the MERGER to a copy of data from Production to Test Delta.
    a. INTRODUCE IN test_schema.table_name SELECT sequence_columns, column_list FROM (SELECT column_list FROM prod_schema.table_name LESS SELECT column_list from test_schema.table_name)
    Column_list must not contain columns that contain sequence values because they may differ and result in an incorrect result; Therefore, this is taken into account in the outer query rather than Inline mode.
    b. MERGE STATEMENT
    c. FALL of test_schema.table_name. CREATE test_schema.table_name as SELECT column_list from prod_schema.table_name; -A way very neat to copy all the data, provided you do not keep any changes to test the tables in the schema.

    However, you mentioned to find existing records based on the primary key; IMO, primary key is normally a sequence (may be alphanumeric) and its value on env Production and Test may defer or even can have different attributes, therefore, I find it incorrect to match only the primary keys. I would say to match the key attributes.

    If you want to follow the last update/insert for a record, you can add a column that puts the time of last modification. In this way, you can track the changes of a column. Another alternative would be to use a check to the table.

    Let us know your thoughts or concerns, so that help can be provided.

    I suggest that you read and follow {message identifier: = 9360002}.
    If you will be useful if you can provide all the information required in advance to help us provide you with a quick resolution.

  • Correspondence of the columns from one table to another

    I have a database column that contains the name of a person. I have another table that has a column that contains the names separated by a comma.

    I want to match records where all records of two columns have a corresponding name. I tried this:

    < cfquery name = "MyQuery" datasource = "myds" >

    SELECT *.

    OF TBL_A

    WHERE TBL_A.customername IN (#DifferentQuery.ListOfNames #)

    < / cfquery >

    Everything that I try results in only get a recording. Basically, I want to get all records from a table where one of its columns contains the name of a column in another table.

    It's a many-to-many relationship. That is to say an editorial can be linked to many ads, and vice versa.  He is best represented with three tables. Such as:

    Table: [Editorial] column: [EditorialID (PK), EditorialText,...]

    Table: Columns of the [advertiser]: [AdvertiserID (PK), AdvertiserName]

    Table:   [Editorial_Advertisers] columns: [EditorialID, AdvertiserID]

    The name of the advertiser throw himself into a column...

    my client can decide which ads get related to which editorials

    The third table stores the relationship between ads and editorials.  So instead of storing a list of advertisers, you need to insert record for each EditorialID + AdvertiserID combination. You can then use joins to retrieve all the advertisements for EditorialID 123.

    SELECT  a.AdvertiserName
    FROM     Editorial_Advertiser ea INNER JOIN Advertiser a ON ea.AdvertiserID = a.AdvertiserID
    WHERE   ea.EditorialID = 123
    
  • What is the best way to copy all the files from one hard drive to another?

    Old disk 60Go new 320 GB drive.  I want to do the new replacement for the old disk drive.

    Old disk 60Go new 320 GB drive.  I want to do the new replacement for the old disk drive.

    Use disk cloning software.

    The safest way is to use an external hard drive enclosure to maintain the new disc during the cloning operation.  These come with interfaces USB or e-SATA to IDE or SATA interfaces for the drive and the computer.  Be sure to get the correct type.  If you have an available internal drive Bay, you can put the new drive it for the cloning operation, but do NOT restart with two connected drives.  After everything was settled down, you can mount the old disk of 60 GB inside, format and use it for storage of backup.

    Cloning (copy to disc) software may have been bundled with your new drive or may be accessed free of charge from the manufacturer of the new command.

    Otherwise, here are a few apps cloning that I have used myself or have been recommended by members of the community:

    Acronis True Image Home
    Casper
    Paragon Drive Copy
    EASEUS Partition Master

  • Copy of the database from one server to another?

    Hi all

    I'm a developer of report. I have two servers (VMs)

    Server1: Win 2008, Oracle EBS R12.1.1.
    Server2: Win XP SP3, about to install Oracle 11 g R1

    My goal is to copy the entire base of the EBS R12.1.1 Vision Instance (SCREW) on Server1 to 2 Oracle database...

    Is this a job I can do by following the instructions online? If so can someone please tell me some links.

    No oracle support, account please not Metalink.

    Thank you and best regards.

    Here you go:

    http://repettas.WordPress.com/2008/10/24/duplicating-a-database-using-Oracle-11g-RMAN/

    http://www.dbapundits.com/blog/step-by-step/Oracle-11g-active-database-duplication/

    http://myorastuff.blogspot.com/2009/05/cloning-database-through-RMAN.html

    If you don't like these then google 'rman duplicate windows 2008 database.

    Best regards

    mseberg

  • Copy from one table to another

    Is there a simple way to copy/add all the records from one table to a master table?

    INSERT INTO master_table (Field1, Field2, field3)
    SELECT field1, Field2, field3
    From other_table
    WHERE everything what

    If the data types, order and the column names are the same for both tables, then it would also work to copy all other_table lines in master_table:

    INSERT INTO master_table
    SELECT *.
    From other_table

    Phil

  • How can I move all my files from the user from one user to another on my pc?

    original title: moving files

    How can I move all my files from the user from one user to another on my pc?

    Log an administrator account. Open your folder 'user '. Select all the files, copy them, and paste them into the other folder 'user '.

  • Calc help - copy all the accounts from Parent to child

    I was copying some accounts from Parent to child by listing each account using a Sun cross. The child, that I am focusing the attribute is "Open". But now I need to copy all the accounts from parent to child, and there may be hundreds of accounts. Is there a way to move all of them at once rather than list them one at a time?

    DIFFICULTY (& "ScenarioA", "Esityksen", CurrYr, Jan,@RELATIVE("Entity",0) AND @Attribute ("Open"))

    'Sales' = 'Dirty'-> @Parent (@Currmbr ("Entity"));

    "Salary" = "salary"-> @Parent (@Currmbr ("Entity"));

    EndFix

    Of course, exchanging places with your accounts and periods.

    DIFFICULTY (& CurrYr, "ScenarioA", "Esityksen", @RELATIVE("Account",0), @RELATIVE("Entity",0) AND @Attribute ("Open"))

    "Jan" = "Jan"-> @Parent (@Currmbr ("Entity"));

    EndFix

    Sabrina

  • Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Move a file to the muse from one computer to another that I will lose all related is pdf! How to solve it?

    Hello.

    Please try following steps to recreate a link to the PDF files.

    1. move and place the PDF file all missing in the any folder to the new computer.

    2 open the Control Panel file Muse and hit open assets of Windows > assets

    3. right click on a missing PDF file and choose repeat the link.

    4. Select the correct file to recreate a link and it will connect all the missing files in the folder.

    Let me know if you were talking about something else.

    Concerning

    Vivek

  • How to use the copy utility for app from one server to another

    Hello
    I use hyperion 9.3.1 and I want to synchronize two applications on different server, I know how to use the utility to copy of app, but on the same server, I think that we can also use this utility to copy the application from one server to another using the properties file but I dnt know how to do it because the example is SQL and I am using and database oracle
    can you guys please help.

    Published by: sharad sapra on March 31, 2011 11:33

    Hello

    1. create a property file (this example is relevant if you have a repository of ORACLE, you can find more information in http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/frameset.htm?ch09s01s01.html]):

    SOURCE_APP_JDBC_CATALOG = SOURCE_APP
    SOURCE_APP_JDBC_DRIVER = Hyperion.JDBC.Oracle.OracleDriver
    SOURCE_APP_JDBC_URL = jdbc:hyperion:oracle://RepositoryDatabaseServer; SID = DatabaseSID
    SOURCE_APP_JDBC_USERNAME = schemaName
    SOURCE_APP_JDBC_PASSWORD = schemaPassword
    SOURCE_APP_JDBC_DATABASE_TYPE = ORA
    SOURCE_APP_OLAP_SERVER = olapServerName:port
    SOURCE_APP_OLAP_USERNAME = olapUserName
    SOURCE_APP_OLAP_PASSWORD = olapUserPassword
    SOURCE_APP_OLAP_APPNAME = SOURCE_APP

    TARGET_APP_JDBC_CATALOG = TARGET_APP
    TARGET_APP_JDBC_DRIVER = Hyperion.JDBC.Oracle.OracleDriver
    TARGET_APP_JDBC_URL = jdbc:hyperion:oracle://RepositoryDatabaseServer; SID = DatabaseSID
    TARGET_APP_JDBC_USERNAME = DatabaseSchemaName
    TARGET_APP_JDBC_PASSWORD = DatabaseSchemaPassword
    TARGET_APP_JDBC_DATABASE_TYPE = ORA
    TARGET_APP_OLAP_SERVER = olapServerName:port
    TARGET_APP_OLAP_USERNAME = olapUserName
    TARGET_APP_OLAP_PASSWORD = olapUserPassword
    TARGET_APP_OLAP_APPNAME = TARGET_APP

    2. open CMD and type copyapp /S:yourSourceAppName T:yourTargetAppName P:yourPropertiesFileName.properties /L:yourLogFileName.log

    Once the migration has been successful, you must update your users using the UpdateUsers.cmd (UpdateUsers.cmd and PlanningUserName PlanningUserPassword TARGET_APP).

    I hope this helps...

    Kind regards
    André

  • transfer of all, except the os from one computer to another

    want to transfer everything except the os from one computer to another

    Marce,

    I would like to get an external hard drive - the best of Seagate and Western Digital for about $100. I have a 320 GB Seagate and it's much more that I need. Can I save more than one computer at a time. It's basically a huge flash drive, and you can buy them both at the Wal-Mart or Target or Office Max, Office Depot, etc...

    This option is also better in the long run too - for data transfer in addition to save your documents in one place safe.

    If you feel this isn't for you, then you can move gradually using a flash drive (available at Wal-Mart, Target,...) or burn your data on CD and move it over that way.

    I hope this helps.

    -GT

  • How can I copy Creative Cloud applications from one system to another?

    I have a slow DSL connection. I want to install on my desktop computer and a laptop computer creative Cloud applications. Once they are downloaded on my desktop, can I just copy the CC in the application from one machine to the other, so I can't go through the process of long download on both? What is the best way to do it?

    Do not copy the apps from one folder to another. It never works.

    Download installers offline Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release. ProDesignTools

    First follow the very important Instructions on this page.

  • I use Origami as my screensaver and changing images quickly, is there a way to slow the progression from one slide to another?

    I use Origami as my screensaver and changing images quickly, is there a way to slow the progression from one slide to another?

    Check in system preferences > Desk Top & screensaver:

    Ciao.

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • BioShock 2 - a host of problems

    Hello, I have a few simultaneous problems with Bioshock 2 that I need help. After the first installation of the game, I received an error of not having the right disc in the drive, which was the case, the problem persists but is temporarily resolved

  • 64 C & error Code 8007064C error code

    I get two error codes when I try to update to windows vista.64 c error code8007064C error codeHow can I fix these errors?

  • DVD ISO of Windows 7 does not start - BIOS set to DVD first

    I have 2 good DVD players that reads the dvd that has been verified on another computer. However, when I try to boot from the dvd, it passes right outside the entrance of the DVD and starts from the HD. I put the BIOS for all three races by DVD. What

  • BlackBerry_Email_MDS

    Greetings I tried to get work simulated by e-mail. I downloaded and installed BlackBerry_Email_MDS_4.1.4.exe and I managed to get the email to send to Storm 9530 Simulator The subject of this Simulator says: Smartphone BlackBerry 2.11.0.38 Simulator

  • Keyboard combinations to open the shortcuts with CTRL + ALT + &#60; letter or digit &#62;

    I like and use this function all day at work, as it works very well with my workflow.  However, the downside for me is that my office is too cluttered with shortcuts to programs and files that I never need to see because I will only use the keyboard