EMail and SQLPLUS activity in process flow

Hi Guys,
I am struggling to get the email activity working. I entered all the details but no email is sent?
Secondly, I had an easy sql plus script that I pasted into the script property box
But the sqlplus just does not execute?
truncate table xxx;
quit
Any ideas?

Make sure there are no spaces after you have replaced DISABLED with NATIVE_JAVA.
Any space after the NATIVE_JAVA will not work.
Can you give details like what are you using Script or Parameter list etc ?
Did you configure the deployed location for the SQLPLus parameter ??
Regarding Your EMAIL -
Is your process flow showing any error regarding email ??
Create a simple process flow with email activity only.
Set FROM_EMAIL , TO_EMAIL , SUBJECT ,MESSAGE_BODY, SMTP_SERVER , PORT
SMTP_SERVER and PORT values are very important.
Check connection to SMTP_SERVER by running the following command on dos prompt
telnet smtp_server_name port
If this works this means your smtp server is working. Now just deploy and run your processs flow.
If it still doen't send you email, check whats in the log.
The log should give you any errors regarding email like ORA-06512: at "SYS.UTL_TCP", line 17 ,etc (if any).
Thanks,
Sam.

Similar Messages

  • How to use substitution variables in sqlplus activity of process flow

    I have a process flow that does nothing more than create a couple of packages that I cannot successfully deploy from OWB. A workaround, not something that I want to do, but currently there is not much time to adjust the packages so they can be deployed from OWB.
    I can successfully create the packages from files that are present in a directory on the server. But the location (directory) is not the same in all cases (OTAP). So I thought to use an input parameter to the process flow (named TELLINGEN) and use that in the sqlplus activity.
    I have created the parameter START_PATH with a default value.
    I have added an sqlplus activity and placed the following into the PARAMETER_LIST variable of the activity:
    ?${Target.ConnectString}?@${TELLINGEN.START_PATH}/npl_dbug.pkg?
    When I run the process flow I see the following in the output:
    SQL*Plus: Release 10.2.0.3.0 - Production on Tue Mar 18 18:10:14 2008
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SP2-0310: unable to open file "${TELLINGEN.START_PATH}/npl_dbug.pkg"
    SQL> SQL> Disconnected from Oracle Database 10g Enterprise Edition Release
    10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    It obviously connects to sqlplus but then cannot find the file. Presumably because the variable has not been substituted.
    How can I persuade the activity to substitute the variable?
    Kind regards,
    Eric.

    Have been reading around a bit and found the (a) solution:
    I placed the following in PARAMETERLIST:
    ?${Target.ConnectString}?@${Working.RootPath}/base64.sql?
    And it turns out ${Working.RootPath} is pointing to the location you can provide under the configure for the sqlplus activity in the process flow. Just as you have to provide the target destination as indicated here: Re: SQLPLUS Activity in Process Flow
    From the documentation it was not immediately clear to me where Working.RootPath was pointing to.

  • URGENT:  Cannot perform truncate in SQLPLUS* Activity in process flow

    I try to truncate (as a test for functionality) using an SQLPLUS* Activity inside of my process flow. It hangs and then returns errors when cancelled. Below are the script and error messages. Any help would be greatly appreciated.
    TRUNCATE TABLE UTICA_STAGE.TEST_SQLPLUS_ACT;
    EXIT;
    SP2-0306: Invalid option.
    Usage: CONN(ECT) (logon) (AS SYSDBA)
    where <logon> ::= <username>(/<password>)(@<connect_identifier>) | /
    Enter password:

    user10408896 wrote:
    Fixed the problem myself, I specified a custom connection string. If anyone knows how to use a variable connection string to solve this problem I'll give you pointsbig deal, people dont respond for points as points cant be redeemed..and moreover stop using terms like "URGENT" as we dont care if something is urgent ,if you havent read then please read forum etiqutte.

  • SQLPLUS Activity in Process Flow

    Hi
    Im Trying to include a sql script thru Process flow using a SQLPLUS Activity
    In the Script, im giving the value as copy command(which im supposed to give)
    before that im giving the specifications as
    /oracle10/bin/sqlplus schema_name/password@DB followed by the copy command...
    While executing am getting the error as
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    Can anyone help on this?
    Regards
    Ela

    Hi all,
    Im trying to include a copy command in my sqlplus activity.
    While execution it throwing the error
    Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    When I try to run the same copy command from the SQLPLUS, its working fine without any problem....
    Im not able to figure out the reason behind that.
    Suggestions Please
    Thanks in Advance,
    Ela

  • Email utility activity in process flow

    Hi.
    I am new to environment. I am trying to use email activity in Process flows. I have given the parameters that have to be given like "to-address" etc. Validation, Deployment and start are getting succeeded. But I am unable get a mail. Can anybody suggest me How to use this. And also How can I find the SMTP server in my local machine. Else suggest me any links pls.
    Edited by: SwapnaPrerana on Jul 20, 2010 2:19 PM

    Hello Swapna,
    First of all you want to configure ACL and then do the following steps.
    In email properties mention the details are as follows:
    PORT = 25
    SMTP SERVER = (Get this details from your ITIS Team of Email Server).
    Regards,
    Ava

  • How to set FROM ADDRESS for EMAIL activity in Process Flow

    Hi all,
    Can any one tell how to set(which address) FROM ADDRESS for EMAIL activity in Process Flow?
    Thanks,
    Suvvi

    Did you set what OWB guide says:
    To execute a process flow with an email activity, you may need to access different host machines and ports. New security measures implemented in Oracle Database 11g Release 1 restrict access to hosts and ports. You must explicitly grant access to hosts and ports that the email activity accesses using the DBMS_NETWORK_ACL_ADMIN package.
    For example, the user OWBSYS needs to send an email through the mail server mail.example.com using port 25. The DBA must perform the following steps:
    1. Create an Access Control List (ACL) for the user OWBSYS using the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.CREATE_ACL
    (’acl_for_owb_cc.xml’,’ACL for Control Center’,’OWBSYS’,’CONNECT’);
    The ACL has no access control effect unless it is assigned to network target.
    2. Assign the Access Control List (ACL) to a network host, and optionally specify a TCP port range. Use the following command:
    EXECUTE DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (’acl_for_owb_cc.xml’,’mail.example.com’,25)
    3. Commit the changes made using the COMMIT command.

  • How to edit the value in the email activity in process flow

    I have an email activity in my process flow.
    I want to change the value for the message body of the email activity. But it is not editable. While creation all the columns are in editable mode and after deploying and testing, i want to change the body of the email to be sent.
    How can i do it now? Please advice. This issue is in 6.0.4 release.
    Edited by: 910070 on Feb 17, 2012 12:48 AM

    got the solution after so much research !
    in 6.0.4, only way we can change the value for the message body or subject is to change the associate email procedure. which is something like edx_rpt_email.

  • Using email activity in Process Flow

    Hi
    I am creating a process flow in owb, in it I am using the email activity, that if its a success or error then send the email. In the email activity parameters there is an option of binding, so can some one tell me that how will it work and how can I use binding with email.
    Thanks
    Salman

    Hi Salman,
    add the wanted parameters (smtp server, port, to_address...) to the start_1 operator in your processflow (see another thread in this folder how to do this, because it doesn't work properly). Set the values in this operator. Bind the parameters of the email activities to these parameters. You have to fill the from and to address in each email activity even if they are bound, otherwise you will receive an error, that the values are empty. This is another bug in my opinion, isn't it...
    Regards,
    Torsten

  • Find out type of activity in process flow

    I am currently working on generating process flows. I place a bunch of mappings or sub process flows (sometimes more than 20) in a process flow. Then I connect them basically to indicate the order in which they have to be processed.
    Next I want to generate the succes, warning and error transitions. I can easily list the activities in the process flow using
    OMBRETRIEVE PROCESS_FLOW 'SOME_FLOW' GET ACTIVITIES
    likewise I can easily retrieve the transitions.
    My main problem now is that I cannot find where to start.
    I know a process flow is created default with a START1 activity but the name can be changed, so that is not a fool proof option. I have been looking for something like
    OMBRETRIEVE PROCESS_FLOW 'SOME_FLOW' ACTIVITY 'START1' GET PROPERTIES (ACTIVITY_TYPE)
    But the property apparently does not exist.
    If I do
    OMBDESCRIBE CLASS_DEFINITION 'PROCESS_FLOW' GET CHILD_TYPES
    I see a START_ACTIVITY child type is listed. Now I am looking for a way to connect the child type to the activity
    Anybody ideas?
    Thanks in advance,
    Kind regards,
    Eric.

    Thanks Oleg,
    After posting the question on the forum I remembered I had made lists of activities for various activity types, in my case MAPPINGS and SUBPROCESSES. So I tried the same for START activities, just like you apparently have done. And with the same conclusion; there is not a complete list of activity types you can use.
    I also noticed there is no START activity in the Palette of the Process Flow editor. And that you cannot delete a start activity (API-10011 You cannot delete this type of activity). Apparently a start activity is a special case of activity. And I think I will treat it this way. I will assume no one in his right mind will rename this activity from it's default 'START1' name and start my exploration of the flow in the process there.
    Thanks again for confirming my suspicions.
    In the process of finding out activity types that are supported I made a list (OWB 10.2.0.3):
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET AND ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET ASSIGN ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET DATA_AUDITOR ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET EMAIL ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_ERROR ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_LOOP ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_SUCCESS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET END_WARNING ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FILE_EXISTS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FOR_LOOP ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FORK ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET FTP ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET MANUAL ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET MAPPING ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET NOTIFICATION ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET OR ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET ROUTE ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET SET_STATUS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET SQLPLUS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET SUBPROCESS ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET TRANSFORMATION ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET USER_DEFINED ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET WAIT ACTIVITIES
    OMBRETRIEVE PROCESS_FLOW 'EERSTE' GET WHILE_LOOP ACTIVITIES
    Kind regards,
    Eric.
    Message was edited by:
    ericb
    Message was edited by:
    ericb

  • Transform activity in Process Flow

    Hi Guys,
    After wasting hour trying to get the SQLPlus activity working I noticed that I can just drop the stored procedures into the flow as a
    "Transform activity". I linked everything up but as soon as I put the "Transform activity" in the process flow it failes with
    a complete failure. The OWB Browser gives NO details. It just says complete failure. The stored procedure aka. "Transform activity" validates fine
    and executes fine when I do it manually via the DB console.
    Any ideas?

    Hi MccM,
    The OWB browser tells me that the sql load worked and the procedure did not. (I am not familiar with audit views but I doubt that the problem is on the database side since the stored procedure complies fine from there). I noticed that I can configure the activity and set the execution environment with is "NATIVE" in my case. - I dont have any options there.
    Here is a [screen print|http://www.metallon.org/test/e34.jpg] of the OWB browser.
    This is urgend now so I would be very happy for any help and generously give out the "Helpful" post points :)

  • SQLPLUS Acitivity in process flow Input parameters to the script

    I have a sqlplus Activity in the process flow. In the script section I have a update statement which has a where clause where I need to pass a date field as input paramter to this script to compare and update the records.
    Is there a way to pass Input Parameters to the script.
    update test
    set last_name = 'TEST'
    where trunc(begin_date) = :begin_date;
    Begin_date is a variable in my process flow which I need to pass to this script.
    Any ideas as to how I can accomplish this.
    Thanks in advance.

    You can Create a procedure of the Update statement with one input paramenter like
    Create Or replace procedure Update_test ( p_begin_date date )
    IS
    update test
    set last_name = 'TEST'
    where trunc(begin_date) = p_begin_date;
    End;Then call this Procedure in the Process Flow and give input parameter from PF variable.
    Cheers
    Nawneet

  • User Defined Activity "hangs" Process Flow if it runs for more than 10mins

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

    I have been using OWB (10g r2) for a while and have used "User Defined" activities in production process flows successfully before.
    However my problem now is that the activity (shell command) I want to perform, takes more than 10 minutes to complete. If I run the process flow with a parameter that generates a shell command that executes in two or three minutes, the process flow continues past the sucessfully executed user defined activity to the next activity.
    BUT
    If I run the same process flow (without modification or even redeployment) with a different parameter , the user defined acivity sucessfully executes (after about 11 minutes or so) but the process flow , doesnt seem to know that it is finished and just says it is still executing.
    my "user defined" activity has
    COMMAND: /usr/bin/ksh
    PARAMETER_LIST bound to a variable which is set earlier in the process flow.
    RESULT_CODE:
    SCRIPT :
    SUCESS_THRESHOLD : 0
    by examining (RUNTIME CONTROL CENTER SCHEMA).all_rt_audit_execution_params
    I can see that the variable contents assigned to RESULT_CODE look like this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_SHORT'
    or this
    '/usr/bin/rsh -n WINSRV1 dtsrun /usa /ppw /S WINSQLSRV /N JOBNAME_LONG'
    I put the -n in because I thought that may have been the problem, but I think its more likely that there is come sort of ".properties" in a runtime file that needs to be set to control the "timeout" of user defined activities.
    (like in Runtime.properties
    property.RuntimePlatform.0.NativeExecution.Shell.security_constraint = NATIVE_JAVA
    except maybe
    .........Nativeexecution.timeout = .....?????
    Has anybody had a problem like this? Found a document describing available configuration properties for PF activites?
    Can anyone help?

  • Using "Route" activity in process flow

    Hi, I have a situation where I want to run one of two maps, depending on how many rows are in a particular table, i.e. something like:
    If table X rowcount > 100000
    then run map A
    else run map B
    What's the most straight forward way to set this up in a process flow? I assume I need to write a PL/SQL function that returns the # of rows in the table...but after that I'm a bit stuck, and the OWB user guide has next to nothing on how to use the ROUTE operator.
    Thanks in advance!
    Scott

    Hi David, thanks a million, that helps out a ton. I thought we had to use variables, with SET / ASSIGN and the ROUTE operator to do this...all of which are Enterprise ETL functionality.
    It seems like the method you outline below, in addition being easier, actually is legal even if we don't have Enterprise ETL. Is that correct?
    Thanks!
    Scott
    Includes the following advanced process flow functionality:
    - Activity templates
    - Variables support: assigning and passing variables and using the Assign and Set Status activities
    - Looping activities such as For Loop and While Loop
    - Route and Notification activities

  • How to use OMBPLUS activity inside process flow

    Hi, I’m using OWB 11.2.0.3.
    In a process flow, I need to use an OMBPLUS activity. When I run the process flow, it runs successfully and says: “Log file is available. Click Information button to view.” 
    -Where is the log file, OWB is talking about?
    -Is there any sample of using OMBPLUS activity inside a process flow?
    THANKS, au revoir!

    Thanks, Dallan
    Articles on "Oracle Warehouse Builder (OWB) Weblog" really help me.
    So, I understand that I can't resume process flow in Control Center - only in Repository Browser. :)
    IMHO, this is something puzzled and missmatch with official Users Guide

  • OWB 10gR2 map returning status = Complete and Result = Null in Process Flow

    Hi,
    I have an OWB process flow which invokes an OWB map. There are 2 outgoing transitions attached to the OWB map. 1st transition is a conditinal one (on SUCCESS) and the 2nd one is unconditional transition.
    I am monitoring the status of process flow execution in Oracle Workflow monitor. After the process flow is initiated, sometimes the OWB map within shows status = complete and result = OK in workflow monitor (in tab - status). But sometimes it shows status = Complete and Result = Null. In this situation the execution is following the unconditional transition path.
    Can anyone tell me what causes the OWB map to return a Result = NULL? Also sometimes I am getting the map returning a Result = Force (with the same status = Complete).
    The configuration that I am working with is as below ---
    OWB client version : 10.2.0.1.31
    OWB repository version : 10.2.0.1.0
    Oracle Workflow Version : 2.6.4.0.0
    Database version : 10g Enterprise edition release 10.2.0.1.0
    Regards,
    Swagata

    Hi Manohar,
    1. You need to install Oracle HTTP server in a separate Oracle home.
    2.Look for the dads.conf file in the installation. Edit the file, copy the sample code and paste it below and edit the pasted part as under ----
    <Location /pls/<SID>>
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlDatabaseConnectString <server name>:<port>:<SID >
    PlsqlAuthenticationMode Basic
    PlsqlDefaultPage wfa_html.home
    PlsqlNLSLanguage "AMERICAN_AMERICA.WE8ISO8859P1"
    </Location>
    3. STOP and START OPMN (Oracle Process Manager & Notification Server)
    4. Use the URL in your internet browser like --- <HTTP server URL>/pls/<SID>/wfa_html.home
    5. When prompted for user id and password, give the schema user id and password where the workflow engine is installed.
    Hope this helps,
    Swagata

Maybe you are looking for

  • Copying Legal Size Documents on HP Officejet PRo 8600 plus

    Legal size used to be an option in the paper size selections, but it is no longer there.  What can I do to retrieve it?

  • Private attributes are not private

    Please consider the following.... // this is a class by someone else. class A{   private Integer secretPinNumber =     new Integer(100); // and I write this class class B extends A{   // there is a method in here but I won't tell   // you what it is

  • Upload file into KM using Web Dynpro ABAP

    Hi, I'm looking at converting an existing Web Dynpro Java application to a Web Dynpro ABAP application. However, I cannot find how to upload a file and store it in the Portal KM repository using WDA. I have been able to do it successfully using WDJ.

  • How to merge m4a files

    I have dozens of lectures from The Great Courses and have been ripping them in iTunes to use on my new iPod Classic 160gb.  I finally took a break to listen and realized that it would be better to have merged all of the separate files for individual

  • Software Editing Issue

    I am using CS4 and i am trying to continue editing a project and it keeps freezing up and not responding, causing me to havce to close the program, but when I reopen, and start to edit, it does the same thing. Also, there is a gold bar that keeps gen