SQL Server interfaces through Schduler Agent
Hi All,
I have a SQL server source and 1 oracle source.For running the SQL server through agent , I have updated the odiparams.sh file as
ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
ODI_SECU_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
ODI_SECU_URL=jdbc:oracle:thin:@<hostno>:1521:DWHPROD1
ODI_SECU_URL=jdbc:sqlserver://<hostno>:1433
ODI_SECU_USER=odimaster
ODI_SECU_ENCODED_PASS=aYyXCYqP5mHizfQzZJqURp
ODI_SECU_WORK_REP=WORKREP
ODI_USER=SUPERVISOR
ODI_ENCODED_PASS=a7yXqYMFSzGapZjJUIq7CQ4np
I'm able to execute the SQL server interfaces through this using the listener agent.
I start the agent using
./agent.sh -port=20911
ANd the agent starts.
However when I try to start the scheduler agent using
./agentscheduler.sh -name="Test_Agent" -port=20911
it gives me error
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user odimaster
Now if i remove the sql related things from the odiparams i.e remove these statements
ODI_SECU_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
ODI_SECU_URL=jdbc:sqlserver://<hostno>:1433
After removing these statements,the scheduler agent works fine.
I want to start the scheduler agent for SQL SERVER interfaces as well.Please let me know if you have any pointers for the same.
Thanks,
Pritika
Hi ,
ODI_SECU_DRIVER and ODI_SECU_URL is related to ODI master repository .
You can have single master repository only which in turn can have multiple work repository .
So odiparams.sh file can have only 1 entry for ODI_SECU_DRIVER and ODI_SECU_URL.
You define your source and target data server information in Topology which will be stored in ODI repository .
You don't have to specify the data server information in odiparams.sh .
Regarding "whereas with these statements in odiparams.sh,Im able to execute the SQL Server interfaces using an agent"
agent will not look into odiparams.sh file for repository parameters .. that is why it is working .
But agentscheduler looks for repository parameters in odiparams.sh .. and your odiparams.sh file is not correct .. that is why it is failing .
Thanks,
Sutirtha
Similar Messages
-
Oracle 10g connectivity with sql server 2000 through oracle transpa gateway
dear gurus.
i am to connecto oracle 10g with sql server 2000 through oracle transparent gateway.
i have installed transparent gateway and proper configured. also link is created.
but when i execute query "select * from city@inventory" , so an error displayed.
ORA-12500: TNS:listener failed to start a dedicated server process.
kindly suggest me what could be the cause.
regards,if the listener fails to spawn a dedicated server process it is commonly indicating an issue with the listener. So posting the listener and also a listener trace including a description of the env where you installed the gateway into which directory would be helpfull. Please keep also in mind if you have for example a 10.2.0.3 database and you install into this directoty a 10.2.0.1 gateway you have to reapply the patchset again do get consistent file version.
So please describe more detailed your env. -
Call SQL Server function through the gateway
Hello, Does anyone know if it is possible to call a SQL Server system function such as SERVERPROPERTY through the gateway?
I'd like to call a system function in the same way as a user defined function and not using DBMS_HS_PASSTHROUGH.Maybe I need to be a little bit more precise. It really depends on the data types being returned. When you look at the SERVERPROPERTY function you mentioned earlier and try to select for example the Collation, then SQl Server will return a SQL_VARIANT data type and that will fail - even using passthrough as SQL_VARIANT is not a supported data type.
Let me use the passthrough example as it allows me to demonstrate it easily:
SQL> SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 begin
6 c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
7 dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT SERVERPROPERTY(''Collation'') as Collation');
8 LOOP
9 nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
10 exit when nr=0;
11 dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
12 dbms_output.put_line(val);
13 end loop;
14 dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
15 end;
16 /
declare
ERROR at line 1:
ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=ORA-28511: lost RPC connection to heterogeneous remote agent using
SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=emeagtw.de.oracle.com)(PORT=11231)
)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=dg4msql)))
ORA-02063: preceding line from DG4MSQL_EMGTW_1123_DB
ORA-06512: at line 6
Process ID: 16919
Session ID: 148 Serial number: 16721
When I now make sure the return value is a char data type by slightly modifying the select and including a convert it will work:
SQL> declare
2 val varchar2(100);
3 c integer;
4 nr integer;
5 begin
6 c:= dbms_hs_passthrough.open_cursor@DG4MSQL_EMGTW_1123_DB;
7 dbms_hs_passthrough.parse@DG4MSQL_EMGTW_1123_DB (c, 'SELECT convert(char,SERVERPROPERTY(''Collation'')) as Collation');
8 LOOP
9 nr:= DBMS_Hs_Passthrough.fetch_row@DG4MSQL_EMGTW_1123_DB(c);
10 exit when nr=0;
11 dbms_hs_passthrough.get_value@DG4MSQL_EMGTW_1123_DB(c,1,val);
12 dbms_output.put_line(val);
13 end loop;
14 dbms_hs_passthrough.close_cursor@DG4MSQL_EMGTW_1123_DB(c);
15 end;
16 /
SQL_Latin1_General_CP1_CI_AS
PL/SQL procedure successfully completed.
Just in case you have a procedure that returns the correct data type you have to make sure the gateway is configured correctly which means the parameter
HS_FDS_PROC_IS_FUNC needs to be set to TRUE and the function you want to call is listed in the HS_CALL_NAME parameter.
Here for a userdefined function I have to specify:
HS_FDS_PROC_IS_FUNC=TRUE
HS_CALL_NAME = "dbo.fx_SumTwoValues"
and then the udf based select:
SQL> SELECT "dbo"."fx_SumTwoValues"@DG4MSQL_EMGTW_1123_DB('7','8') AS SumOfTwoValues from "dummy"@DG4MSQL_EMGTW_1123_DB;
SUMOFTWOVALUES
15
- Klaus -
How to connect a PDF form to SQL server database through web service?
Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice.Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice. -
Not able to connect to database(MS SQL Server 2000) through JSTL tag
Hi,
I just want to retrieve some data from the database through a JSP page.I am using JSTL tags the code is as shown below. Whenever i execute this code i get an error message like this
My Code:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
<sql:setDataSource var="datasource"
driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:mssqlserver:sqlserver://SYS57:1433;DatabaseName= sree"
user=" "
password=" "/>
<sql:query var="res" dataSource="${datasource}">
SELECT * FROM books
</sql:query>
<html>
<head>
<title>A First JSP Database</title>
</head>
<body>
<table border="1">
<tr>
<td>id</td><td>title</td><td>price</td>
</tr>
<c:forEach items="${res.rows}" var="row">
<tr>
<td><c:out value="${row.id}" /></td>
<td><c:out value="${row.name}" /></td>
<td><c:out value="${row.author}" /></td>
</tr>
</c:forEach>
</table>
</body>
</html>error is this:
javax.servlet.ServletException: Unable to get connection, DataSource invalid: "No suitable driver"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.firstdb_jsp._jspService(org.apache.jsp.firstdb_jsp:93)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)root cause
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "No suitable driver"
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:308)
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:192)
org.apache.jsp.firstdb_jsp._jspx_meth_sql_query_0(org.apache.jsp.firstdb_jsp:132)
org.apache.jsp.firstdb_jsp._jspService(org.apache.jsp.firstdb_jsp:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)I am not clear with url attribute of setDatasource tag... I feel the error is because of that line only..... Kindly tell me how to specify the jdbc URL for MS SQL Server 2000 while using JSTL tags for connection.
Thanks,
Akshathaunable to rectify the error........ tried lot but all in vain...still trying........
my current code is:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql_rt" %>
<sql:setDataSource var="datasource" driver="com.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:microsoft:sqlserver://SYS57:1433;databaseName=sree" user="sa"
password="dfgdfg"/>
<sql:query var="res" dataSource="${datasource}">
SELECT * FROM books
</sql:query>
<html>
<head>
<title>A First JSP Database</title>
</head>
<body>
<table border="1">
<tr>
<td>id</td><td>title</td><td>price</td>
</tr>
<c:forEach items="${res.rows}" var="row">
<tr>
<td><c:out value="${row.id}" /></td>
<td><c:out value="${row.name}" /></td>
<td><c:out value="${row.author}" /></td>
</tr>
</c:forEach>
</table>
</body>
</html>Thanks,
Akshatha -
Firing SQL Server Job Through Java
Hi All
How can I fire a SQL Server Job from Java. I am from data warehousing background and new to java. I process my cubes though a package in DTS and have encapsulated the package in a job.
I can connect to the SQL Server where the package & job reside.
Regards
AbhinavCan it be called like a stored procedure? If so (and probably it can) look into CallableStatement... a good first step would be to see how to run it through SQl statements in an admin tool (like QueryAnalyzer) to see how it can be invoked.
If it can be invoked through SQL at all you can call it in Java. Also be aware of permission issues. -
How to insert chinese data into MS SQL Server 2000 through JDBC
I am trying to insert chinese data into MS SQL server 2000 using JDBC. how to do this?
can anybody help me.
thanx.I am trying to insert chinese data into MS SQL server 2000 using JDBC. how to do this?
can anybody help me.
thanx. -
Plz its URGENT : Storing unicode data in MS SQL Server 2000 through JSPs
Hello All,
I'm trying to store unicode data, entered from JSP page into the SQL Server. For that I've tried the following :
1> I put tag -
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
2> Also set in JSP tag -
<%@page contentType="text/html;charset=UTF-8"%>
But, still data is being entered in ISO-8859-1 format, don't know why. I tried with function for convertion - private String toUniCode(String strPar)-it successfully shows me the unicode data in alret msg, but it doesn't enters unicode data in SQL Server. In SQL Server only '??????' get entered. I kept data-type in SQL Server as nvarchar to store data in unicode.
Would it be possible for me, to accept the data as UTF-8 itself & can I store it in SQL Server as it is? How can I do that? I'm accepting data in 'marathi' language.
Plz, anybody Help me, I'm trying for this from around more than 1 week.
Thanks in advance for any replies!Hello dmorris800,
Thanx for your help. In fact I've tried lot many alternatives for that. Later I realised that it was problame of Driver, not of code. I was using jdbc:odbc driver which doesn't support unicode, or I don't know what was the problame with it.
But I downloaded the driver named :'TaveConnect30C'. It is the connection optimised driver of Atinav.com This is the JDBC3 Type 4 Driver for MS SQL Server 6.5/7.0/2000 & trial version of which can be downloaded from http://www.atinav.com/download.htm
It is really very good type-4 Driver.
Cheers
-Yogesh -
Lock sql server table through DG4ODBC?
Hi
I'm using DG4ODBC to connect to SQL server 2008, querying data and insert to Oracle. Is it possible to lock the remote table in sql server, prohibit it from inserting any new record?
My Oracle version is 11.1.0.7.0, OS version : Red Hat Enterprise Linux Server release 5.3.
Thanks
Edited by: user1152556 on 21:20 06-05-2013by default the gateway starts its own transaction on the SQL Server side and as soon as you even execute a select it locks the data until you execute a commit (even when only selecting data). Unfortunately the amount of data being locked now depends on the SQL Server version and on the lock mode chosen by the SQl Server (row/page/table).
Another option would be to explicit set a transaction isolation level for your gateway session using the passthrough command:
DECLARE
ret integer;
c integer;
BEGIN
c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB;
DBMS_HS_PASSTHROUGH.PARSE@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB(c, 'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE');
ret := DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB(c);
dbms_output.put_line(ret ||' passthrough output');
DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@MSODBCSQLSERVER_DG4ODBC_EMGTW_1123_DB(c);
END;
Please check out your SQL Server documentation which isolation level will fit for your needs.
- Klaus -
SSIS Import XML task running in SQL Server Agent fails
I have created an SSIS package to import some XML files into my SQL2014 datawarehouse. If I run this package through the visual studio designer it works fine. The XML files are stored on a remote share accessed via UNC path. When I schedule the package to
run using SQL server agent it fails with the following errors :-
Executed as user: SPRINGFIELD\MSSQL. Microsoft (R) SQL Server Execute Package Utility Version 12.0.2000.8 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 12:01:53 Error: 2014-11-18 12:01:59.78
Code: 0xC02090CF Source: Import Screen XML XML Source [199] Description: There was an error setting up the mapping. The device is not ready. End Error Error: 2014-11-18 12:01:59.78
Code: 0xC0047019 Source: Import Screen XML SSIS.Pipeline Description: XML Source failed the prepare phase and returned error code 0xC02090CF. End Error DTExec: The package execution returned DTSER_FAILURE
(1). Started: 12:01:53 Finished: 12:03:32 Elapsed: 98.859 seconds. The package execution failed. The step failed.
The user MSSQL has been granted full permissions to the remote share. If I remove these permissions then I don't get an error - but I also don't get any data imported. I have granted the MSSQL user xp_cmdexec permission. Both my SQL server database engine
and agent are running as the MSSQL user.
There must be some permission step I am missing - can anyone tell me what it may be ?FYI: The XSD path is hardcode... if you want it to be more flexible you can add an expression on that property:
http://microsoft-ssis.blogspot.com/2014/09/xsd-location-hardcoded-in-xml-source.html
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
Hi. I am newer to SQL server security and am reviewing some of our SQL server's configuration to make sure the services are running under accounts with least privilege. I have a SQL server 2012 instance whose Agent service is configured to run
under an AD user account named 'SQLServices'. The jobs on this server are configured to run as 'SQL server agent service account', which means they should execute as user 'SQLServices'. The jobs are set up to execute SSIS packages which read and
write to a database on the same server where the agent job is scheduled and SSIS package installed (all on same server). The jobs are currently executing without error and are reading writing data correctly. Upon close examination, it turns out the
SQLServices account is not assigned to the 'sysadmin' role and had no users mapped to any databases on this server. How are these jobs working? I verified in profiler that the login name indeed is 'SqlServices'. I also verified
that SQLServices login has no database access by remote-ing onto the server and trying to log into the DB, and access was denied as expected. According to the literature, the Agent service needs to be a member of 'sysadmin role' but I am reading
some cases where that is not necessarily the case. So this is not so concerning. What is concerning is that the login 'SQLServices' had no access to the databases on that server yet it is reading and writing to the databases as if it does.
The only thing I can think of is maybe jobs run as 'SQL server agent service account' on the same server as the databases it r/w to somehow has some kind of default access. What am I missing here? Any input would be helpful.After 2 days on this forum I found the answer to my own question. In retrospect, I should have posted this under 'SQL Server Security', but I didn't know it existed.
The 2 threads below explain that Sql agent actually runs using SID (service) NT SERVICE\SQLSERVERAGENT if you chose that when you installed. This will automatically create an associated login NT SERVICE\SQLSERVERAGENT in SQL server with sqladmin
role. This is the login that Agent uses to connect to the local instance of SQL server. If you changed to domain account to run the service during install or after using config manager, basically NT SERVICE\SQLSERVERAGENT is still
used to connect to your local instance behind the scenes (even though you will still see your domain user as account), and the domain account is used to reach outside the server.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9e6bb2de-8fd0-45de-ab02-d59bbe05f72e/servicedatabase-accounts-nt-servicemssqlserver-nt-servicesqlserveragent-what-are-they-for
https://social.technet.microsoft.com/Forums/sqlserver/en-US/b83a52fd-fe11-4c28-a27b-88be8ae79f2a/how-do-i-change-sql-server-agent-service-account-to-nt-servicesqlserveragent?forum=sqlsecurity -
Transferring data from MS SQL Server to Oracle through Oracle's Stroed Procedure
Hi,
I need to access 3 tables of MS SQL Server database through oracle's Stroed procedure.
Is It possible? if yes how to do?
is there any way of accomplishing this?Yes. Using Attunity Connect native drivers for Oracle. Attunity Connect drivers are also licensed and resold by Oracle under the name "Oracle Transparent Gateways" or "Oracle Eterogeneous Services".
The OEM Oracle driver are "light" ones. The Attunity drivers are more complete. Consult www.attunity.com -
Automatically start SQL Agent service after SQL Server service fails and starts.
Hi!
I have SQL Server 2008 R2 with two main services - SQL Server and SQL Agent.
I'll try to describe my situation. It happens very occasionally, but sometimes SQL Server service terminates unexpectedly. It's my log:
09/13/2013 10:46:21,Service Control Manager,Error,The SQL Server (MSSQLSERVER) service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 120000 milliseconds: Restart the service.
09/13/2013 10:46:21,,Error,[359] The local host server is not running,,,,
09/13/2013 10:46:22,MSSQLSERVER,Error,The MSSQLSERVER service terminated unexpectedly.,Server,1073760843,,
09/13/2013 10:46:22,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #1)...,,,,
09/13/2013 10:46:27,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #2)...,,,,
09/13/2013 10:46:32,,Warning,[139] AutoRestart: Attempting to restart the MSSQLSERVER service (attempt #3)...,,,,
09/13/2013 10:46:32,,Error,[140] AutoRestart: The MSSQLSERVER service could not be restarted after 3 attempts,,,,
09/13/2013 10:46:32,,Warning,[360] SQLServerAgent initiating shutdown following MSSQLSERVER shutdown,,,,
As you can see, SQL Server service terminates unexpectedly. Then SQL Agent service tries to start SQL Server service. After unsuccessfully attempts to start SQL Server service, SQL Agent service stops itself. I have the option setting in SQL Server
service to start itself after unexpectedly stop within 2 minutes and it is works well. But I have to start my SQL Agent service after this manually. Unfortunately, I can't investigate the reason of my SQL Server stops unexpectedly and in this case I just want
to make the settings to start both of my services SQL Server and SQL Agent automatically after this. How can I set up this? How can I make my SQL Agent service starts after SQL Server service?Hello,
SQL server agent service depends on SQL server service so unless SQL server service comes online agent will not come online so agent is depended on SQL server not the other wise.
Now is your server 2008 R2 patched to latest service pack (SP2).If not please upgrade it to latest SP.Some fixes are there in Sp which will subside this issue.Can you paste output of
select @@version
>>Then SQL Agent service tries to start SQL Server service.No this is not the case
>>Unfortunately, I can't investigate the reason of my SQL Server stops unexpectedly
Did you checked sql server errorlog and windows event log completely.Please do so and paste if you find some more info
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Linking to SQL Server using DG4ODBC
Hi all,
I've configured Oracle 11g R1 for Windows 2003 Server 32-bit to connect to MS SQL Server 2005 through ODBC.
Following is the error I got when I try to access SQL Server by the db link in Oracle:
SQL> select sysdate from dual@sqls ;
select sysdate from dual@sqls
ERROR at line 1:
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 SQLSThe ODBC link to the SQL Server was successfully tested.
The listener, however, returned error as shown below.
/* The file E:\Oracle\OraDb11g\hs\admin\initsqls.ora */
HS_FDS_CONNECT_INFO = sqls
HS_FDS_TRACE_LEVEL = 1
/* Listener.ora */
LISTENER =
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=sqls)
(ORACLE_HOME=E:\Oracle\OraDb11g)
(PROGRAM=dg4odbc)
/* tnsnames.ora */
sqls =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=sqls))
(HS=OK)
/* sqlnet.ora */
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME)
/* testing the connection */
E:\Oracle\OraDb11g\BIN>tnsping sqls
TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 14-JUN-2
010 09:36:35
Copyright (c) 1997, 2007, Oracle. All rights reserved.
Used parameter files:
E:\oracle\OraDb11g\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=sqls)) (HS=OK))
OK (20 msec)
/* code to create the db link */
CREATE PUBLIC DATABASE LINK sqls CONNECT TO
"SRV11\Administrator" IDENTIFIED BY "ospassword" using 'sqls';
/* Contents of Listener Log */
Mon Jun 14 11:25:59 2010
14-JUN-2010 11:25:59 * trc_level * 0
14-JUN-2010 11:26:06 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=185599488)) * status * 0
Mon Jun 14 11:26:22 2010
14-JUN-2010 11:26:22 * (CONNECT_DATA=(SID=sqls)(CID=(PROGRAM=)(HOST=WORKGROUP\SRV10)(USER=SRV10\Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3333)) * establish * sqls * 12505
TNS-12505: TNS:listener does not currently know of SID given in connect descriptorAny hint is appreciated.You did create a DUAL table in the Sqlserver database?
Sybrand Bakker
Senior Oracle DBA -
Can't get Gateway to SQL Server to work...
Error from Oracle database when trying to access SQL Server DB, through DB Link that was set up in Oracle:
ORA-02068: following severe error from PMCDEV ORA-03114: not connected to ORACLE
Trace from gateway (for above Oracle error):
Remote HO Agent received unexpected RPC disconnect
status 2: ncrorpi_recv_procid, called from horg.c
(Gateway, Oracle Server, SQL Server on seperate machines.
Using Oracle 8.1.6, SQL Server 2000 on NT 4)
Because of the fact that the gateway creates a trace file, I assume that the listener etc is configured correctly and that the problem is on the gateway, not being able to connect to the SQL Server database or something. I have installed SQL Server client side software on gateway machine as a test, and it can connect to the SQL Server database with no problems.
What else needs to be installed on the gateway machine, except for the Gateway installation and the configuration as in the Oracle documentation? I have tried all kinds of different configurations but always get same result. I know it's probably something stupid that I overlooked, but I can't find the problem...I've included what I can here, hope it's enough info.
What would be other possible reasons for the error that I'm getting? (not connected to ORACLE) Would it be
possible to get gateway working with SQL Server 2000 without upgrading the Oracle database? (not my database, and client does not want to upgrade now) Are there any tools available to test that the setup worked, or pinpoint the problem if any?
inittg4msql.ora
HS_FDS_CONNECT_INFO=pmc_dev.pmcdev
HS_FDS_TRACE_LEVEL=on
HS_FDS_RESULTSET_SUPPORT=true
listener.ora (on gateway machine)
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(SID_NAME=tg4msql)
(ORACLE_HOME=E:\Oracle\Ora81)
(PROGRAM=tg4msql)
tnsnames.ora (on Oracle Server and Gateway machine)
tg4msql.investec.co.za =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.100.85.204)(PORT = 1521))
(CONNECT_DATA =
(SID = tg4msql)
(HS=OK)
DB Link
CREATE PUBLIC DATABASE LINK pmcdev.investec.co.za
CONNECT TO MAVEN IDENTIFIED BY *
USING 'tg4msql.investec.co.za'
For the trace file...
I was not sure how or where to set the trace level to debug, but here's what I could come up with...
(For trying to do: 'SELECT * FROM all_tables@pmcdev')
tg4msql_agt_???.trc (Gateway trace file (HS_FDS_TRACE_LEVEL=on))
Remote HO Agent received unexpected RPC disconnect
status 2: ncrorpi_recv_procid, called from horg.c
listener.trc (Listener trace file (trc_level = support)) - Don't know if this is what you asked for...
sntseltst: FOUND: connection request on socket 164
nsevwait: 1 newly-posted event(s)
nsevfnt: cxd: 0x4d4100 stage 0: NT events set:
CONNECTION REQUEST
nsevfnt: cxd: 0x4d4100 stage 0: NS events set:
INCOMING CALL
nsevwait: event is 0x1, on 1
nsevwait: 1 posted event(s)
nsevwait: exit (0)
nsglhe: entry
nsglhe: Event on cxd 0x4d4100.
nsglhc: Allocating cxd 0x4d7100
nsanswer: entry
nsopen: entry
nsmal: entry
nsmal: 428 bytes at 0x4d7270
nsmal: normal exit
nsopenmplx: entry
nsmal: entry
nsmal: 1712 bytes at 0x1bad650
nsmal: normal exit
nsopenmplx: normal exit
nsopen: opening transport...
nttcon: entry
nttcon: toc = 3
nttcnp: entry
ntvlin: entry
ntvlin: exit
nttcnp: Validnode Table IN use; err 0x0
nttcnp: getting sockname
nttcnp: exit
nttcnr: entry
nttcnr: waiting to accept a connection.
nttvlser: entry
nttvlser: valid node check on incoming node 10.0.32.106
nttvlser: Accepted Entry: 10.0.32.106
nttcnr: exit
nttcon: NT layer TCP/IP connection has been established.
nttcon: exit
nsopen: transport is open
nsnainit: entry
nsnainit: answer
nsnadct: entry
nsnadct: normal exit
nsnasvnainfo: entry
nsnasvnainfo: NA disabled for this connection
nsnasvnainfo: normal exit
nainit: entry
nagblini: entry
nau_gin: entry
nau_gparams: entry
nam_gbp: Reading parameter "sqlnet.authentication_required" from parameter file
nam_gbp: Parameter not found
nau_gparams: Using default value "FALSE"
nau_gslf: entry
nam_gic: entry
nam_gic: Counting # of items in "sqlnet.authentication_services" parameter
nam_gic: Parameter not found
nam_gic: Found 0 items
nam_gic: exit
nau_gslf: Using default value "all available adapters"
nauss_set_state: entry
nauss_set_state: exit
nau_gslf: exit
nau_gparams: exit
nau_gin: exit
nagblini: exit
na_saveprot: entry
na_saveprot: exit
nacomin: entry
nas_init: entry
nas_init: exit
nau_ini: entry
naugcp_get_connect_parameters: entry
nauss_set_state: entry
nauss_set_state: exit
naugcp_get_connect_parameters: exit
nau_gettab: entry
nau_tadv: entry
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: orank58.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: orangss8.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oranidx8.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oransid8.dll
nau_fad: exit
nau_fad: entry
nau_fad: exit
nau_fad: entry
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oranoss8.dll
nau_fad: exit
nau_fad: entry
nau_fad: The following authentication adapter dll does not exist: oranrad8.dll
nau_fad: exit
nau_tadv: Found at least one invalid entry
nau_tadv: exit
nau_gettab: using authentication adapter table "dynamic table"
nau_gettab: dynamic table contains the following services:
nau_gettab: NDS
nau_gettab: NTS
nau_gettab: exit
nau_sini: entry
nau_sini: exit
nau_ini: connection type: "standard"
nau_ini: exit
naeeinit: entry
nam_gbp: Reading parameter "SQLNET.FIPS_140" from parameter file
nam_gbp: Parameter not found
nam_gnsp: Reading parameter "SQLNET.ENCRYPTION_SERVER" from parameter file
nam_gnsp: Parameter not found
naequad: Using default value "ACCEPTED"
nam_gic: entry
nam_gic: Counting # of items in "SQLNET.ENCRYPTION_TYPES_SERVER" parameter
nam_gic: Parameter not found
nam_gic: exit
naesno: Using default value "all available algorithms"
naeshow: entry
naeshow: These are the encryption algorithms that the server will accept, in decreasing order of preference:
naeshow: Choice 0: no algorithm; encryption inactive
naeshow: exit
naeeinit: exit
naecinit: entry
nam_gnsp: Reading parameter "SQLNET.CRYPTO_CHECKSUM_SERVER" from parameter file
nam_gnsp: Parameter not found
naequad: Using default value "ACCEPTED"
nam_gic: entry
nam_gic: Counting # of items in "SQLNET.CRYPTO_CHECKSUM_TYPES_SERVER" parameter
nam_gic: Parameter not found
nam_gic: exit
naesno: Using default value "all available algorithms"
naeshow: entry
naeshow: These are the checksumming algorithms that the server will accept, in decreasing order of preference:
naeshow: Choice 0: no algorithm; checksumming inactive
naeshow: exit
naecinit: exit
nainit: native services disabled - disconnecting
nadisc: entry
nacomtm: entry
nacompd: entry
nacompd: exit
nacompd: entry
nacompd: exit
nacomtm: exit
nas_dis: entry
nas_dis: exit
nau_dis: entry
nau_fad: exit
nau_dis: exit
naeetrm: entry
naeetrm: exit
naectrm: entry
naectrm: exit
nagbltrm: entry
nau_gtm: entry
nau_gtm: exit
nagbltrm: exit
nadisc: exit
nainit: exit
nsnainit: NS Connection version: 310
nsnainit: inf->nsinfflg[0]: 0xd inf->nsinfflg[1]: 0xd
nsnainit: "or" info flags: 0xd Translations follow:
native service(s) is (are) wanted
NA disabled remotely for this connection
NA services unavailable on both processes - negotiation not needed
nsnainit: "or" info flags: 0xd Translations follow:
native service(s) is (are) wanted
NA disabled remotely for this connection
NA services unavailable on both processes - negotiation not needed
"and" info flags: 0xd Translations follow:
native service(s) is (are) wanted
NA disabled remotely for this connection
NA services unavailable on both processes - negotiation not needed
nsnainit: normal exit
nsopen: global context check-in (to slot 4) complete
nsopen: lcl[0]=0x1fefff, lcl[1]=0x12003, gbl[0]=0x783f, gbl[1]=0x2001, tdu=32767, sdu=8192
nsdo: entry
nsdo: cid=4, opcode=65, bl=0, what=0, uflgs=0x0, cflgs=0x2
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=7, flg=0x4200, mvd=0
nsbal: entry
nsbgetfl: entry
nsbgetfl: normal exit
nsbal: normal exit
nsbal: entry
nsbgetfl: entry
nsbgetfl: normal exit
nsbal: normal exit
nsdo: nsctxrnk=0
nsdo: normal exit
nsopen: normal exit
nsanswer: deferring connect attempt; at stage 5
nsanswer: normal exit
nsevreg: entry
nsevreg: begin registration process for 4
nsevregPrePost: entry
nsevregPrePost: normal exit
nsevreg: sgt=0, evn=1, evt[2]=0x0
nsevreg: begin notification process for 4
nsevregAffectNotif: entry
nsevregAffectNotif: exit (0)
nsevreg: rdm=0, sgt=0, evt[0]=0x20, [1]=0x20, [2]=0x0, nrg=0
nsevreg: registering for 0x20
nsevreg: normal exit
nsglhe: exit
nsevwait: entry
nsevwait: 3 registered connection(s)
nsevwait: 1 added to NT list for 0x8
nsevwait: 3 added to NT list for 0x8
nsevwait: 4 added to NT list for 0x2
nsevwait: 0 pre-posted event(s)
nsevwait: waiting for transport event (1 thru 4)...
ntctst: size of NTTEST list is 2 - calling poll
ntctspoll: Testing for 2 cxds on protocol select
sntseltst: Testing for CONNECTIONS on socket 164
sntseltst: Testing for DATA on socket 208
ntctspoll: Testing for 1 cxds on protocol Named Pipes NT Protocol Adapter
sntseltst: FOUND: read request on socket 208
nsevwait: 1 newly-posted event(s)
nsevfnt: cxd: 0x4d7100 stage 5: NT events set:
READ
nsevfnt: cxd: 0x4d7100 stage 5: NS events set:
OUTGOING CALL COMPLETE
nsprecv: entry
nsbal: entry
nsbgetfl: entry
nsbgetfl: normal exit
nsbal: normal exit
nsprecv: reading from transport...
nttrd: entry
nttrd: socket 208 had bytes read=257
nttrd: exit
nsprecv: 257 bytes from transport
nsprecv: tlen=257, plen=257, type=1
nsprecv: normal exit
nsevfnt: cxd: 0x4d7100 stage 5: NT events set:
READ
nsevfnt: cxd: 0x4d7100 stage 5: NS events set:
OUTGOING CALL COMPLETE
nsevdansw: entry
nsevdansw: at STAGE 5
nsdo: entry
nsdo: cid=4, opcode=68, bl=2040, what=8, uflgs=0x0, cflgs=0x3
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=14, flg=0x4204, mvd=0
nsdo: gtn=0, gtc=0, ptn=10, ptc=8191
nscon: entry
nscon: doing connect handshake...
nscon: recving a packet
nsprecv: entry
nsprecv: 257 bytes from leftover
nsprecv: tlen=257, plen=257, type=1
nsprecv: packet dump
nsprecv: 01 01 00 00 01 00 00 00 |........|
nsprecv: 01 36 01 2C 00 00 08 00 |.6.,....|
nsprecv: 7F FF A3 0A 00 00 01 00 |........|
nsprecv: 00 C7 00 3A 00 00 02 00 |...:....|
nsprecv: 21 21 00 00 00 00 00 00 |!!......|
nsprecv: 00 00 00 00 01 5A 00 EF |.....Z..|
nsprecv: 10 02 00 00 00 00 00 00 |........|
nsprecv: 00 00 28 44 45 53 43 52 |..(DESCR|
nsprecv: 49 50 54 49 4F 4E 3D 28 |IPTION=(|
nsprecv: 41 44 44 52 45 53 53 3D |ADDRESS=|
nsprecv: 28 50 52 4F 54 4F 43 4F |(PROTOCO|
nsprecv: 4C 3D 54 43 50 29 28 48 |L=TCP)(H|
nsprecv: 4F 53 54 3D 69 6E 76 31 |OST=inv1|
nsprecv: 30 35 2E 70 76 62 2E 63 |05.pvb.c|
nsprecv: 6F 72 70 2E 69 6E 76 65 |orp.inve|
nsprecv: 73 74 65 63 2E 63 6F 6D |stec.com|
nsprecv: 29 28 50 4F 52 54 3D 31 |)(PORT=1|
nsprecv: 35 32 31 29 29 28 43 4F |521))(CO|
nsprecv: 4E 4E 45 43 54 5F 44 41 |NNECT_DA|
nsprecv: 54 41 3D 28 53 49 44 3D |TA=(SID=|
nsprecv: 74 67 34 6D 73 71 6C 29 |tg4msql)|
nsprecv: 28 48 53 3D 4F 4B 29 28 |(HS=OK)(|
nsprecv: 43 49 44 3D 28 50 52 4F |CID=(PRO|
nsprecv: 47 52 41 4D 3D 64 3A 5C |GRAM=d:\|
nsprecv: 6F 72 61 63 6C 65 5C 6F |oracle\o|
nsprecv: 72 61 38 31 5C 62 69 6E |ra81\bin|
nsprecv: 5C 4F 52 41 43 4C 45 2E |\ORACLE.|
nsprecv: 45 58 45 29 28 48 4F 53 |EXE)(HOS|
nsprecv: 54 3D 49 49 42 5F 49 4E |T=IIB_IN|
nsprecv: 53 49 47 48 54 32 4B 29 |SIGHT2K)|
nsprecv: 28 55 53 45 52 3D 50 54 |(USER=PT|
nsprecv: 72 75 74 65 72 29 29 29 |ruter)))|
nsprecv: 29 00 00 00 00 00 00 00 |).......|
nsprecv: normal exit
nscon: got NSPTCN packet
nsconneg: entry
nsconneg: vsn=310, lov=300, opt=0x0, sdu=2048, tdu=32767, ntc=0xa30a
nsconneg: vsn=310, gbl=0x1, sdu=2048, tdu=32767
nsconneg: normal exit
nscon: got 199 bytes connect data
nscon: exit (0)
nsdo: nsctxrnk=0
nsdo: normal exit
nsevdansw: exit
nttctl: entry
nttctl: Clearing non-blocking mode
nsevwait: event is 0x20, on 4
nsevwait: 1 posted event(s)
nsevwait: exit (0)
nsglhe: entry
nsglhe: Event on cxd 0x4d7100.
nsglfc: Assume establishing a connection: look for SID
nsglfc: command = establish
nttaddr2bnd: entry
nttaddr2bnd: exit
nsbequeath: entry
nsc2addr: entry
nlpcaini: entry
nlpcaini: prg =
nlpcaini: arg[0] =
nlpcaini: arg[1] =
nlpcaini: exit
nsc2addr: normal exit
nsbeqaddr: entry
nsbeqaddr: connecting...
ntpcon: entry
ntpcon: toc = 1
sntpcall: entry
snlpcss: entry
snlpcss: exit
sntpcall: Attempting to open pipe \\.\PIPE\ORANTP110.10A
sntpcall: Successfully established pipe 228 to child
sntpcall: exit
ntpcon: NT layer IPC connection has been established
ntpcon: exit
nsbeqaddr: doing connect handshake...
nttaddr2bnd: entry
nttaddr2bnd: exit
nsbequeath: doing connect handshake...
ntpwr: entry
ntpwr: exit
ntpwr: entry
ntpwr: exit
ntpwr: entry
ntpwr: exit
ntprd: entry
ntprd: exit
ntprd: entry
ntprd: exit
nsbequeath: REDIR="(ADDRESS=(PROTOCOL=tcp)(HOST=10.100.85.204)(PORT=4152))"
ntpdisc: entry
ntpdisc: exit
nsbeqaddr: handshake is complete; redirecting
nsredirect: entry
nsdo: entry
nsdo: cid=4, opcode=67, bl=55, what=11, uflgs=0x0, cflgs=0x3
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=2, flg=0x4204, mvd=0
nsdo: gtn=257, gtc=257, ptn=10, ptc=8191
nscon: entry
nscon: sending NSPTRD packet
nspsend: entry
nspsend: plen=65, type=5
nttwr: entry
nttwr: socket 208 had bytes written=65
nttwr: exit
nspsend: 65 bytes to transport
nspsend: packet dump
nspsend: 00 41 00 00 05 00 00 00 |.A......|
nspsend: 00 37 28 41 44 44 52 45 |.7(ADDRE|
nspsend: 53 53 3D 28 50 52 4F 54 |SS=(PROT|
nspsend: 4F 43 4F 4C 3D 74 63 70 |OCOL=tcp|
nspsend: 29 28 48 4F 53 54 3D 31 |)(HOST=1|
nspsend: 30 2E 31 30 30 2E 38 35 |0.100.85|
nspsend: 2E 32 30 34 29 28 50 4F |.204)(PO|
nspsend: 52 54 3D 34 31 35 32 29 |RT=4152)|
nspsend: 29 00 00 00 00 00 00 00 |).......|
nspsend: normal exit
nscon: exit (0)
nsdo: nsctxrnk=0
nsdo: normal exit
nsclose: entry
nstimarmed: entry
nstimarmed: no timer allocated
nstimarmed: normal exit
nsdo: entry
nsdo: cid=4, opcode=66, bl=0, what=0, uflgs=0x0, cflgs=0x2
nsdo: rank=64, nsctxrnk=0
nsdo: nsctx: state=2, flg=0x4200, mvd=0
nsevunreg: entry
nsevunreg: cid=4, sgt=0, rdm=0
nsrah: entry
nsevunreg: 2 registered connection(s)
nsevunreg: normal exit
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsdo: nsctxrnk=0
nsdo: normal exit
nsclose: closing transport
nttdisc: entry
nttdisc: Closed socket 208
nttdisc: exit
nsclose: global context check-out (from slot 4) complete
nsnadisc: entry
nsbfr: entry
nsbaddfl: entry
nsbaddfl: normal exit
nsbfr: normal exit
nsmfr: entry
nsmfr: 1712 bytes at 0x1bad650
nsmfr: normal exit
nsmfr: entry
nsmfr: 428 bytes at 0x4d7270
nsmfr: normal exit
nsclose: normal exit
nsredirect: exit (0)
nsbeqaddr: connect handshake is complete
nsbeqaddr: normal exit
nsbequeath: normal exit
tnslsnr: entry
tnslsnr: entry
nttaddr2bnd: entry
nttaddr2bnd: exit
tnslsnr: connect string inst->lcxd[0]: (ADDRESS=(PROTOCOL=tcp)(HOST=inv105.pvb.corp.investec.com)(PORT=1521))
tnslsnr: connect string inst->lcxd[1]: (ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\PNPKEYipc))
tnslsnr: exit
nsglhe: exit
nsevwait: entry
nsevwait: 2 registered connection(s)
nsevwait: 1 added to NT list for 0x8
nsevwait: 3 added to NT list for 0x8
nsevwait: 0 pre-posted event(s)
nsevwait: waiting for transport event (1 thru 3)...
ntctst: size of NTTEST list is 2 - calling poll
ntctspoll: Testing for 1 cxds on protocol select
sntseltst: Testing for CONNECTIONS on socket 164
ntctspoll: Testing for 1 cxds on protocol Named Pipes NT Protocol Adapter
Maybe you are looking for
-
Page numbering in rtf templates
Hi All, I have an rtf template and what I want is to display page numbers. I can achieve this with the following : <?fo:page-number?> but I want to display it by different way: For example if the total pages in the output is 10 pages I want the page
-
XSLT construct "for each" not working in transformation
Hi everyone I am using for each inside a transformation it was working fine until added parameters.After included parameters "for each" is not happening the db is invoked only once even if there are muliple nodes. can anyone help me on this issue. Ho
-
PLEASE HELP - Service provider fault - how to get...
We are at breaking point!!!! My lovely 81 year old Dad has tried to switch to BT infinity. He had a regular BT service before, but as of the 30th April he was meant to have BT infinity. HOWEVER, this is not the case. I spent last weekend there to try
-
New firmware m1217nfw release date and other questions ...
Hi everybody! Does anybody knows when a new firmware update will be released? It seems that the latest release (2013-09-30, version 20130912) has a serious known issue and HP recommends : "Please do not update with this version" on the web site ... T
-
Photo formats for export to Premiere Elements
What photo format , Jpeg, Tiff, etc should I use after editing it in Photoshop Elements to use it in a video in Premeire Elements 11? I just used a photograph formated in Jpeg 5 and used it in a video I made with Premeire Elements and it isn't as sh