Hi.Im trying to connect to SQl Server 2000 from Sql Developer, and im getting this error on Sql developer."Cannot connect to Microsoft Sql Server on localhost Vendor code 0"this is the connections.xml file[code] [/code]this not works, im trying with:[code] [/code]in fact i have been trying with localhost,".",127.0.0.1, the name of the computer, its a local default instance of SQL server created in Windows xp professional.i set the tcp port to 1433 in server network utility, i create an exception on windows firewall to tcp port "1433", i dont have another firewall, antivirus or antispyware.im trying with all this stuff and nothings works, some idea?if you cant see the code please open the .txt attachment.
↧
Oracle issues
↧
Getting data out of Oracle 8i?!!
Hello,I am working for a company that is going to a new application. The previous application was written by a software vendor that no longer supports the application. It was written in Oracle 8i.The boss has said that he needs the data out of the old system to create reports for historical purposes. I don't know Oracle. I have gotten on the internet enough to:1) find out the sid2) find the services3) change the password file so that I can use internal as sysdba4) select to find tables in SQL Plus.However, I need data.How can I see the tables and the data?How can I get the data out and import into SQL Server 2005 Express or SQL Server 2000 enterprise?Thanks in advance. This is crazy!
↧
↧
Loading Oracle LONG RAW data
I am new to Sql Server but so far have had only minor issues. But this problem is a doozy.I am trying to move LONG RAW data from an Oracle Rdb SQL Release 7.2.2.0.0 database to a SQL Server 2008 but I am getting errors when I do a quick SSIS data import export.I get this error[Source - XXX_XXX [1]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80004005 Description: "ORA-03113: end-of-file on communication channel".[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - XXX_XXX" (1) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.The data that is contained in the LONG RAW is text which I have tried storing in a table as TEXT and as IMAGE but I get the same error. I assume I need to do some sort of pre-processing to get this data in. Any Ideas?
↧
SQL 2000 Oracle Linked Server - Divide by Zero
Situation: SQL Server 2000 with a Linked Server to an Oracle table: in production, but not in Development or Quality about four months ago started returning a divide by zero error in the DTS package when the table was empty, but not when there were rows to join on. Then last month it started returning the error even when there was data to pull.-------------------------------------------------DTS ERROR with 'MSDAORA':Executed as user: AD\SVC.SQL. ...un OnStart: DTSStep_ProcessAllBatches DTSRun OnError: DTSStep_ProcessAllBatches, Error = -2147217900 (80040E14) Error string: OLE DB provider 'MSDAORA' reported an error. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 Error Detail Records: Error: -2147217900 (80040E14); Provider Error: 7399 (1CE7) Error string: OLE DB provider 'MSDAORA' reported an error. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 Error: -2147217900 (80040E14); Provider Error: 7300 (1C84) Error string: OLE DB error trace [OLE/DB Provider 'MSDAORA' IRowset::GetNextRows returned 0x80004005: ]. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 Error: -2147217900 (80040E14); Provider Error: 7312 (1C90) Error string: [OLE/DB provider returned mes... Process Exit Code 1. The step failed.Query analyzer returned the same error if I selected from the Linked Server Oracle table with a WHERE clause, but not without a WHERE clause:Server: Msg 7399, Level 16, State 1, Line 18OLE DB provider 'MSDAORA' reported an error. [OLE/DB provider returned message: ORA-01476: divisor is equal to zero] OLE DB error trace [OLE/DB Provider 'MSDAORA' IRowset::GetNextRows returned 0x80004005: ].I tried creating a SQL Server view on the Oracle table. Again it worked in Development and Quality, but not production.Here is the view:-- --------------------------------------------------------CREATE VIEW PAT_ISProjAS SELECT I.EMP_NO AS EMP_NO, I.HOURS AS HOURS, I.HOUR_TYPE AS HOUR_TYPE, I.ENTRY_DATE AS ENTRY_DATE, I.COMPANY_NO AS COMPANY_NO, I.PAY_FREQUENCY AS PAY_FREQUENCY, I.EXEMPT_FLAG AS EXEMPT_FLAG, I.SOURCE_NAME AS SOURCE_NAME FROM ISPROJ..ISPROJ.ISPROJ_TIME_EXPORT_T AS IGO-- --------------------------------------------------------Here is the error:Server: Msg 7399, Level 16, State 1, Procedure PAT_ISProj, Line 28OLE DB provider 'MSDAORA' reported an error. [OLE/DB provider returned message: ORA-01476: divisor is equal to zero]Obviously selecting with a where clause or creating a view where no division exists indicates that the error is something internal to processing, rather than a data error.-------------------------------------------------The DBA could find no server differences and DTC ping did not identify any issues.We then tried changing the provider, which changed the error we were getting, but still did not allow executing of the stored procedure, nor adding a basic view, but the where clause issue went away.DTS Error with provider 'OraOLEDB.Oracle':Executed as user: AD\SVC.SQL. ... Executing... DTSRun OnStart: DTSStep_ProcessAllBatches DTSRun OnError: DTSStep_ProcessAllBatches, Error = -2147217900 (80040E14) Error string: The operation could not be performed because the OLE DB provider 'OraOLEDB.Oracle' was unable to begin a distributed transaction. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 Error Detail Records: Error: -2147217900 (80040E14); Provider Error: 7391 (1CDF) Error string: The operation could not be performed because the OLE DB provider 'OraOLEDB.Oracle' was unable to begin a distributed transaction. Error source: Microsoft OLE DB Provider for SQL Server Help file: Help context: 0 Error: -2147217900 (80040E14); Provider Error: 7300 (1C84) Error string: OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ITransactionJoin::JoinTransaction returned 0x8004d00a]. Error source: Microsoft OLE DB Pr. The step failed.-------------------------------------------------Query Analyzer Error (same thing happens with Create View):DECLARE @intRtn INTEXECUTE @intRtn = dbo.sp_ISPAT_SourceSELECT @intRtn AS SourceRtn(0 row(s) affected)Server: Msg 7391, Level 16, State 1, Procedure sp_ISPAT_LoadRemoteBatches, Line 42The operation could not be performed because the OLE DB provider 'OraOLEDB.Oracle' was unable to begin a distributed transaction.[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ITransactionJoin::JoinTransaction returned 0x8004d00a].
↧
Problems : DTS with ORACLE as destination
Hi,Currently in a spot of bother and would greatly appreciate any advice with respect to the folowing..We do need to transfer some data from SQL Server (2000) Source to the ORACLE (9i) detination table. The source has a datetime stamp which to be used to transfer the most recent data since the last transfer. In destination, only the unique rows need to be appended while the existing rows need to replaced.The initial solution did contain a couple of temporary tables in both the environment, but unfortunately, the client is not very comfortable with the new tables...Need to know...A. If it is possible to update a global variable from TSQL (For example, whether it is possible to update a global variable with 'SELECT MAX(Dt) FROM ORACLE.TABLE')B. If the entire activity can be accomplished by activex scripting. ie using vbscripts, creating sql and oracle connection and recordset objects, looping through the recordset, and calling an ORACLE SP (as done so widely in vb) with the field values as SP parameters.Thanks in advance.Regards,
↧
↧
How to synchronise data between SQL Server and Oracle
Hi all, Rajeev here from Bangalore. This is the present scenario with us. In some multiple sites (say Bangalore, Chennai, Pune, Delhi etc) separate MS SQL servers were deployed and running for some couple of Months. Each SQL server holds same data structure (software etc). Now they want to introduce a central Oracle server and want to update (synchronize) database from each of these distinct SQL servers periodically, say on each day by 6:00 pm, so that any pint of time in Oracle Central server previous day’s transaction can be found. I don’t have much work experience with Oracle, but in MS SQL I know DTS to do this. But how to synchronies Oracle with each distinct MS SQL only for last modified/inserted data? What feature/function available in MS SQL or in Oracle to do this job smoothly? Please help me in this regard. Thanks in advance.
↧
Sql Server 2000 Openquery insert takes too long
To whom can help,I am using Sql Server 2000 and have a linked server to Oracle.I am doing an insert into the oracle from data on the Sql Server 2000.it is taking 26 minutes to process 2210 records. at 85 records per minute this appears to be a long time for a relatively small amount of records.Someone has mentioned that I may be inserting each record row by row instead of all 2210 at the same time. is this possible and if so how can I check.Basically I want to speed this up (hopefully using setup) and not have to give the answer to the client that their network is rubbish.Any suggestions or pushes inthe right directions would be useful.Provider using: Microsoft OLE DB Provider for Oracle (Currently Can't get Oracle Provider for OLE DB to work (error 7399 returned) should I get this working?)Query is:Insert into OpenQuery (FinPRUAT, 'Select Field1 From Table1 Where Field1 1=0') Select Field1 From Table1 Inner Join Table2 On Table2.Field1 = Table1.Field1 Where Table2.Field2 = 10001228Thanks
↧
Linked Server to Oracle through Microsoft OLEDB provider
Hi All,I have created a linked server to Oracle database. I have used the below command to create the linked server:sp_Addlinkedserver 'ORACserv','Oracle','MSDAORA','XYZ'where XYZ is the Database name having associated TNS entries. Oracle client tools 9.2 are installed in the system.After the linked server connection is created, I have specified the login credentials with which to connect. I am receiving the below error while querying the data:Server: Msg 7399, Level 16, State 1, Line 1OLE DB provider 'MSDAORA' reported an error. [OLE/DB provider returned message: Oracle error occurred, but error message could not be retrieved from Oracle.]OLE DB error trace [OLE/DB Provider 'MSDAORA' IDBInitialize::Initialize returned 0x80004005: ].Here are the things that I have tried out till now:Connect through SQL plus locally to the oracle server with the credentials given earlier. The connection succeeded and I am able to query the data.Created one more linked server using Oracle OLEDB provider and the same credentials. The connection is working fine.Checked the registry entries for ORACLE_HOME as specified in other forums. The directory that is being pointed is correct. Tried both the distributed query like - select * from ORACSERV.XYZ.SCHEMANAME.TABLENAME and OPENQUERY statement. Both are failing with the above error.I am not sure why I am receiving this error? The credentials seems to be correct and the Oracle server and SQL are also working fine. Could someone please help in this regard?
↧
www.sqlservercentral.com
sir i have a problem while creating a procedure to insert values with a table containing foregin key please help
↧
↧
ORA-01722: invalid number Error occurred When using DTS
Hi All;I'd like to copy a part of records in Oracle DB to SQL Server 2000 with DTS.DTS's Steps are...1. Run Execute SQL Task to retrieve the data and output to GV with RecrodSet Type. [code] SELECT col1 FROM TableA --> Lists (RecordSet) !! some records are return as result !![/code]2. Run ActiveX Script Task to change data type from RecordSet to String and output to GV with Lists_for_Query.[code] set objRS = CreateObject("ADODB.Recordset") set objRS = DTSGlobalVariables("Lists").value for cnt = 1 to objRS.RecordCount if strList = "" then strList = objRS.Fields("col1").value else strList = strList & ", " & objRS.Fields("col1").value end if objRS.MoveNext next DTSGlobalVariables("Lists_of_Query").value = strList[/code] Lists_of_Query contains a string such as "1200, 1201, 2003"3. Run Transform Data Task to copy a part of records in Oracle DB to SQL Server 2000 with following Query.[code] SELECT * FROM TableB WHERE (col2 IN ([b]?[/b]) )[/code] !! The type of col2 is Number(10) !!When I run this DTS, I got "ORA-01722: invalid number" Error Message.But I can run the following query in Oracle SQL Developer Toole.[code] SELECT * FROM TableB WHERE (col2 IN ([b]1200, 1201, 2003[/b]) )[/code]Do you have any idea?
↧
DTS Package Error
Hi,I'm having problems with a DTS package that copies data from an Oracle database to a SQL database. The package runs successfully if it is manually executed however fails every time it is scheduled. The error given in the Job History is as follows:Error = -2147467259 (80004005) Error string: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed Error source: Microsoft OLE DB Provider for ODBC Drivers Help file: Help context: 0 Error Detail Records: Error: -2147467259 (80004005); Provider Error: 0 (0)When I try to recreate the package on a test server or try to edit the package on the live server, I get two errors which are:The Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3 (or greater) client software installation.You will be unable to use this driver until these components have been installed.andHResult of 0x80004005 9-2147467259) returnedUnexpected error occurred. An error result was returned without an error message.This was using Microsoft ODBC Driver for Oracle and I've tried recreating the package with the OLE DB Provider for Oracle and get the Hresult error but no Oracle driver error. I've also tried updating the Oracle driver on the server to no avail!Does anyone have any ideas what the problem could be?Thanks,James
↧
How to register Oracle Server
hi guys,How to register Oracle DB server in my MSSQL Enterprise manager.I need to work on tables, data of Oracle database sitting on my MSSQL query analyzer or MS Enterprise manager.
↧
Problems importing data from Oracle to MSSQL Server 2000 using a DTS package
Hi guys,This is my scenario.. I need to synchronize data from oracle server to MSSQL Server 2000, for this purpose I'm using a DTS package (The connection is trough a ODBC Driver), the development was made using a TEST Oracle Server, so that never had this issue (There Wasn't limits for the resources), now, when i ran the DTS package over a real Production Oracle Server, a DTS DataPump Task failed (this task synchronize a table with 2,330,000 registry or more), the error code is ORA-01555, so I asked to a Oracle Administrator and the problem was originated because a concurrent use of the ROLLBACK SEGMENT (so the problem is that could not have a consistent reading), I need to know if exists something in the design of my DTS package thats could help me to solve this issue, i do not know if it is possible to establish a commit point for a determined quantity of information imported, making possible that the readings release the ROLLBACK SEGMENT and start again.Any help will be too appreciatedRegards,Jesus
↧
↧
DTS to flat file for pickup by Oracle
I have a table which allows for storing notes about a client. One field is ntext(8000), where the users input the history about a particular client/claim. They have CR/LF in the field, which I can handle in SQL and the application. However, when I export the data to a text file, vertical bar delimited for each field, when our Oracle DBA tries to import it, it breaks that field into multiple rows of data, breaking on the CR/LF. Now, having said all that, I know zip about Oracle and don't know how to help the Oracle DBA. I've tried ansi and unicode as an export option and that doesn't seem to matter. Lastly, we cannot setup a linked server as our version of Oracle (7.32) needs to be at 7.33, minimum, based on my attempts to setup the linked server and there are no current plans to upgrade. Any thoughts on how/what I can try to get around this?
↧
Openquery with ALTER SESSION SET NLS_DATE_FORMAT = "DD/MM/YYYY HH24:MI:SS
HiI need to know if it is possible to use openquery within a statement to execute the alter session sentence for oracle db.Sorry for my englishIf this is not the rigth place for the question, would you please direct me ?thanks in advance for any help !
↧
Save as in Toad
i am trying to save the output of a query to a delimted text file with comma as delimter.if a column contains a column with column (For example John,smith) John goes to one column and smith to other columnhow do i avoid and make it as one column.Please let me know
↧
Calculate relative dates in Oracle
Hi,I'm doing some work in Oracle on date ranges, and have a calendar table with Activity_date. I'd like to calculate the "relative week no." from this, but I'm not sure of the functions to use...In MS SQL it was just easy to use datediff, but there is not such function in Oracle, as the dates are stored as numbers....Anyone point me in the right directionThx..
↧
↧
Linked server to acces DB file
Hi all, please help if anyone can, I am sure here are masters :) i create linked server to access file in which I have localtalbes, linked tables to oracle dband linked tables to SQL DB, I can query all locals and SQL talbes from this linked server but when I try to query "SELECT * FROM TEST1...VASO_LOAN_UPDATES"where "VASO_LOAN_UPDATES" is linked table to oracle DBI receive error "Msg 7306, Level 16, State 2, Line 1 Cannot open the table "VASO_LOAN_UPDATES" from OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "TEST1". The specified table or view does not exist or contains errors." how can I fix it? Tnx advance
↧
Getting Oracle backup into SQL Server
Hi all,I've been handed a backup of an Oracle DB. We need to get that data into a SQL Server DB.I haven't the faintest idea how. I've installed Oracle 9i personal on a spare server.I don't know the Oracle lingo for creating a DB, restoring a backup, etc.It keeps asking me for a Service Name?Can anyone point me in the right direction?Thanks,Paul
↧
Could not fetch a row using a bookmark from OLE DB provider 'MSDAORA'.
Hi,I currently need to perform updating the link server based on the local table condition. I get the error when i using openquery. Can anyone help? Thanks.The error message is as per below:Could not fetch a row using a bookmark from OLE DB provider 'MSDAORA'. [OLE/DB provider returned message: Multiple-step operation generated errors. Check each status value.]OLE DB error trace [OLE/DB Provider 'MSDAORA' IRowsetLocate::GetRowsByBookmark returned 0x80040e21: ].Query:UPDATE OPENQUERY([LS-ORACLE],'SELECT Status, LastUpdate FROM ebh.CliInfo WHERE Src = ''A''') SET Status = 'E', LastUpdate = GETDATE()FROM (SELECT * FROM OPENQUERY([LS-ORACLE],'SELECT * FROM ebh.CliInfo WHERE Src = ''A''')) a INNER JOIN LocalTable b ON a.CliCode = b.ClicodeWHERE a.LastUpdate <= b.LastUpdate
↧