Reverse engineering OWB (11.2) maps from SQL
Hi,
Is there a way to reverse engineer SQL code into OWB Maps using Experts. I have seen one for older version of OWB, but wondering if it's possible (or can one use the same downloads) for the new version.
http://blogs.oracle.com/warehousebuilder/2007/08/sql_and_owb_accelerated_map_co.html
Thanks.
Use the same MDL it will be upgraded when you import the MDL, any problems let me know.
Cheers
David
Similar Messages
-
Execute a mapping deployed with OWB 9.0.4 from SQL*Plus
Hello,
I could execute a mapping designed with OWB 9.0.3 from SQL*Plus with the next sentence:
SQL> exec my_mapping.main;
But now, with OWB 9.0.4, mappings are deployed as functions (in 9.0.3 were deployed as procedures) and they need parameters.
Somebody know how I can execute deployed mappings with OWB 9.0.4 from SQL*Plus? I don't know the parameters I need to call a mapping.
Thanks in advance,
Pedro.Well, I've solved the problem with roles but
I've executed the script called sqlplus_exec_template.sql and it fails at Stage 2 because the next sentence
l_audit_execution_id := wb_rt_api_exec.open(l_task_type, l_task_name, l_location_name);
returns me NULL.
It is not clear the value that the variable called l_location_name have to stored. The script explain that this variable store the physical name of the
location to which the task was deployed. I understand that this variable have to store the schema where the mapping was deployed. That's right?
So I called the script in this manner:
SQL> @sqlplus_exec_template OWBRUN904I OJBHT PLSQL MY_MAPPING "," "," ;
where OWBRUN904I is the name of the Runtime Repository Schema, OJBHT is the
schema where MY_MAPPING is deployed, PLSQL is the task type and MY_MAPPING is
the name of the mapping I've designed.
Can you tell me why the scripts fails?
Regards,
Pedro -
MESSAGE MAPPING FROM SQL TO RFC(BAPI)
Hello Guys,
Im just new here in SAP XI version 7.0 . Can anyone teach me how to map objects using IR (design) between sender (data coming from sql 2005) and receiver (using Bapi_Salesorder_Createfromdat2)?
there are only specific fields i need to transfer the data like the followings :
do i need to map all fields from sender to receiver?tell me how..
*ORDER_HEADER_IN
-DOC_TYPE = ZTRV
-SALES_ORG =4000
-DISTR_CHAN =40
-DIVISION=41
-SALES_OFF=4101
-SALES_GRP=411
-PURCH_NO_C='TEST TPL1' (MUST BE UNIQUE)
-PMNTTRMS =Z015
-PURCH_DATE=09/04/2008
*ORDER_PARTNERS
-PARTN_ROLE= AG
-PARTN_NUMB=1100074
Thanks in advance
aVaDuDzHi,
Create :
1. Source & Target Data Types
2. Messge Type (for source & target data types)
3. Two Message Interface for using above message types
4. One Message mapping using source & target message Type
5. One Interface mapping.
In message mapping just map those field which you require. You can leave rest of the fileds un mapped at source which are not required to map.
Regards,
Sarvesh -
OWB 9.2 Sourcing from SQL Server 8.0
I looked at the PDF for sourcing from EXCEL and have a couple of questions with regards to sourcing from SQL server 8.0:
1. Do you need SQL ODBC driver installed to source from
SQL Databases?
2. Where does one get this driver?
3. How does one install this driver?You can get the document you are looking for on http://www.oracle.com/technology/products/warehouse/pdf/Cases/case3.pdf .
You should definitely have an ODBC driver for the SQL Server. Oracle provides the Oracle part wit the database ("generic connectivity"). Not sure about SQL server - I believe MSFT provides them free, if not you should purchase one.
Regards:
Igor -
Function to call Process-flows/mapping from SQL
Hi All,
Can any one of you send me the function to call process-flows/mappings (eg: I have 10 mapping/Process-flows). It is an urgent requirement pending in my final testing.
Plz help me in this regard.
RegardsHi
All information that you need, you can find in $ORACLE_HOME/owb/rtp/sql/. BAsically all executions in owb is called through wb_rt_api_exec package.
for example:
declare
variable exec_return_code number;
procesflow varchar2(255);
plsqlname varchar2(255);
begin
-- Initialize Return Code
exec_return_code := owbrt_sys.wb_rt_api_exec.RESULT_FAILURE;
-- Run Task
procesflow:='WF_X1';
plsqlname:='MP_X1'
exec_return_code := owbrt_sys.wb_rt_api_exec.run_task('OWF_LCTN','PROCESS',procesflow, ' ' );
if exec_return_code = 1 then
exec_return_code := owbrt_sys.wb_rt_api_exec.run_task('STAGE_LCTN','PLSQL',plsqlname, ' ' );
end if;
end;
Regards -
(262119469) Q DBC-17 How is data mapped from SQL-type to Java-type?
Q<DBC-17> Is there any documentaion for the data mapping between the "java type" and
the "sql type"
A<DBC-17> The data types are the standard JDBC mappings. Check the javadoc for the
java.sql package.Hi,
If you are seeing last 3 fields coming as empty.... then you need to check the seperator type which correctly seperats one fields from another during mapping to BW infoobject.
Thanks
Kishore Kusupati -
Data Type Mapping from SQL server to Oracle
I am using Oracle 12c with heterogenous services connecting to SQL server DB. Some of the columns in the SQL server SB are defined as 'nvarchar(max)'. These are coming over to Oracle as 'long' type columns. I would like these to be 'varchar2' types in Oracle so I do not have any of the restrictions related to 'long' type fields when using. I can create a view in SQlServer to convert the data type ie. nvarchar(100). What is the highest value I can use to make the data show in Oracle as varchar? BTW I tried nvarchar(4000) but that still showed as long. I tried nvarchar(1000), and that did show as varchar.
The maximum value for a nvarchar2 in Oracle is 2000. The mapping -if the remote column is mapped to an Oracle varchar/nvarchar- depends on the data type returned by the ODBC driver. When the driver returns SQL_Varchar, then the maximum precision is 4000 and when it will map it to SQL_WVarchar then it is 2000.
As your Oracle database uses AL32UTF8 as character set you will get the nvarchar(max) mapped to Oracle longs as the content of your SQL Server nvarchar is stored using UCS2 character set which is covered by the Oracle database charset UTF8. So it shouldn't really matter if the returned string is mapped to an Oracle varchar or nvarchar. -
Problems running owb 10gr2 package (mapping) from sqlplus
not sure what i'm doing wrong.
here is how i am trying to do it:
1 declare
2 out1 varchar2(100);
3 begin
4 entity_map.main( p_status => out1
5 , P_MAX_NO_OF_ERRORS => '50'
6 , P_COMMIT_FREQUENCY => '1000'
7 , P_OPERATING_MODE => 'SET_BASED'
8 , P_BULK_SIZE => '50'
9 , P_AUDIT_LEVEL => 'AUDIT_COMPLETE'
10 , P_PURGE_GROUP => 'WB'
11 );
12 dbms_output.put_line('Result = '||out1);
13* end;
SQL> /
entity_map.main( p_status => out1
ERROR at line 4:
ORA-06550: line 4, column 1:
PLS-00306: wrong number or types of arguments in call to 'MAIN'
ORA-06550: line 4, column 1:
PL/SQL: Statement ignored
here is the procedure spec:
PROCEDURE Main(p_status OUT VARCHAR2, "TRUNCATE_LOAD" IN VARCHAR2
DEFAULT 'false', "AW_EXECUTE_RESULT" OUT NOCOPY VARCHAR2,
p_max_no_of_errors IN VARCHAR2 DEFAULT NULL,
p_commit_frequency IN VARCHAR2 DEFAULT NULL,
p_operating_mode IN VARCHAR2 DEFAULT NULL,
p_bulk_size IN VARCHAR2 DEFAULT NULL,
p_audit_level IN VARCHAR2 DEFAULT NULL,
p_purge_group IN VARCHAR2 DEFAULT NULL)
any ideas?nevermind..i needed to pass in another variable for "AW_EXECUTE_RESULT"
-
Change the mapping generation code from sql*loader to pl/sql
I want to use a mapping with a flat file operator to generate pl/sql code even if a mapping generate sql*loader code as default.
I tried to change the Language generation property of the mapping but an API8548 error message is shown. The suggested solution by OWB is to change the language generation code in the property inspector of the mapping.
I can't use external table because I have to work with a remote machine.
What i have to do to change the generation code from SQL*Loader to PL/SQL?How about breaking this out into 2 mappings? In the first mapping, map a flat file operator to an table using SQL*Loader code. Then define a second mapping using the table as source and therefore generate PL/SQL. Then use process flow to launch the 2nd map to run after completion of first.
-
I have a sql server source, and the target is oracle10.2. OWB 10.2. I can connect to connect to sql server from sql*plus and see the data.
In OWB i imported the tables and created a simple mapping 1:1. It Validated and generated code successfully.
When i deploy the mapping first time i am not getting error message but i get 6 warning messages. but when i deploy the mapping second time i am getting following error and 6 warning messages.
Name Action Status Log
NON_ORACLE_SS_LOCATION1 Create Error RA-02011: duplicate database link name
SRT_I_ODBC_M Create Warning ORA-06550: line 11, column 3: PL/SQL: SQL Statement ignored
SRT_I_ODBC_M Create Warning ORA-06550: line 147, column 7: PL/SQL: SQL Statement ignored
SRT_I_ODBC_M Create Warning ORA-06550: line 177, column 3: PL/SQL: ORA-00942: table or view does not exist
SRT_I_ODBC_M Create Warning ORA-06550: line 26, column 3: PL/SQL: ORA-00942: table or view does not exist
SRT_I_ODBC_M Create Warning ORA-06550: line 34, column 3: PL/SQL: SQL Statement ignored
SRT_I_ODBC_M Create Warning ORA-06550: line 49, column 3: PL/SQL: ORA-00942: table or view does not exist
can i know where exactly i am going wrong?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 -
Executing a mapping from sqlplus in OWB 904
I have used the below syntax to execute OWB 902 mappings as below:
sqlplus / <<*sql*
Execute MAP_SOMETHING.MAIN();
sql
I deployed the same mapping with new version of OWB 904.. it did not work. What is new syntax to execute the mapping from sqlplus?From OWB 9.0.4 on, you must use the execution template to execute your mappings from sql. The template file, that has a brief doc section in its heading is:
<OWB installation directory>/owb/rtp/sql/sqlplus_exec_template.sql
Regards:
Igor -
Reverse engineering SQL (not database)
Hello,
Is it planned to provide a tool to reverse engineer SQL statements as Sourceforge's Revj (Reverse Snowflakes Joins) do ?
This tool generates an ER Diagramm from an SQL Statement without connecting to the database. a demo is available at http://snowflakejoins.com/
Nb: It works fine with statements comming from SIEBEL or Oracle BI Analytics.
Regards
PAscalYou can Reverse engineering any database that
you have an ODBC driver installed for (you can set up an ODBC link to access via the ODBC administration utility under Oracle for Windows NT). From the menu choose Generate=> Capture Design of => Server Model. This brings up a tabbed dialouge box with three source settings.Choose the last radio group item - ODBC. There you will find a choice for MS Acess v7.0 (note:type will be set for you automatically).
Much success.
null -
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,
AbhayIf 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. -
Error mapping, OGG from SQL 2008 to Oracle 11g
Hi Experts
Please I hoppe you can help me, I am using OGG to replicate from SQL 2008 to Oracle 11g R2, I can insert rows and replicate without problems, but when I update or delete on the Source the replicat stop working.
This is the mesage:
2012-06-11 09:51:57 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, msrep.prm: Error mapping from FACTURA.EMP to GOLDENGATE.EMP.
2012-06-11 09:51:57 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, msrep.prm: PROCESS ABENDING.
--- Discard FIle
Key column FIRST_NAME (1) is missing from delete on table GOLDENGATE.EMP
Key column LAST_NAME (2) is missing from delete on table GOLDENGATE.EMP
Missing 2 key columns in delete for table GOLDENGATE.EMP.
Current time: 2012-06-11 09:51:57
Discarded record from action ABEND on error 0
Aborting transaction on /u01/app/goldenGate/dirdat/ms beginning at seqno 0 rba 13729
error at seqno 0 rba 13729
Problem replicating FACTURA.EMP to GOLDENGATE.EMP
Mapping problem with delete record (target format)...
ID = 121
Process Abending : 2012-06-11 09:51:57
------ SOURCE TABLE
create table [factura].[emp] (
[id] [smallint] not null,
[first_name] varchar(50) not null,
[last_name] varchar(50) not null,
constraint [emp_pk] primary key clustered (
[id] asc
) with (pad_index = off, statistics_norecompute=off, ignore_dup_key=off, allow_row_locks=on, allow_page_locks=on) on [primary]
) on [primary]
------ TARGET TABLE
CREATE TABLE GOLDENGATE.EMP
ID NUMBER,
FIRST_NAME VARCHAR2(50 BYTE),
LAST_NAME VARCHAR2(50 BYTE)
Thank you
J.A.Hi
I altered the table in Oracle, I add the primary key:
alter table emp add constraint
pk_emp primary key (ID );
Now GG replicate insert, delete and update.
J.A. -
Reverse Engineering of SQL server in ODI
Hi,
I created physical and logical architecture for MSSQL in topology manager. Connection and tested and done successfully.
Now when I connected to Designer and trying to do selective reverse for MSSQL, its giving me below error :
The Technology or the Driver used does not support Reverse Engineering
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(Unknown Source)
at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
at com.sunopsis.graphical.frame.b.ip.a(ip.java)
at com.sunopsis.graphical.frame.b.ip.a(ip.java)
at com.sunopsis.graphical.frame.b.hq.b(hq.java)
at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Unknown Source)
Please reply and guide me whats missing???I have the same problem (The Technology or the Driver used does not support Reverse Engineering).
I am using ODBC connection because my SQL SERVER DB use only Window Authentication, and by using JDBC driver you can access Ms SQL SERVER DB only using user-id and password.
Maybe you are looking for
-
Steps to create your own self signed certificate with java plugin working
You need two tools that comes with your jdk which are keytool and jarsigner. Steps explain below in detail. Don't use netscape signtool, it will NEVER work! * keytool -genkey -keyalg rsa -alias tstkey -keypass 2br2h2m -dname "cn=Test Object Signing C
-
Usage of Variable Transport Binding(Receiver SOAP adapter) in multimapping
Hi All, Mentioned below is the flow of the scenario that I am facing issues with: ECC -> PI (A) -> PI (B) - Receivers(1,2,3..n) I am working on PI(A). An Idoc containing multiple Plants is triggered which is mapped to an XML in PI(A). Depending on th
-
I have a 2 month old Imac,I have burned 5 cd's with it.Today for the 1st time I put in one of the cd's and the cd drive started a clicking noise [5x] ,then ejected the cd. I put in a 2nd cd and it clicked 2x opened itunes,played 3 seconds and stopped
-
Front Row TV Show menu gets confused and jumps back
I recently upgraded my Intel Mac mini to Mac OS X 10.5.5 (Leopard). Front row seems to get confused as I browse through my TV Shows menu. For instance, if I scroll down to "Heroes" (season 2) the select bar seems to jump to "Grey's Anatomy" on it's o
-
SAP import the part of system copy.
Dear Experts, I am doing SAP import the part of system copy. Every phase is complete successfully but in u201C Create Database Schema u201C status bar i got information u201C remove schema user SAPSR3u201D. This step is running since 10 hours. Is t