Error when importing metadata from sql server

Hi,
I am having problem connecting to SQL Server. from OWB.(my owb client is 11.1.0.6.0 and owb repository is 11.1.0.1.1)
I am using Oracle Database Gateways 11g Release 1 (11.1.0.6.0) to connect.
i make all the configuration for the gateway .
and execute the dg4msql_cvw.sql to create corresponding views in sql server ...
THe dblink allows me to run SQL query from sql plus to the tables in SQL server (the host that i want to import data from is i sql server 2000).
When I test the connnection from owb to SQL Server it returns "successful"
but when i go to import the meta data of tables in SQL Server i get this error.
ORA-00942: table or view does not exist
[Oracle][ODBC SQL Server Driver][SQL Server]Invalid object name 'V$VERSION'.[Oracle][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.
ORA-02063: preceding 2 lines from FIN_LINK
owb looking for v$version in sql server and i dont know why .
i tried to create this view in sql server like this
create table v$version (banner varchar(20))
but i dont know what kind of data should i insert in ,,,,,,,
is there any idea how can i fix this
thanx

thanx dallan for replying
i really execute that script u talk about and i mentioned that in first post ...
its' dg4msql_cvw.sql script and its make a views in sqlservere
its create these views :
ALL_CONS_COLUMNS
ALL_IND_COLUMNS
USER_CONS_COLUMNS
USER_IND_COLUMNS
... i r execute it as following : i have windows server 2003, the sql server 2000 installed on this server
i open the query analyzer and connect to the user that hold the db, i select open and browse to the dg4msql_cvw.sq
and then execute ... but still same error
i think this may works ..right?
and this is the trace log file :
note :
here are the trace log file :
Oracle Corporation --- TUESDAY MAY 05 2009 12:44:14.846
Heterogeneous Agent Release
11.1.0.6.0
Oracle Corporation --- TUESDAY MAY 05 2009 12:44:14.846
Version 11.1.0.6.0
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "On"
RC=-1 from HOSGIP for "PATH"
PATH from environment is "D:\app\OraGtw\bin;D:\app\product\product\11.1.0\db_1\bin;D:\app\BI\server\Bin;D:\app\BI\web\bin;D:\app\BI\web\catalogmanager;D:\app\BI\SQLAnywhere;D:\app\product\product\11.1.0\db_1\jdk\bin;D:\app\BI\server\Bin;D:\app\BI\web\bin;D:\app\BI\web\catalogmanager;D:\app\BI\SQLAnywhere;D:\app\product\product\11.1.0\db_1\jdk\bin;C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0"
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_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using SA as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
##>Connect Parameters (len=209)<##
## DRIVER=Oracle 11g dg4msql-OraGtw11g_home1;
## SERVER=web02;
## Database=acc-aeu;
#! UID=SA;
#! PWD=*
## AnsiNPW=Yes;
## QuotedId=Yes;
## IANAAppCodePage=2252;
## ArraySize=100;
## PadVarbinary=0;
## SupportNumericPrecisionGreaterThan38=1;
SQL text from hgopars, id=1, len=25 ...
00: 454C4553 2A205443 4F524620 5622204D [SELECT * FROM "V]
10: 52455624 4E4F4953 22 [$VERSION"]
hgopars, line 347: calling SQLNumResultCols got sqlstate 42S02
plz guys any ideas ???

Similar Messages

  • Problems when trying to import metadata from SQL server using OWB

    Hi,
    We are using Oracle 11.2 EE on AIX and OWB: 11.2. We are in the process testing Oracle Transparent gateway for SQL Server and have installed and configured it on a standalone windows server. We and have run the ORACLE_HOME\dg4msql\admin\dg4msql_cvw.sql on SQL Server side, in order to query the SQL-Server data dictionary. We have created a DB-link and can pull data correctly without any problems. When trying to import metadata in OWB Client on win xp, we have created a non-oracle SQL Server Module and are able to connect and start the import, but the displayed table names look strange and can not be imported. In front of every letter there is a square box, so instead of ADDRESS (the address table in the source system) , it reads "squarebox"A"squarebox"D"squarebox"D"squarebox"R"squarebox"E"squarebox"S"squarebox"S and subsequently the import fails with :API0413: Illegal name [<tablename>] Name with preceding and trailing spaces is not allowed.
    The gateway have been configured with the following parameters:
    HS_FDS_CONNECT_INFO=<connect string>
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    Any ideas ?
    This topic has been posted in the Heterogenious Forum as well, but as the problem is within OWB, I also post it here.
    Thanks in advance!
    Henrik
    Edited by: he**** on Nov 15, 2011 1:29 PM

    Henrik,
    I've found other problems where OWB adds a space between all characters returned from SQL*Server which is what is happening in your case, although it is being displayed as a square box.
    In one of these cases the problem was fixed by using the 11.2.0.2 OWB so would it be possible for you to try with that version ?
    Also, as the problem is not with the gateway itself as you can select successfully using a database link then it would be better to follow up in the OWB forum -
    Forum: Warehouse Builder
    Warehouse Builder
    as they will be able to help with the OWB side of the problem.
    Regards,
    Mike

  • The SQL statement is not valid - when importing data from SQL Server using a query

    Hi there,
    I am trying to import data from SQL to Power Pivot using a SQL query like below:
    SELECT Score.FieldCount, Score.Record.GetAt(0), Score.Record.GetAt(1),  Score.Record.GetAt(2),  Score.Record.GetAt(3),  Score.Record.GetAt(4)
    FROM 
    SELECT * FROM dbo.CLR1(
    dbo.CLR2('c:\FILES\Test.xml'), 
    'SELECT * FROM [dbo].[CXCustomer_Small]') Input
    ) Score
    And when I tried to validate it, it returns
    The SQL statement is not valid. A column name cannot be blank.
    I ran the above SQL statement in Management Studio and it works without problem. Any idea?
    Thanks!
    Chu
    -- Predict everything. http://www.predixionsoftware.com

    Never mind, I figured out - I need to give each column a name.
    -- Predict everything. http://www.predixionsoftware.com

  • Importing data from SQL Server

    I'm relatively new to Oracle, and my question is about importing data. I have an SQL 2000 server and I export a database using Microsoft OLE DB provider for Oracle. The process finished OK but when I tried to query the tables qith SQL Plus Worksheet, I get a message saying:
    select * from rwp_purge
    ERROR at line 1:
    ORA-00942: table or view does not exist
    but the table is there. I can see it using DBA Studio. So, what is happening? Do I have to commit transactions after importing data from SQL Server? Do I have to rebuild statistics?
    thanks in advance,
    Gonzalo Pellegrini

    Was the table created in the schema you are loggin as when trying to access the table? If not, you will have to grant access to the table logged in as the table owner.

  • Import data from SQL Server into MS Word document for Mail Merge purpose ?

    Hi,
    Is it possible to import contacts from SQL Server into MS Word for mail merge purpose or if retrieving data from MS Excel can we update the data in MS Excel sheet without opening it ?
    Note: Remember when you open a word document already set up for mail merge, asks you to run the query to return all records from the excel sheet it is connected to.
    Khurram

    Word and the current data source dialog do not really give you any help with that.
    You either have to be able to create a View in SQL Server that performs the query you need, then connect to that, or you have to be able to create the correct query manually (or perhaps using some other query tool that can help you), then use VBA to connect
    using that query. 
    For example, if you have been through the connection process once (connecting to a single table) then you will have a .odc (Office Data Connection file) which has the info. needed to connect to the correct server and database. It's a text file with some
    HTML and XML inside. You can copy/rename it. Let's say it is called "c:\a\myodc.odc" Then in VBA you can use something like
    ActiveDocument.OpenDataSource Name:="c:\a\myodc.odc, _
    SQLStatement:="put your SQL statement in here, and if it is long,...", _
    SQLStatement1:="put the second part in here"
    You get a maximum of either 255 or around 511 characters in the SQL statement, and Word tends to impose some syntax requirements that Transact-SQL does not, so e.g. you may need to quote all your table names.
    You can also se an empty .odc file and provide connection info. in the COnnection:= parameter in OpenDataSource.
    As background, until Word 2000, by default you would use MS Query to create your SQL query, and MS Query does have facilities that can help you build your query (a bit like the ones in MS Access). That may still be possible (it is a bit harder to find the MS
    Query option now, and I am not sure it works with the latest versions of Word). MS Query only works for ODBC queries, and they do not always work correctly when you actually issue the query using ODBC from Word, because of a Word problem to do with Unicode
    fields in SQL Server. But you could probably still use MS Query to help you construct your SQL. (It's probably easier to do that in Excel, though).
    Peter Jamieson

  • Using Oracle Forms Importing Data From SQL Server into Oracle Tables.

    Dear All,
    We are using Oracle Forms 10g in windows XP and having OAS 10g and Oracle database 9i.
    How can we import data from SQL Server 2005 into Oracle tables using Oracle Forms?
    Thanks & Regards
    Eidy

    I have no idea what "Oracle Hetrogenius Services" is, so I can't help you with that, sorry.
    SQL Developer might also assist you. SQL Developer can connect to SQL Server as well as Oracle and has some tools for migration. See the documentation for details:
    http://download.oracle.com/docs/cd/E12151_01/doc.150/e12156/toc.htm
    For additional help on using SQL Developer for this task, please consult Support or the SQL Developer forum: SQL Developer
    Hope this helps,
    Jacob

  • Import data from sql server /vice versa

    My Database serevr version is 10.1.0.3.0.
    Sql Server 2000.
    Is it possible to import data from sql server to oracle database?
    Also other way around.
    I mean import data from Oracle to sql server.
    Regards,
    D

    Hi,
    You can use Heterogeneous Service to do this. This component is free but poor of resources. Simple things you can do with this, complex I really don't know.
    Also, to import from sqlserver to oracle you can use Oracle Warehouse Builder, an Oracle ETL tool. But, OWB do not work in other way, oracle to sqlserver.
    And why do want to use sqlserver, if you have oracle?
    []'s,
    Gustavo.

  • Import data from SQL Server to Oracle

    I have created a dblink in oracle to access the SQL database. I am able to run queries through the dblink and it works fine. I have created a test table on Oracle Server to import the data. The field named "description" has CLOB data type. The corresponding datatype on SQL Server is varchar(7000).
    When I insert the data from SQL Server, it completes successfully without any error but it truncates the data on CLOB field.
    If I run the select query in SQLPlus I can see the entire description.
    Select "description" from sql_view@dblink;
    -- the above works fine.
    CREATE table test
    (description CLOB);
    INSERT INTO TEST
    Select "description" from sql_view@dblink;
    -- this works but it truncates the data after 256 characters
    My question is, how to get the data from SQL Server without truncating characters.
    Thanks in advance,
    Gopal

    I hear the same from other friend that sql server truncated the leading zeros from the id column.
    I really don't have a solution for this but you can try the work around. Export the data to flat file and upload in oracle using SQL loader, as this would be much faster and efficient.

  • Error while exporting data from sql server to excel

    Hi,
    I am trying to export data from sql server to excel.
    The query that I used is s follows
    INSERT INTO OPENROWSET( 'Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Folder1\abc.xls','select * from [Sheet1$A1:IV65000]')
    select 
    column1,column2.... from Table1
    I get the following error message while doing so..
    String or binary data would be truncated.
    The statement has been terminated.
    One of the column's holds data more than 225 characters.
    What is the way to correct this, i want the whole data of the colum in the excel sheet.

    I haven't had great luck with the INSERT INTO OPENROWSET method.  Can you try one of the many samples from one of these 3 links?
    http://www.excel-sql-server.com/excel-sql-server-import-export-using-vba.htm#Excel%20Data%20Export%20to%20SQL%20Server%20Test%20Code 
    http://www.mssqltips.com/sqlservertip/1540/insert-update-or-delete-data-in-sql-server-from-excel/
    https://www.simple-talk.com/sql/database-administration/getting-data-between-excel-and-sql-server-using-odbc--/
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Importing Database from SQL Server into Oracle 8i

    Hello Friends,
    Cuurentlly we are using SQL Server as our application database, Now we want to switch on at Oracle 8i,bcz of some problems,
    If anybody had done so,then please help me in solving this problem,
    I wana Import whole database from SQL server to Oracle
    Lot of thanks

    Hi,
    Use the SQL Server Enterprise Manager to export all the tables from SQL to oralce.
    When selecting the target database use the Oracle native driver (the name is not on top of my head) and not the ODBC one.
    You will have problems with datatypes. Make sure to edit the mappings for the proper datatype if required.
    If you have ntext columns, make sure they are translated to CLOB and not long.
    Regards,
    Wasim.

  • DB connect Datasource is giving error when executing infopackage from SQL

    Hi,
    I have created DB connect data source for SQL data base. Whenever I will try to execute the Infopackage , it is giving below error and when I checked status of job in data source, it stays in yellow.
    SQL error "99" with message: "[Microsoft][SQL Server Native Client 10.0]Numeric
    Message no. RSDS_ACCESS023
    Any suggestion in this.... Thanks.
    Regards
    Deepa.

    Yes, I resolved it.
    Please ask your admin guys do following steps - it will resolve the issue:
    3. Possible problem areas
    a) Datetime data type in source system tables
    The Datetime DB data type and similar (timestamp, smalldatetime) are not used in SAP installations. This type of data cannot be transferred consistently into the BW system without additional activities.
    Solution:
    You must create a view in the source system to transform the data. Since a field of the type DateTime actually represents two SAP Basis types (DATES, TIMES), you must split it into a maximum of two fields, as appropriate:
      create view <VIEWNAME> as
      select
      VD_1_D = convert(varchar(4), datepart(yyyy, d_1))
             + case len(convert(varchar(2), datepart(mm, d_1)))
                  when 1 then '0' + convert(varchar(1), datepart(mm, d_1))
                  else convert(varchar(2), datepart(mm, d_1))
                  end
             + case len(convert(varchar(2), datepart(dd, d_1)))
                  when 1 then '0' + convert(varchar(1), datepart(dd, d_1))
                  else convert(varchar(2), datepart(dd, d_1))
                  end,
      VT_1_T =  case len(convert(varchar(2), datepart(hh, t_1)))
                  when 1 then       /* Hour Part of TIMES */
                        case convert(varchar(2), datepart(hh, t_1))
                          when '0' then '24'    /* Map 00 to 24 ( TIMES ) */
                          else '0' + convert(varchar(1), datepart(hh, t_1))
                        end
                  else convert(varchar(2), datepart(hh, t_1))
                  end
             + case len(convert(varchar(2), datepart(mi, t_1)))
                  when 1 then '0' + convert(varchar(1), datepart(mi, t_1))
                  else convert(varchar(2), datepart(mi, t_1))
                  end
            + case len(convert(varchar(2), datepart(ss, t_1)))
                  when 1 then '0' + convert(varchar(1), datepart(ss, t_1))
                  else convert(varchar(2), datepart(ss, t_1))
                  end
      from <TABLENAME>
    The t_1 Basis field in the table is converted into a DATES field VT_1_D      and a TIMES field VT_1_T. During the generation of the VT_1_T field, the value for 00:00 hours is also converted to 24:00 hours. This conversion may be omitted if not required.
    b) Float data type in source system tables
    In accordance with the IEEE standard regulations, MS SQL Server supports a value range of 1x10E-307 to +go- 1x10E+308. This also applies to the corresponding ABAP data type. However, the BW database in question may restrict this. Depending on the system, a restriction to 1x10E-25 is possible.
    c) Nvarchar data type in source system tables
    The length information displayed is twice as big as the number of characters you specified when you created the column.
    d) Writing names in the source system
    Since the R/3 kernel used in BW can only process table and column names written in upper case, on the source system, you must create DB views that convert the original names in accordance with this rule.
    e) Code page and sort sequence of the source system
    R/3 kernel-based systems such as BW basically assume that the database being used was created using code page cp850 and with the sort sequence 'bin2'.
    The configuration of the source system may differ. If the sort sequence is different, operations for string search (like) and area search (between, >, <) on character fields may return different results.
    Solution:  There is currently no solution.
    If you use multibyte code pages in the source system to save data with character sets of more than 256 characters (Kanji, Hiragana, Korean, Chinese and so on), the characters may be corrupted as a result.
    Solution:  There is currently no solution.
    f) Authorizations and visible objects
    BW DB Connect uses a remote server as a source system to extract data. The data already exists in that remote system. To use BW DB Connect, you will create a new login and new views which the SAP BW system will use when connecting.
    You must remember only the DB objects (tables and views), which directly belong to the new database login are visible.
    You cannot use a login that belongs to the Sysadmin server role, (for example 'sa').
    To create the new login and views:
    1. Create a new login and map it to a user in the database with membership in db_ddladmin
    2. Grant the new user (SELECT at least) access to the original data tables.
    3. Login as this new login and create the views in the database/schema of that user, referring to the original (source) data tables.
    4. Specify this new login in the data extraction and this login/user will read from his own views in his own schema.
    5. Optionally you can switch the new user's role to db_datareader which is sufficient for reading data. Further changes to the remote system e.g. new views or changed views will require the db_ddladmin role again.

  • Error while reversing data from SQL Server to ODI

    hi,
    I was reversing data from SQL Server Java 1.6_022 in ODI Java 1.5, I was getting error Version Mismatch and I updated ODI Java version to 1.6_022.
    And now, I am getting the below error while reversing the data from SQL Server database.
    0 : 08001 : java.sql.SQLException: No suitable driver
    Looking for the assistance on the same.
    Thanks,
    Abhay

    If everything is fine the reversing should be fine. I would say check again if the Technology of the Model and the also the dataserver is created under the right Technology in topology too.
    also if this doesn't help , Please tell us the steps you have carried so far . Also can you try selective reverse is it showing the tables.

  • How to import data from SQL server to Oracle?

    Dear Sir/Madam,
    I want to move database data from SQL Server to Oracle, but don't how to do it, will you please help me do it?

    Oracle Migration Workbench is your best bet:
    http://www.oracle.com/technology/tech/migration/workbench/index.html
    Cheers, OTN

  • Error when re-starting an SQL Server Instance from VBA - [SQL-DMO]Service Control Error: Access is denied.

    Our Application needs to have the use of the [Named Pipes] and [TCP/IP] Protocols.  To save our Users the hassle of having to enable them manually our application has always done it for them and then stopped and restarted SQL Server.  However
    since the advent of Vista and Windows 7, the restart stopped working.  We solved the problem by detecting the failure to re-start and giving Users sufficient instructions for them to do it themselves.  Since this only occurs during installation on
    the Server, this approach has not been too much of a hassle.  However we would like to tidy this up if possible. This the VBA code that is causing the problem:
        obj_SQLServerInstance2.Start _
            g_SQL_UseWindowsAuthentication, _
            SQLServerInstance, _
            UserName, _
            Password
    This still works when run under XP, but fails under Windows 7 with the Error:
    [SQL-DMO]Service Control Error: Access is denied.
    Does anyone know how to resolve the problem?

    This still works when run under XP, but fails under Windows 7 with the Error:
    [SQL-DMO]Service Control Error: Access is denied.
    Hello Brian,
    Under Windows 7 you have to run the VBA script with admin permission, a normal user don't have permissions to start/stop services.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Error,while importing METADATA  from production to development

    Folks,
    I am getting the following error while importing the metadata. I have exported from production server and want to do some modification to the existing mappings. Can some body help me to resolve this?
    Here is the error.
    Import started at 10/07/2004 11:12:19 AM
    * Import for OWB Release: 9.0.2.56.0 Version: 9.0.2.0.0
    * User: owb_rep Connect String: (DESCRIPTION=(ADDRESS=(HOST=vectrenabp)(PROTOCOL=tcp)(PORT=1521))(CONNECT_DATA=(SID=SDWSTEST)))
    * Data File: C:\oracle\OWBHome\owb\bin\win32\SDWSDEV-MAPPINGS-20041007_0916.mdl
    * Log File: c:\oracle\OWBHome\owb\bin\win32\Log.log Log Message Level: ALL
    * Physical Names: Y Mode: CREATE Character Set: WE8MSWIN1252
    * Ignore Universal Identifier: N Commit At End: Y
    Informational at line 15: MDL1205: PROJECT with Unique Object ID (UOID) <85247BBFEA1B44C6B10CDB3B70155A63> already exists, so PROJECT with physical name <SDWSDEV> and logical name <SDWSDEV> not imported.
    Informational at line 24: MDL1205: DATAWAREHOUSE with Unique Object ID (UOID) <268F5A9F43364309A8C0D01374C4A867> already exists, so DATAWAREHOUSE with physical name <DWH_TARGET> and logical name <DWH_TARGET> not imported.
    Error at line 141: MDL1247: Error occurred importing mapping <DWH_ZIP_CODE_DMGRPHCS_DIM_MAP/DWH_ZIP_CODE_DMGRPHCS_DIM_MAP> (at line 141).
    Detailed Error Message:
    API2014: Internal Error: Error in createStage:

    I have selected the option
    Add new metadata and replace existing objetcs. But it is not importing. Also I tried other options like
    1. deleting the existing mapping and tried.
    2. Putting the mapping in recycle bin and try.
    3. Take it from recycle bin.Even during taking it from recycle it is giving me the following error .
    Error occurred importing mapping
    <DWH_CMMDTY_INVC_FACT_MAP/DWH_CMMDTY_INVC_FACT_MAP>
    (at line 141).
    Detailed Error Message:
    API2014: Internal Error: Error in createStage:
    In above all cases it is giving me the error.
    Could you please help?

Maybe you are looking for