Oracle 2 SQLSERVER Connectivity
Hi there,
I am using Oracle 9iR2 and trying to connect it with SQL Server. I used HS for this purpose. Initially I was able to set the connection and every thing was working fine. After a little while, I received following error in my alert log file,
Unable to establish RPC connection to an HS agent.
Please suggest.
regards.
Unable to establish RPC connection to an HS agent.There should be other information with that line. Can you provide it please?
Other things to check:
1. Can you connect to the SQL Server with an SQL Server client?
2. Have you tried setting the trace level to generate a trace to find where there error is taking place?
Similar Messages
-
Hello,
I want to Know how we can connect from oracle to sqlserver.....it means i've to retrieve Sqlserver Database from oracle engine......
is it possible with ODBC connection? if Yes can give me the way to follow...
I hope my question is understandable.........
Message was edited by:
user582692After this reply, I assume you don't even have a support or license contract with oracle. When you buy support with Oracle you are given a CSI (Customer Support Id) this is a number used to have a support account registered with Oracle, and the mean to access it is the site http://metalink.oracle.com.
Steps to connect oracle to SQLServer are outlined below:
1. Install ODBC drivers for the SQL*Server database. The drivers are installed on your laptop or on
the server that contains the Oracle code tree.
2. Setup the ODBC connection on your laptop using the Windows ODBC Data Source Administrator
3. Test the ODBC drivers to ensure that connectivity is made to the non-Oracle database.
4. Ensure the Global_names parameter is set to False in the Oracle database.
5. Configure the Hetergeneous services. This consists of creating an initodbc.ora file within the Oracle
Oracle database installation.
7. Modify the Listener.ora file on the database installation to connect to the Oracle instance and ODBC drivers.
8. Modify the Tnsnames.ora file to point to the proper code tree.
9. Reload the listener
10. Create a database link on the Oracle installation.
11. Run a Select statement for the Oracle installation using the database link.
Or you could refer to this site, where it is explained by pictures: Making a Connection from Oracle to SQL Server
By James Koopmann
You could use also Transparent gateways to perform this task. Be aware of the license iissues:
Oracle® Transparent Gateway for Microsoft SQL Server Administrator's Guide
10g Release 2 (10.2) for Microsoft Windows (32-bit)
Part Number B14270-01
~ Madrid -
Error while creating a report that uses Oracle OCI JDBC connectivity
Please let me know why my CR and LF characters are removed from my forum posting *****
Hi,
I was trying to create a report that uses Oracle OCI JDBC connectivity. I am using Eclipse3.4 download from "cr4e-all-in-one-win_2.0.2.zip". I have successfully created a JDBC OCI connection.
The connection parameters are given below:
URL: jdbc:oracle:oci8:@xe
Database: xe
username: <userName>
password: <password>
I have tested the above connection in Data source Explorer and it works fine!!!
But I am getting the following error when I drag-and-drop a table from the list of tables. Not sure what I am missing here? Any help is highly appreciated.
com.businessobjects.reports.jdbinterface.common.DBException: InvalidURLOrClassName
at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(SourceFile:123)
at com.crystaldecisions.reports.queryengine.Connection.br(SourceFile:1771)
at com.crystaldecisions.reports.queryengine.Connection.bs(SourceFile:491)
at com.crystaldecisions.reports.queryengine.Connection.t1(SourceFile:2979)
at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2408)
at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1163)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:657)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:163)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:523)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$3.doWork(ExecutorWithIdleProcessing.java:182)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityTask.run(PriorityTask.java:75)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.runSubtask(PriorityCompoundCancellableRunnable.java:187)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityProgressAwareRunnable.runSubtask(PriorityProgressAwareRunnable.java:90)
at com.businessobjects.crystalreports.designer.core.util.thread.PriorityCompoundCancellableRunnable.doWork(PriorityCompoundCancellableRunnable.java:144)
at com.businessobjects.crystalreports.designer.core.util.thread.AbstractCancellableRunnable.run(AbstractCancellableRunnable.java:69)
at com.businessobjects.crystalreports.designer.core.util.thread.ExecutorWithIdleProcessing$IdleTask.run(ExecutorWithIdleProcessing.java:320)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks
Karthik
Edited by: KARTHIK1 on Oct 14, 2009 9:38 PMHi Ted,
Thanks for the feedback. I was able to create a report in Creystal Reports Designer 2008 using OCI. It is not allowing only in the Eclipse plugin. In our environment we are not allowed to user Oracle thin connections and ONLY OCI is allowed.
1) Can you please let me know if there is a way to do this?
2) Will it allow data sources using native database driver?
3) If so, can I use JRC to create these reports from a desktop java program?
Thanks & Regards
Karthik
Edited by: KARTHIK1 on Oct 15, 2009 4:38 PM -
Oracle keeping JDBC connections ...
All
has anyone come got any ideas on this:
WLS6.0 sp2 on Win2k
Oracle v8
JDBC connection pool configured with 10 min connections / 50 max conns (in
increments of 5). Shrinking is active, and is set to run every 15mins.
What were seeing is that Oracle doesnt let go of any of the JDBC
connections. It literally keeps them for days on end, until we have to
manually kill them because theyre causing other DB problems.
any ideas ?
tks
willHello, I am using ALUI G6 (former Plumtree) and I am experiencing the same problem.
JDBC connections are not released and we reach the connection max number easily.
Please, can somebody help us ?
Thanks for your help,
Kind regards -
Oracle Gateway Not Connecting to Sybase database
Hi,
I'm trying to setup an oracle gateway to connect to Sybase database. I followed in details the instructions but still can connect successfully. The Oracle database is in RAC environment. Below are the steps I took:
The oracle gateway and oracle database are in the same server while Sybase is on a separate unix box.
1. create an initdg4sybs.ora file
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Sybase
# HS init parameters
HS_FDS_CONNECT_INFO=[999.99.108.99]:4527/common ## IP address of sybase server
HS_FDS_TRACE_LEVEL=ON
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
2. create a listener on the oracle gateway home
# listener.ora Network Configuration File: /u03/app/oracle/gateway/11.2/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER_DG4SYSBS =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
(ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node A)
(ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.24)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node B)
SID_LIST_LISTENER_DG4SYSBS=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4sybs)
(ORACLE_HOME=/u03/app/oracle/gateway/11.2)
(ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
(PROGRAM=dg4sybs)
ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
3. create tnsnames.ora in oracle database home
dg4sybs =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)) #IP address of Node A
(CONNECT_DATA =
(SERVER = DEDICATED) #added for single node test
(SID = dg4sybs)
(HS=OK)
4. create database link
create database link dg4sybs connect to "user" identified by "password" using 'dg4sybs'
5. when testing the connection; i'm getting below error message. tried all the setup based my research and couldn't make it work.
SQL> select * from dual@dg4sybs
2 /
select * from dual@dg4sybs
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 7427
Session ID: 495 Serial number: 787
I perform above settings on a standalone database running in windows and successfully connect to the sybase. In UNIX setup, been unsuccessful. Can someone please help.
Also, below is the trace file error message:
Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.747
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.745
Version 11.2.0.1.0
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
ODBCINST set to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/dg4sybs.loc"
RC=-1 from HOSGIP for "LD_LIBRARY_PATH_64"
Setting LD_LIBRARY_PATH_64 to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib"
HOSGIP for "HS_FDS_SHAREABLE_NAME_ICU" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libHGicu23.so"
HOSGIP for "HS_FDS_SHAREABLE_NAME_INST" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbcinst.so"
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbc.so"
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using ro as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
SQL text from hgopars, id=1, len=20 ...
00: 53454C45 4354202A 2046524F 4D202244 [SELECT * FROM "D]
10: 55414C22 [UAL"]
hgopars, line 526: calling SQLNumResultCols got sqlstate 42S02
SQL text from hgopars, id=2, len=57 ...
00: 53454C45 43542027 58272046 524F4D20 [SELECT 'X' FROM ]
10: 2264626F 222E2273 79737573 65727322 ["dbo"."sysusers"]
20: 20413120 57484552 45204131 2E226E61 [ A1 WHERE A1."na]
30: 6D65223D 2764626F 27 [me"='dbo']
Deferred open until first fetch.
HS Agent received unexpected RPC disconnect
Network error 1003: NCR-01003: NCRS: Read error.
Edited by: gonzroman on Oct 18, 2012 11:03 AM-=-=-=-=-=- tnsnames.ora on the UNIX side
GTW_C100_COMN =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) #IP address of jrc1suvip01a
#(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) #IP address of jrc1sudb01a
(CONNECT_DATA =
(SERVER = DEDICATED) # added for single configuration
(SID = dg4sybs_comn_c100)
(HS=OK)
-=-=-=-=-=- listener.ora of the GATEWAY
LISTENER_DG4SYSBS =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)(IP = FIRST)) #IP address of jrc1suvip01a
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)(IP = FIRST)) #IP address of jrc1sudb01a
#(ADDRESS = (PROTOCOL = TCP)(HOST = jrc1suvip01a)(PORT = 1543))
SID_LIST_LISTENER_DG4SYSBS=
(SID_LIST=
(SID_DESC=
(SID_NAME=dg4sybs)
(ORACLE_HOME=/u03/app/oracle/gateway/11.2)
(ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
(PROGRAM=dg4sybs)
(SID_DESC=
(SID_NAME=dg4sybs_comn_c100)
(ORACLE_HOME=/u03/app/oracle/gateway/11.2)
(ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
(PROGRAM=dg4sybs)
ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
-=-=-=-=- initdg4sybs_comn_c100.ora parameter
# This is a customized agent init file that contains the HS parameters
# that are needed for the Database Gateway for Sybase
# HS init parameters
#HS_FDS_CONNECT_INFO=[glb0pod29.aexeo.citco.com]:4100/common
HS_FDS_CONNECT_INFO=[209.87.108.99]:4527/common
HS_FDS_TRACE_LEVEL=ON
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
-=-=-=-=- gateway listener status
jrc1sudb01a:/u03/app/oracle/gateway/11.2/dg4sybs/admin $ lsnrctl status LISTENER_DG4SYSBS
LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 20-OCT-2012 13:09:05
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1543)))
STATUS of the LISTENER
Alias LISTENER_DG4SYSBS
Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
Start Date 18-OCT-2012 13:16:24
Uptime 1 days 23 hr. 52 min. 41 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u03/app/oracle/gateway/11.2/network/admin/listener.ora
Listener Log File /u03/app/oracle/gateway/11.2/log/diag/tnslsnr/jrc1sudb01a/listener_dg4sysbs/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1543)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.26)(PORT=1543)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.24)(PORT=1543)))
Services Summary...
Service "dg4sybs" has 1 instance(s).
Instance "dg4sybs", status UNKNOWN, has 1 handler(s) for this service...
Service "dg4sybs_comn_c100" has 1 instance(s).
Instance "dg4sybs_comn_c100", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
-=-=-=-=-=- tnsping output
jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping dg4sybs
TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:28
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs)) (HS=OK))
OK (10 msec)
jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping GTW_C100_COMN
TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:35
Copyright (c) 1997, 2011, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs_comn_c100)) (HS=OK))
OK (0 msec) -
How to solve Oracle SQL Developer connection problem ?
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?user8860348 wrote:
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
password: enter_your_correct_password given at the time of oracle installation
role: select sysdba if you would connect as sysdba else select normal for users other than sys
hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
to find the hostname open terminal/command prompt in oracle installed machine
type ---> hostname
type ---->ping hostname
you can find the ipaddress of the server
port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
SID: DB1
try it
Good Luck -
Using OCI from Oracle 12 to connect to an Oracle 10 server instance
Can I use the newest Instant Client of Oracle 12 to connect to an Oracle 10.2.0.5 server instance?
For at least the last decade OCI has always been backward compatible like that. I expect it will work.
-
Oracle error -1: connecting to hyperion interactive reporting studio 9.3
Hi Experts ,
I am trying to connect to Hyperion studio 9.3 .
I create a new database connection file >use oracle net as connection software>use oracle as database for connection>provide the login details .
I get the error Oracle Error -1:
Any clue or idea on how to resolve this?
Thanksinstalling new oracle 10g helped this
-
While creating MViews in oracle 9i database connecting to table in an orac
Hi all,.
While creating MViews in oracle 9i database connecting to table in an oracle 11g database....
Eg : create materilized view testmview as select * from testtable@db_linkname
ORA-03113: end-of-file on communication channel
any idea
Regards,
ShijuThere would be a trace file written on the 11g database server. Please review the trace file.
Your 9.2 environment must be running 9.2.0.4 or higher. The 9.2.0.4 is the minimum patchset level required for it to be supported connecting to an 11g (11.1 or 11.2) database.
See "Client / Server / Interoperability Support Between Different Oracle Versions [ID 207303.1]" on support.oracle.com
Hemant K Chitale -
Generic Insert and Update Queries to work on both Oracle and SQLServer
xMII12.0.2
I need to write queries which will be able to run on both Oracle and SQLServer database tables without any changes. It needs to be able to handle dates without including Oracle specific date functions (TO_DATE, TO_CHAR, TO_TIMESTAMP, etc.).
I did read a post earlier by Jeremy Good regarding the use of ED and SD which invoke the DatePrefix and DateSuffix in the data server configuration. That seems to work fine in cases of only trying to insert two distinct dates. However, what do you do in the case of having three or more dates to insert. An example query might be:
Insert into ProductionOrder
(ProdOrdNbr, Plant, Material, Quantity, UOM, DeliveryDate, ProdStartDate, ProdFinishDate, CreateDate, LastModifiedDate)
Values
('0100001001', '001', '000000000007887780', 20.0, 'PC', '21-FEB-08 22:01:19','11-FEB-08 00:01:34', '12-FEB-08 02:44:59', '01-FEB-08 12:00:00', '04-FEB-01 13:22:13')
So far I have been using the TO_DATE to convert the dates successfully, but SQLServer does not recognize that function (not surprising since it is an Oracle specific function). So I would have to go through all the transactions/query templates and rebuild them separately to deal with the different database vendors.
Any suggestions?
Thanks,
MikeHi Rick,
Are you talking about dynamically building each script based on a server setting and datatype? If I understand you correctly, I guess it could be done that way, but it would be a royal pain to maintain. I have done such things before and can see how it could be done.
But is there no way to invoke the DatePrefix and DateSuffix besides the SD and ED parameters? Or did I misunderstand your response?
I would be perfectly happy to build all the queries inside BLS transactions. In the few cases, where they are not already contained in the BLS, we could throw a BLS wrapper around it and not pay much of a penalty in performance.
Thanks,
Mike -
.Using Oracle Heterogeneous Services Connectivity to SQL Server :ORA-02068
Hi,
I using oracle HS to connect sql server but error ora-02068: following server from HSSQL and ORA-03135 connection lost contact.
step by step
1. Create the init.ora file = initHSSQL.ora
HS_FDS_CONNECT_INFO = HSSQL
HS_FDS_TRACE_LEVEL = OFF
2. modified listener.ora file
SID_LIST_LISTENERHSSQL =
(SID_LIST =
(SID_DESC=
(SID_NAME=HSSQL)
(ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM=hsodbc)
LISTENERHSSQL =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = CEPITA1403.siam.local)(PORT = 1521))
and start listernerHSSQL = pass
3.modified tnsname.ora :
HSSQL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = CEPITA1403.siam.local)(PORT = 1521))
(CONNECT_DATA =
(SID = HSSQL)
(HS = OK)
and test by tnsping HSSQL = OK
4.setup ODBC SQL Server
Start --> Control Panel --> Administrative Tools --> Data Sources (ODBC)
Click on the ‘System DSN’ tab.
Click ‘Add’.
Name HSSQL
Click ‘Test Data Source…’.--> Pass
5
create public database link HSSQL
connect to sa
identified by xxxxxxxx
using 'HSSQL';
Database Link created.
6. select * from ACCOUNT_CODE@HSSQL;
show error message : ora-02068: following server from HSSQL and ORA-03135 connection lost contact.
Please let me know.
rose
Edited by: user7218901 on Mar 25, 2009 12:39 AMDo you have all of your parameter files set up correctly?
You need to have a hsora file in the hs/admin directory for ioi for instance, initioiDB.ora. In this file you need to set up your hs init parameters. This is an example of what's in one of mine:
HS_FDS_CONNECT_INFO = Mapics
HS_DB_NAME = MAPICS
HS_DB_DOMAIN = WORLD
HS_FDS_TRACE_LEVEL = ON
The you need to have an entry in the tnsnames.ora file in the network/admin directory for hsodbcxtrad. The sid should be set to ioiDB.
You can find documentation on how to manage heterogenous services in the online documentation.
Managing Heterogenous Services Using Generic Connectivity
Hope this helps
Eric
I have been trying to set up a database link between Oracle and SQL Server, currently both on the same Windows NT machine.
I managed to create the link as follows:
CREATE PUBLIC DATABASE LINK ioi
CONNECT TO IOItest IDENTIFIED BY mba
USING 'hsodbcxtrad';
The link is created successfully.
I then try to run a query and get the following error :
select * from dealer@ioi
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_InitTdp: [Microsoft][ODBC SQL Server
Driver][SQL Server]Login failed for user '\'. (SQL State: 28000; SQL Code:
18456)
ORA-02063: preceding 2 lines from IOI
I have added a UID and PWD to the registry settings for the SQL Server DSN but this makes no difference. Do I need to specify a username and password somewhere else ?
Thanks
Hugh -
Error in oracle application server connection
The following error appears when I try to add and test oracle application server connection in JDev 10.1.3 :
Error getting OC4J Process for: opmn-home+oc4j-Orbit-7777-default:
Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []
please what I can do to solve this problemHi
The OS is windows XP. The steps are as the following
1. Start Oracle process manager
2. from connections tap; right click on Application server and select new application server connections
3. enter connection name and select type from the list “oracle application server 10g 10.1.3 and press next
4. enter user name and password then next
5. enter hostname which is my PC name='Orbit' , OPMN port = 7777, OC4J instant name = “home” and select ‘single instant ‘
6. test the connection
7. get error
“Error getting OC4J Process for: opmn-home+oc4j-orbit-7777-default:
Error while parsing OPMN dump in XML format: XML Parse Exception: tag=[null] Ran out of data, content []” -
Only 'oracle' account can connect via sqlplus
Currently, only the linux oracle account can connect to the
server via sqlplus. A have put an exact copy of oracle's
.profile script into other accounts home directories, and those
accounts belong to the linux dba group. When another account
starts sqlplus, they are prompted with login and password, and
the the following error occurs:
ORA-01034 ORACLE NOT AVAILABLE
But if I login as 'oracle', i can connect no problem. I always
start the server under the oracle account with the dbstart
script.
I am probably overlooking something stupid, any ideas?
Please email me directly in addition to the post.
Thanks,
Randon Ethan Loeb
[email protected]
nullThere is nothing to do with your .profile, default password, etc.
After Oracle installation via the installer (orainst), have you
run root.sh? Root.sh will set the setuid/setgid bit on for the
file $ORACLE_HOME/bin/oracle. If it is not set, only the owner
(i.e. oracle/dba) can connect.
Fix the problem by rerun root.sh. If it doesn't help, simply run
the commands:
$ chown oracle:dba $ORACLE_HOME/bin/oracle
$ chmod ug+s $ORACLE_HOME/bin/oracle
Kevin (guest) wrote:
: Not sure if this makes a difference, but I use bash (many
: distributions default shell, especially redhat) and I believe
the
: user's profile for that shell is .bash_profile. Also, try sys
as
: your default password for the production release, for some
: strange reason, that's what my default password was.
: Kevin
: Ronald Jeninga (guest) wrote:
: : Hi,
: : did you verify the success of the dbstart-script? i.e. are
all
: : ORACLE processes running?
: : % ps ax | grep oracle
: : ... some output ...
: : What happens if you start ORACLE manually?
: : % svrmgrl
: : > connect internal
: : > startup
: : ... some output ...
: : > quit
: : do you provide the correct user/password combination?
: : % sqlplus scott/tiger # might be different on your system
: : # if you instaled the db together with
: : # the rest, scott/tiger probably
exists
: : if you connect as ORACLE, can you use your DB?
: : % svrmgrl
: : > connect internal
: : > select * from dual;
: : ... some output ...
: : these are my first thoughts, might be valuable might be not.
: : Ronald
: : Randon Ethan Loeb (guest) wrote:
: : : Currently, only the linux oracle account can connect to the
: : : server via sqlplus. A have put an exact copy of oracle's
: : : .profile script into other accounts home directories, and
: those
: : : accounts belong to the linux dba group. When another
account
: : : starts sqlplus, they are prompted with login and password,
: and
: : : the the following error occurs:
: : : ORA-01034 ORACLE NOT AVAILABLE
: : : But if I login as 'oracle', i can connect no problem. I
: always
: : : start the server under the oracle account with the dbstart
: : : script.
: : : I am probably overlooking something stupid, any ideas?
: : : Please email me directly in addition to the post.
: : : Thanks,
: : : Randon Ethan Loeb
: : : [email protected]
null -
Ms SqlServer connection: where is the database?
I'm connecting to MS SQL 2000 with a user that is owner of the database i want to convert into oracle. The connection is OK, but when i connect i cannot see the database and its tables. The same if i connect with user "sa".
Can anybody help me?Hi,
I'm not sure where the problem is, I think it is more how SQL Server is implemented, whenever we look for tables they always appear under the 'dbo' schema regardless of who created them. All that JDeveloper does is query the Database metadata.
Regards,
Lisa -
Oracle to sqlserver 2000 connection
Hi
I recently made a connection from oracle9i (solrais 10) to sql server 2000(V 8.0).
I'm encountering following issue, if someone could help me that would really great.
SQL Error: ORA-28536: error in processing Heterogeneous Services initialization parameters
ORA-28508: invalid value TITANSTAGE for Heterogeneous Services initialization parameter HS_DB_NAME
ORA-02063: preceding 2 lines from TITANSTAGE
28536. 00000 - "error in processing Heterogeneous Services initialization parameters"
*Cause: An error described by a subsequent error message
prevented successful processing of Heterogeneous Services
initialization parameters from the ORACLE server data dictionary.
*Action: Check server data dictionary views HS_CLASS_INIT, HS_INST_INIT, and
HS_ALL_INITS. Look for conditions which could produce
the error identified in the error message immediately
following this one.
Below is the listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shark)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = shark)(PORT = 1523))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = hsmsql)
(ORACLE_HOME = /z01/app/oracle/product/9.2.0.7)
(PROGRAM = hsodbc)
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = /z01/app/oracle/product/9.2.0.7)
(SID_NAME = ititanstage)
Tnsnames.ora
hstitanstage=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = 135.63.14.54)
(PORT = 1521)
(CONNECT_DATA =
(SID =ititanstage)
(HS=)
Value from initititanstage.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 = titan
HS_DB_NAME = TITANSTAGE
#HS_DB_DOMAIN= 10.32.130.52
#HS_FDS_TRACE_LEVEL = 4
HS_FDS_SHAREABLE_NAME=/usr/openlink/lib/libiodbc.so
HS_FDS_TRACE_FILE_NAME = /tmp/HSODBC/iniths9i.trc
#HS_OPEN_CURSORS=2
# ODBC specific environment variables
set ODBCINSTINI=/usr/openlink/bin/odbcinst.ini
set ODBCINI=/usr/openlink/bin/odbc.ini
# Environment variables required for the non-Oracle system
#set <envvar>=<value>
set OPENLINKINI=/usr/openlink/bin/openlink.ini
set FREETDSCONF=/usr/openlink/bin/freetds.conf
set OPL_LICENSE_DIR=/usr/openlink/bin
set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/openlink/lib
set PATH=$PATH:/usr/openlink/bin
odbc.ini
[titan]
Driver = /usr/openlink/lib/sql_mt_lt.so
ServerType = SQLServer 2000
Username = reader
Password = reader
Database = titanstage
Options = -H 135.63.14.153 -P 1433 -V 8.0
FetchBufferSize = 99
ReadOnly = no
DeferLongFetch = no
JetFix = no
Description = Titanstage SQLServer 2000 Lite ConnectionIts good to you,
I am having a similar problem: I get ORA-28508 from oracle gateway. When I try to connect mssql server from sqlplus.
Everything goes fine when I connect on port 1433. So I think the root of my problem is that I specify the port number in the wrong way:
HS_FDS_CONNECT_INFO="address='hostname/instancename' port='1106'"
If your problem was similar or the same, then you could help me by by posting your solution.
Cheers,
Adam Balogh
DBA
Maybe you are looking for
-
How can I stream from iTunes 11.3 to my AppleTV?
I had enabled Home Sharing on my iTunes 11.3 from Windows XP and also enabled the Home Sharing in the AppleTV 3rd-gen. But I still cannot see the AppleTV in the list of available streaming devices from iTunes (stream icon at the right of the volume b
-
How can i create a new folder in pcd via java APIs?? Regards
-
Error Handling: VI response to any error
Hey guys, I need to make sure a piece of code executes whenever there is any error in the VI. I'm pretty new to Labview, and cannot wrap my head around "extracting" the errors, so I can pass them into an error handler... All I want, is for my code to
-
I have 2 CD's by Alan Jackson. Only one shows up under "artists". The other CD is located in "more" and then "albums". How do i make both CD's appear in my "artists" lists?
-
OK, I can't imagine that this is something that Logic missed out, probably just an oversight on my part, but Ive dedicatad some time to this and still no answer, so here goes: I use Logic 8.0, Ive noticed that with the exception of volume level autom