How to insert a file in a database

I have found that the type of the field is LOBs. I create a
table with a column which is LOB but i can't insert into table.I
can't find the right command insert an internal LOB.Can you help
me?

hi Vijaya,
i created a table using this syntax
create table my_table(c1 bfile,c2 number(2));
i would like to know how to specify c1 values in insert
statement.
insert into my_table values(......);
thanks.

Similar Messages

  • How to connect captivate file in a database (MS SQL SERVER 2008)

    Hi...
    How to connect captivate file in a database (MS SQL SERVER 2008) ???
    Kindly response please..
    thanks!!!

    Hi there
    See if the link below helps you out.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to insert pdf file to adobe reader in windows phone 8? which directory?

    How to insert pdf file to adobe reader in windows phone 8? which directory?

    An other way is to copy the pdf with Windows explorer into the path /documents of the phone. Open Office and choose Adobe Reader. The pdf will be copyed in the Sandbox of the Reader and You may read it. You may delete the PDF in the documents path. It will still be in the Readers sandbox. All without any cloud ;-)!

  • Using pages how to insert pdf files on ipad?

    using pages how to insert pdf files on ipad?    
    Anybody have any idea, have pdf files in ibook do not see where to insert pdf's.
    Also trying to get word files onto ipad using drop box, do these word files need to be saved in another format?
    Also for pages.
    thnx

    No - the Word files do not need to be saved in any other format if you have Pages on your iPad. There are other apps that provide better compatibility than Pages but it will work for you. You have to have DropBox on your PC and the free DropBox app on the iPad to use DropBox to transfer files.
    To send the file using DropBox -  make sure DropBox is running on your computer. Then place the file in one of the folders that you have set in your DropBox folder on your PC. Launch DropBox on your iPad and find the folder that you placed the file into and tap on that folder. Find the document and tap on it. It will open in the window on the right. Tap the arrow icon in the upper right corner and select Open in Pages.
    If you have pdf files in iBooks that you want to put into Pages you have to email them to yourself and use the Open In feature when you open the email. You cannot send a file from iBooks other than to email it - at least I am not aware of any other way.

  • How to delete archivelog file at standby database

    Hi All,
    I'm running Physical Standby Database on ASM. At standby database, I can see all logs using asmcmd:
    ASMCMD> ls
    thread_1_seq_14.330.625772527
    thread_1_seq_15.346.625772527
    thread_1_seq_16.329.625772527
    thread_1_seq_17.327.625772559
    thread_1_seq_18.324.625772599
    thread_1_seq_19.341.625772367
    thread_1_seq_2.325.625772329
    But when I run RMAN to delete all these archivelogs, its give me error:
    oradr:/u01/app/oracle$rman rcvcat rman/rman@rman target /
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Jun 28 13:50:41 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: AIXDB (DBID=2438430915, not open)
    connected to recovery catalog database
    RMAN> delete archivelog all;
    Starting implicit crosscheck backup at 28-JUN-07:01:50:56
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 06/28/2007 13:50:56
    RMAN-12010: automatic channel allocation initialization failed
    RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
    RMAN> register database;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of register command at 06/28/2007 13:51:06
    RMAN-08040: full resync skipped, control file is not current or backup
    Even it is not registering it. So how to delete archivelog file at standby database.
    Thanks in Advance
    Rakesh

    This appears related to Bug 3298797 that was supposed to be fixed in 10.2.0.1. The workaround is to switch over to the standby, register the standby and then switch back.

  • How to Insert a record in a database table in debugging mode in production

    Hi,
    How to Insert a record in a database table in debugging mode in production ?
    Waiting for kind response.
    Best Regards,
    Padhy
    Moderator Message : Duplicate post locked.
    Moderator message : Warning. Don't create multiple threads for same question.
    Edited by: Vinod Kumar on May 12, 2011 11:02 AM
    Edited by: Vinod Kumar on May 12, 2011 11:04 AM

    Hi Senthil,
    Regards,
    Phani Raj Kallur
    Message was edited by: Phani Raj Kallur

  • How to Insert  Chinese characters in Japanese Database

    Hi all,
    I am having following characteristics on my computer
    Machine OS --Windows Server 2003
    OS language --Japanese
    Oracle
    Oracle9i Release 9.2.0.1.0 - Production
    NLS_LANGUAGE     JAPANESE
    NLS_CHARACTERSET     JA16SJIS
    Now, i want to insert into database chinese characters. Please guide me how to do the following thing.
    How to insert chinese characters on local machine and if i want to insert on the remote databse (i can not create database link for remote database). I have to send batch file or SQL file and they will execute it on their side.
    if i use this command
    alter session set nls_language = "SIMPLIFIED CHINESE"
    and then insert the records and revert back to japanese character set. Is this correct way....?
    Thanks in advance,
    Pal

    As dombrooks has pointed out, unless all the Chinese characters you are trying to store can be represented in the Shift-JIS character set, which seems unlikely, but I'm not an expert on East Asian languages and I believe there are some glyphs that are shared between various languages, then you're not going to be able to store this data in this database in CHAR or VARCHAR2 columns.
    Depending on the national character set, you may be able to store the data in NCHAR/ NVARCHAR2 columns, though using these data types can substantially increase application complexities since various languages and libraries don't support NCHAR/ NVARCHAR2 columns or require you to jump through some hoops to use them. Your applications would also have to support both character sets, so your applications would all have to be Unicode enabled most likely, which is certainly possible but it may not be a trivial change.
    Justin

  • How Can we move files from apex database to third party database (i.e. Google drive)

    Hi All,
    I am storing the files in apex database which are uploaded through apex form. Now i want to move these files to the third party server on regular bases. Means once we stored those files in our apex database at specific time on everyday we have to move these files to google drive. How can i achieve this please do  need full.
    Version: apex 4.2
    Regards,
    Vijay J

    Hi Vijay,
    Check out the following code: https://gist.github.com/trent-/7526011
    The following need to be set accordingly
    g_upload_folder_id - the google folder ID (obtained from the URL) - used as a default to upload into a particular folder
    g_wallet_path - the path of your oracle wallet with the trusted certificates imported
    g_wallet_password - the password for the above wallet
    g_redirect_uri - The procedure that has your implementation with what to do after the user accepts
    g_client_id and g_client_secret - property's from your project out of your google API console
    l_endpoint_url in the function authorization_code_callback - the page to go to after authorizing
    This particular code is designed to use a refresh token such that once the user authorizes, the system can refresh the token whenever they need. But you can adjust this to suit your needs. I suggest reviewing the following documentation: https://developers.google.com/accounts/docs/OAuth2WebServer
    So, here is what I've done. Create a button, with a dynamic action click event with the following code:
    $.ajax({
        url: '&OWNER..google_drive.GET_AUTHORIZATION_URL',
        data: {
            p_state: &APP_SESSION.
        success: function(data){
            window.location.href=data;
    This redirects the user to the authorization page. And as you can see in the code, would run the following when authorized:
    update app_users set refresh_token = (returned token); -- that is, depending on your user management design, you would need to adjust this accordingly.
    Then to upload the file, I have an onsubmit process with:
    declare
        l_filerow apex_application_files%rowtype;
    begin
        select * into l_filerow
        from apex_application_files
        where name = :P133_ATTACH_DATA;
        :P133_GOOGLE_DOC_ID := google_drive.create_file(l_filerow.blob_content, l_filerow.mime_Type, l_filerow.filename);
    end;
    Please also review the following post, which describes the overall process of setting up the project, wallet, acl, etc: Oracle Apex Tips: Accessing Google Data
    There are probably bits of the code that need refinement, and better error checking, but hope it helps :-)

  • How to insert a file in to the table.

    hi all,
    i'm new to lob types. my requirement is to store a document or excel spreadsheet or image to a single column and will be known at run time.
    i'm using java and oracle xe.
    1. lob has 4 types (blob, clob, nlob and bfile). which one will be best for my requirement.
    2. i have read some examples about clob and bfile. in all the examples, we need to create a directory and with the help of that directory, we need to insert the file.
    but, my doubt is, is it necessary to copy the file in that location, before inserting the file. and if not how i can give the file path to that one.
    its really helpful for me if u given the code or an example.
    regards
    pavan.

    hi pavan
    i am not very fimilar with lob's
    but i read one article in forms i hope it will help u
    http://www.oracle-base.com/articles/8i/ImportBlob.php
    Mohammadi

  • How to insert date into ms access database using sql query in servlet

    sir all thing is working well now only tell me how we can insert date into ms access database which is input by user .
    insert into db2(bookname,studentname,date) values('"+bname+"','"+sname+"',date_format)";{code}
    or either the system date is inserted with query .
      plz help me
    thanx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    bhavishya wrote:
    sir all thing is working well now only tell me how we can insert date into ms access database which is input by user .
    insert into db2(bookname,studentname,date) values('"+bname+"','"+sname+"',date_format)";{code}
    or either the system date is inserted with query .
    plz help me
    thanxAnd that SQL statement is another reason to use PreparedStatement. I assume bname and sname are input from some form? Well, if that's the case, simply inserting them into SQL by simple String concatenation is just begging for all sorts of problems. What if there is an apostrophe in the entry? Broken Statement. Worse, it's a wide open invitation to an SQL Injection attack.

  • How to insert embedded files in PDF

    Does anyone know how to embed files in a PDF file? I have a Word document where I inserted clickable files (ie, Outlook email message, another word document) but when I convert them to PDF, they are not clickable, meaning they can't be opened. I do not want to share the source file so is there a way to activate these files within the PDF file?
    Any help is appreciated.

    THANK YOU MIKE! I've never used this feature before, I have a follow up question, do I then have to email the attached documents as well or do they open automatically? Also, will the other user need to have the same Acrobat software to open them? I believe they only have Adobe Elements.
    THANKS!
    Mishi

  • How to insert the file name to column

    When user upload the file, in order to avoid the double file name conflict, so I need to  change the file name to something else, but I still need save the former file name to some column to download the file with correct file name, I know how to rename and upload file, but I don't know how to catch the file name and save it to some column when using addt insert transaction?

    Hi,
    As I said earlier, you have to maintain the list of filename's "itemdescr" in different temp file and load it an and when required table instead of checking for round robin functionality. If you are looking forward that oracle sqlldr can able to access the filename as one of the parameter then - it might not possible AFAIK.
    else perform the direct insert on the table from sqlclient.
    - Pavan Kumar N

  • How to insert the file name to the start and the end of a SQL file by a powershell script

    I just began to learn powershell script and I have a problem that I cannot figure out. I have a lot of .sql files. I need to insert its file name to the beginning of the file (After USE statement) and the end of the file (before the last END statement). Is
    there anybody knowing how to do this?
    Thanks so much
    Regards

    Actually, I want to add a insert SQL statement to the beginning of the file and the end of the file. Only the file name is a variable and different among
    different files. All the other sql statements are the same and can be hard coded. Hopefully it helps –
    The problem I think is that I want to add the same thing (except the file name) to hundreds of sql files and only the file name is different. I do not want
    to add it manually and want to use a script to add it – 

  • How to store Video file in Oracle9i database

    Hi
    I am working on Oracle9i Database.
    I am using Oracle9i Forms Developer for front end side.
    I want to Store a video file in a database table.
    I know that there are some data types like BLOB which support such activities but actually i dont know the exact steps of doing this task.
    Can anyone guide me in this regard that from where i have to start and how to perform this activity.
    Regards
    Ikhlaq Ahmed Khan

    Please refer to this link:
    http://www.dba-oracle.com/t_storing_insert_photo_pictures_tables.htm
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to insert large xml data into database tables.

    Hi all,
    iam new to xml. i want to insert data in xml file to my database tables.but the xml file size is very large. performance is also one of the issue. can anybody please tell me the procedure to take xml file from the server and insert into my database tables.
    Thanks in advance

    Unfortunately posting very generic questions like this in the forum tends not to be very productive for you, me or the other people who read the forum. It really helps everyone if you take a little time to review existing posts and their answers before starting new threads which replicate subjects that have already been discussed extensively in previous threads. This allows you to ask more sensible questions (eg, I'm using this approach and encountering this problem) rather than extremely generic questions that you can answer yourself by spending a little time reviewing existings posts or using the forum's search feature.
    Also in future your might want to try being a little more specific before posting questions
    Eg Define "very large". I know of customers who thing very large is 100K, and customers who think 4G is medium. I cannot tell from your post what size your files are.
    What is the content of the file. Is it going to be loaded into a single record, or a a single table, or will it need to be loaded into multiple records in a single table or multiple records in multiple tables ?
    Do you really need to load the data into exsiting relational tables or could your application work with relational views of the XML Content.
    Finally which release of the database are you working with.
    Define performance. Is it reasonable to expect to process this kind of document on this machine (Make, memory, #number of CPUs, CPU Speed, number of discs) in this period of time.
    WRT to your original question. If you take a few minutes to search this forum you will find a very large number of threads with very similar titles to yours. These theads document a number of different approaches that can be used to solve this problem.
    I suggest you start by looking for threads that cover topics like DBMS_XMLSTORE, XMLTable(), Relational Views of XML content, loading XML content in relational tables.

Maybe you are looking for