How to execute the package generated from Warehousebuilder ??
Hi,
I am very new to OWB, i have created the mapping and i want to write a oracle job to run the mapping, Can i explicitly execute the Package generated by passing the parameters required,
I have actually created like following,
DECLARE
p_status VARCHAR2 (200);
p_deptno NUMBER;
p_max_no_of_errors VARCHAR2 (200);
p_commit_frequency VARCHAR2 (200);
p_operating_mode VARCHAR2 (200);
p_bulk_size VARCHAR2 (200);
p_audit_level VARCHAR2 (200);
p_purge_group VARCHAR2 (200);
BEGIN
p_deptno := 10;
p_max_no_of_errors := NULL;
p_commit_frequency := NULL;
p_operating_mode := NULL;
p_bulk_size := NULL;
p_audit_level := NULL;
p_purge_group := NULL;
map_filter_parameter.main (p_status => p_status,
p_deptno => p_deptno,
p_max_no_of_errors => p_max_no_of_errors,
p_commit_frequency => p_commit_frequency,
p_operating_mode => p_operating_mode,
p_bulk_size => p_bulk_size,
p_audit_level => p_audit_level,
p_purge_group => p_purge_group
DBMS_OUTPUT.put_line ('P_STATUS = ' || p_status);
END;
I am actually following error,
Line: ----
Connecting to the database bl.
ORA-20013: The workspace has not been set. Please call wb_workspace_management.set_workspace procedure to set workspace first.
ORA-06512: at "OWBSYS.WB_WORKSPACE_MANAGEMENT", line 1356
ORA-06512: at "OWBSYS.WB_WORKSPACE_MANAGEMENT", line 1387
ORA-06512: at "OWBSYS.WB_RTI_UTIL", line 102
ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1020
ORA-06512: at "BL.MAP_FILTER_PARAMETER", line 2798
ORA-06512: at line 19
Process exited.
Disconnecting from the database bl.
I am not able to connect OWBSYS to see whats going on with OWBSYS.WB_WORKSPACE_MANAGEMENT as well.
Please suggest
Regards,
Ashoka BL
Hi Nawneet,
I tried like the following and getting the results,I searched in the forum to do this,
DECLARE
p_status VARCHAR2 (200);
p_deptno NUMBER;
p_max_no_of_errors VARCHAR2 (200);
p_commit_frequency VARCHAR2 (200);
p_operating_mode VARCHAR2 (200);
p_bulk_size VARCHAR2 (200);
p_audit_level VARCHAR2 (200);
p_purge_group VARCHAR2 (200);
BEGIN
p_deptno := 20;
p_max_no_of_errors := NULL;
p_commit_frequency := NULL;
p_operating_mode := NULL;
p_bulk_size := NULL;
p_audit_level := NULL;
p_purge_group := NULL;
owbsys.wb_workspace_management.set_workspace('ASHOK_WORKSPACE','ASHOK_BL');
map_filter_parameter.main (p_status => p_status,
p_deptno => p_deptno,
p_max_no_of_errors => p_max_no_of_errors,
p_commit_frequency => p_commit_frequency,
p_operating_mode => p_operating_mode,
p_bulk_size => p_bulk_size,
p_audit_level => p_audit_level,
p_purge_group => p_purge_group
DBMS_OUTPUT.put_line ('P_STATUS = ' || p_status);
END;
Do you please let me know what are these,
'PLSQLMAP','CUSTOMER_MAP' == WorkSpace_Name and User_Name ??
Regards,
Ashoka BL
Edited by: user7348859 on May 26, 2009 5:07 AM
Similar Messages
-
How to execute the packaged procedure(having out param) in TOAD for Oracle
Hi.
Could you help me
How to execute the packaged procedure having out parameters in TOAD for Oralce..
Thanks..Use anonymous PL/SQL block to execute it.
Example.
DECLARE
<out variable name> <out variable data type>;
BEGIN
<package name>.<procedure name>(<out variable name>);
END; -
How to execute a packaged function from within DML
Hi
can someone explain in how many ways can we execute a packaged function from within a DML statement.
examples will help.
ThanksHi,
There's no difference between using functions in DML and using functions in any other SQL statement. Almost any place where a literal is allowed, you can have any kind of expression, including a an expression involving one or more functions.
For example, in
UPDATE table_x
SET column_a = 0
WHERE column_b > SYSDATE;You could use functions instead of 0, column_b, or SYSDATE. (Actually, SYSDATE is a function.) You can not use functions instead of table_x or column_a (since it is to the left of the "=" sign). -
How to execute the InDesign Javascript from outside in MAC
Hi All,
I need to execute the InDesign Javascript from outside in MAC machine.
Anyone can help me.
Thanks in advance.
Regards,
RamkumarIf you just want to imitate double clicking a file, use execute() method, e.g.:
var myJavaScriptFile = new File("~/Desktop/Test.jsx");
myJavaScriptFile.execute();
At the top of your .jsx file type #target indesign to make the script run in InDesign.
And I want to add to what Harbs said in the previous post: when you use do script command, you can also send parameters and get back values. See DoScriptParameters and DoScriptReturnValues sample scripts from InDesign CS3 Guide Scripts for details. -
How to execute the package in odi
hi
i have a 3 interfaces.i have to put it in package and execute this package.but problem is that it is executing in a infinite loop.
so how to execute these 3 interfaces serielly in package.(without in a loop)If you want to execute your 3 interfaces one by one you just have to define a First Step (Right click "First Step")
And then to link the first interface with the second one with the Green arrow, and the 2nd one with the third with another green arrow...
If after that you link the 3rd with the first it will loop...
So avoid this.
Regards,
Brice -
How to execute the packaged procedure
Hello i've written the following package: It's created fine but while running that procedure i'm getting the following error
create or replace package ttt_example as
TYPE ColumnsInfo IS RECORD (
columnName VARCHAR2 (30),
dataType VARCHAR2 (30)
TYPE ColumnsInfoList IS TABLE OF ColumnsInfo;
FUNCTION getColumns (
schemaName VARCHAR2,
tableName VARCHAR2
RETURN ColumnsInfoList;
PROCEDURE fillTable (
schemaName VARCHAR2,
tableName VARCHAR2
end;
create or replace package body ttt_example is
PROCEDURE fillTable (
schemaName VARCHAR2,
tableName VARCHAR2
) IS
i NUMBER;
columnsList ColumnsInfoList;
columnsStr VARCHAR2 (4000);
valList VARCHAR2 (4000) := NULL;
insertTime VARCHAR2 (100);
BEGIN
DBMS_OUTPUT.PUT_LINE ('fillTable - BEGIN');
columnsList := getColumns (schemaName, tableName);
i := columnsList.FIRST;
IF i IS NOT NULL THEN
columnsStr := columnsList (i).columnName;
i := columnsList.NEXT (i);
END IF;
WHILE i IS NOT NULL LOOP
columnsStr := columnsStr || ', ' || columnsList (i).columnName;
i := columnsList.NEXT (i);
END LOOP;
i := columnsList.FIRST;
WHILE i IS NOT NULL LOOP
IF i != columnsList.LAST THEN
IF columnsList (i).dataType = 'NUMBER' THEN
valList := valList || i || ', ';
ELSIF columnsList (i).dataType = 'VARCHAR2' THEN
valList := valList || '''' || i || '''' || ', ';
ELSIF columnsList (i).dataType = 'DATE' THEN
--EXECUTE IMMEDIATE 'SELECT TO_CHAR(SYSTIMESTAMP) FROM dual' INTO insertTime;
--valList := valList ||''''|| insertTime||''''|| ', ';
valList := valList || 'SYSDATE, ';
ELSE
DBMS_OUTPUT.PUT_LINE ('WRONG DATA TYPE ' || columnsList (i).dataType);
END IF;
ELSE
IF columnsList (i).dataType = 'NUMBER' THEN
valList := valList || i;
ELSIF columnsList (i).dataType = 'VARCHAR2' THEN
valList := valList || '''' || i || '''';
ELSIF columnsList (i).dataType = 'DATE' THEN
--EXECUTE IMMEDIATE 'SELECT TO_CHAR(SYSTIMESTAMP) FROM dual' INTO insertTime;
--valList := valList ||''''|| insertTime||'''';
valList := valList || 'SYSDATE';
ELSE
DBMS_OUTPUT.PUT_LINE ('WRONG DATA TYPE ' || columnsList (i).dataType);
END IF;
END IF;
i := columnsList.NEXT (i);
END LOOP;
DBMS_OUTPUT.PUT_LINE ('fillTable - MIDDLE');
EXECUTE IMMEDIATE 'INSERT INTO ' || tableName || '(' || columnsStr || ') VALUES (' || valList || ')';
DBMS_OUTPUT.PUT_LINE ('fillTable - END');
END;
FUNCTION getColumns (
schemaName VARCHAR2,
tableName VARCHAR2
RETURN ColumnsInfoList IS
columnsList ColumnsInfoList;
BEGIN
DBMS_OUTPUT.PUT_LINE ('getColumns - BEGIN');
EXECUTE IMMEDIATE 'SELECT COLUMN_NAME, DATA_TYPE FROM ALL_TAB_COLUMNS WHERE OWNER = ''' || schemaName || ''' AND TABLE_NAME = ''' || tableName || ''''
BULK COLLECT INTO columnsList;
DBMS_OUTPUT.PUT_LINE ('getColumns - END');
RETURN columnsList;
EXCEPTION
WHEN OTHERS THEN
RAISE;
END;
end;
/ While executing that package procedure
SQL> begin
2 ttt_example.fillTable('TEST','EMPE');
3 end;
4 /
begin
ERROR at line 1:
ORA-00928: missing SELECT keyword
ORA-06512: at "ttt.TTT_EXAMPLE", line 60
ORA-06512: at line 2help me in thisI was able to reproduce with NULL for columnstr;
create table t (c1 varchar2(20), c2 varchar2(20));
Table created
create or replace procedure p
tablename varchar2,
columnsstr varchar2,
vallist varchar2
) is
begin
execute immediate 'INSERT INTO ' || tablename || '(' || columnsstr ||
') VALUES (' || vallist || ')';
end;
Procedure created
exec p('t', 'c1,c2', '''a'',''b''');
PL/SQL procedure successfully completed
select * from t;
C1 C2
a b
exec p('t', '', '''a'',''b''');
begin p('t', '', '''a'',''b'''); end;
ORA-00928: missing SELECT keyword
ORA-06512: at "MSCALLION.P", line 8
ORA-06512: at line 2 -
[Solved] How to recover the package list from another installation?
Hello,
I supposed gparted could make a fine result by moving the partition, but it didn't.
I was doing that on an USB installation, now fsck recover partially my partition, but mostly many files are gone. It seems that pacman databases are saved, then I would like to recover the list and try to reinstall all packages.
I can't enter by chroot on that partition, bash fails.
My attempt is to use pacman -r /mounted/partition packagelist, if I'll get the list, then it mostly possible to regain chroot access
EDIT
I got a flashback and I applied modifications in a temporary pacman.conf. In that configuration I modified the paths to all file used by pacman to reflect the other installation.
Finally I could get the list, but I didn't go for an update, because the installation was too old. I'm doing a fresh install with the recovered package list.
Last edited by TheSaint (2013-08-02 09:39:59)I'm entirely agreed with you.
Some time I fail to remember such things. I don't regret much the loss, it was just a support installation for emergency cases. Home is safe in another partition
However it is a good exercise to rescue the package list. -
Error with Project Parameters when executing the package with dtexec command
Hi,
We have started migrating our SSIS package from 2005 version to SSIS 2012. In SSIS 2005 we were using XML configuration files and executing the packages with dtexec command from the packages folder (without deploying packages to filesystem).
Now in SSIS 2012, we have seen Project Parameters and created couple of package parameters and used those parameters in the package. when executing this package from solution explorer it was working fine but when i try to execute the same package from command
line with Dtexec command, it was showing an error message of 'Not able to map Project Prameters to configurations'.
Could you please give me an idea of how to execute the packages from command line by using dtexex command. basically i would like use project parameters in 2012 similar to configurations?
Thanks,
Venu.Refer
http://msdn.microsoft.com/en-IN/library/hh231187.aspx
you can pass parameter like this
/SET \Package.Variables[$Package::ParameterName];<value> /SET \Package.Variables[$Project::ParameterName];<value>
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to execute a .sql file from a batch file
Hi all
I've to take backup of a database weekly twice on every wednesday & Friday @ 5pm IST. I've written a hot backup script, which works every well.
now i want to automate the script. ie i want this script to run on wednesday & friday @ 5pm without any human interfearance ie with out actually any1 executing this script.
i created a batch file prod.bak with the following lines
@echo off
set oracle_sid=testdb
set oracle_home=d:\oracle\ora92
sqlplus /nolog
connect sys as sysdba/oracletest@testdb
this batch file when eexecuted connects me to sql prompt.
Now i want to execute my backup script bkp.sql automatically when it is connected to sql prompt.
(i tried with these lines in the above batch file...
call bkp.sql---it just opens the bkp.sql file in notepad & displays the script
start bkp.sql---same as call
connect / as sysdba/pwd@[email protected] --- does not work simply remains a the sql prompt.
At 17:00 /Every:w,f "d:\bkp.sql"---does not work simply remains at the sql promt.)
Can any1 let me know what should i write in the batch file that will execute the bkp.sql file automatically after it gets connected to sql prompt. M using oracle 9i.
I'll manage he time through windows utility of scheduling task.. Let me know how to execute the .sql file from a batch file.
Thanks
TriptiTry
sqlplus "sys/oracletest as sysdba" @bpk.sql
Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
Remember to put an exit at the end of the bpk.sql script. -
How to execute the job from script ??
How to execute the job from script ?? i have 2 jobs A AND B . I want to execute job B from job A'S Script ?? how can i ??
Hi Kishore,
Please refer the below link for BODS Job execution using Script
Executing a job by another job in BODS 4.1 using simple script
http://scn.sap.com/community/data-services/blog/2013/12/04/executing-a-job-by-another-job-in-bods-41-using-simple-script
Steps for executing BODS job from Unix Script with user defined global parameters
http://scn.sap.com/community/data-services/blog/2013/09/02/steps-for-executing-bods-job-from-unix-script-with-user-defined-global-parameters
Executing a job using batch file
http://scn.sap.com/thread/3503338
How to add a schedule for job2 with a condition after job 1 is finished
http://scn.sap.com/message/14523514#14523514
Scheduling BODS Jobs Sequentially and Conditionally
http://scn.sap.com/docs/DOC-34648
Thanks,
Daya -
How to Execute SSIS package through MySQL Procedure
Hi Everyone,
How to Execute SSIS package from MySQL Stored Procedure.
Please share your suggestions on this.
Regards,
VaishuI am not sure whether you have SSIS license version installed in the system where MYSQL is there. In order to run SSIS package we need to have DTEXEC executable file and it comes with SSIS license version.
An SSIS package can be executed from command prompt as,
C:\>dtexec /f E:\package.dtsx
I am not expert in MYSQL however in TSQL we can run dos command or scripting language such as vbscript.
Similarly you need to check in MYSQL. This is MSSQL Server forum.
Refer
http://www.ehow.com/how_8789576_call-ssis-package-vbscript.html
http://www.mssqltips.com/sqlservertip/1775/different-ways-to-execute-a-sql-server-ssis-package/
Regards, RSingh -
How to run the java program from another directory?
Hi
Assumption:
data.java is in a package suncertify.db and place in a directory c:/code/suncertify/db/ directory
data.class file: is in c:/code/suncertify/db/ directory
current directory: c:/
How can execute the data.class directly in c:/ directory without changing directory to c:/code/ ?
Thanks in advance,
AdrianYes. You can use the -classpath and -sourcepath options to specify where to look for source files, and the -d option to specify where to generate the class files. Look up the usage of those options in the javac documentation:
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html -
How to trace the wdy application from Portal link?
Hi
I have a req to work with a application,which show the salary slip,through ESS portal,but I am not able to trace out the webdynpro application,is is running behing this?
can any oe pls tell how to trace out the application,if worked any time.
secondly req is to insert the logo in the salary slip,when we clk in the SALARY button,its display the slip as PDF,please tell how this PDF is attached inside the application,as if its a Z smart form,than i can insert the logo in it & can reinsert in the webdynpor application,as I think its a case of z smrtform which is called or linked on webdynpro.
pls tell how to trace the standard application or the smart form.
regdsHi Vipin,
You can get the webdynpro application name from the portal link or you can ask portal team to get you the webdynpro
application name from the portal iView of salary slip application.
After that go to SICF tcode.
Search for the application name by entering the application name against the field SERVICE NAME and press F8 (execute).
The system will find you the SICF service for that webdynpro application. Select that service from the list.
Now click on menu GOTO->OBJECT DIRECTORY ENTRY and get the package name from the popup window.
Go to tcode SE80 and open that package.
Expand node Web dynpro->Web Dynpro Applicat. and find the application there.
Double click on the application.
Get the web dynpro component from the application parameter.
Open the Web Dynpro component in se80 and do the changes as required.
Regards,
Vikrant -
How to Change the Development Class from $TMP to YABAP in Layout
Hi all,
How to Change the Development Class from $TMP to YABAP in Layout( SE71).
Thanks & Regards,
N.L.NarayanaHi,
it is possible with SE03. you just click on Change <b>Object Directory Entries</b> under the tree menu <b>Object directory</b>, and then enter in the last column of table control
Check the check box and enter FORM and formname,
R3TR FORM SAPscript form
then execute it.
then you will be able to change it to PACKAGE from $TMP
regards
vijay -
How to delete the duplicate data from PSA Table
Dear All,
How to delete the duplicate data from PSA Table, I have the purchase cube and I am getting the data from Item data source.
In PSA table, I found the some cancellation records for that particular records quantity would be negative for the same record value would be positive.
Due to this reason the quantity is updated to target but the values would summarized and got the summarized value of all normal and cancellation .
Please let me know the solution how to delete the data while updating to the target.
Thanks
Regards,
SaiHi,
in deleting the records in PSA table difficult and how many you will the delete.
you can achieve the different ways.
1. creating the DSO maintain the some key fields it will overwrite the based on key fields.
2. you can write the ABAP logic deleting the duplicate records at info package level check with the your ABAPer.
3.you can restrict the cancellation records at query level.
Thanks,
Phani.
Maybe you are looking for
-
MERGE statement - Source with duplicate values not raising error ora-30926
Hi , I'm having a problem with merge that has already been reported in another thread ( Re: MERGE strange behavior ). I created a procedure with a query and have tested inserting two equal values on the Key column to raise the error. But on the first
-
Problems opening up 2011 raw files in current Photoshop.
I'm having problems opening up some of my older RAW files in Photoshop CS6 and CC. It extends to both dng and cr2 files. They display as a monotone image, with no original color present. I can copy the files to another computer with CS5 and open them
-
Using Portal in complex apps.
We are developing a fairly complex database application and we cannot get an answer on the possiblity of using Portal as a user interface, such as forms which we have used. Is Portal robust enough for us to use instead of forms. Can anyone give us a
-
Anyone out there that knows how to get past this? I´m using Adobe Application Manager and nothing else. Installed Photoshop and Illustrator without problem, but as I try to install Lightroom 5 it is aborted.
-
Cache scheme: replicated If our data objects has a few transient attributes (say large attributes, that we do not like to replicate until the need arise, a.k.a lazy loading), how do we code this logic in our put/get API? An example would suffice