Need help setting up DB Link from my Oracle 11 g XE to SQL Server.
HelloI am trying to create a link to DB from my Oracle 11 g Express Edition on a Windows XP computer to a SQL Server. Here are the steps I've done so far.
1. creating and setting up a connection to the DB SQL Server ODBC. Baptized SQLSERVER. Authenticated by Windows.
2. updated the listener.ora. See below.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = SQLSERVER)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = hsodbc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
3. updated the tnsnames.ora. See below.XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
SQLSERVER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT=1521))
)
(CONNECT_DATA =
(SID = SQLSERVER)
)
(HS = OK)
)
4. copy C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initdg4odbc.ora to C:\oraclexe\app\oracle\product\11.2.0\server\hs\admin\initSQLSERVER.ora and has changed. See below.# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
#
# HS init parameters
#
HS_FDS_CONNECT_INFO = SQLSERVER
HS_FDS_TRACE_LEVEL = off
#
# Environment variables required for the non-Oracle system
#
#set <envvar>=<value>
5 restarted listener.C:\>lsnrctl stop
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
:51
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
C:\>lsnrctl start
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 18-SEP-2012 11:33
:54
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
System parameter file is C:\oraclexe\app\oracle\product\11.2.0\server\network\ad
min\listener.ora
Log messages written to C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\list
ener\alert\log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
ction
Start Date 18-SEP-2012 11:33:57
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\PHAILORTD000012\li
stener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521
)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "SQLSERVER" has 1 instance(s).
Instance "SQLSERVER", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
6. link of database created by using the following command.create database link sqlserver using 'SQLSERVER';
7. test usingselect * from "dbo.mytable"@sqlserver;
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
select * from dbo.mytable@sqlserver;
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
select * from mytable@sqlserver;
ORA-28545: error diagnosed by Net8 when connecting to an agent
Unable to retrieve text of NETWORK/NCR message 65535
ORA-02063: preceding 2 lines from SQLSERVER
I followed the steps in this link but do not know where I was wrong. Someone can help me.http://www.DBA-Oracle.com/t_heterogeneous_database_connections_sql_server.htm
Thank you
Allen
HS messages should go here: heterogeneous connectivity
No problem with this type of installation.
A glitch in your specific configuration
>
(SID_NAME = SQLSERVER)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
(PROGRAM = hsodbc)
11 g, the executable file is dg4odbc.exe, so you have read PROGRAM = dg4odbc. (I could reproduce the error with wrong program setting).
Tags: Database
Similar Questions
-
Hello
I forgot that my administration windows log password after the holidays. I have loaded down a free program called Ophcrack and had set my laptop to boot from cd 1 but I just cannot get the laptop to boot from a cd. He just continued boot from the internal hard disk.
The cd is an image and it is bootable on my desk.
The model of laptop: laptop HP ENVY m6
Product number: C2N77UA #ABL
BIOS version: F.25
Processor type: Intel Core i7-3632QM CPU @ 2.20 GHz
OS: Windows 8.1
I only did a password reset disk (I'm learning the hard way now!).
I don't want to do a "System Recovery" because I have some data on it.
I realize there are paid there password recovery tools windows, but I would like to use this 'free' program to try to break 1.
I just need help / instructions to set the bios for laptop can be started from a cd. I also tried to boot from a key USB but the laptop kept begin its internal drive.
Help, please. Thanks a ton!
Ted
Hi Ted,
You are welcome
Boot into the bios menu and go to the very section where you have disabled the Secure Boot.
Find an entry called materials and this value to Activate.
Save the changes and exit the bios.
Follow the previous procedure below:
Insert the bootable disc of Ophcrack and laptop stop.
Tap away at the esc you key start Notepad to open the Start Menu. Select boot options ( f9 ), use the arrow keys to select the CD/DVD drive and press ENTER. You can also get a prompt to "Press any key to" continuous - it if requested.
Kind regards
DP - K
-
Need help setting up related content in HCM 9.1 PeopleTools 8.51
I need help setting up related content in HCM 9.1 PeopleTools 8.51.
I created a new service id in 'Set Related Content Service'. Its simple, it basically goes to google.com.
Then I assigned Related Content for the Application Pages on the page «Manage the Configuration content to related» I'm my scenario, I've added it to the careers under the main menu.
Then I went to the careers page, but the 'related information' link does not appear. How can I get this link to related information to appear at the top of the page/component?
Thank you
-CoryIn order to get it work, there are a few basic server configuration requirements that you need in order to make it work.
(1) define the field of authentication on the Web server
(2) set the authentication of domain on the web profile
(3) enable Single Sign-OnThe next in "My Oracle Support" document provides details on configuring content services.
E-PORTAL: how to set up content related services. [984855.1 ID]
In addition, here is a link to the PeopleBooks online that deals with the configuration of related content services.
http://download.Oracle.com/docs/CD/E18083_01/pt851pbr0/Eng/psbooks/tprt/book.htm?file=tprt/htm/tprt20.htm#H3002
In addition, there are also some know the limitations to the use of related content are different depending on the version of the tools you use.
I hope this helps.
-
I need help pass my Photoshop 7 from my old laptop to my new laptop running Windows 7 Enterprise. I have in vain two routes. I have the installation CD, it does not autoplay. I run Autoplay.exe in the root directory, I'm greeted, I choose English, I accept the EULA, I get the choice window Install / explores, with the install button already selected, click the button in Photoshop, CD towers, and nothing happens. In the 2nd attempt I run Setup.exe in the directory of Photoshop and nothing happens at all the. I'm never even offered the opportunity to enter my product code. What should I do?
There is probably a problem of compatibility between the old software and the more recent operating system.
-
Need help on transfer of files from one server to another server.
Hi all
I need help on transfer of files from one server to another server (Unix box to another Unix machine) using jdeveloper and BPEL process.
I'm new to these technologies, can you please help me on this. If you encounter documents please share it with me.
We use BPEL and Jdeveloper 10.1.3.3.0 version
Thanks in advance!
Concerning
Vincent
Published by: user10263255 on 15 Sep, 2008 12:25Vincent,
One of the options I can think of is creating mount points on the boxes of unix and then using the File adapter.
-
Need help to provide a page for the Oracle PeopleSoft HCM on internet
Hello
I need help to provide that a page of Oracle PeopleSoft HCM on internet for vacancies may be available for recruitment. How can I provide a Peoplesoft Web page?
TKS
Bruno will read
Of Peoplebooks
Access to external Sites
External candidates, by definition, do not have the nicknames PeopleSoft. To allow external users access to a site, you put a link to the site on a location such as your public Web site. The site definition includes a field to set the URL of this external link.
Deployed in this mode, the instance of PeopleSoft to be accessed by external users must have the appropriate security settings to allow users to bypass the access code. In other words, a user who clicks on the link is not presented with a PeopleSoft signon pages but is instead signed the using a user ID generic comments so that the user can be taken directly to the candidate Gateway.
If an external candidate allows a more inactive candidate gateway session that the timeout you set, the default system behavior is to provide a link to the login page of PeopleSoft with the visible invited user ID. According to your logic of password, the guest user ID might be locked if the applicant tries in vain to connect. For more security and ease of use, replace the code page to a page that displays an appropriate message. For example, to display a message that the session has expired and provide a link back to the bridge of the candidate.
-
How to set up a link ODBC Oracle's x 64 to SQL Server on Windows?
Hello
I am running an instance of Oracle 10 g 2 x 64 on Windows Server 2003 x 64 which needs to extract data from a SQL Server 2005 which must be x 86 but I had the opportunity to test it in a x 86 and x 64 environment.
I created ODBC links on my Oracle server with the x 64 and x 86 ODBC Administrator and they work very well (with the SQL Server driver included in Windows).
I configured an init + SID .ora and edit the tnsnames.ora and listener.ora as you can see below. Then I rebooted the listener and the show of status that everything works as expected. If I have tnsping iondb+ the result is: OK (20 ms) .
I created a link DB: create iondb link of database to connect to sql_server_user identified by sql_server_password using "iondb."
And this is the error message when I try to select a table or a view, I received:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines IONDB
Did anyone had this error before or have any idea how to solve this problem? If not, I'll try the same solution I've done with my MS Access Database (see this post: between Oracle 10 g x 64 and Ms Access ODBC connection )
Thank you
Database settings
global_names = false
hs_autoregister = true
-sqlnet.ora
SQLNET. AUTHENTICATION_SERVICES = (NTS)
-Listener.ora
...
(SID_DESC =
(SID_NAME = iondb) # this is the ODBC SID link.
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = hsodbc)
)
)
-Tnsmanes.ora
iondb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp)(HOST=192.168.0.243) (PORT = 1521)) # this is my Oracle Server
(CONNECT_DATA = (SID = iondb))
(HS = OK)
)
Published by: APQ on December 2, 2008 08:09
It seems that Oracle x 64 does not support linking ODBC to SQL Server... too bad.
HS is not supported on x 64. It took quite sometimes to find the information.
Published by: APQ on December 2, 2008 10:55Hello
HSODBC is not supported on Windows x 64. That's why you get the error ORA-28545
What you can do is to install DG4ODBC 11 g on a 32-bit computer.
DG4ODBC can be separately installed Oracle, for example on the SQL SERVER server if you can.
But it is only supported in 32 bit, too.
You can download on this site:
http://www.Oracle.com/technology/software/products/database/Oracle11g/111060_win32soft.html
==> Oracle Database gateways 11g Release 1 (11.1.0.6.0) for Microsoft Windows (32-bit)The last option would be to create a virtual machine on your X 64 machine with a 32-bit Windows and DG4ODBC 11 g.
Please let me know if you have any question.
Kind regardsMireille
-
My site is www.cafeclassics.com. I built it from a model. I'm sure that what I try to do is simple, but I can't seem to make it work. All I need to do is the section in the middle on the right that says: "Check out our new online store" a link to http://shop.1asecure.com/cafeclassics. The image is set up in a cell while I can't make a point of interest or something else. I tried everything I can think of. Any help would be appreciated. I'd be happy to send my files and pay someone to fix it for me.
Thank you!
Large
Download http://home19.inet.tele.dk/jgom/new.zip
opload clear gif to the pictures folder index file and use the code you
I did remove the div (layer) and change the link to be style instead of the div... (#link1 {} set
This link/image is floating above the place where the link shud be
(Hope you like the border effect to hover)
-
BlackBerry Smartphones Newbie needs help setting up email
Hello world
I've been the proud owner of a "BOLD" for about 48 hours now. This is my first Blackberry, so please bear with me.
I need to set up my Yahoo email. I remember setting up front, but I deleted it as my allowance for the use of network (3 Australia) showed 2 MB roaming allowance, of which half was used in one day.
I think that the e-mail message has been implemented via a browser page, but I can't go back to this page. The e-mail setup wizard seems to be to the establishment through BES which I did not. Does anyone know the address of the page?
I also remember, when I chose the browser (not of Planet 3) I was taken in a BB page that showed several options of setting up various things. There were about 5 or 6 boxes grey listed above the other? Anyone also know the address of the page for this?
Thanks for any help,
Paul
You also see a personal Email Setup on the device icon? If not try going into the Options | Advanced options | The host routing table. In this screen press press the button menu and choose to register now. See if you receive a message from check delivered to your device. Subsequently, reset the unit by removing the battery for 30 seconds. See if you have this icon now after restarting the device. If you still don't you can try setting up the account again on your carrier's Web site BIS to add return e-mail accounts?
What options do you remember on this Web site? Try to go to mobile.blackberry.com on your browser and see if it's the page.
-
Please I need help on how to create a page in dreamweaver to link an article to a mysql database. I want the page to display little article content, display the full content when a user clicks on a link located below that reads «read more» Thanks for your useful information.
PHP function truncate to display the short extract from article in the database - http://hackspc.com/how-to-truncate-text-using-php/
Then a regular hyperlink to post a link to the full article in a new page.
-ST
-
I need help setting up my home network - windows vista.
I need help to configure my network, I ave a laptop & hubby the computer w / dsl wireless rouuter. If I can get trhis to work, maybe we can work on the printer.
Original title: help w / home network
Hi Luvy,
Thanks for posting your query in the Microsoft Community Forums!
Looks like you need information to set up home networking on the windows vista computer.
We're here to help and guide you in the right direction.
-What is the number of brand and model of the computer?
I suggest you to return the items online help and check if it helps.
Setting up a network home
http://Windows.Microsoft.com/en-in/Windows-Vista/setting-up-a-home-network
Setting up a wireless network
http://Windows.Microsoft.com/en-in/Windows-Vista/setting-up-a-wireless-network
To install the printer on the network see Help below articles.
Install a printer on a home network
http://Windows.Microsoft.com/en-in/Windows-Vista/install-a-printer-on-a-home-network
Share a printer
http://Windows.Microsoft.com/en-in/Windows-Vista/share-a-printer
It will be useful.
Let us know if you encounter problems under windows in the future. We will be happy to help you.
-
try to set up my microsoft email in my pc. I need to respond to the need help sbout incomeing craiglist.i and out going.
I have no idea to find my server address. I use connect netgear wireless.
Hello
Looks like you need configure Windows Mail
you need to configure your e-mail account windows mail with your ISP internet service provider
They provide you with account settings you need to do
Ask them to
username
password for your access broadband account / distance with themServer of incoming POP3 mail
outgoing mail SMTP serverand here's how to configure windows mail after getting the email correct account settings
-
Hello world
I have a new backup disk (a disk of 5 TB of Seagate) and could use help setting up with CCC.
I did in the past without problem, but I want to assure you of a few things:
- This particular drive has software available in a folder on the disk backup (w / the PC and Mac versions). But... I intend to use this disk as an exact copy of my iMac HD; It must also be bootable.
- Should I format the drive with disk utility? Or load the software to the CCC on the disk and just leave their only backup software?
- One last question: I also have a MacBook Air, an iPad and an iPhone. I want to save them as well. Should I put them on separate partitions, I created? Or can we just one big happy family? The last is best.
One last piece of information: two computers, etc, were all backed up via Time Machine. My data the most important, photos, etc., are also saved on deposit box and/or iCloud on a regular basis.
Thanks for any suggestions or comments!
Sally D.
Delete and partition the drive by making a separate partition for each computer. The iPad and the iPhone is useless their own partition because they back up using iTunes and would appear in the clone of the computer that you use for each save. Each partition must be the size of the current cloned drive that can leave you with additional partitions for other stuff. Then format the drive Mac OS Extended journaled. Do not install any software that came with the drive, none of this is necessary.
I use a very similar setup with a 3 TB drive. I clone my boot SSD in a single partition, my drive internal 1 Tb in a second, my Macbook to a third party, and I have a fourth partition which is currently empty, because I haven't decided what to do with it yet. I also have a 3 to Apple Time Capsule.
-
Need help to load the data from the Excel data to oracle tables
I need to load an Excel worksheet to the Oracle table.
The worksheet contains 20 columns, the first 8 columns contains basic information, but the rest 12 columns contains info like
1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
So what I have to do is:
break only one record (with 20 fields) in Excel to 3 files for each fiscal year in the Oracle table for each record in the database table will look like
8 base field + fiscal_year + 1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
8 base field + fiscal_year + 1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
8 base field + fiscal_year + 1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
There are about 10000 rows in the data file, so how can I use sqlldr to perform this task? beside sqlldr, other good suggestions?
THXExternal tables is just an API Oracle sqlloader. If you are about to load this data over and over again, the external tables would be a good idea, but if it's a one time thing, sqlldir is more simple, unless you want to just learn to use external Tables.
I used to run a data warehouse, so I did it, the less similar to what you do in the past.
-
Need help to identify the type of object in the loop of pl/sql
Hello
I need help to identify the Type of object declared beneath a procedure as shown below:
I need to pass the parameter to the procedure as a TYPE of OBJECT and also refer to variables of Type Object in a loop
create or replace type TEST_VALIDATION_REC is RECORD (order_num varchar2 (30),)
number of inventory_item_id
reserved_YN varchar2 (1).
error_flag varchar2 (1).
Error_message varchar2 (2000)
);
CREATE OR REPLACE TYPE VALD_TBL AS VARRAY (10000) OF TEST_VALIDATION_REC;
PROCEDURE ADD_TO_ORD)
p_lot_number_list IN VALD_TBL,
p_ord_number IN Varchar2,
p_user_id in NUMBER: = fnd_profile.value ('USER_ID'),-change 1.10
p_responsibility_id in NUMBERS: = fnd_profile.value ('RESP_ID'),-change 1.10
p_application_id IN VARCHAR2: = 'PO',-change 1.10
x_error_flag OUT Varchar2,
x_error_msg OUT Varchar2
)
In the above procedure, I had the VALD_TBL. Is it OK?
And how in the loop if the records if I use:
FOR indx1 IN 1.p_lot_number_list. COUNTY
LOOP
BEGIN
SELECT
inventory_item_id
IN
ln_item_id
Of
dummy_lot_tab
WHERE
lot_number = p_lot_number_list (indx1); - > how direct the item here?
EXCEPTION
WHILE OTHERS THEN
ln_item_id: = NULL;
END;
Records are PL/SQL objects. They are not the SQL objects. You can create a SQL TYPE (schema level) as a collection (variable-tables only, tables nested).
So therefore your first statement is syntactically incorrect
CREATE OR REPLACE TYPE TEST_VALIDATION_REC IS RECORD (order_num VARCHAR2(30), inventory_item_id NUMBER, reserved_YN VARCHAR2(1), error_flag VARCHAR2(1), Error_message VARCHAR2(2000) );
You must put in an anonymous PL/SQL block or the stored procedure
DECLARE TYPE test_validation_rec IS RECORD ( order_num VARCHAR2(30), inventory_item_id NUMBER, reserved_YN VARCHAR2(1), error_flag VARCHAR2(1), error_message VARCHAR2(2000) ); TYPE vald_tbl iS VARRAY(10000) OF test_validation_rec; lv_tbl vald_tbl; BEGIN lv_tbl := vald_tbl(); -- insert your code here END;
Maybe you are looking for
-
How can I uninstall iTunes 12.5 to 12.4?
I have a mac and the new iTunes is horrible. the new look wastes a lot of space, thumbnails of the artist are all gone, the look is terrible! Especially when I'm trying to get rid of this horrible update and downgrade, Mac prevents and blocks saying
-
Connect the Airport Extreme via Powerlink to the cable Modem
I have problems with wifi at home as the location where the my cable modem is far from ideal. I currently connected to an Airport Extreme, which works like the router (the cable modem has the router function disabled). Attached to the AE is also a po
-
Qosmio X 300 - 13W displays a blue screen and 0 x 00000124 STOP error
Hey guys and girls. I need urgent help with my new Toshiba Qosmio X 300 - 13W (British model) that I bought in DecemberI chose to install the 64-bit Vista Home Premium on the computer and the slopes of big thing until I HAV a work of high intensity f
-
I have a Dell Inspirion 154 and I am looking to buy an external sound card that is moderately priced. Preferably one that is plug-and-play that has some memory own ts.
-
http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/Windows-7-installation-restart-loop/a1ac4e25-a8fd-4e55-B36C-8cfae7303f07?TM=1446196642497&auth=1 I asked here but couldnot get what I wanted. My pc specs 2.8 ghz cpu p4, fx5500 gp of 2