Connectivity issues from Oracle to Sybase
Friends.
I have connectivity issue from Oracle 9.2.0.1 to Sybase 12.5 ASE .I am connecting through the database link in oracle to access the tables.
The error message i am getting :
select count(*) from TEST_TABLE@IND_TEST;
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
523 80
ORA-02063: preceding 2 lines from IND_TEST
Please guide me how to solve this error message. is it version incompatible now?
Thanks
Rocky
Hi,
You are now making the connection to the Sybase database but there is a problem with the user and password used in the database link.
Sybase is case sensitive for names so you need to surround the user/password in double quotes to make sure they are passed to Sybase in the correct case -
create database link ind_test connect to "sybuser" identified by "sybpass" using 'tnsnames_ora_entry' ;
where sybuser is the userid as created in Sybase with the password sybpass.
If they were setup in Sybase in mixed case then it would be -
create database link ind_test connect to "Sybuser" identified by "Sybpass" using 'tnsnames_ora_entry' ;
Regards,
Mike
Edited by: mkirtley on Sep 27, 2011 12:55 PM
Similar Messages
-
Trying to Connect from Oracle to Sybase
Hi
Iam trying to connect from Oracle to Sybase only to retrieve data which is why--Generic COnnectivity. Everything was fine like creating default entries with hsodbc(instead of default tg4sybs) in listner.ora, tnsnames.ora like discussed in this forum. But, the final problem which Iam encountering is:
ERROR at line 1:
ORA-02085: database link HSODBC.US.ORACLE.COM connects to HO.WORLD
Can anyone explain about this problem and solution?? Please help....It is URGENT!
Thanks
Gopikrishna.This happens with global naming set to true for the database.
How to check if global_names is true or false:
openSQL*plus connection to the database and type
SHOW PARAMETER GLOBAL_NAMES
What to do:
1. you can alter your SQL*Plus session each time you
connect:
ALTER SESSION SET GLOBAL_NAMES=FALSE;
2. you can set global_names to false within the init.ora
of the database
3. you can change the default GLOBAL_NAME HO.WORLD of the
HSODBC system while changing the values in the init.ora
of the hsodbc:
HS_DB_NAME=HSODBC
HS_DB_DOMAIN=us.oracle.com -
Importing table dump from oracle into sybase
I was wondering if anyone has ever imported a table dump from oracle into sybase. I just tried it and it didn't work. I used TOAD to create my table dump file but when i imprted it into sybase using bcp in i got the following error
cs_convert: cslib user api layer: common library error: The result is truncated because the conversion/operation resulted in overflow.
CSLIB Message: - L0/O0/S0/N36/1/0:If you are looking for a basic/standard way to exchange data between Oracle and Sybase, use the CSV format.
It is trivial to write a generic SQL*Plus script for Oracle to extract data from a table (or a SELECT) and spool this into a properly formatted CSV file.
It is also just as easy to use Sybase Bulk Copy utility to load that CSV file into Sybase.
There are also alternative methods. One would be to use Oracle's Heterogeneous Services. You can define a database link in Oracle that connects, via ODBC, to Sybase. And using this database link you can push (insert) data into Sybase. -
hi,
i)what is the cwbcfg program to be executed you have mentioned.
ii) I executed caths.sql
iii) In tnsnames.ora how to specify the dsn that you create for db2 database.
for example if I have created a dsn for db2 naming it kishore_dsn, how do i specify that in tnsnames.ora file.
and by what sid is the iniths_sid.ora to be created. is it the dsn you create for db2 database. for ex. if dsn name is kishore_dsn, should the file be initkishore_dsn.ora, or it should be the name of local oracle database service.
DESIGN.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
KISHORE_DSN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = KISHORE_DSN)
(HS = OK)
I am getting ora-12154 tns could not resolve service name, while tring to access db2 after creating public links.
I would appreciate if you can send me step by step generic connectivity ,connecting db2 from oracle.
Prabhath.Hi Tak,
Thanks for your response.
My odbc data source name is : kishore_dsn
driver : ibm db2 odbc driver
I am connecting db2 8 on windows from oracle 9i on windows.
MY iniths_sid.ora file is initdesign.ora
initdesign.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
# HS init parameters
HS_FDS_CONNECT_INFO = KISHORE_DSN
HS_FDS_TRACE_LEVEL = 0
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
I created listener.ora in network/admin
# LISTENER.ORA Network Configuration File: c:\disk1\software\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC5))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = c:\disk1\software)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = design)
(ORACLE_HOME = c:\disk1\software)
(SID_NAME = design)
(SID_DESC =
(SID_NAME = design)
(ORACLE_HOME = c:\disk1\software)
(PROGRAM = hsodbc) )
my tnsnames.ora is
# TNSNAMES.ORA Network Configuration File: c:\disk1\software\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
INST1_HTTP.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC5))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
DESIGN1.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
DESIGN.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
KISHORE.FORESEEINDIA.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = compaq6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = design)
(HS = OK)
My sqlnet.ora file
# SQLNET.ORA Network Configuration File: c:\disk1\software\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DEFAULT_DOMAIN = foreseeindia.com
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
Before creating these files I had run caths.sql from sys user.
After all the configuration
I logged into database with service name : kishore
user : scott
I created a db link
create database link custard
connect to scott identified by tiger
using 'kishore';
I issued a select * from addr@custard; where addr is in remote db2 database.
I am getting the following error
ERROR at line 1:
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=compaq6)(PORT=1521))
)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=design)))
ORA-02063: preceding 2 lines from CUSTARD
I am struck with this for the past 1 week, so kindly help.
If someone can access a tar from metalink and post it also, as currently we donot have the support.
Regards,
PrabhathG -
Replicate the data from oracle to sybase
Hi, I have to replicate the data of some of the tables from Oracle 10g to Sybase.
Here the data from the table is live data (OLTP).
Is there any process like materalized view so that data is refreshed from Oracle to Sybase periodically.
Please let me know the Process for the same.Hello,
as a starter you may want to read the following Metalink note:
Note 283700.1: How to replicate Data between Oracle and a Foreign Datasource
Please let me know whether this is helpful.
Best regards
Wolfgang Kobarg-Sachsse -
Zero Downtime Migration from Oracle to Sybase
Is there any way/ tool to migrate from oracle to sybase with Zero Downtime??
ThanksBetter answered on a Sybase forum I suppose...
-
Webrtc connection issue from chrome to firefox
In my webrtc video application when there is always a connection issue from chrome to firefox.
If the user on Firefox joins first to the room and the 2nd user on chrome joins second then ther is no issue. It connects smoothly.
But in the reverse case there is a connection but no audio and video.
You can check the app at : https://uc.connectuscom.com/video/#k9EBX8xd#Video
open one instance of this this link on chrome and then another on Firefox to reproduce the issue. Use 2 separate machines to avoid the issue of camera availability for the browsers.Hi,
You posted two questions on the same topic. Seems like you pressed Post twice. Please continue at [/questions/994533]. I'll be closing this thread. -
Connectivity issue with Oracle Source
Hi,
Am trying to run a SSIS package to pull data from Oracle. Package was running fine from BIDS.But when i run the job from Sql Agent am getting the below error.Can you please help me on this.Am using 2012 version of SSIS
Message
Executed as user: ABCDEF\SQLDEV015. Microsoft (R) SQL Server Execute Package Utility Version 11.0.5548.0 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 9:32:29 PM Error: 2014-12-22 21:32:31.32
Code: 0x000002BD Source: Package4 Connection manager "ORACLE" Description: Oracle Home not found. End Error Error: 2014-12-22 21:32:31.32 Code: 0x0000020F Source: Connect
to ORACLE Oracle Source [2] Description: The AcquireConnection method call to the connection manager ORACLE failed with error code 0x80004005. There may be error messages posted before this with more information on why the AcquireConnection
method call failed. End Error Error: 2014-12-22 21:32:31.32 Code: 0xC0047017 Source: Connect to ORACLE SSIS.Pipeline Description: Oracle Source failed validation and returned error code 0x80004005. End
Error Error: 2014-12-22 21:32:31.32 Code: 0xC004700C Source: Connect to ORACLE SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2014-12-22 21:32:31.32
Code: 0xC0024107 Source: Connect to ORACLE Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 9:32:29 PM Finished:
9:32:31 PM Elapsed: 1.422 seconds. The package execution failed. The step failed.Hi SSDL,
According to the error message, the issue is that the user cannot connect to the Oracle server. To fix this issue, please refer to the following suggestions:
Verify the Oracle server is installed on the server that the connection string indicates. It means that verify the connection string is incorrect.
Does the user that runs the package the correct
authorization?
Check if the SQL Agent job step that runs this package is set to run it in 32 bit mode.
The following two similar threads are for your references:
http://stackoverflow.com/questions/26790105/ssis-package-fails-in-sql-server-agent-but-not-in-visual-studio-odbc-connectio
http://www.attunity.com/forums/microsoft-ssis-oracle-connector/issues-pulling-data-oracle-package-fails-1472.html
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
ORA-28500 and ORA-02063 while connecting MySQL from Oracle-
Dear All,
My Database is Oracle 11gR2 Rac of 2 nodes and on Linux 64-Bit operating system.
Version of my MySQL database is 5.5.17 it is on Linux 32-Bit operating system.
I am trying to connect MySQL database from Oracle database using a database link.
These are the step by step process that I am following to achieve my target. All my processes are on one node of Oracle RAC.
1)
Yum install mysql-connector-odbc
Yum install unixODBC
2)
Edit file /etc/odbc.ini
[test]
Driver = /usr/lib64/libmyodbc3.so
Description = MySQL ODBC 3.51 Driver DSN
SERVER = 10.0.0.1
PORT = 3306
USER = test
Password = test
Database = test
OPTION = 3
SOCKET =
3)
Edit file /etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib64/libmyodbc3.so
Setup = /usr/lib64/libodbcmyS.so
FileUsage = 1
4) test connection
isql –v test test test
Returns:
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
SQL>
5) Now I edit listener.ora file and add the entry. After entry my listener.ora file is like this:
LISTENER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER))
(ADDRESS = (PROTOCOL = TCP)(HOST=testnode1)(PORT = 1521))
# line added by Agent
LISTENER_SCAN1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = LISTENER_SCAN1))
# line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1 = ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON # line added by Agent
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_DESC =
(PROGRAM = dg4odbc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = test)
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
6) After these entries the listener status after RESTART is as following:
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 27-DEC-2011 01:19:32
Uptime 0 days 9 hr. 31 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/grid/diag/tnslsnr/racnode1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=testnode1)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, 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 "test" has 1 instance(s).
Instance "test", status UNKNOWN, has 1 handler(s) for this service...
Service "testdb" has 1 instance(s).
Instance "testdb1", status READY, has 1 handler(s) for this service...
Service "racdbXDB" has 1 instance(s).
Instance "testdb1", status READY, has 1 handler(s) for this service...
The command completed successfully
7) Then in the tnsnames.ora file I added the following entry:
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = EXTPROC1521)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
test =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SID = test)
(HS = OK)
When i tnsping test, it works.
8) I edit the .bash_profile file for Oracle
ORACLE_HOME, ORACLE_BASE were already pointing to the correct destination, I added:
LD_LIBRARY_PATH=/usr/local/lib:/u01/app/oracle/product/11.1.0/db_1/lib:/u01/app/oracle/product/11.2.0/dbhome_1/hs/lib:/usr/lib64:/usr/lib
export LD_LIBRARY_PATH
ODBCINI=/etc/odbc.ini
export ODBCINI
ODBCINSTINI=/etc/odbc.ini
export ODBCINSTINI
ODBCSYSINI=/etc
export ODBCSYSINI
9) Then i configured $ORACLE_HOME/hs/admin/inithsodbc.ora
And Modified these lines:
HS_FDS_CONNECT_INFO = test
HS_FDS_TRACE_LEVEL = ON
HS_FDS_TRACE_FILE_NAME = odbc_test.log
HS_FDS_TRACE_LEVEL = 4
HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
HS_FDS_SUPPORT_STATISCTICS = FALSE
HS_LANGUAGE = AMERICAN_AMERICA.WE8ISO8859P1
set ODBCINI = /etc/odbc.ini
10) Then i created a database link with the following command:
Create public database link test connect to test identified by test using ‘test’;
I tried username and password in database link with double quotes also.
11) Now Finally when I try to select records from mysql table:
select count(*) from "table"@"test"; -- I have tried with and without double quotes
I get the following error:
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from TEST
How to get through this error, and how to check logs for HS?
Your help is required.
Regards, Imran
Edited by: misterimran on Dec 27, 2011 1:21 PMHi,
In your listener.ora for the DG4ODBC entry you had -
(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
but this should also include the path for the driver manager directory which in your case is /usr/lib64 so could you add this ?
The error -
Failed to load ODBC library symbol: /usr/lib64/libmyodbc3.so(SQLSetDescRec)
indicates the /usr/lib64 directory cannot be accessed.
The entry should then look like -
(SID_DESC =
<space>(PROGRAM = dg4odbc)
<space>(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
<space>(SID_NAME = test)
<space>(ENVS=LD_LIBRARY_PATH = /usr/local/lib:/usr/lib64:/u01/app/oracle/product/11.2.0/dbhome_1/lib)
<space>)
The spaces may have bene lost when posting but there should be at least one space in the file as indicated by the <space>.
After making the change then stop and start the listener.
If you still have problems then please post again the current versions of the configuration files, the full errors shown in SQLPLUS for a select and the output from a debug trace showing the errors.
The information shows you are using the 3.51 MySQL ODBC driver so could you also try with the latest version of the 5.1 driver and see if you have the same problem ?
Regards,
Mike -
Connection issues with Oracle-JDBC
Using the Universe Design Tool in BOE 4.4 to create an Oracle-JDBC connection.
Issue: Test Connection fails for JDBC connection to production Oracle database.
Getting error:
“DBD: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
IBM AIX RISC System/6000 Error: 2: No such file or directory”
Things to note:
There are three entries in the tnsnames.ora file (a prod entry, a dev entry and a test entry). I can successfully create the JDBC connections for the test and dev entries, but not prod.
I can go to Designer in another server (our BOE 3.5 server in a different environment) and create all three Oracle-JDBC connections.
The Oracle middleware is the same between the two servers (11g) and the tnsnames.ora files are identical.
The prod database is up (it would definitely be known if it were down).
Very confused on this one. Any help would be appreciated.It appears that the SAP tool “Universe Design Tool” wants to have a fully qualified (host.parent domain.org) Net Service name for this particular connection as I was able to successfully JDBC connect to our production Oracle database. The other two databases didn't need it and the Oracle SQL Developer (which uses JDBC for connections) didn’t need a fully qualified name for our production server either. In any case, it appears to be working now.
-
Migration of data from Oracle to Sybase ASIQ
Hello !
I want to know , if there is any way to migrate the database from oracle 8i to sybase ASIQ ( Adaptive Server IQ 12.4). The database has 14 tables in which some tables have more than 3 lakh records. I have tried to convert the tables into tab delimited text files ( by using ADO Explorer software) and then load data in ASIQ ( Adaptive Server IQ 12.4) from these flat files. The process is working fine with tables which have less data. But for large tables ( with 3 lakh records) the ADO explorer hangs in between conversion. Is there any tool in Oracle which can migrate data from tables to tab delimited text files ?
or is there any tool which can directly migrate data from oracle 8i to Sybase ASIQ directly ?Can you use Sybase Component Integration Services (CIS). Can you create the Oracle database as a remote database and then do selects against the Oracle tables directly into the Sybase tables. I am not sure if this is available in IQ server. If not then if you have a regular Sybase server could you do it through there somehow and then move the database from Sybase to IQ.
Frank... -
Connect Ingres from Oracle through tg4ingr
Hi, when I perform a query to a table in Ingres from sqlplus I receive the next error:
SQL> select * from paises@ingres;
select * from paises@ingres
ERROR at line 1:
ORA-02068: following severe error from INGRES
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=%s
ORA-28509: unable to establish a connection to non-Oracle system
my tnsnames.ora:
# TNSNAMES.ORA Network Configuration File: /software/oracle/product/9.2.0.1.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
INGRES.SIGMAAIE.ORG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = sunsig5)(PORT = 1521))
(CONNECT_DATA =
(SID = ingres)
(HS = OK)
my listener.ora:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sunsig5)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ingres)
(ORACLE_HOME = /software/oracle/product/9.2.0.1.0)
(PROGRAM = tg4ingr)
(ENVS = LD_LIBRARY_PATH = /dbms/Ingres26/ingres/lib:/software/oracle/product/9.2.0.1.0/lib)
my initingres.ora ($ORACLE_HOME/tg4ingr/admin):
# This is a sample agent init file that contains the HS parameters that are
# needed for the Transparent Gateway for INGRES
# HS init parameters
HS_FDS_CONNECT_INFO=sigma::sigmatest
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_INGRES_MODE=INGR
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
# Environment variables required for the non-Oracle system
set II_SYSTEM=/dbms/Ingres26
I created the database link using:
SQL> create public database link ingres connecto to "user1" identified by "passwd" using 'ingres';
Any idea why Am I receiving this error?
Thank you in advance.It could be that the SID and SID_NAME is wrong.
Check SID=tg4ingr and SID_NAME=tg4ingr instead of SID=ingres -
Oracle Client Side connectivity issues from a Windows XP Machine
I am sure most of you guys may have addressed this issue of the time delay the client application takes to retrieve the data from the Oracle database. However, here's my problem.
We have installed a VB application running on Windows Xp along with an Oracle 8i client. Now when the application tries to connect to the database at times the data fetching speed is quick and at times its really slow... takes almost 15-20 minutes.. We're not sure if this is an application issue/oracle client configuration issue or a network issue..
We've wasted alot of time blaming the network/connectivity.. However, is there anything that we would need to check at the clients pc.. oracle config etc.etc.. ???
Please help..Might want to try out a couple of things:
When it's running slow:
1. ping the server to see the response time of the server.
2. check the CPU usage on the server. There could be a resource crunch taking place due to other large and/or multiple transactions going on.
3. kill the VB connection and run the SQL from the command prompt and see how long it takes. Sometimes executing an SQL from the application may take longer, while from the command prompt, it's quicker. In this case, application tuning is required.
4. check to see the CPU and memory usage on the client PC itself. If there are multiple applications in use chewing up these resources, it can and will slow things down on the client PC itself.
Oracle client does not require configuration as such. -
Connection issue from sqldeveloper to Oracle Database 10g
I have installed Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 on my machine having platform Windows vista
Now i have install sqldeveloper but i am not able to connect to oracle databse.
GETTING AN ERROR Network adapter could not make it connection
after that i have tried to check listners.ora through tnsping orcl getting following result
C:\Users\Kailas>tnsping orcl
TNS Ping Utility for 32-bit Windows: Version 10.2.0.3.0 - Production on 08-APR-2
011 00:20:05
Copyright (c) 1997, 2006, Oracle. All rights reserved.
Used parameter files:
E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = kailasLa
pi)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
TNS-12541: TNS:no listener
Please let me know What should i do i want to start my practice sessions on sqldeveloper
I am new in Oracle pl/sql development
Please guide me on this.........................SQLDeveloper 3.0 production is supplied with the thin driver 11.2.0.2
it needs 11.2.0.2 version to use thick which has a few additional features over thin.
To avoid confusion with other Oracle software you can set the ORACLE_HOME in the session you start sqldeveloper in as described below:
The version mismatch is often because SQLDeveloper is trying to use the 'thick' driver and 11.2.0.2 thick is not available,
try
thin by:
1/(uncheck Tools->preferences->Datababae->advanced->use OCI/thick driver, and
2/If necessary, set ORACLE_HOME for your cmd.exe session where sqldev is started from to where sqldeveloper is where %ORACLE_HOME%\jdbc\lib exists, (so SQLDeveloper does not try your existing ORACLE_HOME) and
3/If using connection type TNS, use Connection Type TNS -> Network Alias.
4/You may need to set Tools->preferences->Datababase->advanced->Tnsname directory to the directory containing tnsnames.ora
-Turloch
SQLDeveloper Team -
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
Maybe you are looking for
-
Camera roll empty but shows 6.1 gb. Restored to original settings after backing up. When I restored the backup camera roll still shows 6.1 gb and is still empty. I imagine that the backup contains some corruption
-
Problem with font logical names method
Concerning font logical names, the Java tutorial states: To get the logical name for a Font object, call java.awt.Font.getName. Would someone kindly offer a few lines of code to demonstrate how getName would be implemented in this regard -- say using
-
Guys can someone plz tell me what is the difference between using subinterface and physical interface for example if i have four DMZ and i take ether1 and then subdivide them in four and trunk it to the swicth (with port channel)..
-
Suspend to RAM (for a while)
Hi there.. I'd want to know if i can suspend to ram my system for 30m (for example) and auto wake-up it then that time is over. Is there any possibility to do that? What parts of the kernel still running during the sleep process? Thanks!
-
I have a hp prodisplay p221 but it does not seem to have a slot in which you can insert an sd card adaptor? I have checked at the back of the computer and the main box but neither seem to have one.x This question was solved. View Solution.