How to create a DBlink from oracle database on unix to sqlserver

Hi
I need to create a database link from oracle database on solaris machine to sqlserver database.I found that the database link cannot be created from oracledatabase 10g to microsoft sqlserver.So i am planning to go for another windows server where i can pull this data from sqlserver to oracle 10g database on windows and then from windows to unix.
Can you explain me how can i create a database link from orace 10g on windows to sqlserver.

HI
Thanks for your response.
But the thing is i am looking whether if u can create a database link from oracle to sqlserver from unix.If that's the case what is the driver i require and if not how can i do it ?
I am ready to create a intermediate windows server where i can pull the table temporarily and then from there to unix box.
If i can do it windows how can i achieve that.
Thanks

Similar Messages

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

  • How to call web services from oracle database 10g

    Hi all ,
    How can i call web services from oracle database 10g ?
    thanks ...

    abdou123 wrote:
    but how can i get complex result
    for example
    i pass input parameter like National Id Number
    and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
    An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}.

  • How to mail pdf file from oracle database 11g

    Hi,
    Using following code to send pdf file from oracle database.
    DECLARE
    v_From VARCHAR2(80) := '[email protected]';
    v_Recipient VARCHAR2(80) := '[email protected]';
    v_Subject VARCHAR2(80) := 'test subject';
    v_Mail_Host VARCHAR2(30) := '116.214.31.249';
    v_Mail_Conn sys.utl_smtp.Connection;
    crlf VARCHAR2(2) := chr(13)||chr(10);
    BEGIN
    v_Mail_Conn := sys.utl_smtp.Open_Connection(v_Mail_Host, 26);
    sys.utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
    sys.utl_smtp.Mail(v_Mail_Conn, v_From);
    sys.utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
    sys.utl_smtp.Data(v_Mail_Conn,
    'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
    'From: ' || v_From || crlf ||
    'Subject: '|| v_Subject || crlf ||
    'To: ' || v_Recipient || crlf ||
    'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
    'Content-Type: multipart/mixed;'|| crlf ||
    ' boundary="-----SECBOUND"'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: text/plain;'|| crlf ||
    'Content-Transfer_Encoding: 7bit'|| crlf ||
    crlf ||
    'some message text'|| crlf ||     -- Message body
    'more message text'|| crlf ||
    crlf ||
    '-------SECBOUND'|| crlf ||
    'Content-Type: file;'|| crlf ||
    ' name="D:\mail\pdfSample.pdf"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="D:\mail\pdfSample.pdf"'|| crlf ||
    crlf ||
    'CSV,file,attachement'|| crlf ||     -- Content of attachment
    crlf ||
    '-------SECBOUND--'               -- End MIME mail
    sys.utl_smtp.Quit(v_mail_conn);
    EXCEPTION
    WHEN sys.utl_smtp.Transient_Error OR sys.utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    Above code executed successfully and mail is send to recipient but file is corrupted.
    I think it doesn't pick file from specified location, attachment name is appearing like this 'D:mailpdfsample.pdf
    Oracle Database : 11g R2
    O.S : windows 7 Professional
    Thanks in Advance

    parapr wrote:
    sys.utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);The above violates RFC 5321 section 4.1.1.1
    '-------SECBOUND'|| crlf ||
    'Content-Type: file;'|| crlf ||
    ' name="D:\mail\pdfSample.pdf"'|| crlf ||
    'Content-Transfer_Encoding: 8bit'|| crlf ||
    'Content-Disposition: attachment;'|| crlf ||
    ' filename="D:\mail\pdfSample.pdf"'|| crlf ||Invalid Mime header above. Filename are logical. Not physical. Loose the drive and directory names. The filename is there to name the Mime body's content.
    crlf ||
    'CSV,file,attachement'|| crlf ||     -- Content of attachmentHow is the above PDF content? This is a string containing the text CSV,file,attachement. Which means when this is what is saved as a PDF file by the mail reader.
    EXCEPTION
    WHEN sys.utl_smtp.Transient_Error OR sys.utl_smtp.Permanent_Error then
    raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;Silly. Why change meaningful exceptions into a generic meaningless exception?? That does not make any sense.

  • How to generate XML file from oracle database query result

    Hi dudes,
    as stated on the subject, can anyone suggests me how can i achieve the task stated above??
    Here is a brief description of my problem:
    I need to create a XML file once i query from the oracle database, and the query result returned from the database will be stored in XML file.
    I'd searched around the JAXB, DOM, SAXP and the like basic concepts, but i still don't know how to start??
    Any suggestions ???

    Read this:
    http://www.cafeconleche.org/books/xmljava/chapters/ch08s05.html
    You might have to read more of the book to understand that chapter.

  • How to create an ERD from existing database ?

    hi all
    how i can capture from databse and create an ERD from the whole of database by designer ?
    ssaeeds

    Does a very lousy job at it, as it can create only 1 ERD, one screen big and doesn't save intermediate results.
    Sybrand Bakker
    Senior Oracle DBA

  • How to trace which user shutdown oracle database in unix OS?

    our organization is having 10 DBA with sysdba priviladge. We are using UNIX operating system. At morning say for example if some one (SYSDBA user) shutdown the oracle database how other sysdba user trace the user who shutdown the database? the information i need is terminal from where oracle got shutdown and the username? Please help...

    Hello,
    You are right Sybrand, SYSDBA connections are always audited.
    My answer was about enabling auditing to any connections, which may give informations about who access to the Database in general. And, this is true, it was not the scope of the OP question.
    However, so as to enlarge audit of SYS/SYSDBA/SYSOPER operations, setting the parameter audit_sys_operations=TRUE may be interesting:
    http://download.oracle.com/docs/cd/E11882_01/network.112/e16543/auditing.htm#DBSEG0611
    To the OP:
    Where the audit tracefile get genareted for sys user?You may execute this:
    show parameter audit_file_destThank again Sybrand for correcting me.
    Best regards,
    Jean-Valentin

  • Fetch tablespace data from Oracle database(HP UNIX server) to excel Sheet

    Hi team,
    I have 5 oracle databases and they all are on different machines. i want to fetch data(tablespace data) from db to excel.
    here is my macro code
    Sub tbs_STD()
    Dim Conn As New ADODB.Connection
    Dim RS As New ADODB.Recordset
    Dim Cmd As New ADODB.Command
    Dim sqlText As String
    Dim Row As Long
    Dim Findex As Long
    Dim STD As Worksheet
    Dim X As Long
    Dim UID As String
    Dim PWD As String
    Dim Server As String
    UID = "monitordb"
    PWD = "monitor1"
    Server = "STD"
    Set STD = ActiveSheet
    STD.Select
    Conn.Open "PROVIDER=MSDAORA.Oracle;DATA SOURCE=" & Server & ";" & _
    "USER ID=" & UID & ";PASSWORD=" & PWD
    Cmd.ActiveConnection = Conn
    Cmd.CommandType = adCmdText
    sqlText = "select sum(a.tots/1048576) Tot_Size,sum(a.sumb/1048576) Tot_Free,round(sum(a.tots-a.sumb)*100/sum(a.tots),2) Pct_used,sum(a.largest/1024) Max_Free,sum(a.chunks) Chunks_Free from(select tablespace_name,0 tots,sum(bytes) sumb,max(bytes) largest,count(*) chunks from dba_free_space a group by tablespace_name union select tablespace_name,sum(bytes) tots,0,0,0 from dba_data_files group by tablespace_name) a group by a.tablespace_name order by a.tablespace_name"
    Cmd.CommandText = sqlText
    Set RS = Cmd.Execute
    For X = 0 To 4 ' Number of columns returning minus 1
    'Data.Cells(1, X + 1) = RS.Fields(X).Name
    Next
    Do While Not RS.EOF
    Row = Row + 1
    For Findex = 0 To RS.Fields.Count - 1
    STD.Cells(Row + 2, Findex + 67) = RS.Fields(Findex).Value
    Next Findex
    RS.MoveNext
    Loop
    End Sub
    I am able to connect through sqlplus on all machines but when i run the above code it gives me TNS error..
    ORA-12154- TNS could not resolve the connect identifier specified..
    Each database use same port 1527 and only one of them is able to fetch the data. and if i remove that database from client then the other one starts connecting. I think problem is due to same port number.
    Entries in the listener.ora file was made throough oracle client only 32bit.
    and i have installed both 10g and 11g client on my local machine.
    Please help.

    You need to configure tnsnames.ora in your OracleClient\network\admin folder with the TNS entries for the servers you're connecting to.

  • How to create OID attributes from command line in unix system

    Hi,
    I have to create OID attributes through ldif files in unix system. I dont know how to run it in unix system under which folder. I already have ldif files for creating OID attributes. Please help.

    Hi,
    unser the /your_ODI_HOME/agent/bin folder.
    Excute this
    sh startscen.sh REFRESH_ID 001 GLOBAL 5 -NAME=agent_ODI
    REFRESH_ID=Your Scenario name
    001:Version
    GLOBAL:Context name
    5=Log Level
    agent_ODI=Your agent name
    Regards

  • How to create af:tree from single database Table

    Hi,
    i want to create tree Like this: and also we can add node anywhere.
    Parent01
    ----|parent01-child01
    --------|parent01-child01-child01
    --------|parent01-child01-child02
    -------------|parent01-child01-child02-child01
    Parent02
    ----|parent02-child01
    ----|parent02-child02
    --------|parent02-child02-child01
    and for this i have created Table like this :
    Table name Treetable
    NODEID     NUMBER(38,0) --> Primary Key
    NODENAME     VARCHAR2(50 BYTE) --> This is the name will display as a node
    DESCRIPTION     VARCHAR2(255 BYTE)     
    ROOTIND     CHAR(1 BYTE) --> to decide root node
    SEQUENCENO     NUMBER(38,0)     --> order to display node
    PARENTKEY     NUMBER(38,0) -->FK (refering to NODEID(PK) of this table)
    But when i am creating tree, its showing root node for each row in the table. but my requirement is: The Row marked as ROOTIND='Y' , show that row only as Root (Example in above tree:Parent01 & Parent02 )
    any help highly appreciated :)
    Thanks
    Pratap Rudra
    Edited by: 995114 on Apr 30, 2013 2:50 PM

    Hi,
    check this http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf
    Frank

  • How do I get from Oracle Database 8.1.7.0.0 to 8.1.7.2?

    How do I get from Oracle Database 8.1.7.0.0 to 8.1.7.2? There is a patchset that fixes a bug in 8.1.7 for memory leaks that I need installed. I am currently running on a WindowsNT Server with a Oracle Database version of 8.1.7.0.0. Is going to 8.1.7.2 a complete release upgrade, or is there a smaller upgrade to get there, and how do I get the files required>
    Thanks,

    Hi,
    Sorry for my english
    For Windows NT, the last big patchset is 8.1.7.4.x. I advice you to use the last patchset. A patchet is not a upgrade or a migrate. the installation is in two phase. Phase One:Patch the files in the oracle home with Oracle Universal Installer (Oui) and Phase Two: execute sql files on the dictionnary of each database. There is a readme with the patch.
    you can get files on metalink if you have a account (metalink.oracle.com).
    List bug for Memory Corruption
    8174 1748759 Client memory corruption / dump (eg: in ttcfopr) using pre-fetch
    8174 1859905 Intermittent dump / client memory corruption
    8174 1964934 Memory corruption possible using INSERT /*+ APPEND */ over DBLINK
    8174 2126096 Session heap corruption from LIKE :bind ESCAPE '/' if :bind ends in the escape character
    8174 2152752 Memory corruption / OERI:17182 possible fetching CHAR from DB2 over HS
    8174 2217159 13 byte PGA corruption possible using SQL over DBLINKS from PLSQL with MTS to V7 database
    8174 2248904 Memory corrupt possible during optimization of distributed query
    8173 1836101+ Memory Corruption from distributed query / query with binds (OERI:17114/17xxx/dump in kkecdn/kgh*/kke*)
    8173 1542218 Heap corruption (OERI:17182/dump in kghfrf) using very large collections
    8173 1661786 OERI:12261 / single byte memory corruption possible for CALL type triggers
    8173 1711803 DBW & users may CRASH under heavy load on multi-CPU system with FAST_START_IO_TARGET set > 0
    8173 1744786 Cursor work heap corruption from CONNECT BY PRIOR
    8173 1752554 OERI:17182 selecting DB2 DATA TYPE of CHAR over HS
    8173 1791258 CONNECT BY on IOT can cause SGA memory corruption
    8173 1810829 Lightwieght sessions (via proxy connect) may dump / corrupt shadow memory if users have >1 ROLE
    8173 1847583 Client memory corruption/dump using large value_sz for OCIDefineByPos with OCI_DYNAMIC_FETCH
    8173 1968635 OERI:KCOAPL_BLKCHK / buffer cache corruption from CR rollback
    8173 1987654 Compiling a PLSQL block with an INDICATOR clause can corrupt memory
    8173 1995026 OERI:17112 / heap corruption from Oracle Trace with MTS & Large Pool
    8173 2002799 Wrong results / heap corruption from PQ with aggregates in inline view
    8173 2048336 OERI:150 / Memory corruption from interrupted STAR TRANSFORMATION
    8173 2065386 Mem. Corruption / OERI:KGHFRE2 / OERI:17172 possible using bitmap indexes
    8172 1365873 OERI:17182 / CGA corruption with CURSOR_SHARING=FORCE
    8172 1373920 Memory corruption from PLSQL ORA-6502 errors
    8172 1447610 DBMS_SQL.BIND_ARRAY may dump / report private memory corruption type errors
    8172 1679690 Buffer cache in memory corruption (OERI:2032) can lead to permanent data/index mismatch (OERI:12700)
    8172 1732885 oeri:[KDIBR2R2R BITMAP] / memory corruption possible from BITMAP AND
    8172 1763408 RPC between 9i <-> 8i with CHAR data can corrupt memory
    8171 1227384 SGA heap corruption using DBMS_SQL under heavy load (Rare)
    8171 1364542 Buffer Cache corruption possible (rare)
    8171 1394565 PROBE: Callheap corruption printing a RAW in PLSQL debugger
    Bye !!!
    Cordialement
    XsTiaN

  • How to extract data from oracle database directly in to bi7.0 (net weaver)

    how to extract data from oracle database directly in to bi7.0 (net weaver)? is it something do with EDI? can anybody explain me in detail?
    Thanks
    York

    You can use UDConnect to get from Oracle database in to BW
    <b>Data Transfer with UD Connect -</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/content.htm
    <b>Prerequisites</b>
    You have installed the SAP WAS J2EE Engine with BI Java components.  You can find more information on this in the SAP BW installation guide on the SAP Service Marketplace at service.sap.com/instguides.
    Hope it Helps
    Chetan
    @CP..

  • How to export an XML file from oracle database?

    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database?
    thanks in advance,
    Bala.
    Edited by: user3523292 on Nov 14, 2008 5:43 AM

    user3523292 wrote:
    plz help me its urgent requirement....could u pls tell me the step by step procedure for following questions...?how to export a data as an XML file from oracle database?
    thanks in advance,
    Bala.
    Edited by: user3523292 on Nov 14, 2008 5:43 AMThis is a forum of volunteers. There is no "urgent" here. Nevertheless, a google search of 'xml oracle export' quickly lead me to this Oracle site:
    otn.oracle.com/sample_code/tech/xml/index.html
    I also see lots of hits when I search the documentation library at tahiti.oracle.com for 'xml'. This one in particular may be what you are looking for:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#ADXDK070

  • How to store and retrieve blob data type in/from oracle database using JSP

    how to store and retrieve blob data type in/from oracle database using JSP and not using servlet
    thanks

    JSP? Why?
    start here: [http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html]

