Heterogeneous services with MS EXCEl
Hi all!
I have cofigure heterogeneous services for ORACLE and MS EXCEL.
but the operation like UPDATE, INSERT , DELETE are not working.
How can i get i right?
rana adnan
Hi
yes error is here
SQL> delete from student$@dlcompany;
delete from student$@dlcompany
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Excel Driver] Could not
delete from specified tables. (SQL State: S1000; SQL Code: -3049)
ORA-02063: preceding 2 lines from DLCOMPANY
rana adnan
Similar Messages
-
Heterogeneous Services with JDBC
Is is possible to create an heterogenous service using JDBC. If so, how can I do it?
Thanks
FranciscoFrancisco,
We support on ODBC and OLE DB drivers with HS. -
Heterogeneous Services with HTMLDB
Hi All,
I was wondering if HTMLDB exposes Heterogeneous Services connectivity to other datasources?
For example...if I create a DB Link to DB2 via a gateway is this information exposed in HTMLDB?Howard,
Nothing HTML DB-specific about your question. You might try this forum:Heterogeneous Connectivity
Scott -
Heterogeneous Services with password problem
i need to connect to a password protected access database via oracle 9i.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206#18830681837358
following the steps described at ASKTOM (link above) i was able to connect to access db and retrieve data that dont have any password. but i need to retrieve data from password protected access databse.
can any1 pls help me?Hi
yes error is here
SQL> delete from student$@dlcompany;
delete from student$@dlcompany
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][Microsoft][ODBC Excel Driver] Could not
delete from specified tables. (SQL State: S1000; SQL Code: -3049)
ORA-02063: preceding 2 lines from DLCOMPANY
rana adnan -
Oracle Heterogeneous Services to create link With Excel spreadsheet.
Hi
Please adivse how to use "Oracle Heterogeneous Services" to create a database link from Oracle to the Excel spreadsheet.
Wishes
JawadDear Anwar,
I'm using XPSP2 10gR2Enterprise
SID=ORCL
host=andor (my PC's name)
Pls help me. I'm struggling with HS also so I've followed your lines, meaning:
I can create the database link, but cannot retrieve data from source. (see 7.)
1a. I have created the Excel file c:\EXCL.xls
NEV DATUM BOOL NUMBER
Stefán Balázs 09.nov TRUE 0
Sebestyén Dénes 10.nov TRUE -11
Tóth Andor 11.nov FALSE 12.3
c: is partition on the same server where 10g sits.
1b. I've created an ODBC system DSN for this excel file, named EXCL.
2. tnsnames.ora has bee nupdated by this:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = andor)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
EXCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = andor)(PORT = 1521))
(CONNECT_DATA =
(SID = EXCL)
(HS = OK)
3. listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = EXCL)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = EXCL)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = andor)(PORT = 1521))
4. initexcl.ora in hs directory:
HS_FDS_CONNECT_INFO = EXCL
HS_FDS_TRACE_LEVEL = 0
Listener restarted.
5. in iSQLPlus:
SQL> CREATE DATABASE LINK excl USING 'excl';
Database link created.
6. in Enterprise Manager there is a Database Link:
database links: EXCL.REGRESS.RDBMS.DEV.US.ORACLE.COM
service name: excl
7. testing the database link says:
The Database Link is not active.
ORA-28545: .Unable to retrieve text of NETWORK/NCR message 65535... ORA-02063: previous 2 lines from EXCL
Please help me to get over this. -
Help with heterogeneous services
Hello.
I have been asked to try to create a dblink from an oracle 9.2 database on a solaris machine to a mysql 5.1 database on a windows xp machine.
I need to know what software I need to get and install on both machines and what settings on the oracle server are needed.
I just hope that someone who has done this before can help me.
Thanks in advance.Hi,
If you are looking for a tutorial sort of thing for Heterogenous Services than this thread over Asktom is a good resource. Look inside it an example given by Tak Tang for connecting Oracle Database with MS Excel. Take it as a reference to do your work.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4406709207206
And for the Heterogenous Services, look at the doc guide of it here,
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
HTH
Aman.... -
Exporting to Microsoft Excel from a DataView Web Part consuming a Web Service with Parameters
In Sharepoint Designer, I've developed a page displaying a DataView Web Part which consumes an XML Web Service with three parameters. These parameters are passed in from a simple Form Web Part containing three input fields. I am able to provide default values for the web service so the dataview is initially populated, and when I enter in new parameters, the web service goes back, grabs the requested data and displays in the dataview nice and slick.
The problem I'm having is this: In Internet Explorer 7, when I right-click on the DataView Web Part and select Export to Microsoft Excel, Excel opens up, says "ExternalData_1: Getting Data..." and returns the data from the web service which applies to the default parameter values each and every time, regardless of whether I have changed the parameters on the web page, and contrary to what the DataView Web Part displays on the screen.
Has anyone else run into this, and is there a solution to the problem?
Best regards,
Mark ChristieHi Bullish35,
It's possible to provide single export button and export your 4 dataview webparts. Here's the modified code.
<Script Language="Javascript">
function isIE() // Function to Determine IE or Not
return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
function exportToExcel() // Function to Export the Table Data to Excel.
var isIEBrowser = isIE();
if(isIEBrowser== false)
alert('Please use Internet Explorer for Excel Export Functionality.');
return false;
else
var strTableID1 = "detailsTable1", strTableID2 = "detailsTable2", strTableID3 = "detailsTable3", strTableID4 = "detailsTable4";
var objExcel = new ActiveXObject("Excel.Application");
var objWorkBook = objExcel.Workbooks.Add;
var objWorkSheet = objWorkBook.Worksheets(1);
var detailsTable = document.getElementById(strTableID1);
var intRowIndexGlobal= 0;
for (var intRowIndex=0;intRowIndex<detailsTable1.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable1.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable1.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
for (var intRowIndex=0;intRowIndex<detailsTable2.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable2.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable2.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
for (var intRowIndex=0;intRowIndex<detailsTable3.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable3.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable3.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
for (var intRowIndex=0;intRowIndex<detailsTable4.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable4.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable4.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
objExcel.Visible = true;
objExcel.UserControl = true;
</Script>
I haven't tested this. But it should work! :)Regards,
Venkatesh R
/* My Code Runs in Visual Studio 2010 */
http://geekswithblogs.net/venkatx5/ -
Problem with Oracle Heterogeneous Services
Hi All,
I am trying to access SQL Server database using Oracle Heterogeneous Services and I am getting the following error in my tarce file:
Heterogeneous Agent Release
10.2.0.3.0
HS Agent received unexpected RPC disconnect
Network error 1003: NCR-01003: NCRS: Read error.
I have checed the tnsnames.ora / listener.ora and they are seems OK
tnsping is also working fine on HS
Thses are the steps that I followed :
1. setup system DNS
2. configure Oracle HS Initialization File under $ORACLE_HOME/hs/admin
3. configure tnsnames.ora under $TNS_ADMIN
4. configure listener.ora under $TNS_ADMIN
5. craete db link
6. querying db link gave the following error
"No more data to read from socket"
7. trace file under $ORACLE_HOME/hs/log shows the following error
Heterogeneous Agent Release
10.2.0.3.0
HS Agent received unexpected RPC disconnect
Network error 1003: NCR-01003: NCRS: Read error.
Please advice
Regards
OmerHi,
Thanks for the reply.
its not a new project. We have this running for quite a while now.
i have set the trace level from ON to DEBUG and the log file has the following info :
Oracle Corporation --- MONDAY JUL 27 2009 13:09:03.719
Version 10.2.0.3.0
hoagprd (2): ; hoagprd Entered.
HOACONN.C (244): ; [Generic Connectivity Using ODBC] version: 4.6.3.0.0070
HOACONN.C (295): ; Class version: 211
hoagprd (2): ; hoagprd Exited with retcode = 0.
hoaexit (6): ; hoaexit Entered.
hoaexit (6): ; hoaexit Exited with retcode = 0.
(0): ; Closing log file at MON JUL 27 13:09:11 2009.
# HS init parameters
HS_FDS_CONNECT_INFO = xxxxxx
HS_FDS_TRACE_LEVEL = DEBUG
HS_FDS_SHAREABLE_NAME = /usr/local/iodbc/lib/libiodbc.so
HS_FDS_TRACE_FILE_NAME = xxxxxx.trc
HS_FDS_TRACE_LEVEL=4
# ODBC specific environment variables
set ODBCINI=/usr/local/iodbc/odbc.ini
Regards -
Heterogeneous Services & Oracle Generic Connectivity For DBF file?
Dear All,
Can We Create dbf file directly means without using CSV file?
Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
I have used it for Excel and Access for connectivity with Oracle 9i
but I dont have any idea about dbase DBF file?
Any help in this reagards will be highly appriciatalble.
Thanks
RanaHSODBC/DG4ODBC is generic connectivity and you find the generic setup in:
Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003)
There is nothing sepcial for DBF's. Just define a system ODBC DSN using a DBASE ODBC driver pointing to the DBF file.
The rest is absolute similar to the note.
If you have already a running HSODBC/DG4ODBC the quickest test is to just define a new system dsn for the DBF file, then change in the init>hsodbc/dg4odbc>.ora file the HS_FDS_CONNECT_INFO parameter pointing to the newly created system DSN. Last step is within the Oracle db to define a database link. -
Heterogeneous Services & Oracle Generic Connectivity for dbase DBF file
Dear All,
Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
I have used it for Excel and Access for connectivity with Oracle 9i
but I dont have any idea about dbase DBF file?
Any help in this reagards will be highly appriciatalble.
Thanks
RanaI wouldn't think so these days ... however, you could try posting this in the heterogeneous services - which is somewhere on OTN.
If it we me, I'd convert the DBF into something easier to use with Oracle : like XML or CSV -
About Oracle Heterogeneous Services and Oracle Gateway
Hi All,
I am very new at this topic, I want to know:
1)Oracle Heterogeneous Services and Oracle Gateway same or not?Need license or not?
2)If want Creating Database Link from Oracle 11g to Sybase AS 15.5 Using Oracle Heterogeneous Services what drivers should I install from my pc(windows 7) and from my server(Linux red hat 5)?please give me link for this
3)Is there any link Step by step to configure odbc until creating dblink?
4)what more convenient, connect sybase from Oracle Heterogeneous Services or Oracle Gateway?
Thank you so much for your help
Regards
JOEJoe,
let copy/paste your questions and comment inline:
1)Oracle Heterogeneous Services and Oracle Gateway same or not?Need license or not?
Let me first clarify one thing, heterogeneous services is the generic mechanism in the Oracle database used by all gateways. The product you are talking about is the Database Gateway for ODBC or the Database Gateway for Sybase.
The Database Gateway for ODBC is available for Linux and Windows. It is the free product which does not require an Oracle license. The license is included in your database license. It is a generic gateway which allows you to connect with any suitable 3rd party ODBC driver to a matching foreign database. As it is a generic connectivity which aloows you to connect to real databases but also to MS Excel or even Text files as long as you have a suitable ODBC driver, its capability is very limited.
The more powerful gateway is the Database Gateway for Sybase. It covers the same functionality as DG4ODBC but it allows you also to work with distributed transactions, it allows you to call remote Sybase stored procedures etc. This gateway is design for Sybase ASE connections, so it is also able to map certain Oracle functions to Sybase equivalents. This Database Gateway for Sybase is NOT for free, it requires an additional license.
2)If want Creating Database Link from Oracle 11g to Sybase AS 15.5 Using Oracle Heterogeneous Services what drivers should I install from my pc(windows 7) and from my server(Linux red hat 5)?please give me link for this
That depends on your preferences. Both gateways are available for Linux and for Windows. When using DG4ODBC you only need to pay attention that you get a suitable 3rd party ODBC driver for this platform with the matching word size (64bit for 64bit DG4ODBC and 32bit ODBC driver for installations of DG4ODBC on 32bit platforms).
The latest software release is currently 11.2.0.3 and it can be downloaded (and installed from scratch) from "My Oracle Support". Just open the Patches & Updates section, look for Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER and make sure to choose the platform you want to use. Then check out the readme as it lists which of these download CD's contains the gateway software.
BTW, the CD contains DG4ODBC and DG4SYBS and it is up to you to decide during the installation which product you want to use.
3)Is there any link Step by step to configure odbc until creating dblink?
The ODBC driver installation differs from vendor to vendor and platform to platform - so we don't have a specific note how to configure the ODBC driver. This kind of question is better handled by the ODBC driver vendor.
Regarding the set up of DG4ODBC on Windows you find suitable information in the knowledge base on My Oracle Support. Just look for:
How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install [Document 466225.1]
and for DG4SYBS:
How to Configure DG4SYBS (Oracle Database Gateway for Sybase) on 64bit Unix (Linux, AIX, HP-UX Itanium and Solaris) Post Install [Document 437696.1]
How to Setup DG4SYBS (Database Gateway for Sybase) on a 64bit Windows [Document 1319852.1]
4)what more convenient, connect sybase from Oracle Heterogeneous Services or Oracle Gateway?
It really depends on your needs. DG4SYBS is surly easier to install as this gateway comes with everything you need and you do not have to find a suitable ODBC driver nor get the ODBC driver working. It is also more powerful as you can for example use triggers that replicate data changes in an Oracle database to the Sybase database within the same transaction. When you want to call Sybase stored procedures you can also do that with DG4SYBS. So it really depends on your needs.
- Klaus -
Create Heterogeneous Services Initialization File
Hello, I am new to oracle as I am a student. I have installed Oracle Database 11g Release 2 Enterprise Edition.
I want to use a Microsoft Excel file as a source file. In the help center it says that I must create the Heterogeneous Services Initialization File in a specific directory using these commands: HS_FDS_CONNECT_INFO = odbc_excel
HS_AUTOREGISTER = TRUE
HS_DB_NAME = dg4odbc
My question is where should I run these commands ?
If I have to do it in SQL Plus, how do I go to the specific path? When SQL Plus opens it just writes SQL> and I dont know how I can go to the path I want to so I can run the commands.
I can go through the Command Prompt but it obviously doesn't recognize these commands.
Any answer would be enlightening. Thanks.http://docs.oracle.com/cd/E11882_01/owb.112/e10582/loading_ms_data.htm
You do not need to run the command from Sql*Plus
HS_FDS_CONNECT_INFO = odbc_excel
HS_AUTOREGISTER = TRUE
HS_DB_NAME = dg4odbc
You need to create initexcelsid.ora file in the OWB_HOME\hs\admin directory with the above listing -
Hi all!
I want to access and query an excel file's data stored in my system in SQL PLUS using oracle Heterogenous Services. I am using 11g database
I done
1. registering odbc DSN name as: cars Driver: Microsoft Excel Driver
2. modified "initdg4odbc.ora" file with following parameters:
# 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 = cars
HS_FDS_TRACE_LEVEL = 0
HS_FDS_TRACE_FILE_NAME = hsmsql.trc
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
3. modified tnsnames.ora as
# tnsnames.ora Network Configuration File: D:\app\node1\product\11.1.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node9)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
cars.node1.COM =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=tcp)
(HOST=node9)
(PORT=1521)
(CONNECT_DATA=(SID=cars))
(HS=OK)
4. Modified listener.ora as
# listener.ora Network Configuration File: D:\app\node1\product\11.1.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(ADDRESS_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = node9)(PORT = 1521))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=cars)
(ORACLE_HOME = D:\app\node1\product\11.1.0\db_1)
(PROGRAM=hsodbc)
5. created database link:
CREATE PUBLIC DATABASE LINK "LNK" USING 'cars';
6. Finally rebooted the system to get the parameters intialized, and run the query:
SQL> select * from SITES@DLINK;
select * from SITES@DLINK
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specified
i got the error, is there any mistake in the procedure i have done.. please help...Thankyou i got the issue solved.
-
Setup heterogeneous service to connect MySQL from Oracle
Hello,
I have got an issue with heterogeneous service configuration like
SQL> select * from colour@mysql_local;
select * from colour@mysql_local
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02063: preceding line from MYSQL_LOCAL
If anybody can advise me what is wrong in conf or might be I missed something
Thanks
Environment:
OS: Windows 7 Pro
Oracle 11.2.0.3
MySQL: 5.6
Configuration:
System ODBC configured : MYSQL_LOCAL
Tested connection - sucessful
Listener
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
(SID_DESC =
(SID_NAME = MYSQL_LOCAL)
(ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
(PROGRAM=dg4odbc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
ADR_BASE_LISTENER = C:\app
Tnsnames.ora
MYSQL_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL_LOCAL)
(HS = OK)
initdg4odbc.ora
HS_FDS_CONNECT_INFO = mysql_local
HS_FDS_TRACE_LEVEL = OFF
SQL> conn / as sysdba
SQL> create public database link MYSQL_LOCAL connect to root identified by 12346 using 'MYSQL_LOCAL';
C:\Windows\system32>lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:24
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.3.0 - Production
Start Date 08-MAY-2013 17:44:05
Uptime 0 days 0 hr. 0 min. 18 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File C:\app\diag\tnslsnr\D-9RGC8X1\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "MYSQL_LOCAL" has 1 instance(s).
Instance "MYSQL_LOCAL", status UNKNOWN, has 1 handler(s) for this service...
Service "QA_IMS_MYSQL" has 1 instance(s).
Instance "QA_IMS_MYSQL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
C:\Windows\system32>tnsping mysql_local
TNS Ping Utility for 64-bit Windows: Version 11.2.0.3.0 - Production on 08-MAY-2013 17:44:36
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
C:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL_LOCAL) (HS = OK)))
OK (0 msec)
SQL> conn / as sysdba
Connected.
SQL> select * from colour@mysql_local;
select * from colour@mysql_local
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02063: preceding line from MYSQL_LOCALHi,
The gateway file initMYSQL_LOCAL.ora should be placed in the directory -
$ORACLE_HOME\hs\admin
which is the expected location. In your setup this should be -
C:\app\product\11.2.0\dbhome_1\hs\admin
If the file is already in that location then make sure that in the listener.ora and tnsnames.ora that in each section every line except the first line starts with at least one space -
SID_LIST_LISTENER =
<space>(SID_LIST =
<space>(SID_DESC =
LISTENER =
<space>(DESCRIPTION_LIST =
Tnsnames.ora
MYSQL_LOCAL =
<space>(DESCRIPTION =
<space>(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
However, there is also a problem with the tnsnames.ora file. You have -
Tnsnames.ora
MYSQL_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL_LOCAL)
(HS = OK)
) <=== move this bracket
but it should be -
Tnsnames.ora
MYSQL_LOCAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SID = MYSQL_LOCAL)
) <=== bracket moved here
(HS = OK)
Of course, with spaces as shown above. They are often lost in the forums.
You may also need to change -
(HOST = localhost)
to -
(HOST = <actual host name>)
but it depends on your setup.
Try these changes and let me know what happens.
Regards,
Mike -
Services with multiple account assignment.
Hi all,
How can I find out the POs which are having the multiple account assignment for the service line items from tables ?
I am looking for services with multiple account assignments
RegardsHi
Go to SE16 , give table name -EKPO
Now if you have purchase order nos with you then copy paste the PO numbers here , or select company code or site to restrict your entries. It will control the performance of the data execution.
Then execute this (remove max no 200 ) . Go to Settings-- Format List -- Choose fields. Deselect all and select fields as per your requirement.If field names are coming in technical names you can change this via settings--User parameter and select -Field Label.
You can extract this report to excel as well. Same PO number with all account assignment category.
Please note if you have high volume of data then extract all the POs under service orders first from EKKO table and copy all the service PO numbers availbvale and paste in table EKPO, it will increase performance as well.
Cheers
Mukta
Maybe you are looking for
-
We've upgraded our computers to Win7/IE 11 but now when I try to edit our MOSS 2007 Content Editor Web Parts, the option to choose either the Rich Text Editor or Source Editor is gone, and all I get is a tiny HTML window. What do I need to do to get
-
I tried to make a z copy of a prrogram but on executing the z copied program i am getting the error that " STATUS 100 of the user interface z_program name is missing" and also the application toolbar gets disabled on the output screen. Please Help M
-
Hardcover Book Print Quality = Very Poor!
In the past with iPhoto 4 & 5, I have ordered and recieved hardcover books of very high print quality. I have just recieved my first hardcover book using iPhoto 6.01, and the print quality is down right poor and unacceptable. My high resolution shots
-
InitialContext Bug in WebLogic5.1 ?
I have a SessionBean Method : public void contextTest() throws RemoteException { try { System.out.println("Principal 1: " + ctx.getCallerPrincipal()); Properties h = new Properties(); h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialCont
-
How many gb do you use when renting a movie on itune store
When renting or buying a movie on the itune store, how many GB will you normally use?