XML output from oracle equivalent to sql server

Hi,
I need an equivalent sql server 2005 equivalent output from oracle.
Tried with DBMS_XMLGEN.getxml, xforest etc. But I am not able to get desired output.
Could anyone help me in giving a hint to do so.
Here below i am pasting sql server 2005 query and output, oracle query and output.
SELECT top 5
P.process_id AS Ppid,
P.name AS Pn,
P.group_id AS Pg,
P.locked AS Pl,
P.build AS Pb,
100 AS qcount,
200 AS ocount,
PI.question_id AS PIqid,
PI.process_id AS PIpid,
PI.posx AS PIpx,
PI.posy AS PIpy,
PI.innertext AS PItext,
PI.itemtype AS PItype,
PI.linkfrom AS PIfrom,
PI.linkto AS PIto,
PI.associated AS PIas,
PI.content_id AS PIc,
PI.exitpoint1_id AS PIe1,
PI.exitpoint2_id AS PIe2,
PI.exitpoint3_id AS PIe3,
PI.resolveidentifier AS PIri,
PI.libquestion_idfk AS PIlqid,
PI.followoncall AS PIfoc,
PI.userinput AS PIui,
PI.isLocked AS PIstls,
PI.PreviousAnswer as PIPAns,
PI.VisibleToAgent as PIVAgent,
PI.RetryAttempt as PIRetry,
PI.Tags as PITag,
PO.option_id AS POoid,
PO.question_id AS POqid,
PO.process_id AS popid,
PO.posx AS POpx,
PO.posy AS POpy,
PO.opt_innertext AS POtext,
PO.opt_linkfrom AS POfrom,
PO.opt_linkto AS POto,
PO.libquestion_idfk AS POlqid,
PO.liboption_idfk AS POloid
FROM
dbo.processes_ec AS P WITH (nolock) INNER JOIN
dbo.vw_ProcessesQuestions_Simulator_v6 AS PI WITH (nolock)
ON P.process_id = PI.process_id LEFT OUTER JOIN
dbo.vw_ProcessesOptions_Simulator_v6 AS PO WITH (nolock)
ON PI.question_id = PO.question_id AND PI.process_id = PO.process_id
ORDER BY Ppid, PIqid, POoid ASC
FOR XML AUTO, ELEMENTS
O/P
<P>
<Ppid>450</Ppid>
<Pn>CBB1015 - Router Firewall Settinngs Process</Pn>
<Pg>9</Pg>
<Pl>0</Pl>
<Pb>5</Pb>
<qcount>100</qcount>
<ocount>200</ocount>
<PI>
<PIqid>1</PIqid>
<PIpid>450</PIpid>
<PIpx>366</PIpx>
<PIpy>-516</PIpy>
<PItext>CBB1015 - Router Firewall Settinngs Process</PItext>
<PItype>Title</PItype>
<PIto>2</PIto>
<PO />
</PI>
<PI>
<PIqid>2</PIqid>
<PIpid>450</PIpid>
<PIpx>366</PIpx>
<PIpy>-437</PIpy>
<PItext>Is the customers PC Firewall turned off?</PItext>
<PItype>Question</PItype>
<PIfrom>1</PIfrom>
<PIto>2.2,2.1</PIto>
<PO>
<POoid>1</POoid>
<POqid>2</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>5</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>2</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>3</POto>
</PO>
</PI>
<PI>
<PIqid>3</PIqid>
<PIpid>450</PIpid>
<PIpx>468</PIpx>
<PIpy>-344</PIpy>
<PItext>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PItext>
<PItype>Question</PItype>
<PIfrom>2.2</PIfrom>
<PIto>3.2,3.1</PIto>
<PIc>278</PIc>
<PO>
<POoid>1</POoid>
<POqid>3</POqid>
<popid>450</popid>
<POpx>-50</POpx>
<POpy>70</POpy>
<POtext>Yes</POtext>
<POto>5</POto>
</PO>
<PO>
<POoid>2</POoid>
<POqid>3</POqid>
<popid>450</popid>
<POpx>50</POpx>
<POpy>70</POpy>
<POtext>No</POtext>
<POto>4</POto>
</PO>
</PI>
</P>
Oracle query and output
select DBMS_XMLGEN.getxml('select * from (SELECT
P.process_id AS Ppid,
P.name AS Pn,
P.group_id AS Pg,
P.locked AS Pl,
P.build AS Pb,
100 AS qcount,
200 AS ocount,
PI.question_id AS PIqid,
PI.process_id AS PIpid,
PI.posx AS PIpx,
PI.posy AS PIpy,
PI.innertext AS PItext,
PI.itemtype AS PItype,
PI.linkfrom AS PIfrom,
PI.linkto AS PIto,
PI.associated AS PIas,
PI.content_id AS PIc,
PI.exitpoint1_id AS PIe1,
PI.exitpoint2_id AS PIe2,
PI.exitpoint3_id AS PIe3,
PI.resolveidentifier AS PIri,
PI.libquestion_idfk AS PIlqid,
PI.followoncall AS PIfoc,
PI.userinput AS PIui,
PI.isLocked AS PIstls,
PI.PreviousAnswer as PIPAns,
PI.VisibleToAgent as PIVAgent,
PI.RetryAttempt as PIRetry,
PI.Tags as PITag,
PO.option_id AS POoid,
PO.question_id AS POqid,
PO.process_id AS popid,
PO.posx AS POpx,
PO.posy AS POpy,
PO.opt_innertext AS POtext,
PO.opt_linkfrom AS POfrom,
PO.opt_linkto AS POto,
PO.libquestion_idfk AS POlqid,
PO.liboption_idfk AS POloid
FROM
processes_ec P INNER JOIN
vw_ProcessesQuestions_Sim_v6 PI
ON P.process_id = PI.process_id LEFT OUTER JOIN
vw_ProcessesOptions_Sim_v6 PO
ON PI.question_id = PO.question_id AND PI.process_id = PO.process_id
ORDER BY Ppid, PIqid, POoid ASC) where rownum<=5') from dual
O/P
<?xml version="1.0"?>
<ROWSET>
<ROW>
<PPID>450</PPID>
<PN>CBB1015 - Router Firewall Settinngs Process</PN>
<PG>9</PG>
<PL>0</PL>
<PB>5</PB>
<QCOUNT>100</QCOUNT>
<OCOUNT>200</OCOUNT>
<PIQID>1</PIQID>
<PIPID>450</PIPID>
<PIPX>366</PIPX>
<PIPY>-516</PIPY>
<PITEXT>CBB1015 - Router Firewall Settinngs Process</PITEXT>
<PITYPE>Title</PITYPE>
<PITO>2</PITO>
</ROW>
<ROW>
<PPID>450</PPID>
<PN>CBB1015 - Router Firewall Settinngs Process</PN>
<PG>9</PG>
<PL>0</PL>
<PB>5</PB>
<QCOUNT>100</QCOUNT>
<OCOUNT>200</OCOUNT>
<PIQID>2</PIQID>
<PIPID>450</PIPID>
<PIPX>366</PIPX>
<PIPY>-437</PIPY>
<PITEXT>Is the customers PC Firewall turned off?</PITEXT>
<PITYPE>Question</PITYPE>
<PIFROM>1</PIFROM>
<PITO>2.2,2.1</PITO>
<POOID>1</POOID>
<POQID>2</POQID>
<POPID>450</POPID>
<POPX>-50</POPX>
<POPY>70</POPY>
<POTEXT>Yes</POTEXT>
<POTO>5</POTO>
</ROW>
<ROW>
<PPID>450</PPID>
<PN>CBB1015 - Router Firewall Settinngs Process</PN>
<PG>9</PG>
<PL>0</PL>
<PB>5</PB>
<QCOUNT>100</QCOUNT>
<OCOUNT>200</OCOUNT>
<PIQID>2</PIQID>
<PIPID>450</PIPID>
<PIPX>366</PIPX>
<PIPY>-437</PIPY>
<PITEXT>Is the customers PC Firewall turned off?</PITEXT>
<PITYPE>Question</PITYPE>
<PIFROM>1</PIFROM>
<PITO>2.2,2.1</PITO>
<POOID>2</POOID>
<POQID>2</POQID>
<POPID>450</POPID>
<POPX>50</POPX>
<POPY>70</POPY>
<POTEXT>No</POTEXT>
<POTO>3</POTO>
</ROW>
<ROW>
<PPID>450</PPID>
<PN>CBB1015 - Router Firewall Settinngs Process</PN>
<PG>9</PG>
<PL>0</PL>
<PB>5</PB>
<QCOUNT>100</QCOUNT>
<OCOUNT>200</OCOUNT>
<PIQID>3</PIQID>
<PIPID>450</PIPID>
<PIPX>468</PIPX>
<PIPY>-344</PIPY>
<PITEXT>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PITEXT>
<PITYPE>Question</PITYPE>
<PIFROM>2.2</PIFROM>
<PITO>3.2,3.1</PITO>
<PIC>278</PIC>
<POOID>1</POOID>
<POQID>3</POQID>
<POPID>450</POPID>
<POPX>-50</POPX>
<POPY>70</POPY>
<POTEXT>Yes</POTEXT>
<POTO>5</POTO>
</ROW>
<ROW>
<PPID>450</PPID>
<PN>CBB1015 - Router Firewall Settinngs Process</PN>
<PG>9</PG>
<PL>0</PL>
<PB>5</PB>
<QCOUNT>100</QCOUNT>
<OCOUNT>200</OCOUNT>
<PIQID>3</PIQID>
<PIPID>450</PIPID>
<PIPX>468</PIPX>
<PIPY>-344</PIPY>
<PITEXT>Advise the customer to turn off the PC Firewall in order to continue. Has this been done?</PITEXT>
<PITYPE>Question</PITYPE>
<PIFROM>2.2</PIFROM>
<PITO>3.2,3.1</PITO>
<PIC>278</PIC>
<POOID>2</POOID>
<POQID>3</POQID>
<POPID>450</POPID>
<POPX>50</POPX>
<POPY>70</POPY>
<POTEXT>No</POTEXT>
<POTO>4</POTO>
</ROW>
</ROWSET>
Any help really appreciated.
Thanks in advance