Maybe you are looking for

  • REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error

    Hi, I am getting following error in reports 6i REP-1401 Fatal PL/SQL error occur ORA-06502 numeric or value error. I have added a formula column based on other formula column function CF_1FORMULA0005 return varchar2 is CF_CREDIT varchar2(38); begin :

  • Books and Documentation on Webdynpro for Java

    Hi,    I'am planning to start developing Webdynpro for Java applicatios.I know only Core java and iam not familiar with J2EE.I need some help on this.Any books on webdynpro for java basics and any documentation avail and prerequisite befor going to s

  • Freight charges not to be included in the Net value and Profit margin

    Hi Gurus, My client dosent want shipping charges to be included in the net value, but it should appear in the price and also the shipping charges should not be considered in calculating the profit margin. Another point is my sale price is cost plus 2

  • Regional Settings when scheduling a webi report

    Hello, I have BOXIR2 SP4 installed on a Windows 2003 Server. When I run a Webi Report In the Infoview Portal (or in webi), that means when I refresh a report or save a report to Excel or PDF Format or the date format is correct.   When I schedule thi

  • Folder upload

    Hi! Can anyone, please, tell me if there is any possibility to recursively upload content of a certain folder to a web server from a client local directory using flash? I mean if it's possible to choose a folder in file chooser dialog so that after s