Question to sql server oracle DBlink
Hello
I followed steps below
1 connection configured and tested ODBC connection is successful and ODBC calls SQLT.
2. I added under entry in the C:\app\product\11.2.0\dbhome_1\hs\admin\initdg4odbc.ora file
HS_FDS_CONNECT_INFO = SQLT
HS_FDS_TRACE_LEVEL = OFF
3. turn under entry in the tnsnames.ora file
SQLSERVER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = tcp (PORT = 1551))(HOST=mylocalhostname))
(CONNECT_DATA = (SID = dg4odbc))
(HS = OK)
)
* I also tried SID = SQLT in tnsnames file
4. added under entry in the listner
SID_LIST_SQLSERVER =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = C:\app\product\11.2.0\dbhome_1)
(SID_NAME = dg4odbc)
(PROGRAM = dg4odbc)
)
)
ADR_BASE_SQLSERVER = directory
SQLSERVER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP (PORT = 1551))(HOST = mylocalhostname))
)
* I also tried SID_NAME = SQLT file listner
5 lsnrctl reload
6 created db link
CREATE SQLSERVER1 LINK DATABASE to CONNECT to 'MyUser' IDENTIFIED BY 'Mypassword' USING 'SQLSERVER ';
but still I am getting below error.
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Cannot retrieve the text of the message NETWORK/NCR 65535
ORA-02063: preceding 2 lines of *.
I also followed link below
https://Oracle-base.com/articles/Misc/heterogeneous-services-generic-connectivity
even that also does not work. kindly help me
Hello, it seems that listener or HS is not allowed.
Check the status of the listener, then try with HS_FDS_CONNECT_INFO =
Do c: > lsnrctl stop SQL SERVER c: > lsnrctl start SQLSERVER run c: > lsnrctl status SQLSERVER and after release. This OPINION score could be useful 234517.1. Concerning
Tags: Database
Similar Questions
-
Problem with migration SQL Server Oracle 11.2 2012 DB using SQL Developer Migration workbench
Hello
I have a problem when migrating SQL Server Oracle 11.2 2012 using SQL Developer Migration workbench, hope that someone had the same problem before and can give same advide...
I use SQL Developer Version 4.0.1.14 and Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0. and last jtds - 1.3.
I created the schema migration_repo, privileges, connected to the third part of Db (SQL Server) and begin a trial with assistant. In the first step of the model to Capture, I get the message from the:
"Company Capture Capture failed. Refer to the table MIGRLOG in the repository for more details ".
But MIGRLOG is empty.
Here is my log:
<? XML version = "1.0" encoding = "windows-1252" standalone = 'no '? >
< Log >
account <>
< date > 2014-03-16T 20: 49:17 < / date >
oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >
< level > SEVERE < / level >
oracle.dbtools.migration.workbench.core.logging.MigrationLogUtil < class > < / class >
< message > Capture
Capture Enterprise
Capture failure. Refer to the MIGRLOG table in the repository for more details < / message >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doOnlineEnterpriseCapture(FullMigrateTask.java:758) < param > < / param >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doCapture(FullMigrateTask.java:601) < param > < / param >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doMaskBasedActions(FullMigrateTask.java:400) < param > < / param >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:314) < param > < / param >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask.doWork(FullMigrateTask.java:147) < param > < / param >
oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193) < param > < / param >
java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >
oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ (RaptorTaskManager.java:554) < param > RaptorFutureTask.run < / param >
java.util.concurrent.Executors$ (Executors.java:471) < param > RunnableAdapter.call < / param >
java.util.concurrent.FutureTask.run(FutureTask.java:262) < param > < / param >
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) < param > < / param >
java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615) < param > < / param >
java.lang.Thread.run(Thread.java:744) < param > < / param >
oracle.dbtools.migration.workbench.core.logging.LogInfo@68e69a < param > < / param >
< exception >
< message > oracle.dbtools.migration.workbench.core.ui.FullMigrateTask$ FullMigrateTaskException: Capture
Capture Enterprise
Capture failure. Refer to the MIGRLOG table in the repository for more details < / message >
< frame >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >
< line > 758 < / line >
< / framework >
< frame >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >
< line > 601 < / line >
< / framework >
< frame >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >
line 400 > of < < / line >
< / framework >
< frame >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >
< line > 314 < / line >
< / framework >
< frame >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >
< line > 147 < / line >
< / framework >
< frame >
oracle.dbtools.raptor.backgroundTask.RaptorTask < class > < / class >
< line > 193 < / line >
< / framework >
< frame >
java.util.concurrent.FutureTask < class > < / class >
< line > 262 < / line >
< / framework >
< frame >
oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$ RaptorFutureTask < class > < / class >
< line > 554 < / line >
< / framework >
< frame >
java.util.concurrent.Executors$ RunnableAdapter < class > < / class >
< line > 471 < / line >
< / framework >
< frame >
java.util.concurrent.FutureTask < class > < / class >
< line > 262 < / line >
< / framework >
< frame >
java.util.concurrent.ThreadPoolExecutor < class > < / class >
< line > 1145 < / line >
< / framework >
< frame >
java.util.concurrent.ThreadPoolExecutor$ Worker < class > < / class >
< line > 615 < / line >
< / framework >
< frame >
java.lang.Thread < class > < / class >
< line > 744 < / line >
< / framework >
< / exception >
< / recording >
account <>
< date > 2014-03-16T 20: 49:17 < / date >
oracle.dbtools.migration.workbench.core.MigrationLogResourceBundle < recorder > < / recorder >
WARNING < level > < / level >
oracle.dbtools.migration.workbench.core.ui.FullMigrateTask < class > < / class >
<>error message: ORA-06550: line 1, column 14:
PLS-00201: identifier ' SS2K5ALLPLATFORM. STAGECAPTURE' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
: FAILED: Database Migration: FAILURE < / message >
oracle.dbtools.migration.workbench.core.logging.LogInfo@1e2c9b99 < param > < / param >
< / recording >
I try with model db (DB empty, just a single table), but the error is same. However, if I try to copy the acronym tabele from SQL Server to Oracle it works fine...
I guess it's something with the configuration, but beacause I am new in Oracle still have no idea...
Any help would be much appreciated
I thank in advance
Stefan
Hello Stefan,
did you create the repository Migration of your database to Oracle (Tools-> Migration-> repository management)?
The SS2K5ALLPLATFORM package is usually created when you add the migration of the Oracle database repository and it contains the function StageCapture.
So please make sure that you have created a repository of migration in an Oracle database and associate it with the first step of your migration.
-Klaus
-
Oracle on the SQL Server tables dblinked query error ORA-00904
Hello
I created a dblink to a SQL from Oracle database using generic connectivity.
The following query returns the error ORA-00904 invalid identifier in the (tblEmp.Empno) WHERE clause
SELECT 'EmpNo', "EmpName", "DeptName".
OF tblEmp@sqlserver.
tblDept@sqlserver
WHERE tblDept.DeptNo = tblEmp.Empno
I had to include the column names between double quotes because of the case review of the columns, but I can't do the
same thing for the WHERE clause.
(1) so how can I fix this error?
(2) also how can I include the Deptno column with the table alias in the columns list?
(Deptno is ambiguous in the Emp and Dept tables)
Kind regards
SamLooks like you have case-sensitive column names, try this
SELECT "EmpNo","EmpName", "DeptName" FROM tblEmp@sqlserver e, tblDept@sqlserver d WHERE d."DeptNo" = e."Empno" --<--- are you sure this is the correct join condition
What should we not
WHERE d."DeptNo" = e."DeptNo"
Published by: Alex Nuijten on September 22, 2009 13:28
-
Update SQL Server Oracle Table
Hello
I have a doubt, Im working with a database in oracle 10g and found a trouble trying to update a SQL Server database with a BPM system that retrieve data from the Oracle database... my question is...
How can I update the SQL database every 8 hours with the new information inserted into the Oracle database... I tried using OpenQuery but shows the AMT ORA-12514: listener
I'll apreciate any helpORA-12514 is one of the most common misconfiguration problems reported on the web. Go to google and you will find 33 800 hits. Thousands of containing the solution to your problem.
Troubleshooting and the solution is also written on a large number of times on metalink.
But I have to say to transfer data from Oracle to SQL Server makes no sense. You already have a copy of data in a location secured with the data integrity guaranteed. Instead of move... buy a report generator and work with it in place.
-
Display SQL Server Oracle data error
Dear friends,
I use Oracle10g XE.
I made a link to view or insert data into Oracle's SQL Server database.
I did all the things with the help of the link below.
Everything worked well. but when I run query below
Select "EmployeeNo" in hrtattendance@mysqlserverdsn
It gives an error that is mentioned below
ERROR on line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
Impossible to reteieve text of MESSAGE NETWORK/NCR 65535
ORA-02063: preceding 2 lines of MYSQLSERVERDSN
Help, please. I will be grateful.
Kind regards
Hi Klaus,
Now it works after
run
lsnrctl start listenermysqlserverdsn again.
This means that it is not auto-start. Anywayz it's done. Thanks a lot for your time, help and support.
I am very grateful to you.
Thank you and best regards,
-
SQL Server Oracle Migration: semantics of the column
I'm testing a migration to SQL Server 2012 to Oracle 12 c using SQL Developer 4.0.0.13 migration Assistant. The problem that I am facing is that all the generated table creation scripts have CHARACTER semantics for character columns. I wish that the semantic bytes. As the generated tables and columns are several thousand it is not possible to manually change the semantics.
CREATE TABLE account_dod)
account_ID VARCHAR2 (16 CHAR) NOT NULL,
I can't find any possibility to change the semantics when generating. Anyone know of any option that I can set so that the migration wizard will generate all of the columns in the form of BYTES?
Thank you very much
Hello
If you email me, I can provide an extension changed to use unity BYTE CHAR and VARCHAR2 columns.
My email address is my [email protected]
Kind regards
Dermot ONeill
SQL development team
-
equivalent of CLRSplitSting function for sql server Oracle
Hello friends,
I have a query in SQL Server - which becomes data.
Select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from dbo. CLRSplitString('2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420','',',') x v join ein_addl_info_v on x.col1 = v.addl_info_id order by sort_seq
We have same data in oracle too, so I converted the query above to sql to ORACLE like this server...
Select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from (with t as)
Select '2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420', ",","double str
Select regexp_substr(str,'[^,]+',1,level) sub_str *) t connect by level < = regexp_count (str, ',') + 1) x *.
Join cnh_cs_targ_csce_eur_1.ein_addl_info_v v x.sub_str = v.addl_info_id order of sort_seq
but I don't get all the data. Can someone check if the query oracle above is equivalent to the above SQL query.
Thank you/Kumar
Published by: kumar73 on February 15, 2013 08:47So your query:
select addl_info_id, sort_seq, code, row_data, addl_info_group_id, group_sort_seq, group_row_data from xmltable( 'ora:tokenize($str,",")' passing ',2406081,2410381,2427008,2430449,2466981,2495083,1586420,2406081,2410381,2427008,2430449,2466981,2495083,1586420' as "str" columns col1 varchar2(2000) path '.' ) x join ein_addl_info_v v on x.col1 = v.addl_info_id order by sort_seq /
SY.
-
11.1.2.1 install on questions of SQL Server 2008 R2
Hi guys,.
I install 11.1.2.1 on a windows 2008 Server SP1 by using SQL Server 2008 R2 as the back-end. I successfully all installed and set up the foundation components, deployed the webservices and tested I could connect both workspace and shared services.
Then I advanced and set up BI, did the same tests and I could identify. Once I had that and installed essbase and planning and calculation Manager (not had of EPMA yet) I have the following text in newspapers for Foundation:
com.hyperion.lcm.common.manager.ManagerException: registry/exception error occurred when retrieving properties properties of the registry migration. Nested exception is [MESSAGE - com.hyperion.lcm.common.manager.ManagerException: Shared Services product not found in the registry, FIRST CAUSE - com.hyperion.lcm.handler.LCMContext.loadProperties (135)].
at com.hyperion.lcm.handler.LCMContext.loadProperties(LCMContext.java:147)
at com.hyperion.lcm.handler.LCMContext.getProperties(LCMContext.java:74)
at com.hyperion.cas.web.delegate.CASBusinessDelegate.getUserConfiguredFileSystemPath(CASBusinessDelegate.java:413)
at com.hyperion.cas.web.CASContextListener.contextInitialized(CASContextListener.java:48)
to weblogic.servlet.internal.EventsManager$ FireContextListenerAction.run (EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
to weblogic.application.internal.flow.ModuleStateDriver$ 3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
to weblogic.application.internal.BaseDeployment$ 2.next(BaseDeployment.java:636)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
to weblogic.management.deploy.internal.DeploymentAdapter$ 1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
to weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:220)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Error: The system of EMP security is not initialized properly
Any help would be appreciated more by trying to understand why this is happening.
See you soon
Aaron. Oracle.instance
-
Question about SQL server 2008
I can't remove the Default constraint in Management Studio. But in the query, I can drop Default constraint
For assistance please ask for help in the appropriate Microsoft TechNet SQL Server Forums
Thank you & good luck.
-
Question: Is SQL Server 2014 on the roadmap for vSphere?
Hello community,
one of our clients is planning to implement Microsoft SQL Server 2014.
Is SQL Server 2014 on the roadmap for VMware vSphere and the Update Manager?
Or is it possible and supported to run vSphere 5.5 on a Microsoft SQL Server 2014.
Kind regards
Michael Winkenbach
Hi Michael,
Here you can check what VMware products are supported on what databases: VMware product interoperability Matrices
MS SQL 2014 is not yet.
Perhaps the next major release of vSphere will support it. Maybe we'll here on this subject at VMworld?
So far I would say your client to not migrate databases of vSphere.
Tim
-
Help me convert after the SQL Server Oracle script script
could someone help me conversion following script in oracle script
Create procedure Insert_profilebasicdetail
(
@isubprofileid as int,
@Copyisubprofileid as int,
@itranno as int,
)
As
Begin
Declare @IncKeyId as int
Declare @tempkeyId as int
Set @IncKeyId = (select isNull (Max (ikeyId), 0) as profilebasicdetail MaxKeyId)
Declare TempInsert cursor for select ikeyId - iprofileid, iquestionid, vquestionans, cstatusindi, dmodifyon, imodifyby, iyear
of profilebasicdetail where isubprofileid=@Copyisubprofileid and itranno=@itranno
Open TempInsert
the extraction of TempInsert in @tempkeyId
While @fetch_Status = 0
Begin
Set @IncKeyId = @IncKeyId + 1
Insert into profilebasicdetail
(ikeyid, iprofileid, iquestionid, vquestionans, cstatusindi, dmodifyon, imodifyby, itranno, iyear, isubprofileid)
values (select @IncKeyId, iprofileid, iquestionid, vquestionans, cstatusindi, dmodifyon, imodifyby, '1',
profilebasicdetail iYear,@isubprofileid where ikeyId=@tempkeyId)
extract the following TempInsert in @tempkeyId
End
End
Kind regards
AjayYou always seem to be missing the semicolon (;) in the end of your CURSOR, as Aman has pointed out in his last message.
CURSOR TempInsert IS SELECT ikeyid, iprofileid,iquestionid,vquestionans,cstatusindi,dmodifyon,imodifyby,iyear FROM profilebasicdetail WHERE isubprofileid=723 and itranno=58*;*
(Note that the * are simply to point out where the change needs to be done.) You don't want those in your actual code)
Justin
-
datetime SQL server because of oracle timestamp?
Hello world
When I try to convert the datetime sql server timestamp oracle show me the error in the interface to ORA-30088: datetime/interval precision is out of range.
The agove error occurs when you create of work table itself.
I changed the data of the physical architecture type converted to datetime sql server oracle timestamp and tried, but still the same error.
can someone help me with this.
Thank youHi Dev,
You're right, it's a good solution.
Cezar
-
Connect to SQL Server using Windows authentication
Allows us to connect to the SQLServer database via dblink using authentication SQL Server (Oracle 10 g DB on Windows server) HS, sqlserver db is moved to a new server and there it is configured to use Windows authentication only. Is it possible to use the dblink/HS with Windows authentication on the side of SQLServer? Oracle support answer is no, but I thought I'd ask around...
Thank you!
Published by: user11968137 on March 28, 2013 11:42Gateway for ODBC 10 g or 11g is supported only with SQL Server, not Windows authentication authentication.
If your SQL Server is configured only for authentication on Windows, you have no other way to change the configuration of the SQL Server to support mixed Mode (Windows authentication and SQL Server authentication).
Kind regards
Mireille-
-
Problem installing SQL Server 2014 with the language of the OS
I installed a new 2012 french windows server essentials.
Then I tried to install sql server 2014 standard (English version). But, it is not possible. I get the message "this SQL server installation media does not support the language of the operating system, or does not have the SQL Server installation files English version.» Use the correspondent... ».
Then I tried several solutions provided on different forums on the web. Now my system is set to English (United States), but the message still appears at the beginning of the installation of SQL.
Any suggestion will be fine... I'm tired of installation problems.
BB
Hello
You can post your question Server 2012 Server TechNet forums, that your question is beyond the scope of these Forums.
http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer
Please repost your question about SQL Server in the SQL Server TechNet Forums.
https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer
See you soon.
-
This version includes and allow to use ssrs, ssis and ssas intended for a single user
Hi mikeyjoy,
For questions about SQL Server, visit the Forums for SQL Server.
Thanks for posting your question in the Microsoft answers Forum.
Maybe you are looking for
-
W550s Windows Defender cannot be activated
W550 came with preinstalled McAfee. I removed the software in windows and then used the McAfee tool to completely uninstall. My system will not turn on Windows Defender. Help!
-
Hello world I am currently working with tiara and I a few beginner questions. Call PicLoad ("Template") Call GraphObjNew ("2D-Axis", "2DAxis1") Call GraphObjOpen ("2DAxis1") Call GraphObjNew("2D-Curve","New_Curve") ' creates a new curve Call GraphObj
-
Gurus, I try to use Labview PID control on a piece of hardware. I use the model single-loop PID. Instead of reading in tension, I read a value of a serial port. However, I can't serial port read software to work. I section reading inside the while lo
-
Msiexec is missing. How can I get that back?
I use XP SP3 and tried to access msiexec to correct an installation problem. He isn't here. I tried searching for it, but it does not come to the top no matter where. Any suggestions? Racefan14
-
Photosmart 7525: Photosmart 7525 copy
I just changed all my ink yesterday with the new HP cartridges. I went to a black simple copy and the first time I had a sporadic very pale copy. Judge again. No copy either. Have you tried unplugging the copier/printer. Unplugging the copier/pr