Oracle (SQL) to File Interface

I am trying to export data from Oracle to Flat file. I have defined both models which include the datastores and I have used them in the interface.
What LKM should I use? I don't want to load data in a different staging area. Also, I can't use IKM SQL to File Append (it doesn't show in the Flow window)
2) I know there is another option (ODISQLUnload) but I think it's better to export / import via text file when dealing with large volume of data.
Thank you

Indeed. I had to select the staging area as different from target. First I got confused because I don't want to move data around to waste time.
However, running the interface I got an error. The file is on local system (W32). I can't figure out why it returned this error since I am able to read/write to the target folder.
java.io.IOException: CreateProcess: insert into table_name ( field1, field2) values ( :field1, :field2) error=2
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Unknown Source)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execOsOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrdersOSOder(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.k(e.java)
    at com.sunopsis.dwg.cmd.g.A(g.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)

Similar Messages

  • SQL to FILE interface with column headers

    Hi All,
    I have designed an interface to extract the data from Oracle to flat file (.txt file ) .
    1) I am getting the column headers in the output file(. txt file) but I don't want to see any column headers
    2) While creating the data source in data Model If I give any column type as date I am getting null value in the output file, but If I give column type as string for date filed I am able to see the data in output file.
    Thanks ,
    Patel.

    Hi Patel
    1) I am getting the column headers in the output file(. txt file) but I don't want to see any column headers
    You can to the flow properties and set GENERATE_HEADER = flase.
    -- step by step approach on how to load data from an oracle table to flat file
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_table-to-flatfile/odi_project_table-to-flatfile.htm
    http://odiexperts.com/oracle-to-flat-file/
    2) While creating the data source in data Model If I give any column type as date I am getting null value in the output file, but If I give column type as string for date filed I am able to see the data in output file.
    I do not think you can use a Date Datatype while loading into flat file. You can go with string or number/integer (if date does not have any special characters. You can use a conversion function here to convert existing Date datatype as per your requirements , but make sure you select " on source or on staging")
    Regards
    kk

  • Oracle SQL Developer - File, Open , File Name Not Accept UNC Path Form

    In Oracle SQL Developer, at least the File, Open (Dialog's), the File Name (if not all File / Directory Name) Text Box(es) is (are) not accepting, at least for me, the UNC Path Form of Folders on Network Servers. The same UNC Path (or UNC Paths in general) works in the File / Directory Name Text Box of every other Windows App I've tried (from Windows 95 to Windows 7). Is there a way to do this? If not, was it intentional and where can I suggest this as a fix / enhancement?
    I'm using Windows XP w/ SP3.

    DUH! I figured out what happened. In my first search, I searched (using "Actions", "Filter", "Column" option) for "Title Contains 'UNC'" which didn't find anything because the single-quotes were considered literals (which isn't consistent with the "Row" option or with the technical SQL syntax one would expect given technical operators like "!=", pffft, "!="??? Really???). Then, all subsequent searches returned nothing, because all previous searches are combined with implied "And" Operators until you select "Actions", "Reset" (which isn't consistent with any Web / Desktop App search feature I've ever seen). Don't get me wrong. The latter is a great feature. It just needs to be documented better.
    It probably wouldn't hurt to: a) include easily visible tips on whether single / double quotes are needed and b) show an "And" Operator in front of each previous search listed so people won't mistake it for simply a Search Criteria History vs. Current Search Criteria, oh and add a heading that labels it as, oh, IDK, "Current Search Criteria", maybe? IDK, call me crazy (or just another stupid user posing as a developer with 16 years experience ;).

  • Oracle.sql.BLOB

    I am trying to extract a file name and its data from the database. The file data is stored as HUGEBLOB in the table. The file contains data which I found by downloading it directly from table using TOAD. However when I try to fetch the data throughh Java code :
    Blob file = rs.getBlob("file_data");
    I am getting null pointer in the next line which is:
    InputStream inputStream = ((oracle.sql.BLOB)file).getBinaryStream();
    Can anyone suggest why it is giving null exception and what is the solution to it.

    Have a go at [url http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/LOBSample/LOBSample.java.html]this link. Note the drawBlob method and how it 'gets' the BLOB out.

  • Cannot access class oracle.sql.BLOB;

    Hi,
    I am trying to save a .tif file into Oracle database. When I run the program in JDeveloper I get the following errors:
    Error(9,19): cannot access class oracle.sql.BLOB; file oracle\sql\BLOB.class not found
    Error(59,29): class BLOB not found in class mypackage1.ImageUpload
    package mypackage1;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.sql.*;
    import java.util.Properties;
    import oracle.sql.BLOB;
    Blob imgblob = rs.getBlob(1);
    OutputStream blobos = ((BLOB) imgblob).getBinaryOutputStream();
    ...................Any help is appreciated. Thanks

    What package do I need to include in my classpath for
    this. ThanksWhy don't you inspect your JAR files? Do you have WinZip? Open them with it and find the class.

  • Oracle SQL Developer  error - "The file-based source procedure Name is not present in the database."

    I recently started working on the Oracle SQL developer. I have 'select' privileges on the QA schema and when tried to execute proc in QA. It is giving the error as 'The file-based source <procedure Name>  is not present in the database.  Was it compiled?'
    instead 'you do not have sufficient privileges to execute this procedure'. Did research on internet but with no luck.What configuration changes needed to be done to make it work.Guide me.

    Sounds like you do not have the correct privileges.  What should have been granted to you by the QA user, or some other user with appropriate privileges, is...
    grant EXECUTE on "QA"."<PROCEDURE_OF_INTEREST>" to "<YOUR_USERID>" ;
    Note that a grant of execute on a procedure has nothing to do with grants of select on some or all of QA's tables and views.
    So, as Vadim suggests, from your connection node in SQL Developer's Connections view, if you expand the Other Users node, then expand QA and look in the Procedures node, do you see the procedure of interest?  If not, you cannot expect to be able to execute it from your userid's connection. And even if you do see it, you may have some other privilege that permits viewing but not executing, like...
    The role SELECT_CATALOG_ROLE
    The system privilege SELECT ANY DICTIONARY
    And even if you do not see it there, then having certain other privileges granted to you could permit executing it in general, like...
    The role EXECUTE_CATALOG_ROLE
    The system privilege EXECUTE ANY PROCEDURE
    Also, note that the 3.0 release is a bit dated nowadays. Upgrading to 4.0.3 production or even the 4.1 EA2 (early adopter) release will, in general, give you a better experience.
    Best wishes,
    Gary

  • How to use Oracle SQL Developer 4.0 to connect to Ms Access file with .accdb extension

    Hi all,
    I am using Oracle SQL Developer 4.0 and Ms Access 2013 under Windows 7 (64 bits)
    After browsing and selecting MS Access file with accdb extention, I got  an error message  :[Microsoft] " Data source name not found and no default driver specified".
    On Administravitve Tools=> ODBC Data Source Administrator=>Drivers I have                                                File                                date
    Name :                                                                               Version
    Microsoft Acess Driver (*.mdb, *accdb)                                 12.00.4518.1014                                        ACEODBC.DLL                    26/10/2006
    Would you please advise?
    Thank you very much in advance

    That MS Access driver is 64-bit, I think.  If SQL Developer, or JDK is 32-bit you need to use the 32-bit driver.   You can see if you have a 32-bit driver installed using  c:\windows\system32\odbcadm32.exe

  • How to execute command(program) from external file in Oracle SQL developer

    Hi,
    Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
    Example, i have 100 insert SQL inside a text file,
    and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.

    If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
    Now for the big popper: to run an external file: @file
    Best of luck,
    K.

  • Send mails with csv file as an attachment through oracle(SQL SCripts / Stor

    Hello Everybody,
    I have recently come across a requirement in which I am supposed to send mails with csv file as an attachment through oracle(SQL SCripts / Stored Procedure) .
    The contents of the csv file are to be retreived from the Database as well as the content of the mail and to whom it needs to be sent has also to be picked up from the database.
    Can somebody suggest me with a suitable code for the same?
    Would be of great help..!!
    Thanks & Regards,
    - VR
    Edited by: user646716 on Dec 18, 2009 10:44 AM

    read below links
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:255615160805
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL#Send_mail_with_UTL_TCP_-withattachments
    How to send csv file as an attachment

  • Running/Compiling *.java file in Oracle Sql Developer

    I want to compile/run java 5.0 files in Oracle sql developer1.1.2.25 on Fedora 5 platform.
    I have added javac as an enternal tool to compile java programs. Tools-->External Tools-->New
    I have also added java: /usr/java/jre1.5.0_10/bin/java as an external tool to run the complied programs
    I am able to compile the java programs, but i am not able to run them.
    I am providing ${file.name.no.ext} as an argument to java.
    Java-Log Output is:
    /usr/java/jre1.5.0_10/bin/java Writer2
    Exception in thread "main" java.lang.NoClassDefFoundError: Writer2
    However, if i run the same program in Linux terminal, i get the correct output:
    [root@localhost java]# which java
    /usr/java/jre1.5.0_10/bin/java
    [root@localhost java]# /usr/java/jre1.5.0_10/bin/java Writer2
    12
    howdy
    folks
    How can i make Oracle Sql Developer run the java program?

    I will echo the use jdev comment..
    Regardless, you may want to check the execute in directory.. or add a -cp parameter.
    Eric

  • How to import *.dmp file Through Oracle SQL Developer (3.2.20.09)

    hi
    how to import *.dmp file Through Oracle SQL Developer (3.2.20.09) ?
    how to do it ?
    thanks

    You do not.
    .dmp files are created from our Export and Data Pump database utilities and are proprietary files. You use the corresponding Import (or Data Pump) utility to import the data.

  • Extract Siebel Tools sse_data.dbf file into Oracle Sql Developer.

    Hi All,
    I have Siebel tools installed on my machine and I need to export the sse_data.dbf file from tools to Oracle Sql Developer, how do I do that? Any help would be much appreciated. Thanks
    Edited by: user11919275 on May 17, 2010 4:20 AM

    Hi,
    There's a tool named dbisqlc.exe which comes with default Siebel Tools installation. You can execute DML statements by using this tools. Actually dbisqlc.exe and sqldeveloper are both client tools for executing SQL statements.
    What do you want to do by exporting the local dbf? Can you please explain your requirement?
    Regards
    Cuneyt

  • ODI 10g R2 LKM File to Oracle (sql*ldr)  ctl file

    Hi,
    ODI release 10.1.3.4
    I need to load a file into an oracle db. For big file I use the LKM file to oracle (sql loader). It is a delimited file with ' " ' enclosed text. I give in the datasotre all parameters record separator, field separator, text delimiter, decimal separator. Despite in the control file for sql*ldr it miss the line [optionnaly enclosed '"' ] so in my db it is loading "nn" instead of nn ...
    Do someone know this issue ?!
    Best regards,
    BL

    It would be best to you look in to the LKM code to see if its even there "optionally enclosed by"
    This is an old version of ODI and its quite possible that the support for this clause was not added to the step that builds the ctl file.
    If its not there, then you can add it your self.

  • Oracle Express 10g - a way to terminate in SQL Command Line interface

    I've downloaded Oracle Express 10g and use the SQL Command Line interface to execute SQL*Plus -- a really simple window / interface without hardly any smarts. In other Oracle installations' SQL*Plus, I'm used to be able to do a Ctrl C to terminate the current SQL that's being executed and the session is still active and I can keep using it. But with the Oracle Express 10g SQL Command Line interface, when I do a Ctrl C the currrent SQL is terminated -- but so is the whole dang session and the window goes away too. There must be a way in the Oracle Express 10g SQL Command Line interface to simply terminate th current SQL results without losing the whole dang session!!! This is so incredibly frustrating it's not even funny. HELP!!!!

    I think your answer is in this thread:
    Re: stopping a query
    Regards, Marc

  • Oracle SQL developer configuration file

    Greetings experts,
    I'm a newbie in a Java and Database world trying to understand configuration file in Oracle SQL developer. It uses command like AddVMOption. I'm guessing this is a Java language related command. Is this true? If yes, what does it do?
    Regards,
    Valerie

    This is a java virtual machine argument

Maybe you are looking for

  • Error while installing the named instance SQL 2012 Sp1

    Hi, I am getting below error while installing the named instance with features Data base engine. on same server box 2 named instance already installed and working...please suggest. i have done a lot of troubleshooting..(configure local system for Db

  • How to implement this Form page in ApEx

    Hi, I'm using ApEx 4.0.1 with Oracle 10g r2. We have an old form (built with Forms 10g) that we want to implement with ApEx. Data are shown using some items and I can't find how to do the same with ApEx. It is quite hard to explain so here is a scree

  • Pdf font problem

    Good afternoon to everyone  I have a problem with this pdf article  http://hotfile.com/dl/86909478/7a0c189/Eye_10_DuoTrav_vs_Xalacom_24-hr_XFG.pdf.html  when I use acroread 9.4-1 maverick, at first I get this message:  `Cannot extract the embedded fo

  • How do I pass a custom data type to a dll in TestStand?

    I need to add a new feature / function to an existing TestStand program.  The original program uses a custom data type for the LabVIEW VISA (serial com) reference, as shown below.  I want to use the StationGlobals.VISA_Ref in my call to the dll. The

  • Ios 7.0.2 javascript redirect fails

    I have a very simple javascript redirect call that works on iOS 7 and earlier, but fails on iOS 7.0.2.  All it does is set windows.location = <some URL>. Has anyone else seen this issue or have a solution for it?