Write out Oracle models to RDF

I am trying to write models I have in my Oracle 12c database to RDF. I am using Jena, and the code goes something like this:
Oracle oracle = f.getOracle(); //My shortcut to getting access to the database, and give me an Oracle object.
Model model;
try {  model = ModelOracleSem.createOracleSemModel(oracle, modelName); }
catch (SQLException ex) {
//errorhandling
model.write(out);
Now, this works. But it works so terribly slow. I can almost see each individual triple downloaded. 30mb takes me three hours, which is totally unusable.
Are there other ways of doing this?

Here is a quick test I did.
I have a graph with 60.9M triples. And on my machine (a quad core CPU and Samsung 840 SSD), I can dump it out in a few minutes.
$ time java -Doracle.net.disableOob=true -cp ./classes:./'*' TestWrite jdbc:oracle:thin:@127.0.0.1:1521:db12c scott tiger mygraph 4
117.632u 6.941s 7:50.38 26.4%   0+0k 4360+11611520io 33pf+0w
The output is almost 6GB in size.
5,944,877,703 Nov 18 16:42 dump.nt
------- Source code is as follows ----
$ cat TestWrite.java
import java.io.*;
import com.hp.hpl.jena.query.*;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.util.FileManager;
import oracle.spatial.rdf.client.jena.*;
public class TestWrite {
  public static void main(String[] args) throws Exception
    String szJdbcURL = args[0];
    String szUser    = args[1];
    String szPasswd  = args[2];
    String szModelName = args[3];
    Oracle oracle = new Oracle(szJdbcURL, szUser, szPasswd);
    ModelOracleSem model = ModelOracleSem.createOracleSemModel(oracle, szModelName);
    GraphOracleSem gos = model.getGraph();
    gos.setDOP(Integer.parseInt(args[4]));
    OutputStream os = new FileOutputStream("/tmp/dump.nt");
    model.write(os, "N-TRIPLE");
    os.close();

Similar Messages

  • Unable to Create  Oracle Model  When  Migrating from access 2000 to Oracle

    Hi ,
    I am migrating an access 2000 Database to Oracle 9i using Oracle Migration Workbench .
    I was sucessful in creation of Source Model ,but when I try to create the Oracle Data Model - Oracle Workbench
    HAngs . In short the Oracle Model creation log screen hangs .
    If any body has faced any similar please help me out .
    Please suggest a work around for this problem .
    Thanks in Advance
    Arun

    Arun,
    Can you provide a reproducible test case so that we can confirm the behavior here and log a bug? More detail can be found in the log/Error.log in case there is a java exception that is being thrown.
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • Read data from Excel and write into oracle database

    Hi
    I want  to know how can i read data from excel and write into oracle database using java.Kindly help me out to find a solution.
    Thanks and Regards
    Neeta

    Hai,
    I am suggesting the solution.
    I will try out and let u know soon.
    Make a coma separated file from your excel file.
    Assuming that your requirement allows to make a csv file.
    This file may be passed as an file object to be read by java.Using JDBC you must be able to populate the data base.You can also use String Tokenizer if needed.
    You do not want to  go via sql Loader?
    For reading the excel file itself do you want java?

  • Unable to create oracle model.

    Migrating from Informix 7.31 to Oracle ( OMWB- 9.2.0.1.2).
    Captured the source model and the source model object count ok.
    While creating the "ORACLE MODEL" , it maps few tablespaces and then hangs forever. Could not see any visible errors.
    log file :
    ** Oracle Migration Workbench
    ** Release 9.2.0.1.2 Production
    ** ( Build 20020910 )
    ** ORACLE_HOME: I:\oracle\oramig90
    ** user language: en
    ** user region: US
    ** user timezone:
    ** file encoding: Cp1252
    ** java version: 1.3.1_01
    ** java vendor: Sun Microsystems Inc.
    ** o.s. arch: x86
    ** o.s. name: Windows 2000
    ** o.s. version: 5.0
    ** Classpath:
    I:\oracle\oramig90\Omwb\olite\Olite40.jar;C:\Program Files\Oracle\jre\1.3.1\lib\rt.jar;C:\Program Files\Oracle\jre\1.3.1\lib\i18n.jar;I:\oracle\oramig90\Omwb\jlib;I:\oracle\oramig90\Omwb\jlib\Omwb.jar;I:\oracle\oramig90\Omwb\jlib\xdb.jar;I:\oracle\oramig90\Omwb\jlib\oembase-9_2_0.jar;I:\oracle\oramig90\Omwb\plugins\SQLServer6.jar;I:\oracle\oramig90\Omwb\plugins\SQLServer7.jar;I:\oracle\oramig90\Omwb\plugins\SQLServer2K.jar;I:\oracle\oramig90\Omwb\plugins\Sybase11.jar;I:\oracle\oramig90\Omwb\plugins\Sybase12.jar;I:\oracle\oramig90\Omwb\plugins\MSAccess.jar;I:\oracle\oramig90\Omwb\plugins\MySQL.jar;I:\oracle\oramig90\Omwb\drivers\mm.mysql.jdbc-1.2a;I:\oracle\oramig90\Omwb\plugins\Informix7.jar;I:\oracle\oramig90\Omwb\plugins\Informix9.jar;I:\oracle\oramig90\Omwb\jlib\Informix7Core.jar;I:\oracle\oramig90\Omwb\jlib\Informix9Core.jar;I:\oracle\oramig90\Omwb\drivers\ifxjdbc.jar;I:\oracle\oramig90\Omwb\plugins\db2400v4r5.jar;I:\oracle\oramig90\Omwb\drivers\jt400.jar;I:\oracle\oramig90\Omwb\drivers\db2java.zip;I:\oracle\oramig90\Omwb\plugins\UDB6.jar;I:\oracle\oramig90\Omwb\jlib\UDB6Core.jar;I:\oracle\oramig90\Omwb\plugins\UDB7.jar;I:\oracle\oramig90\Omwb\jlib\UDB7Core.jar;I:\oracle\oramig90\lib\xmlparserv2.jar;I:\oracle\oramig90\rdbms\jlib\xsu12.jar;I:\oracle\oramig90\jdbc\lib\classes12.jar;I:\oracle\oramig90\jdbc\lib\nls_charset12.jar;I:\oracle\oramig90\lib\vbjorb.jar;I:\oracle\oramig90\Omwb\jlib\netcfg.jar;I:\oracle\oramig90\jlib\ewt3.jar;I:\oracle\oramig90\Omwb\jlib\ewtcompat-3_3_15.jar;I:\oracle\oramig90\jlib\share.jar;I:\oracle\oramig90\jlib\help3.jar;I:\oracle\oramig90\jlib\oracle_ice5.jar;I:\oracle\oramig90\jlib\kodiak.jar
    ** Started : Wed Mar 12 16:22:09 PST 2003
    ****** Operating System Information ********
    name : Windows 2000
    version : 5.0
    ** Workbench Repository : Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Repository Connection URL: jdbc:oracle:thin:@cv-csommer02:1521:oemrep
    ** The following plugins are installed:
    ** Informix Dynamic Server 9.1 Plugin, Release 9.2.0.1.2 Beta
    ** Informix Dynamic Server 7.3 Plugin, Release 9.2.0.1.2 Production
    ** Active Plugin : Informix7
    java.lang.NullPointerException
         at oracle.sysman.vbo.VboDataSourceUpdateExceptionHelper.write(VboDataSourceUpdateExceptionHelper.java:46)
         at oracle.sysman.vbo.VboDataSourceUpdateExceptionHelper.insert(VboDataSourceUpdateExceptionHelper.java:53)
         at oracle.sysman.vbo.VboDataSourceUpdateException.toString(VboDataSourceUpdateException.java:39)
         at oracle.mtg.oracleModel.server.OracleModelImpl.insertTablespace(OracleModelImpl.java:3558)
         at oracle.mtg.oracleModel.server.OracleModelImpl.insertTablespace(OracleModelImpl.java:3410)
         at oracle.mtg.informix7.server.Informix7SourceModelMap._mapTablespaces(Informix7SourceModelMap.java:1351)
         at oracle.mtg.informix7.server.Informix7SourceModelMap.mapSourceModel(Informix7SourceModelMap.java:184)
         at oracle.mtg.informix7.ui.Informix7CaptureWizard.map(Informix7CaptureWizard.java:415)
         at oracle.mtg.migrationUI.ActionMenuHandler._mapSourceModel(ActionMenuHandler.java:465)
         at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:103)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:269)
    Appreciate feed back
    Thanks.

    Periyaswamy,
    You will need to log a support request to get development to investigate further. We may need a dump of your Workbench repository to narrow down the issue.
    Support Instructions:
    http://otn.oracle.com/support/tech/migration/workbench/content.html
    Donal

  • Error when parsing SQLServer triggers tot Oracle Model

    After capturing the SQLServer database into the Oracle Migration Work Bench repository (omwb) I have migrated the SQLServer sourccode to the Oracle Model (also in the
    omwb repository). But...
    when migrating SQLServer sourcecode to Oracle9i database some of the triggers are not migrated into the Oracle Model: triggers like :
    ----------->
    create trigger dbo.tr_nev_del_audittable
    on event_spare_memofield
    instead of delete
    as
    begin
    <-----------
    are not migrated.
    Can someone tell me why?
    I am only getting the message:
    Error occured on line 9:
    oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 9, column 10. Encountered: of

    Hi there,
    I'm sure this is still a bug, bug you should change or comment out the offending lines and reparse the triggers. This way, you will get it into the oracle model and can start finsihing off the migration.
    Barry

  • WHEN MIGRATING SQLSERVER REPOSITORY TO ORACLE MODEL USING OraMigWrkBnch

    I have captured the the SQLServer database to the omwb repository and migrated it to the Oracle Model. Some of the views,
    triggers and stored procedures are not migrated and the followind messages are provided.
    Has somebody done this before and got the same messages?, does someone know how to solve this problem(s)?, is there a
    standard way?
    Please help, anyone.
    VIEW
    [1] Error occured on line 1:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 1, column 106. Encountered:
    from
    TRIGGERS
    [2] Error occured on line 9:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 9, column 10. Encountered: of
    [3] Error occured on line 17:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 17, column 3. Encountered:
    update
    [4] Error occured on line 183:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 183, column 5. Encountered:
    cross
    [5] Error occured on line 7:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 7, column 1. Encountered:
    create
    STORED PROCEDURES
    [6] Error occured on line 26:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 26, column 5. Encountered:
    update
    [7] Error occured on line 163:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 163, column 17. Encountered:
    where
    [8] Error occured on line 66:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 66, column 47. Encountered:
    @ac_any_type_code
    [9] Error occured on line 69:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 69, column 28. Encountered: =
    [10] Error occured on line 70:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 70, column 7. Encountered: (
    [11] Error occured on line 9:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 9, column 1. Encountered:
    [12] Error occured on line 64:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 64, column 5. Encountered:
    delete
    [13] Error occured on line 60:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 60, column 35. Encountered:
    as
    [14] Error occured on line 1:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 1, column 55. Encountered:
    create
    [15] Error occured on line 65:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 65, column 7. Encountered:
    from
    [16] Error occured on line 56:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 56, column 51. Encountered: +
    [17] Error occured on line 112:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 112, column 1. Encountered:
    null
    [18] Error occured on line 27:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 27, column 3. Encountered:
    select
    [19] Error occured on line 74:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 74, column 10. Encountered:
    and
    [20] Error occured on line 19:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 19, column 6. Encountered: ,
    [21] Error occured on line 194:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 194, column 10. Encountered:
    exists
    [22] Error occured on line 269:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 269, column 9. Encountered:
    declare
    [23] Error occured on line 49:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 49, column 7. Encountered:
    order
    [24] Error occured on line 244:oracle.mtg.sqlserver2k.parser.ParseException: Parse error at line 244, column 41. Encountered:
    rtrim

    The following trigger created:
    CREATE OR REPLACE TRIGGER tr_prs16_ins
    AFTER INSERT
    ON progress_state_16
    FOR EACH ROW
    DECLARE
    /* COMMENT */
    BEGIN
         BEGIN
                   INSERT INTO logtable
                        SELECT :NEW.code, sf_language.code,
    RPAD(CASE WHEN fg1.id IS null THEN '' ELSE RTRIM(fg1.id) END ||
    CASE WHEN pg1.id IS null THEN '' ELSE ': ' || RTRIM(pg1.id) END ||
    CASE WHEN fg2.id IS null THEN '' ELSE ', ' || RTRIM(fg2.id) END ||
    CASE WHEN pg2.id IS null THEN '' ELSE ': ' || RTRIM(pg2.id) END ||
    CASE WHEN fg3.id IS null THEN '' ELSE ', ' || RTRIM(fg3.id) END ||
    CASE WHEN pg3.id IS null THEN '' ELSE ': ' || RTRIM(pg3.id) END ||
    CASE WHEN fg4.id IS null THEN '' ELSE ', ' || RTRIM(fg4.id) END ||
    CASE WHEN pg4.id IS null THEN '' ELSE ': ' || RTRIM(pg4.id) END ||
    CASE WHEN fg5.id IS null THEN '' ELSE ', ' || RTRIM(fg5.id) END ||
    CASE WHEN pg5.id IS null THEN '' ELSE ': ' || RTRIM(pg5.id) END ||
    CASE WHEN fg6.id IS null THEN '' ELSE ', ' || RTRIM(fg6.id) END ||
    CASE WHEN pg6.id IS null THEN '' ELSE ': ' || RTRIM(pg6.id) END ||
    CASE WHEN fg7.id IS null THEN '' ELSE ', ' || RTRIM(fg7.id) END ||
    CASE WHEN pg7.id IS null THEN '' ELSE ': ' || RTRIM(pg7.id) END ||
    CASE WHEN fg8.id IS null THEN '' ELSE ', ' || RTRIM(fg8.id) END ||
    CASE WHEN pg8.id IS null THEN '' ELSE ': ' || RTRIM(pg8.id) END ||
    CASE WHEN fg9.id IS null THEN '' ELSE ', ' || RTRIM(fg9.id) END ||
    CASE WHEN pg9.id IS null THEN '' ELSE ': ' || RTRIM(pg9.id) END ||
    CASE WHEN fg10.id IS null THEN '' ELSE ', ' || RTRIM(fg10.id) END ||
    CASE WHEN pg10.id IS null THEN '' ELSE ': ' || RTRIM(pg10.id) END ||
    CASE WHEN fg11.id IS null THEN '' ELSE ', ' || RTRIM(fg11.id) END ||
    CASE WHEN pg11.id IS null THEN '' ELSE ': ' || RTRIM(pg11.id) END ||
    CASE WHEN fg12.id IS null THEN '' ELSE ', ' || RTRIM(fg12.id) END ||
    CASE WHEN pg12.id IS null THEN '' ELSE ': ' || RTRIM(pg12.id) END ||
    CASE WHEN fg13.id IS null THEN '' ELSE ', ' || RTRIM(fg13.id) END ||
    CASE WHEN pg13.id IS null THEN '' ELSE ': ' || RTRIM(pg13.id) END ||
    CASE WHEN fg14.id IS null THEN '' ELSE ', ' || RTRIM(fg14.id) END ||
    CASE WHEN pg14.id IS null THEN '' ELSE ': ' || RTRIM(pg14.id) END ||
    CASE WHEN fg15.id IS null THEN '' ELSE ', ' || RTRIM(fg15.id) END ||
    CASE WHEN pg15.id IS null THEN '' ELSE ': ' || RTRIM(pg15.id) END ||
    CASE WHEN fg16.id IS null THEN '' ELSE ', ' || RTRIM(fg16.id) END ||
    CASE WHEN pg16.id IS null THEN '' ELSE ': ' || RTRIM(pg16.id) END
    , 255, ' ')
    from dual
    left outer join function_group fg1 on fg1.code = :new.function_group_1_code
    left outer join function_group fg2 on fg2.code = :new.function_group_2_code
    left outer join function_group fg3 on fg3.code = :new.function_group_3_code
    left outer join function_group fg4 on fg4.code = :new.function_group_4_code
    left outer join function_group fg5 on fg5.code = :new.function_group_5_code
    left outer join function_group fg6 on fg6.code = :new.function_group_6_code
    left outer join function_group fg7 on fg7.code = :new.function_group_7_code
    left outer join function_group fg8 on fg8.code = :new.function_group_8_code
    left outer join function_group fg9 on fg9.code = :new.function_group_9_code
    left outer join function_group fg10 on fg10.code = :new.function_group_10_code
    left outer join function_group fg11 on fg11.code = :new.function_group_11_code
    left outer join function_group fg12 on fg12.code = :new.function_group_12_code
    left outer join function_group fg13 on fg13.code = :new.function_group_13_code
    left outer join function_group fg14 on fg14.code = :new.function_group_14_code
    left outer join function_group fg15 on fg15.code = :new.function_group_15_code
    left outer join function_group fg16 on fg16.code = :new.function_group_16_code
    left outer join progress pg1 on pg1.code = :new.progress_1_code
    left outer join progress pg2 on pg2.code = :new.progress_2_code
    left outer join progress pg3 on pg3.code = :new.progress_3_code
    left outer join progress pg4 on pg4.code = :new.progress_4_code
    left outer join progress pg5 on pg5.code = :new.progress_5_code
    left outer join progress pg6 on pg6.code = :new.progress_6_code
    left outer join progress pg7 on pg7.code = :new.progress_7_code
    left outer join progress pg8 on pg8.code = :new.progress_8_code
    left outer join progress pg9 on pg9.code = :new.progress_9_code
    left outer join progress pg10 on pg10.code = :new.progress_10_code
    left outer join progress pg11 on pg11.code = :new.progress_11_code
    left outer join progress pg12 on pg12.code = :new.progress_12_code
    left outer join progress pg13 on pg13.code = :new.progress_13_code
    left outer join progress pg14 on pg14.code = :new.progress_14_code
    left outer join progress pg15 on pg15.code = :new.progress_15_code
    left outer join progress pg16 on pg16.code = :new.progress_16_code
    cross join sf_language
         END;
    END TEST_IF;
    given the following tables exist:
    create table logtable(newcode varchar2(10),
    sfcode varchar2(10),
    other varchar2(10)
    create table sf_language(code varchar2(10),
    id varchar2(10));
    create table progress(code varchar2(10),
    id varchar2(10));
    create table function_group(code varchar2(10),
    id varchar2(10));
    create table progress_state_16 (code varchar2(10),
    function_group_1_code varchar2(10),
    function_group_2_code varchar2(10),
    function_group_3_code varchar2(10),
    function_group_4_code varchar2(10),
    function_group_5_code varchar2(10),
    function_group_6_code varchar2(10),
    function_group_7_code varchar2(10),
    function_group_8_code varchar2(10),
    function_group_9_code varchar2(10),
    function_group_10_code varchar2(10),
    function_group_11_code varchar2(10),
    function_group_12_code varchar2(10),
    function_group_13_code varchar2(10),
    function_group_14_code varchar2(10),
    function_group_15_code varchar2(10),
    function_group_16_code varchar2(10),
    progress_1_code varchar2(10),
    progress_2_code varchar2(10),
    progress_3_code varchar2(10),
    progress_4_code varchar2(10),
    progress_5_code varchar2(10),
    progress_6_code varchar2(10),
    progress_7_code varchar2(10),
    progress_8_code varchar2(10),
    progress_9_code varchar2(10),
    progress_10_code varchar2(10),
    progress_11_code varchar2(10),
    progress_12_code varchar2(10),
    progress_13_code varchar2(10),
    progress_14_code varchar2(10),
    progress_15_code varchar2(10),
    progress_16_code varchar2(10))
    SQL> insert into progress_state_16 values ('1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1');
    1 row created.
    SQL> select * from logtable;
    no rows selected
    SQL>
    The data to make the select produce a result was not added. I hope your database difficulties are resolved. I hope the fact that the trigger builds gives you more confidence.
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • How to use batch file in window to send out Oracle AWR report automatically

    Dear All
    Please help me to write batch script as scheduler in windows to send out Oracle AWR report every 2 hours automatically
    I have database 10.2.0.3 , its on windows platform .
    Thanks in advance

    846671 wrote:
    Dear All
    Please help me to write batch script as scheduler in windows to send out Oracle AWR report every 2 hours automatically
    I have database 10.2.0.3 , its on windows platform .
    Thanks in advancewhat utility do you use to "send out" Oracle AWR report ?

  • Oracle Model

    While creating the oracle model I see few informational messages on the screen and the system waits forever..
    I looked at the log file and found this exception.Any suggestions.Thanks in advance
    java.lang.InstantiationError: org.gjt.mm.mysql.DatabaseMetaData
         at oracle.mtg.mysql.server.MySQLSourceModelLoad.createSourceModelDBDefinitions(MySQLSourceModelLoad.java:182)
         at oracle.mtg.mysql.server.MySQLSourceModelLoad.loadSourceModel(MySQLSourceModelLoad.java:115)
         at oracle.mtg.mysql.ui.MySQLCaptureWizard.doCapture(MySQLCaptureWizard.java:522)
         at oracle.mtg.mysql.ui.MySQLCaptureWizard._runDialog(MySQLCaptureWizard.java:385)
         at oracle.mtg.mysql.ui.MySQLCaptureWizard.capture(MySQLCaptureWizard.java:322)
         at oracle.mtg.migrationUI.ActionMenuHandler._capture(ActionMenuHandler.java:216)
         at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:93)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:269)

    Donal,
    I have been migrating Informix 9 to Oracle and came across a similar quirk when creating the Oracle Model. It turns out there is a bug in the Informix plugin that gets upset 'sometimes' when it tries to map tablespace name definitions.
    The solution for me was to remove the tablespace names from the Informix model.
    Try an OMW load to create the mysql model only, see if it works, and then try creating the Oracle model. When it goes wrong try removing the tablespaces/dbspaces from the mysql model and have another go
    Geoff

  • I can't rate or write a review for app on the app store. It allows me to write out the review but does not diplay my review after sending it. Can anyone point me in the right direction to get answer as apply refuse to reply or solve my problem. Thanks

    I can't rate or write a review for app on the app store. It allows me to write out the review but does not diplay my review after sending it. Can anyone point me in the right direction to get answer as apply refuse to reply or solve my problem. Ps thanks apple for ur ignorance

    I have the same problem with another TeamLava app, Fashion Story.

  • File read/write in Oracle JVM

    Are there any known issues around file read/write in Oracle JVM. I finally got around the issue of getting the error that says no permission is there by giving <<ALL FILES>> option, but still I don't see a file being created. Any help is appreciated.
    Code:
    try{
    fwriter = new PrintWriter(new FileOutputStream("debugLog.txt",true));
    } catch (IOException ioe) {
    System.err.println("IO Exception for Output File" + ioe.getMessage());
    Thanks.
    -Mujib

    A couple of suggestions:
    1. (Please don't be offended...) I assume you have some stuff like:
    fwriter.println("hello");
    fwriter.flush();
    fwriter.close();
    in your try block?
    2. Try catching FileNotFoundException and SecurityException also.
    3. Try providing a full path on the file just to make sure it's not buried somewhere odd.
    John H.

  • How do I find out the Model # to my Macbook Air?

    Hi all. Finding the serial # is easy, but I cannot figure out what model # this is. The laptop was purchased used with no box or manuals, etc.
    Is there a way to find out this information? My wife wants to sell this and buy a Macbook Pro, but I do not want to list it in eBay or Craigslist without knowing exactly what to put down.
    Thanks so much.

    Matt,
    That a Model A1304.
    Here is some history:
    Announced in October 2008 and shipped in November, the MacBook Air (Late 2008) was no faster than its predecessor, in terms of processor speed. It gained performance, however, from a faster 1066 MHz bus, a larger 6 MB on-chip L2 cache, and a faster graphics chipset. In addition, the micro-DVI port was replaced with the new Mini DisplayPort, which was capable of driving a larger external display (2560x1600). The MacBook Air (Late 2008) shipped in two configurations: 1.6 GHz/2GB RAM/120 GB HD/$1799 U.S. and 1.86 GHz/2 GB RAM/128 GB solid-state/$2499 U.S.
    Edit: Actually the Mid 2009 also shows as MacBookAir 2,1
    Introduced in June 2009, the MacBook Air (Mid 2009) represented both a speed-bump and a cost reduction of the MacBook Air (Late 2008). It shipped in two configurations: 1.86 GHz/2GB RAM/120 GB HD/$1499 U.S. and 2.13 GHz/2 GB RAM/128 GB solid-state/$1799 U.S.
    Message was edited by: captfred

  • [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2"

    I am using SSIS to extract fixed width data into a flat file destination and I keep getting below error. I have tried almost everything in this forum but still no solution. can anyone help me out to solve this problem.
    [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2".
    [SSIS.Pipeline] Error: component "Flat File Destination" (220) failed the pre-execute phase and returned error code 0xC0202095
    Thanks

    Hi Giss68,
    Could you check the Advanced tab of the Flat File Connection Manager to see whether the InputColumnWidth and the OutputColumnWidth properties of the Column2 has the same value? Please refer to the following link about the same topic:
    http://stackoverflow.com/questions/10292091/how-do-i-fix-failed-to-write-error-while-exporting-data-to-ragged-right-flat-fil 
    If it doesn’t work, please post the sample data and the advanced settings of Column2 for further analysis.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • How to write the oracle data as XML format. (.XML file)

    create or replace procedure pro(p_number )
    is
    cursor c1 is select *from emp where empno=p_number;
    v_file utl_file.file_type;
    begin
    v_file := utl_file.fopen('dirc','filename.txt','w');
    for i in c1 loop
    utl_file.put_line(v_file,i.ename || i.empno ||i.job);
    end loop;
    closef(v_file);
    end;
    Now my client want instead of .txt file he need .xml files
    File should contains xml tags. can any one help regarding this.. with one example.
    How to write the oracle data as XML format. (.XML file)

    hi,
    hope this example will do something....
    SQL> select employee_id, first_name, last_name, phone_number
    2 from employees where rownum < 6
    EMPLOYEE_ID FIRST_NAME LAST_NAME PHONE_NUMBER
    100 Steven King 515.123.4567
    101 Neena Kochhar 515.123.4568
    102 Lex De Haan 515.123.4569
    103 Alexander Hunold 590.423.4567
    104 Bruce Ernst 590.423.4568
    SQL> select dbms_xmlgen.getxml('select employee_id, first_name,
    2 last_name, phone_number from employees where rownum < 6') xml
    3 from dual;
    *<?xml version="1.0"?>*
    *<ROWSET>*
    *<ROW>*
    *<EMPLOYEE_ID>100</EMPLOYEE_ID>*
    *<FIRST_NAME>Steven</FIRST_NAME>*
    *<LAST_NAME>King</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4567</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>101</EMPLOYEE_ID>*
    *<FIRST_NAME>Neena</FIRST_NAME>*
    *<LAST_NAME>Kochhar</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4568</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>102</EMPLOYEE_ID>*
    *<FIRST_NAME>Lex</FIRST_NAME>*
    *<LAST_NAME>De Haan</LAST_NAME>*
    *<PHONE_NUMBER>515.123.4569</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>103</EMPLOYEE_ID>*
    *<FIRST_NAME>Alexander</FIRST_NAME>*
    *<LAST_NAME>Hunold</LAST_NAME>*
    *<PHONE_NUMBER>590.423.4567</PHONE_NUMBER>*
    *</ROW>*
    *<ROW>*
    *<EMPLOYEE_ID>104</EMPLOYEE_ID>*
    *<FIRST_NAME>Bruce</FIRST_NAME>*
    *<LAST_NAME>Ernst</LAST_NAME>*
    *<PHONE_NUMBER>590.423.4568</PHONE_NUMBER>*
    *</ROW>*
    *</ROWSET>*
    ask if you want more assistance.
    thanks.

  • How do i change column names in oracle model?

    Hi,
    I am performing a migration from SQL SERVER 7.0 to Oracle 8.1.7.
    I have tables that have tables in SQL SERVER with column names
    that are "TYPE" and "BODY".(These are generally TEXT datatype
    columns that need to be converted to LONG in Oracle.We need
    these to be LONG datatype in Oracle because of an application we
    are using. LOBS cannot be allowed)
    The migration utility renames these columns as "TYPE_"
    and "BODY_" and creates the tables in the Oracle Database.
    I need to have these tables in Oracle with the same column names
    viz. "TYPE" and "BODY" .
    I can create new tables in Oracle with the column names "TYPE"
    and "BODY" but cannot change the options in the migration
    workbench for this.
    Is there any option or any workaround I can use to change the
    column names in the Oracle model?or set the options so that the
    Oracle model tables donot modify these column names?
    Thanks in advance for all the help.
    Mandar

    The words 'TYPE' and 'BODY' are reserved Oracle words. Its best
    to go along with what the workbench has suggested. If you have
    to keep the original names of the columns trying wrapping double
    quotes around them after the data migration is complete. This
    may cause a case sensitivity or referential problem later on
    though.

  • Can I find out the model number of my screen without taking it apart?

    Hi!
    My "17 Macbook Pro creen needs replacing,and I have no interest in spending upwards of $250.
    I would like to find a suitable replacement online,but I need to know the model number first for purposes of compatibility.
    I have been told that I would have to take apart my screen,in order to find out the model.
    I was wondering if there was any possibility of finding out the model number without having to take my screen apart.
    I have been calling apple service centers,but they have been no help.
    They tell me that they need to diagnose it for themselves.
    Why should it be this difficult?
    I should be able to just call somebody,have them look up the serial number,and tell me the number of my model.

    All they should need is the Model Number of your Mac.
    Here is a good Place to look.
    http://eshop.macsales.com/?utm_source=google&utm_medium=cpc&utm_campaign=adwords &gclid=CO741pfHiL0CFbQWMgodOTYAJA
    Don
    http://eshop.macsales.com/item/Apple/MBPU17GLS/
    If it is just the display glass then the last link is what you need.

Maybe you are looking for