Wednesday, February 6, 2013

Create a linked Server to Oracle View in MS SQL Server

Install the Oracle Client 


  1. Download the Oracle client 11gR2 (32/64 bit depends on OS) (Download)
  2. Install Oracle Client
    - Run the Setup.exe as Administrator, it will open the command prompt, wait until it finishes, (Normally it takes long time to finish)
            
    - Select Installation Type - Choose Administrator

- Select Product Languages 
- Specify Installation Location - leave it as default and note down the "Software location" - need to   refer that location later

- Check the summary and click "Finish".
  - Check the Installation Status


- Close the installation wizard once the installation is successful.

  3.  Modify the "tnsnames.oRA" file
      
    - Go the that Installation path (C:\app\User\product\11.1.0\client_4\network\admin\sample) 
    -  Copy (tnsnames.oRA )file in to the AdminFolder (C:\app\User\product\11.1.0\client_2 \network\admin)  

    -  Open "tnsnames.oRA" file , take the backup of that file before edit.
    -  Delete all except comments, and paste below entry
          
      VIRVHRMS =(DESCRIPTION =(ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = ###)(PORT = ###))) (CONNECT_DATA =(SERVICE_NAME = ###)))
  •  VIRVHRMS - Data source Name (Give any name - you have to give this name in Oracle data connection)  
  • You have to change some parameters according to your environment
    • Host - Database Name
    • PORT - Port Number
    • SERVICE_NAME - SID 
- Finally Save that file 

  Create Linked Server with Oracle View in SQL Server 

  before create the Linked Server, enable the "Allow inprocess".
   Go to OraOLEDB.Oracle 's properties

  Enable "Allow in process"

   
OK, Now we can create a link server to Oracle View,
   1. Create New Linked Server
       
   2.Type the Name for Linked Server (PRODVIEW) and select "Other data source" for Server Type.

   
  • Linked Server: “PRODVIEW”.  – Just a name 
  • Provider: "Oracle Provider for OLE DB" 
  • Product Name: “Oracle 
  • Data Source: “VIRVHRMS   - The same entry in tnsname.ora file
3. Go to Security tab , and Select "Be made using this security context" and give the remote login  and password and click "OK".








4 comments:

Anonymous said...

ninest123 16.03
ray ban sunglasses, cheap oakley sunglasses, replica watches, michael kors outlet, oakley sunglasses, jordan shoes, prada handbags, nike outlet, nike air max, nike free, louis vuitton, tiffany and co, ugg boots, louboutin outlet, ray ban sunglasses, louis vuitton outlet, burberry outlet online, michael kors outlet, chanel handbags, uggs on sale, tiffany jewelry, louis vuitton outlet, michael kors outlet, oakley sunglasses, oakley sunglasses, louboutin shoes, prada outlet, ugg boots, ray ban sunglasses, ugg boots, burberry, replica watches, michael kors outlet, tory burch outlet, longchamp outlet, michael kors outlet, louis vuitton, michael kors, polo ralph lauren outlet, longchamp outlet, louis vuitton, polo ralph lauren outlet, louboutin, oakley sunglasses, gucci outlet, ugg boots, christian louboutin outlet, nike air max, longchamp

Anonymous said...

north face, hogan, coach outlet, air force, hollister pas cher, michael kors, coach outlet, lululemon, burberry, sac guess, nike roshe, nike free, true religion jeans, air jordan pas cher, lacoste pas cher, ralph lauren pas cher, michael kors, kate spade outlet, ralph lauren uk, michael kors, new balance pas cher, true religion jeans, ray ban uk, nike roshe run, converse pas cher, michael kors, hermes, mulberry, vans pas cher, louboutin pas cher, true religion outlet, ray ban pas cher, nike air max, oakley pas cher, air max, timberland, nike free run uk, kate spade handbags, nike air max, hollister, tn pas cher, replica handbags, nike air max, vanessa bruno, abercrombie and fitch, sac longchamp, true religion jeans, nike blazer, coach purses, longchamp pas cher, north face

Anonymous said...

ugg,uggs,uggs canada, canada goose, ugg,ugg australia,ugg italia, canada goose, hollister, wedding dresses, moncler, louis vuitton, canada goose outlet, swarovski, pandora charms, pandora jewelry, moncler outlet, moncler, sac louis vuitton pas cher, replica watches, louis vuitton, marc jacobs, louis vuitton, vans, moncler, swarovski crystal, pandora jewelry, toms shoes, moncler, juicy couture outlet, doudoune canada goose, karen millen, converse, lancel, canada goose outlet, coach outlet, gucci, ray ban, thomas sabo, moncler, supra shoes, canada goose uk, juicy couture outlet, links of london, barbour jackets, louis vuitton, canada goose, barbour, ugg boots uk, pandora charms, bottes ugg, converse outlet, moncler, montre pas cher, canada goose, ugg pas cher, moncler
ninest123 16.03

5689 said...

zzzzz2018.8.27
pandora jewelry
jordan shoes
ralph lauren uk
giuseppe zanotti
canada goose jackets
coach outlet
kate spade outlet online
tods outlet
converse trainers
canada goose jackets