Here are the links ->
http://www.psoug.org/reference/xml_functions.html
http://www.psoug.org/reference/dbms_xmlgen.html
http://www.adp-gmbh.ch/ora/sql/xmlelement.html
http://www.oracle-base.com/articles/9i/SQLXML9i.php
http://download.oracle.com/docs/cd/B10500_01/appdev.920/a96620/toc.htm
Regards.
Satyaki De

Similar Messages

  • What is the easiest way to export all tables data from Oracle to MS SQL Server?

    Hello MS,
    I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
    Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
    to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
    What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
    Is it:
    - the „MS SQL Import and Export Data“ Tool
    - the “MS SQL Integration Services” Tool
    - not Oracle dump *.dmp format because it is a propritery binary format
    - flat file *.csv (delimited format)
    Thanks!

    Hi lingodingo,
    If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
    If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Create and insert into table from Oracle to MS SQL server.

    Hello,
    Oracle Database 11g and Red hat 5
    I have a very different kind of issue. I am handling the ORACLE db(remote db with all the important data). On the other side their is a MS SQL server db(local db with some testing data in it). All the users will access the ORACLE db for the actual processing but for sometime they need to apply some of their own concepts. So they will transfer the data from ORACLE to MS sql server.
    I want to create a code in ORACLE db like a procedure , which will create a table in MS sql server , insert data into it,Also create some metadata table to keep some of my table's info on MS SQL serve db,If the table is present it should append the data, .... like many things ...
    Overall my question is , how can i write a code to make these operation on a remote db, that to these operations are DDL and on MS SQL Server(Non-Oracle) ???
    Please guide me with some ideas or solutions ...
    Also provide if you have some good links to study ...
    thanks in advance.

    I'm not sure why you never visit http://tahiti.oracle.com prior to asking any question. Is it forbidden in your locale? Are you afraid of it? Will your salary be decreased when you visit the documentation?
    http://www.oracle.com/pls/db111/search?word=sql+server&partno=
    should provide sufficient information.
    Your doc question must be considered a violation of Forum Etiquette and an abuse of this forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Replication of table from Oracle 10g to sql server 2000

    Could i replicate table from Oracle 10g to sql server online. we have tables with same configuration and if any change happen in oracle 10g or sql server in that table we need to replicate that change to other database.
    What is the solution for this two way replication between sql server and Oracle 10g

    But the tutorial is saying that i will have to install Oracle database on the server already having sql server, is it client or whole database, if it is then it will acquire lot of resource.
    I want to find out that for Heterogenous Service ODBC, we need third party software for ODBC Driver of SQL SERVER for Linux and secondly if we use Transparent Gateway then what are the steps for its configuration.
    I could not find steps of configuration of Transoparent gateway, when i am trying to install Transparent gateway from Universal installer, it is not there. where do i find it , Do i need to purchase it too.

  • Oracle equivalent of SQL Server's "FOR XML" and "OPENXML"

    Hi
    Can someone please tell what are the Oracle's equivalent of SQL Server's "FOR XML" and "OPENXML" features?

    Probably you can try General XML forum General XML
    Gints Plivna
    http://www.gplivna.eu

  • How to generate as XML output from Oracle Apps 11

    Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.1.7, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
    The scenario is:
    1) Run a concurrent program in Oracle Apps 11
    2) Output generated is XML (.xml)
    Regards.

    This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
    You may be better off in legacy XML Features forum...
    PL/SQL XML Programming

  • To generate XML output from Oracle Apps 11

    Hi Anyone has the experience to generate the output from Oracle Apps 11 as XML file? Database is 8.17, Oracle Apps 11. The concurrent program can be written in PL/SQL or can report 2.5 generate the output as XML?
    The scenario is:
    1) Run a concurrent program in Oracle Apps 11
    2) Output generated is XML (.xml)
    Regards.

    This forum is for Oracle XML DB features. XML DB is only available as of database 9iR2.
    You may be better off in legacy XML Features forum...
    PL/SQL XML Programming

  • Oracle equivalent to SQL Server Table Variables ?

    Does Oracle have anything equivalent to SQL Server table variables, that can be used in the JOIN clause of a select statement ?
    What I want to do is execute a query to retrieve a two-column result, into some form of temporary storage (a collection ?), and then re-use that common data in many other queries inside a PL/SQL block. I could use temporary tables, but I'd like to avoid having to create new tables in the database, if possible. If I was doing this in SQL Server, I could use a table variable to do this, but is there anything similar in Oracle ? SQL Server example:
    use Northwind
    DECLARE @myVar TABLE(CustomerID nchar(5), CompanyName nvarchar(40))
    INSERT INTO @myVar(CustomerID, CompanyName)
    select CustomerID, CompanyName
    from Customers
    --Join the variable onto a table in the database
    SELECT *
    FROM @myVar mv join Customers
    on mv.CompanyName = Customers.CompanyName
    The closest I've found in Oracle is to use CREATE TYPE to create new types in the database, and use TABLE and CAST to convert the collection to a table, as shown below. I can't see anyway without creating new types in the database.
    CREATE TYPE IDMap_obj AS Object(OldID number(15), NewID number(15));
    CREATE TYPE IDMap_TAB IS TABLE OF IDMap_obj;
    DECLARE
    v_Count Number(10) := 0;
    --Initialize empty collection
    SourceIDMap IDMap_TAB := IDMap_TAB();
    BEGIN
    --Populate our SourceIDMap variable (dummy select statement for now).
    FOR cur_row IN (select ID As OldID, ID + 10000000 As NewID From SomeTable) LOOP
    SourceIDMap.extend;
    SourceIDMap(SourceIDMap.Last) := IDMap_obj(cur_row.OldId, cur_row.NewId);
    END LOOP;
    --Print out contents of collection
    FOR cur_row IN 1 .. SourceIDMap.Count LOOP
    DBMS_OUTPUT.put_line(SourceIDMap(cur_row).OldId || ' ' || SourceIDMap(cur_row).NewId);
    END LOOP;
    --OK, can we now use our collection in a JOIN statement ?
    SELECT COUNT(SM.NewID)
    INTO v_Count
    FROM SomeTable ST JOIN
    TABLE(CAST(SourceIDMap As IDMap_TAB)) SM
    ON ST.ID = SM.OldID;
    DBMS_OUTPUT.put_line(' ' );
    DBMS_OUTPUT.put_line('v_Count is ' || v_Count);
    END;

    Hi, got this from our plsql guys:
    The term "table function" is a bit confusing here. In Oracle-speak, it means a function that can be used in the from list of a select statement thus:
    select * from Table(My_Table_Function()),..
    where...
    The function's return type must be a collection that SQL understands. So for the interesting case -- mimicking a function with more than one column -- this would be a nested table of ADTs where both the ADT and the nested table are defined at schema level. PL/SQL -- by virtue of some clever footwork -- allows you to declare the type as a nested table of records where both these types are declared in a package spec. This alternative is generally preferred, especially because the nested table can be of Some_Table%rowtype (or Some_Cursor%rowtype if you prefer).
    As I understand it from our man on the ANSI committee, our use terminology follows the standard.
    The construct below seems to be a bit different (though there are similarities) because it appears from your code sample that it's usable only within procedural code. And the object from which you select is a variable rather than a function.
    So, after that preamble... the answer would be:
    No, we don't have any constructs to let you "declare" something that looks like a regular schema-level table as a PL/SQL variable -- and then use (static) SQL on it just as if it were a schema-level table.
    But yes, you can use PL/SQL's pipelined table function to achieve much of the same effect.
    Look at the attached Table_Function.sql.
    It shows that you can populate a collection of records using ordinary PL/SQL code. You can't use SQL for insert, update, or delete on such a collection. I see that SQL Server lets you do
    insert into Program_Variable_Table select... from Schema_Level_Table
    The PL/SQL equivalent would be
    select...
    bulk collect into Program_Variable_Collection
    from Schema_Level_Table
    The attached shows that once you have populated your collection, then you can then query it with regular SQL -- both from inside PL/SQL code and from naked SQL.
    and the code is here
    CONNECT System/p
    -- Drop and re-create "ordinary" user Usr
    EXECUTE d.u
    CONNECT Usr/p
    create table Schema_Things(ID number, Description Varchar2(80))
    create package Pkg is
    subtype Thing_t is Schema_Things%rowtype;
    type Things_t is table of Thing_t; -- index by pls_integer
    Things Things_t;
    -- PLS-00630: pipelined functions must have
    -- a supported collection return type
    -- for "type Things_t is table of Thing_t index by pls_integer".
    function Computed_Things return Things_t pipelined;
    procedure Insert_Schema_Things(No_Of_Rows in pls_integer);
    end Pkg;
    create package body Pkg is
    function Computed_Things return Things_t pipelined is
    Idx pls_integer;
    Thing Thing_t;
    begin
    Idx := Things.First();
    while Idx is not null loop
    pipe row (Things(Idx));
    Idx := Things.Next(Idx);
    end loop;
    end Computed_Things;
    procedure Insert_Schema_Things(No_Of_Rows in pls_integer) is
    begin
    Things := Things_t();
    Things.Extend(No_Of_Rows);
    for j in 1..No_Of_Rows loop
    Things(j).ID := j;
    Things(j).Description := To_Char(j, '00009');
    end loop;
    insert into Schema_Things
    select * from Table(Pkg.Computed_Things());
    end Insert_Schema_Things;
    end Pkg;
    -- Test 1.
    begin Pkg.Insert_Schema_Things(100); end;
    select * from Schema_Things
    -- Test 2.
    begin
    Pkg.Things := Pkg.Things_t();
    Pkg.Things.Extend(20);
    for j in 1..20 loop
    Pkg.Things(j).ID := j;
    Pkg.Things(j).Description := To_Char(j, '00009');
    end loop;
    for j in 1..5 loop
    Pkg.Things.Delete(5 +2*j);
    end loop;
    end;
    select * from Table(Pkg.Computed_Things())
    /

  • Oracle equivalent of sql server CLRSplitSting function

    Hello Friends,
    I have a query in SQL Server - which is getting data .
    select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data       from dbo.CLRSplitString('2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420','',',') x         join ein_addl_info_v v on x.col1 = v.addl_info_id       order by sort_seq
    we have same data in oracle too so I converted the above sql server query to ORACLE Like this ..
    select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from ( with t as (
    select '2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420','',',' str from dual
    *)select regexp_substr(str,'[^,]+',1,level) sub_str from t connect by level <= regexp_count(str,',') + 1) x*
    join cnh_cs_targ_csce_eur_1.ein_addl_info_v v  on x.sub_str= v.addl_info_id     order by sort_seq
    but I am not getting any data . Can any one check whether the above oracle query is equivalent to SQL query stated above .
    thanks/Kumar
    Edited by: kumar73 on 15 Feb, 2013 8:47 AM

    Here your code:
    WITH t AS
       SELECT '2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420' str
        FROM DUAL
    SELECT REGEXP_SUBSTR (str, '[^,]+', 1, LEVEL) sub_str
       FROM t
    CONNECT BY LEVEL <= REGEXP_COUNT (str, '[^,]+');The reason of the problem is that in your query the column str was having value , (comma). Your query:
    select '2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420','',',' str from dual;was returning 3 columns.
    I have also modified the condition in REGEXP_COUNT.
    Regards.
    Al
    Edited by: Alberto Faenza on Feb 15, 2013 5:53 PM
    Explanation added.

  • XML output from Oracle 8.1.6

    I need to generate XML from oracle 8.1.6 and place the output into a file on NT directory. The RDBMS is running on SUN 2.7 (Solaris7).
    What is the best approach to accomplish this?
    I am new to XML, any sample code is greatly appreciated.
    Thanks for your help.
    null

    If you want to write the code yourself, you can download the XML SQL Utility and write Java code (or use its PL/SQL api) to accomplish this.
    You can also download the XSQL Pages technology and do it declaratively.
    If you want to create XML for a query
    like:
    SELECT * FROM EMP
    then with XSQL Pages you create a template
    page like this:
    <!-- MyQuery.xsql -->
    <xsql:query connection="myDB" xmlns:xsql="urn:oracle-xsql">
    SELECT * FROM EMP
    </xsql:query>
    And then you can use the "xsql" command-line
    utility to process the page and write the
    output into a file like this:
    $ xsql MyQuery.xsql MyOutputFile.xml
    null

  • Data Import from Oracle Dump to SQL Server(2000/2005)

    Hi Friends,
    I'm using Oracle 10g.
    I've a scenario.
    I've Oracle Dump file. Now i would like import in SQL Server(2000/2005).
    Can any one suggest me how to do this?
    Any idea,clue will be highly appreciated.

    I think you will need to import the data into SQL Server from an ASCII flat file using SQL Server DTS if avialable. You can use SQL Plus to extract the data outof Oracle into comma delimited flat files and then use SQL Server DTS load into the SQL Server database.

  • Moving table from oracle 10g to sql server 2005 plz help!!!

    Hi All,
    I have a table in oracle that i have to move to sql server.
    I have exported the table and the dmp file is around 150 MB.
    I do not know how to import this file into sql server.
    Can some one kindly update me as to which is the best way to do this,
    i know the best people to answer this would be the sql server techs but just wanted to try my luck on OTN.
    regards,

    Hello,
    you could use the Database Gateway for MS SQL Server, create a database link that uses the gateway, and then transfer the data from Oracle to SQL Server using in SQLPlus a command like the following:
    copy from scott/tiger@ora102 -
    insert TEST1@dg4msql -
    using select * from test1@ora102 ;
    Another solution is using a PL/SQL block, and how to do it is described in the following note in My Oracle Support:
    "Insert Into Remote Table Select * From Local Table" Gives Error ORA-02025 Using DG4MSQL (Doc ID 790572.1)
    I don't know whether it is the "best way to do it", but it is an alternative.
    For inserting a flat file into SQL Server you really need to check with Microsoft. Or you can use 3rd party software: http://www.dbload.com/
    Best regards
    Wolfgang

  • Transfer data from Oracle 7 to SQL server 2005

    Hello guys,
    I am new in Oracle and I need some help from you:
    I have an Oracle database 7 and I need to transfer some tables into MS SQL Server 2005.
    Is there any ORACLE utility (compatible with ver 7) to help me in this task?
    If not, what is the way to trasfer data from a Oracle database 7 to SQL Server 2005?
    Thank in advance

    SQL Server can access Oracle database via the Linked Database feature however I do not know if you could find a Oracle 7 database compatiable Oracle client to use with a SQL Server 2005 database. i would not even try to configure this.
    What I suggest is you use SQLPlus to spool out delimited data into flat files, copy/FTP etc ... those flat files to your SQL Server box, and use BCP to load the data into SQL Server.
    There have been numberous posts of generating delimited flat files from Oracle data posted here on the forum but here is one method that will work on version 7:
    How do I export a database table to a flat file ?
         http://www.jlcomp.demon.co.uk/faq/flatfile.html
    HTH -- Mark D Powell --

  • Data transfer from Oracle table to Sql Server

    Hi Friends,
    How can we transfer the data of one table from Oracle to Sql Server and keep refresh it everyday monrning 10 a.m?

    Also see:
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a76960/hs_genco.htm#173
    And from Tom Kyte:
    ...you could put the MS SQL server jdbc driver into the oracle database. then a
    java stored procedure can open a connection to MS. This connection would not
    have 2 phase commit abilities, distributed query or anything but would let you
    query data from there and update it as well.

  • Migrating data from Oracle 9i to SQL Server 2005

    I am new to both. I need to first migrate data from oracle to sql server. After this I need to create a daily nightly batch process to insert new records from oracle to sql server into that table.
    As my knowledge in SQL server is zero. Can somebody help me how I can accomplish this.
    Somebody told me that I can use sql server import/export to do initial data dump into sql server and after that I can create a link in in oracle to do new iserts for new records. does any one have some example on this. I will really apprecite this if someone can give me step by step example. Thanks

    I have been to SQL Server training, but my SQL server databases are off the shelf system, so I don't have to muck with them. Anyway, Sql Server is just MS Access on steroids, so some of the same concepts apply. You need to create an external table links to oracle. The following tidbits I found by googling might help you.
    http://www.sqlmag.com/Article/ArticleID/22264/sql_server_22264.html
    http://www.lazydba.com/sql/1__152.html
    http://www.sswug.org/see/35034
    http://decipherinfosys.wordpress.com/2007/07/16/linked-servers-in-sql-server/
    Some of the above require subscriptions (free and or paid). Hope this helps.

