How to execute packages in sequence/order ODI11g
Hi
I developed 10 package and i want to execute these packages in order, one by one.
When Package 1 finished than should automatically starts Package 2 when it finished then should start Package 3 till Package 10.
Regards
Sher
Hi,
Generate scenario for each of the 10 package.
Then create another package say MAIN_PACKAGE
place the scenario of 1st package then scenario of 2nd package and so no till 10th package scenario
Join 1st to 2nd via OK line and continue it to 10th one.
When you execute the MAIN_PACKAGE all of your child package (package1,package2 ... package10) will get executed in a sequence provided no child package fails . In case of any failure your execution will stop there only.
Thanks,
Sutirtha
Similar Messages
-
All,
I have a simple function in a package and I'm the owner of the package. The package was compiled and in a valid status, but I got error when I execute it.
PLS-00201:identifier 'TESTRE.P_GETNUM' must be declared.
Could someone give me some light on this? Below is the package.
CREATE OR REPLACE PACKAGE BODY "test" as
function P_GetNum(userid in number) return number is
v_num number;
BEGIN
v_num := 1 + userid;
return v_num;
END;
End;
here is how I did the exection
SQL> declare
2 v_num number;
3 begin
4 v_num := testre.P_GetNum(1);
5 dbms_output.put_line(v_num);
6
7 end;
8 /
v_num := testre.P_GetNum(1);
ERROR at line 4:
ORA-06550: line 4, column 12:
PLS-00201: identifier 'TESTRE.P_GETNUM' must be declared
ORA-06550: line 4, column 3:
PL/SQL: Statement ignoredThanks for your reply.
I'm the owner of the package and I do have execute any procedure privilege.
also, I create the same function with different name outside the package and I have no problem to execute it.
why I keep getting the error PLS-00201: identifier 'TESTRE.P_GETNUM' must be declared
only for the package?
Thanks in advance. -
How to execute a same sequence number for the resulting dynamic rows
Hi friends,
I have a sequence and trigger(which will fire id for each and every row insert).
My scenario is, If i update more than 5 rows at a time means, i need to set a same sequence number example(1) for all the 5 rows.
Next time, if i update another 5 rows means, then i need to set a same sequence number (i.e) 2 for the next 5 rows.
So, my updation will be dynamic(may be 2 ,5, 10 rows at a time), But i need to set a same sequence number for one of the column for all the rows that i update.
Next time, if i update another set of rows means, then i need to set only the next sequence number(i.e) 2(assume that previously updated sequence for the before set of rows is 1) for another set of rows.
Like that sequence has to update in a sequential manner for more than one set of rows in that column.
How to achieve it friends.
example
id-----------------name
1-------------------A
1-------------------B
1-------------------C
1-------------------D
1-------------------E
2-------------------D
2-------------------E
2-------------------F
2-------------------G
3-------------------H
3-------------------IBrgds,
MiniHi,
You forgot to mention your version.
If you want a trigger based solution, then in 10g you need two triggers
1. A statement level trigger that takes sequence.nextval into a dummy variable that will not be used.
2. A for each row trigger that uses sequence.currval.
In 11g you should be able to write a single, composite trigger.
If you want a solution with no triggers, it could look something like
SQL> create sequence s start with 10;
Sequence created.
SQL>
SQL> create or replace function s_wrapped
2 return number
3 as
4 v number;
5 begin
6 select s.nextval
7 into v
8 from dual;
9
10 return v;
11 end s_wrapped;
12 /
Function created.
SQL> create table tab1 as (Select level x, cast(null as number) y from dual connect by level <= 5);
Table created.
SQL> update tab1
2 set y = (select s_wrapped from dual)
3 where x <= 3;
3 rows updated.
SQL> commit
2 /
Commit complete.
SQL> select *from tab1
2 /
X Y
1 10
2 10
3 10
4
5
SQL>Regards
Peter -
How to execute package from Servlet
Hi all...
I have set of class files in a package called iDen_parser.
My main class name is jump_calc..
String[] cmd={"cmd.exe" , "/c" ,"java iden_parser.jump_calc","d:/test.log","d:/test.txt"};
Runtime runtime = Runtime.getRuntime();
process = runtime.exec(cmd);
I am not getting any output...
I have placed the folder Iden_parser in current working directory itself.
While I when I am trying out simple program HelloWorldApp, it's working out fine.
String[] cmd={"cmd.exe" , "/c" ,"java HelloWorldApp};
Runtime runtime = Runtime.getRuntime();
process = runtime.exec(cmd);
So anyone ,pls help me out in executing the pakage from servlets
Thnk
VIjayHi...
I am placing my code here
String path1 ="cmd /c dir /d";
String[] cmd={"cmd.exe" , "/c" ,"java
java HelloWorldApp"};
String[] path ={"cmd.exe",null, "
java iden_parser.jump_calc", "d:/test.log","
d:/mygod.txt"};
Replace....
String[] path ={"java iden_parser.jump_calc", "d:/test.log","
d:/mygod.txt"};
Runtime runtime = Runtime.getRuntime();
Process process = null;
try {
process = runtime.exec(path);
Replace....
process = runtime.exec(path, null, "the dir from where u call the stand alone program on command prompt");
outHTML.println("PAth" +path);
BufferedReader in =
new BufferedReader(new
er(new InputStreamReader(process.getInputStream()));
// Read and print the output
String line = null;
outHTML.println("Something had happen");
if((line = in.readLine()) == null)
outHTML.println("Empty");
while ((line = in.readLine()) != null) {
outHTML.println(line);
catch (Exception e) {
outHTML.println("Did not execute the command
command " );
//out.println("Problem with finger: " +
// ServletUtils.getStackTraceAsString(e)); -
Guaranteeing sequence order when polling with DB adapter
We need to read rows from a source table using the DB adapter in polling mode, and deliver them to separate files in the same order they were read from the DB.
My understanding is that when polling, if we find 10 records to be processed, 10 separate BPEL processes will be created.
It's not clear how to then maintain the sequence order when creating the files, as each process may execute faster or slower than others.
Any advice appreciated
TobyMarc/Sjoerd,
Firstly, thanks for your replies.
On Marc's suggestion, if say we read 100 records using the database adapter, we get 100 processes. How do we control which process will be the first one to be processed, and which of the remaining 99 processes will be subsequently processed once the first has been completed by the cruncher process?
Sjoerd's 1st and 2nd option are not acceptable to us - we have to ensure the same order the records are read. for example record 1 could be a creation and record 2 could be an update to the first so delivering the update to the destination system before the creation will result in an error.
I'm not clear about option 3 - this sounds similar to Marc's suggestion. I can't see how order is maintained between a group of processes created as a result of the database adapter polling, and them being serviced by a cruncher/singleton process. What is to stop the bp which contains the first record being processed first, then the bp which contains the fifth record being processed second, then the bp which contains the second record being processed third etc?
Thanks
Toby -
When the PC System timing runs as per normal, reaches 0000hrs - a new date. How to Auto re-execute the VI from its first sequence order?
Duplicate Post
-
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 can I start multiple Labview build executables in a sequence
I need to start several executables in a certain order with pauses between them.
How is this done.Why don't you make a new vi which contains a sequence structure and their you put in the program you want to run first (inserting a sub.vi) and then a pause or the second program and so on.
I attached a screenshot by which i think you want to have your program.
If you want to open other executables (for example ms exel and after few seconds open ms word) then its also possible to use the sequence structure.
I hope i understand the question correctly, and this will help you solve your problem
Attachments:
sequence.JPG 24 KB -
Need HELP (Project Issue) : Having 3 individual VIs, datalogger.vi, start vi, amksms.vi done.
(How to run the VIs in sequence order - datalogger > start > amksms combine into 1 VIs? )VIs in icon.
how would it able to run in the sequence order:
data first, follow by start and lastly amk sms.
Attachments:
dsa.jpg 10 KB -
Pl/sql function overload package program and how to execute
--creation overload package
create or replace package pkg_overload is
procedure get_emp(p_empid in number,p_empsal out number);
procedure get_emp(p_ename in varchar2, p_empsal out number);
end;
-- define its body
create or replace package body pkg_overload is
procedure get_emp(p_empid in number,p_empsal out number) is
begin
select sal
into p_empsal
from emp
where empno=p_empid;
end;
procedure get_emp (p_ename in varchar2,p_empsal out number) is
begin
select sal
into p_empsal
from emp
where ename=p_ename;
end;
end pkg_overload;
/* output of this :PACKAGE pkg_overload compiled
Warning: execution completed with warning
-- My question is about the warning and how to execute it
--I tried that way to execute that program
/*variable g_sal number;
execute pkg_overload.get_emp(77934,:g_sal);
RESULT
Error starting at line 911 in command:
execute pkg_overload.get_emp(77934,:g_sal)
Error report:
ORA-06550: line 1, column 7:
PLS-00905: object SUBHAJIT.PKG_OVERLOAD is invalid
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
emp table code
-- File created - Thursday-April-12-2012
-- DDL for Table EMP
CREATE TABLE "SUBHAJIT"."EMP"
( "EMPNO" NUMBER(4,0),
"ENAME" VARCHAR2(10 BYTE),
"JOB" VARCHAR2(9 BYTE),
"MGR" NUMBER(4,0),
"HIREDATE" DATE,
"SAL" NUMBER(7,2),
"COMM" NUMBER(7,2),
"DEPTNO" NUMBER(2,0)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS" ;
REM INSERTING into SUBHAJIT.EMP
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7369,'SMITH','CLERK',7902,to_date('17-DEC-80','DD-MON-RR'),800,null,20);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7499,'ALLEN','SALESMAN',7698,to_date('20-FEB-81','DD-MON-RR'),1600,300,30);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7521,'WARD','SALESMAN',7698,to_date('22-FEB-81','DD-MON-RR'),1250,500,30);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7566,'JONES','MANAGER',7839,to_date('02-APR-81','DD-MON-RR'),2975,null,20);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7654,'MARTIN','SALESMAN',7698,to_date('28-SEP-81','DD-MON-RR'),1250,1400,30);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7698,'BLAKE','MANAGER',7839,to_date('01-MAY-81','DD-MON-RR'),2850,null,30);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7782,'CLARK','MANAGER',7839,to_date('09-JUN-81','DD-MON-RR'),2450,null,10);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7788,'SCOTT','ANALYST',7566,to_date('09-DEC-82','DD-MON-RR'),3000,null,20);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7839,'KING','PRESIDENT',null,to_date('17-NOV-81','DD-MON-RR'),5000,null,10);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7844,'TURNER','SALESMAN',7698,to_date('08-SEP-81','DD-MON-RR'),1500,0,30);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7876,'ADAMS','CLERK',7788,to_date('12-JAN-83','DD-MON-RR'),1100,null,20);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7900,'JAMES','CLERK',7698,to_date('03-DEC-81','DD-MON-RR'),950,null,30);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7902,'FORD','ANALYST',7566,to_date('03-DEC-81','DD-MON-RR'),3000,null,20);
Insert into SUBHAJIT.EMP (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7934,'MILLER','CLERK',7782,to_date('23-JAN-82','DD-MON-RR'),1300,null,10);
-- Constraints for Table EMP
ALTER TABLE "SUBHAJIT"."EMP" MODIFY ("EMPNO" NOT NULL ENABLE);
Edited by: 923746 on Apr 12, 2012 1:18 PM>
Warning: execution completed with warning
>
The package compiled with warnings. Post the exact error message.
The code compiled with no errors for me in the SCOTT schema using that EMP table. -
How to execute private procedures in a package
Hi
I have created private procedures in a package.
now i want to execute the private procedure. how to execute the private oneHi;
Pelase see below which could be helpful for your issue:
Private procedures in a package
http://stackoverflow.com/questions/924490/how-do-i-execute-private-procedures-in-an-oracle-package
Regard
Helios -
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 an ODI package from Command Line
Please can anyone help me to know how to execute an ODI package from the command line without creating a scenario from the package.
Appreciate your help.
Thanks
BYou can't. Create a scenario and then execute that from the command line.
-
How to execute external exe in SSIS Package
Hi,
I wanted to know how to execute external exe from SSIS Package can any one explain me or provide me valuable links.
Regards ,
AjayThere are few things you need to take care before executing exe from SSIS
1. The arguments etc expected by exe should be clearly defined inside execute process task
2. The Path where exe exists should be accessible to the account executing the package. SO you should grant account required permissions
3. If executing from a job make sure you either define a proxy account with required permissions and configure it to run the job or give service account all access required for executing exe
see
http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
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;
Maybe you are looking for
-
JAAS and Active Directory Problem
I am attempting to use the JAAS Tutorial code to authenticate against a Windows 2000 domain controller. The code as is works against a domain controller that I set up, but when I attempt to authenticate against a client's domain, I receive an excepti
-
Hey Everyone! I want to learn how to create a video in iMovie. My goal is to be able to take many vidoes and place them into one. I would also like to delete scenes and and add transitions. I am also hoping to add music to the video I create. Plea
-
Still not able to CONNECT to Forms Developer
Yesterday I received gernerous help from forum participant Shay, who walked me through the setup process (TNS Listener and TNSNAMES.ora, etc.) but I still cannot connect. I'm missing something fundamental. I have MS Windows 2000 version of Oracle Per
-
Hello, a couple of months ago my macbook got stolen so when yesterday i recieved an email my message was displayed on it i was wondering if there is a possibility to get the last IP address used on that machine .So if there is such possibility could
-
Anyone with FCP + SnapzProX experience?
I've recently purchased SnapzProX, a software that allows you to capture quicktime movies of your actions on a MAC desktop. It works pretty well. However, I'm using it primarily for tutorial purposes, to show students how to perform certain actions i