Importing packages/procedures into OWB
Is it possible to import packages or procedures into OWB that are stored on a different database?
I want to call a procedure in a mapping that is stored on a different database. I can only import tables and views (as data source ) from other databases.
I can only import PL/SQL packages into OWB if they're stored in the current database.
Does anybody have a solution?
Regards,
Maurice
Maurice,
Essentially the import uses a dblink, so you have the option to specify the dblink to another place and you should be able to see/import that pl/sql.
The most elegant and prefered way however is to import the pl/sql into the public transformations node (I'm using OWB 9.0.4). This is a bucket that holds sharable pl/sql and seems to address the need for you.
Here again you create the dblink and point at the remote db schema that owns the pl/sql.
Hope this helps,
Jean-Pierre
Similar Messages
-
Import WB_RT_GET_JOB_METRICS procedure into OWB
How do I import this procedure WB_RT_GET_JOB_METRICS into my mapping.
You can get the public transformations. After you have opened your map, you can follow this path to get to the procedure: explorer in upper left pannel --> Pulic transformation --> Pre-defined --> control_center --> WB_RT_GET_JOB_METRICS . Then you can drap it to your map.
-
Import excel file into owb automatically, is it possible?
Is it possible to load several excel files in owb automatically?
I want to avoid the follow situation...
I have like 100 excel files I have to create 100 system dsn each pointing to one excel file.
Is it possible?
ThanksThe forum is how to integrate foreign databases into an oracle database using gateway. From the provided description you're trying to import an Excel file directly into OWB. OWB has its own mechanism to import these files , so better post your issue in the OWB forum:
Warehouse Builder -
Importing existing dimensions into OWB
Does any body know how to import an existing Dimension, created in an Oracle database into OWB so that the dimension definition appears under the dimension tab.
Hi,
I think you can't import a dimension from data base.you have to create throught OWB.
Regards
naren -
Newbie- How to import package, procedures, etc?
I used the "Database export", from Developer computer, to expoty tables,export Procedures,export Packages,etc to a file
from SQl Developer.
In Sql Developer, How do I import those tables, import procedures, import packages to my "LIVE REAL " computer?
I want to copy Package, copy procedure, etc from "Developer computer" to "LIVE REAL DATA" computer?
TIA
Steve42If you have access to the 2 databases from your sqldev client (and thus have connections set up to both of them), just run the obtained export file from the dev DB as script (F5), using the connection to the production DB (drop-down in the upper right corner).
Have fun,
K. -
Importing Stored procedures into pre-made report
<p>Hello all,</p><p>i'v got some trouble with some pre-made reports that we wish to start using with embedded java engine.</p><p>Reports are stored procedure based and the built-in connection is ODBC.</p><p>What I'd like to do is to change the datasource to JDBC datasource and run all queryes through there. Is is possible with CR4E ? </p><p> </p><p>Best regards,</p><p>Henrix</p>
Hi Henrix,
This is possible, however there is a known issue with the Database Explorer that ships with CR4E in that Stored Procs are not displayed. You can check out the following forum thread if you want more information on this specific issue:
*http://diamond.businessobjects.com/node/520*
This issue generally affects creating new reports against Stored Procedures, but it will affect you as well as it will prevent you from using the UI to switch from one database driver to another, Primarily because the Stored Procs won't be displayed in the destination table that you wish to switch to.
To get around this we will need to create a simple java routine to switch the tables via code. The attached code below will go through all of the tables in the main report and the subreport and assign the new JDBC connection information:
package com.businessobjects.samples;
import java.io.IOException;
import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
import com.crystaldecisions.sdk.occa.report.data.ITable;
import com.crystaldecisions.sdk.occa.report.data.Tables;
import com.crystaldecisions.sdk.occa.report.lib.IStrings;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
public class ChangeDatasource {
   /**
   * @param args
   * @throws ReportSDKException
   * @throws IOException
   */
   public static void main(String[] args) throws ReportSDKException, IOException {
      //change the next set of variables to match your requirements
      String connectionURL = "jdbc:derby:classpath:/Xtreme";
      String driverName = "org.apache.derby.jdbc.EmbeddedDriver";
      String DB_USER_NAME="bobj";
      String DB_PASSWORD = "bobj";
      String reportName = "MyODBCReport.rpt";
     Â
      //the next few variables should not need to be changed for JDBC connections
      String SERVER_TYPE = "JDBC (JNDI)";
      String USE_JDBC = "true";
      String DATABASE_DLL = "crdb_jdbc.dll";
      String CONNECTION_URL = connectionURL;
      String DATABASE_CLASS_NAME = driverName;
     Â
      ReportClientDocument clientDoc = new ReportClientDocument();
      clientDoc.setReportAppServer("inproc:jrc");
     Â
      // Open report
      clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
     Â
      PropertyBag propertyBag = null;
      IConnectionInfo connectionInfo = null;
      ITable origTable = null;
      ITable newTable = null;
      Tables tables = null;
     Â
      //this next routine iterates through all the tables in the main report
      //if you need to make specific changes to an individual table you can
      //evaluate the name of the current table and change the code accordingly
      tables = clientDoc.getDatabaseController().getDatabase().getTables();
      for(int i = 0;i < tables.size();i+){<br />         origTable = tables.getTable(i);<br />         newTable = (ITable)origTable.clone(true);<br />         newTable.setQualifiedName(origTable.getAlias());<br />         connectionInfo = newTable.getConnectionInfo();<br />         <br />         // Set new table connection property attributes<br />         propertyBag = new PropertyBag();<br /><br />         // Overwrite any existing properties with updated values<br />         propertyBag.put("Server Type", SERVER_TYPE);<br />         propertyBag.put("Use JDBC", USE_JDBC);<br />         propertyBag.put("Database DLL",DATABASE_DLL );<br />         propertyBag.put("Connection URL", CONNECTION_URL);<br />         propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);<br />         connectionInfo.setAttributes(propertyBag);<br /><br />         connectionInfo.setUserName(DB_USER_NAME);<br />         connectionInfo.setPassword(DB_PASSWORD);<br /><br />         // Update the table information<br />         clientDoc.getDatabaseController().setTableLocation(origTable, newTable);         <br />      }<br />   <br />   // Next loop through all the subreports and pass in the same<br />   // information. You may consider creating a separate method which accepts different settings<br />      IStrings subNames = clientDoc.getSubreportController().getSubreportNames();<br />      for (int subNum=0;subNum<subNames.size();subNum) {<br />         tables = clientDoc.getSubreportController().getSubreport(subNames.getString(subNum)).getDatabaseController().getDatabase().getTables();<br />         for(int i = 0;i < tables.size();i+){
            origTable = tables.getTable(i);
            newTable = (ITable)origTable.clone(true);
            newTable.setQualifiedName(origTable.getAlias());
            connectionInfo = newTable.getConnectionInfo();
            // Set new table connection property attributes
            propertyBag = new PropertyBag();
            // Overwrite any existing properties with updated values
            propertyBag.put("Server Type", SERVER_TYPE);
            propertyBag.put("Use JDBC", USE_JDBC);
    Â
       propertyBag.put("Database DLL",DATABASE_DLL );
            propertyBag.put("Connection URL", CONNECTION_URL);
            propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
            connectionInfo.setAttributes(propertyBag);
            connectionInfo.setUserName(DB_USER_NAME);
            connectionInfo.setPassword(DB_PASSWORD);
            // Update the table information
            clientDoc.getSubreportController().getSubreport(subNames.getString(subNum)).getDatabaseController().setTableLocation(origTable, newTable);
            }
         }
     Â
      //save the report with the changes
      clientDoc.save();
  Â
   }
  Â
 This code is pretty generic, however you can modify it to be specific for each report if necessary.
Regards,
Sean Johnson (CR4E Product Manager)
Rate this plugin @ Eclipse Plugin Central </p> -
Import PLSQL procedure or package into OWB
Here's a simple question. In schema X, I created a procedure and a package. If I try to import them into OWB (10g R2), connecting to schema X and clicking on transformations and "import" doesn't show the newly created objects for import. I tried granting execute to OWB10GR2, but no luck. Closed and re-started design center with no luck.
Creating a procedure in Design Center and then deploying it to schema X works and is a workaround, but it's awkward to write code there (compile is deploy, which takes a lot longer than normal compile).
What am I missing so that I can't import a procedure into design center?OK, so I'm going to answer my own question. Maybe someone else can use the info...
The problem is that I have development and production configurations.
Procedure or package defined only in one (dev or prod) schema won't show up on the import list. Apparently, in order to import the object into OWB you need to define it in all environments. Otherwise it doesn't show up on the import list. -
Importing a package into OWB repository.
Hi,
there is a package existing in my OWB repository.
Package ABC
Procedure PQR(pram1 varchar2,param2 varchar2)
now i have modified this package in my target schema, an extra parameter is added to the procedure PQR.
Procedure PQR(pram1 varchar2,param2 varchar2,param3 number).
now when I re import this package to my OWB repository module. it shows both versions of the procedures.
Package ABC
PQR(pram1 varchar2,param2 varchar2)
PQR(pram1 varchar2,param2 varchar2,param3 number)
PQR(pram1 varchar2,param2 varchar2) is still vsible in OWB repository though it is replaced with PQR(pram1 varchar2,param2 varchar2,param3 number) in target schema.
Is there any way I can replace the old version of procedure with the new version in OWB repository.
Regards
RD_RBSHi
Standard approach to be followed for any object modification
1. If you have created your package from OWB and deployed it into your DB, always do it that way i.e. Design center -->DB . Do not make any modifications on DB level and import in back to your Design center. OWB manages Ids for all objects on the repository and this will confuse it. That is why you see two versions of the same package . Any modifications should be done on Design center level and then do a replace on the package from control center
2. If an object (package or procedure) is created on DB directly and is imported into design center, follow the same norm everytime you make any changes to that object. The status of that object will appear as "New" or "Not deployed" on control center but that is fine because OWB has no ID on its repository to maintain this information.
3. If you need to rename any object already deployed from OWB, always drop it first, then rename it and then deploy it. That way OWB will maintain the name and ID on its end and not get confused.
4. For your case, you can drop the older version of the package from OWB, delete the one imported from Database into OWB, make the changes on OWB level (adding parameter etc) and then redeploy the same package as replace from control center.
Hope these tips help
birdy -
Argument Order Reversed Importing Package into OWB
I'm having a problem importing Packages into OWB. It recognizes the Functions contained in the Package, however the order of the arguments for each Function are reversed after I complete the import into OWB. This causes execution of the mapping to fail... Additionally, after importing into OWB, OWB doesn't seem to recognize any optional parameters or default values in the signature of the Function. I must be doing something wrong... Can anyone help...
Thanks
AlanHi
Standard approach to be followed for any object modification
1. If you have created your package from OWB and deployed it into your DB, always do it that way i.e. Design center -->DB . Do not make any modifications on DB level and import in back to your Design center. OWB manages Ids for all objects on the repository and this will confuse it. That is why you see two versions of the same package . Any modifications should be done on Design center level and then do a replace on the package from control center
2. If an object (package or procedure) is created on DB directly and is imported into design center, follow the same norm everytime you make any changes to that object. The status of that object will appear as "New" or "Not deployed" on control center but that is fine because OWB has no ID on its repository to maintain this information.
3. If you need to rename any object already deployed from OWB, always drop it first, then rename it and then deploy it. That way OWB will maintain the name and ID on its end and not get confused.
4. For your case, you can drop the older version of the package from OWB, delete the one imported from Database into OWB, make the changes on OWB level (adding parameter etc) and then redeploy the same package as replace from control center.
Hope these tips help
birdy -
Importing Database Package into OWB changes position of parameters .. Nasty
Hi all,
Anyone else having the same problem ? Any solutions ? Or is this a bug.
When a package is imported from a DB schema, OWB kindly changes the order in which the parameters are listed.
The effect is that any mapping using the procedure or function will not have the correct parameters passed to.
For example.
DB_Test_proc
io_name_in in out varhar2,
o_clean_name_out out varchar2
After importing in OWB the parameter positions are reversed .... very nasty.
Anyone can help or do I raise a bug ?
Regards
NickHi Borkur,
Dropping and re-importing the package would work well (works for another module) but this is a package whose procedures and functions are heavily referenced in several mappings and process flows (supports the custom job management). So, I would be forced to re-synchronize them all which I want to avoid. The other way would be to modify the package manually (only the signature is needed not the code since I will not deploy it from OWB, in fact, I deployed it from Oracle Designer !!!). But OWB Paris doesn't allow this. Once imported, always imported. You can modify imported tables, procedures, functions but not packages. Or is there a way ???
regards
Thomas -
Import package from one project into another
Hello everyone,
I have some projects.
An enterprise and war project created in netbeans.
I would like to use some files from one project to another. when I import
the package I get the error-
'package x does not exist'
I have added the package to the project but I still get the error.
I have also added the project to import to my glasspath but still.
E.g.
set classpath
.;c:\enterpriseA;
My next idea is to create a war project into my enterprise project and copy the files
from the war project into it in order to use it. But I'm sure there is a better way.
THanking you in advance.
eve
Edited by: evepokua on Nov 22, 2009 1:44 PMOne mistake I keep making is that I don't add the package to the
Dependencies of the plugin I'm writing. You have to go to plugin.xml,
and add the package you depend on to the Dependencies section. Maybe you
didn't do this?
Michael
nasti wrote:
> Hello everybody!
> I am new user of osgi and eclipse. I tried to do some of Oscar examples
> but I had some problems. Namely, the problem in import of package from
> one project into another in Eclipse.
> I add first project to the Build Path of the second one.
> I add to the first project manifest line: Export-Package example2.service.
> I add to the second project manifest line: Import-Package example2.service.
> But when I tried to execute these bundles the
> java.lang.NoClassDefFoundError was occurred. May be you will help me
> with this problem.
> Thanks....
>
> -
Geting an error trying to import a data file into OWB repository
Hi,
We're using OWB 11.1.0.7.0
I'm trying to import a new data file and I'm getting an error.
When I go to The Project/Files/ I right click on the module I want to add the files to,
I get a 'Wizard' titled 'Welcome to the Import Metadata Wizard'.
I click next.
I get the 'Filter Information' screen that asks if I want to select 'All Data Files' or a specific file.
I pick 'All Data Files' and click 'next'.
I get the 'Object Selection' screen that has a left and right panel. The left side is titled 'Available' and the right side is titled Selected.
The 'Available' panel had the directory in Linux (/etl/datafeeds/dev) where our data files are stored with a plus sign next to it.
When I click the plus sign, I get an error message that says:
API2836: Directory
/etl/datafeeds/dev does not exist.Has anyone seen this? What is the work around? Is it a bug? How do I import a data file into OWB if this isn't the way to do it?
Thanks,Hi, is there any obligation to use import wizard?
can you use right click and import view/table?
Ugur MIHCI
www.ifslibrary.com -
How to import only procedures, functions, and packages only
Hi everybody...
How to import only procedures, functions, and packages only from one user to another user.
Thanks in advance
palThanks for your reply...i did the following..can you please help from this how to proceed
---------------- getcode.sql -------------------------------
set feedback off
set heading off
set termout off
set linesize 1000
set trimspool on
set verify off
spool &1..sql
prompt set define off
select decode( type||'-'||to_char(line,'fm99999'),
'PACKAGE BODY-1', '/'||chr(10),
null) ||
decode(line,1,'create or replace ', '' ) ||
text text
from user_source
where name = upper('&&1')
order by type, line;
prompt /
prompt set define on
spool off
set feedback on
set heading on
set termout on
set linesize 100
------------------- getallcode.sql -------------------------
set termout off
set heading off
set feedback off
set linesize 50
spool c:\xtmpx.sql
select '@getcode ' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
spool c:\getallcode_INSTALL
select '@' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
set heading on
set feedback on
set linesize 130
set termout on
@xtmpx.sql
I did this one user and created the xtmpx.sql
and getallcode_INSTALL.LST.
From this, how to proceed to run these in another user.
Thanks,
Pal -
Insert existing procedures into packages
hi all,
i have
begin
pg_reins_flat_file.pr_load_temp('1','sr_pre_inforce.txt');
pg_reins_flat_file.pr_load_temp('2','sr_pre_spinforce.txt');
end;
i need create a new procedures to insert into my exisiting packages.
wat i shud do ? tks.I'm not sure that I really understand what you're asking here.
If you want to create a new procedure oin the PG_REINS_FLAT_FILE package, you'd just have to edit that package spec (assuming you want to create a public procedure) and package body to add the new procedure. You don't insert procedures into a package.
Justin -
I could not find a way to create a Package Spec within OWB.
If I created the spec and body in sqldeveloper then imported it into OWB
it created the package spec and body and I could go between and modify at will.
Am I missing something?
Is there a way to create the spec in owb.
thanks
greGPackage spec and body appers in OWB only for imported packages.
For packages created (not imported) in OWB spec generated automatically based on specification of function/procedure which you defined for this package
Regards,
Oleg
Maybe you are looking for
-
Converting Script from OTF to PDF format
Hi Experts, Using FM CONVERT_OTF in SAP Script print program I am converting data of Script from OTF to PDF format but the data in PDF document srinks and looks like slightly overlapping one leter on the other, can any ony please tell me that how can
-
ITunes does not open when iPod is connected
Although the option is checked in iTunes for this iPod touch, iTunes does not automatically open when the iPod is connected. iTunes recognizes the iPod and syncs work as expected, but I have to launch iTunes 'manually'. Both the MacBook Pro and the
-
I have problems with the Safari contextual menu
It disappears after a while, and the only thing left is Copy image, Download image and some more. Save image as, and Open link in a new tab etc. is gone. It comes back for a short while if I empty cache, and restart Safari, then it disappears again.
-
My Mac Book Pro only show white screen
When I restart my PC. It only show white screen. It cannot go on. What should I do?
-
Why does iPad not have a calculator built in, like the iPhone and iPod Touch?