Maybe you are looking for

  • My iPhone4 does not display under Devices in iTunes

    I don't know if my iPhone 4 got overheated due to the recent power failure, but I charged it the other day and have been trying unsuccessfully to connect to iTunes ever since.  My Mac does not recognize my phone - it doesn't open iPhoto or iTunes whe

  • Can´t print large files with 10.5.7

    Hi, we finally have updated our G5s, 2x2GHz, 4GB RAM, 500GB system disk. Since then we are unable to print documents from CS3 + CS4 which result in cups print files > 1 Gb. Doesn´t work with GMG rips, HP Laserwriters and Adobe PDF printers. The jobs

  • Shattered glass strange graphical glitch

    I've been having this strange thing happen every once in a while on my imac. Sometimes when randomly when you move the mouse the screen changes to look like multicolored slivers. the only way I can describe it is as multicolored "shattered glass". As

  • 24p export to Blue-ray

    Could someone fill me in on the settings I need in ENCORE and PREMIERE PRO in order to successfully produce a Blu-ray disk from material recorded at 24P? There are so many confusing settings in BOTH applications. I've tried originating my PREMIERE pr

  • Scenario-- One Idoc-- Two files has to generate.

    Hi All, I got the scenario where i need to generate two files ( 1 with header data and 1 with item data) for single idoc FIDCC1. Is it possible to acheive this? Please suggest me how to appraoch this scenario? Thanks. Regards Seema.