Need stored procedure design flow diagram using visio or anything else

ad
Edited by: user538171 on Jan 25, 2012 5:45 PM

user538171 wrote:
This is for documentation for that procedure, I can judge whether it is correct or not or else I will correct with your help.*This is a forum of volunteers as mentioned before. We're here to help people who are having issues with SQL or PL/SQL specifically, not documentation. You are asking for someone to reverse engineer your code and provide documentation for it for free. You will be very hard pressed to find someone here that will do it.
I'm sure you can do it yourself. if you understand how the code works, you'll be able to go through it step by step and write what each part is doing. Then convert this specific "what it is doing" into business language if required (something that's impossible for people who don't understand your business to do). Then stick boxes around these distinct bits of process and draw lines between them.
easy :-)

Similar Messages

  • Calling stored procedures with output parameters using RDO and VB

    I have a simple test procedure defined as follows:
    CREATE OR REPLACE PROCEDURE test_sp (inval1 IN VARCHAR2,
    inval2 IN NUMBER, inval3 OUT VARCHAR2, inval4 OUT NUMBER) IS
    BEGIN
    inval3 := 'RETURN TEST';
    inval4 := 10;
    END;
    I am attempting to call this procedure from VB 5.0 using RDO and the Oracle ODBC Driver 8.01.06:
    dim rdoQd as rdoQuery
    dim grdoCn as rdoConnection
    strSQL = "{ call test_sp('SOMETHING',?,?,?) }"
    Set rdoQd = grdoCn.CreateQuery("", strSQL)
    rdoQd(0).Direction = rdParamInput
    ' get error# 40041 at above line
    ' "Object Collection: Couldn't ' find item indicated by text."
    rdoQd(0).Type = rdTypeINTEGER
    rdoQd(0).Value = 5
    rdoQd(1).Direction = rdParamOutput
    rdoQd(1).Type = rdTypeVARCHAR
    rdoQd(2).Direction = rdParamOutput
    rdoQd(2).Type = rdTypeINTEGER
    Set rdoApp = rdoQd.OpenResultset()
    MsgBox (CStr(rdoQd(1)))
    MsgBox (CStr(rdoQd(2)))
    When I run this VB code, I get the above mentioned error. If I use placeholders for all parameters (like "{ call test_sp (?,?,?,?) }" ), no error occurs.
    I really need to use the first type of syntax from above and not have to use placeholders for all parameters. Is there a way to accomplish this?
    TIA,
    Esther

    Are you getting any warning while importing the stored procedure?
    Please check the below datatypes:
    While creating the stored procedure, if you have used varchar(MAX), please ALTER it to varchar(255) and reimport to DS.
    Also, the datatype of $message (global variable or local variable) used inside DS should also be varchar(255)
    Try a print statement in between.
    ADMIN.DBO.SPJOBSUMMARY(69,$message,$rtCode,$rtVal);
    print('Message is '||$message);
    smtp_to('leighattest.com.au', 'Results of ' || job_name(), $rtCode || '//' || $rtVal || '~~' || $message || '//', 0,0);
    and see in the job log if DS is able to retrieve the output from DB.
    Regards,
    Suneer

  • Creatimg Data Flow Diagrams using applets

    i am using java applets to make an application for Data Flow Diagrams. how to provide for validations for rules for the same and to have multiple level of windowa for it.

    nsh11 wrote:
    Sorry, i am new to forums.sun.com. Please tell form where to search for creating data flow diagrams using applets.That is too specific a question. If you want help on DFDs, [search on DFDs|http://www.google.com/search?q=Data+Flow+Diagrams]. If you want help with custom rendering, search on [custom rendering Java Tutorial|http://www.google.com/search?q=custom+rendering+Java+tutorial] . If you want help with applets, search on [applets Java Tutorial|http://www.google.com/search?q=applets+Java+tutorial] . If you have any specific questions how to make your DFD work and render in an applet, ask a (much more) specific question.
    But to be honest, if you cannot frame a more specific question after researching those links, I would recommend you look to a career in some field other than programming.
    Edit 1:
    Hit 'enter' too early.
    Edited by: AndrewThompson64 on Feb 11, 2010 11:23 PM

  • Have a brand new dell. Not much on it but Premiere elements 13. Haven't used it for anything else - only 5 days old. I am in Premiere, add vid, render then poof. it says add media where those rendered files were. any help would be appreciated. thank you

    Have a brand new dell. Not much on it but Premiere elements 13. Haven't used it for anything else - only 5 days old. I am in Premiere, add vid, render then poof. it says add media where those rendered files were. any help would be appreciated. thank you

    bgar
    On what computer operating system is your Premiere Elements 13 running on?
    What are you (manually) or the project (automatically) setting as the project preset?
    (See Edit Menu/Project Settings/General and the readings for Editing Mode, Timebase, Frame Size,
    and Pixel Aspect Ratio (even if fields look grayed out).
    What are the properties of these source media, including file extension? The brand/model/settings of the camera that recorded the
    video may give us this information.
    When the source media hit the Timeline for the first time, is there an orange line over their content? Or is there
    no colored line and an orange line appears over them only after you have edited them?
    Please elaborate on "poof" after rendering the Timeline content by pressing the Render button above the Timeline content with the orange line over it.
    a. Media Offline displays?
    b. Other?
    ATR

  • Calling Stored Procedure from Oracle DataBase using Sender JDBC (JDBC-JMS)

    Hi All,
    We have requirement to move the data from Database to Queue (Interface Flow: JDBC -> JMS).
    Database is Oracle.
    *Based on Event, data will be triggered into two tables: XX & YY. This event occurs twice daily.
    Take one field: 'aa' in XX and compare it with the field: 'pp' in YY.
    If both are equal, then
         if the field: 'qq' in YY table equals to "Add" then take the data from the view table: 'Add_View'.
         else  if the field: 'qq' in YY table equals to "Modify"  then take the data from the view table: 'Modify_View'.
    Finally, We need to archive the selected data from the respective view table.*
    From each table, data will come differently, means with different field names.
    I thought of call Stored Procedure from Sender JDBC Adapter for the above requirement.
    But I heard that, we cannot call stored procedure in Oracle through Sender JDBC as it returns Cursor instead of ResultSet.
    Is there any way other than Stored Procedure?
    How to handle Data Types as data is coming from two different tables?
    Can we create one data type for two tables?
    Is BPM required for this to collect data from two different tables?
    Can somebody guide me on how to handle this?
    Waiting eagerly for help which will be rewarded.
    Thanks and Regards,
    Jyothirmayi.

    Hi Gopal,
    Thank you for your reply.
    >Is there any way other than Stored Procedure?
    Can you try configuring sender adapter to poll the data in intervals. You can configure Automatic TIme planning (ATP) in the sender jdbc channel.
    I need to select the data from different tables based on some conditions. Let me simplify that.
    Suppose Table1 contains 'n' no of rows. For each row, I need to test two conditions where only one condition will be satisfied. If 1st condition is satisfied, then data needs to be taken from Table2 else data needs to be taken from Table3.
    How can we meet this by configuring sender adapter with ATP?
    ================================================================================================
    >How to handle Data Types as data is coming from two different tables?
    If you use join query in the select statement field of the channel then whatever you need select fields will be returned. This might be fields of two tables. your datatype fields are combination of two diff table.
    we need to take data only from one table at a time. It is not join of two tables.
    ================================================================================================
    Thanks,
    Jyothirmayi.

  • Stored procedure design(IDoc to JDBC)

    I need design inputs from you people,
    My requirement as follows, we are creating orders(IDoc) in SAP and want to insert data in to Data base table, one IDoc data to be inserted in to multiple tables(min 4).I developed interfaces it is working fine, sometimes we expect 50k orders  from SAP per day,i.e 50K IDocu2019s , it min 2lac insert operations  performing on data base ,so planning to change my design.
    How can I reduce number of insert statements to process 50k IDocu2019s per day.
    Using stored procedure one option but stored procedure structure bit different. Like if I want to insert data 10 times in to data base table, then I written logic to repeat access tag multiples times.
    But how can I do it stored procedure.
    Any pointers?

    You can seek help from JDBC guys to create a Stored Procedure which accept the structure once and distribute it to 4 tables. So you need to push data only once.
    Like if I want to insert data 10 times in to data base table, then I written logic to repeat access tag multiples times.
    This part can also be handled in SP.
    Regards
    Raj

  • Problem calling Stored Procedure returning SETOF UDT (Using Spring)

    I am using Spring's StoredProcedure class to call a stored procedure from a PostgreSql database. It returns a set of user defined data types. I'm having a problem in parsing the results returned.
    The user defined data type :
    CREATE TYPE process_states AS (
    process_name text,
    process_type text
    The stored procedure returns a SET of "process_state" :
    CREATE FUNTION inquire_process_state (.....)
    RETURNS SETOF process_state AS '
    SELECT ....
    I hava a Java class extending the Spring StoredProcedure classs.
    public MyProcStats extends StoredProcedure {
    private class ProcStateCallBackHandler implements RowCallBackHandler {
    public void processRow(ResultSet rs) throws SQLException {
    System.out.println(rs.getString(1));
    public MyProcStats (DataSource ds) {
    super(ds, "inquire_process_state");
    super.setFunction(true);
    declareParameter(new SqlOutparameter("rs", Types.OTHER, new ProcStateCallBackHandler());
    declareParameter(new SqlParameter("family_name", Types.VARCHAR) ;
    While testing this class, I get an errormessage
    "java.sql.SQLException:ERROR: cannot display a value of type record"
    I would appreciate if anyone can point out my mistakes. I tried declaring
    new SqlOutParameter("rs", Types.OTHER, "process_state"), but that didn't help.

    As the related posts suggest, you will need to use direct JDBC code for this.
    Also I'm not sure JDBC supports the RECORD type, so you may need to wrap your stored functions with ones that either flatten the record out, or take OBJECT types.

  • Locking in EntityFramework - calling empty stored procedure releases lock acquired using sp_getapplock

    I have a patient table in the SQL Server database. Clients connect to the database and checkout one of the patients and do some operations on it and save it afterwards.
    Since multiple clients might access the patient at the same time. I wanted to implement pessimistic locking mechanism, So that if one client can acquire a lock to a particular patient at a time.
    Also if one of the clients locks a particular patient and either crashes or closes the client application the lock should be released. In case of crash the lock should be released when we detect that the connection of client with the database is closed.
    I found out that I could use sp_getapplock and sp_releaseapplock to
    do achieve this and specify @LockOwner
    = 'Session' when calling sp_getapplock,
    this ensures that the lock is released once the database session with the client closes.
    From the code, I call a stored procedure in database to acquire the lock. This acquires the lock correctly and if i close off the client app or the client app crashes the lock is released. This is behaving as I wanted it to.
    The problem happens when I call another stored procedure which is supposed to release the lock. As soon as the stored procedure is entered the lock is released, before we even execute sp_releaseapplock
    @patientId, @LockOwner = 'Session' the line which is actually supposed to release the lock.
    I tried creating an empty stored procedure (just commented out
    DECLARE @result int
    EXEC @result = sp_releaseapplock @patientId, @LockOwner = 'Session'
    This stored procedure still releases the lock I acquired using sp_getapplock.
    I can't seem to understand why this is happening. It should only release when I explicitly call `sp_releaseapplock @patientId, @LockOwner = 'Session'``
    CREATE PROCEDURE [dbo].[uspReleaseAppLock]
    @patientId nvarchar(max), -- Patient ID
    @ReturnValue int Output
    AS
    BEGIN
    DECLARE @result int
    EXEC @result = sp_releaseapplock @patientId, @LockOwner = 'Session'
    SET @ReturnValue = @@SPID
    END
    Could someone tell me why this is happening. What am I missing here ? I checked that the session ids of both the stored procedures (for acquiring and releasing the lock) are same, so it dose not seem that a new session is being created by entity frame work
    for each call to the stored procedure. Something else is going on which I am not able to comprehend. Any ideas ?

    Hi oalvi,
    The Stored Procedure(SP) sp_getApplock initialed with "@LockOwner='Session'" is
    session scoped. Your procedure
    [dbo].[uspReleaseAppLock]
    did the same work as you explicitly call "sp_releaseapplock @Resource = @patientId, @LockOwner='Session'", after the SP
    uspReleaseAppLock
    called or the current session ends, the lock released.
    It doesn't make sense to call the uspReleaseAppLock to release the lock initialized in another session. If you try, you get the error like below, as I mentioned, the lock is session scoped.
    "Cannot release the application lock (Database Principal: 'public', Resource: 'patient1') because it is not currently
    held"
    Regarding the same session ID you get from calling 2 SPs separately in Entity Framework(EF). As per my limitation knowledge on EF, If the maxsize of the project connection
    pool equals 1, you may get the same session always.
    Some cautions for sp_getApplock
    Locks can be explicitly released with sp_releaseapplock. When an application calls sp_getapplock multiple times for the same lock resource, sp_releaseapplock must be called the same number of times to release the lock.
    Due to the connection pool, the sessions may last long, that's what you need to take into account.
    By the way, is there any reason that you have to use the sp_getApplock? What is the procedure doing that you cannot rely on SQL Servers build-in concurrency control mechanisms?
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Trying to pass array to stored procedure in a loop using bind variable

    All,
    I'm having trouble figuring out if I can do the following:
    I have a stored procedure as follows:
    create procedure enque_f826_utility_q (inpayload IN f826_utility_payload, msgid out RAW) is
    enqopt dbms_aq.enqueue_options_t;
    mprop dbms_aq.message_properties_t;
    begin
    dbms_aq.enqueue(queue_name=>'f826_utility_queue',
    enqueue_options=>enqopt,
    message_properties=>mprop,
    payload=>inpayload,
    msgid=>msgid);
    end;
    The above compiles cleanly.
    The first parameter "inpayload" a database type something like the following:
    create or replace type f826_utility_payload as object
    2 (
    3 YEAR NUMBER(4,0),
    4 MONTH NUMBER(2,0),
    83 MUSTHAVE CHAR(1)
    84 );
    I'd like to call the stored procedure enque_f826_utility_q in a loop passing to it
    each time, new values in the inpayload parameter.
    My questions are:
    First, I'm not sure in php, how to construct the first parameter which is a database type.
    Can I just make an associative array variable with the keys of the array the same as the columns of the database type shown above and then pass that array to the stored procedure?
    Second, is it possible to parse a statement that calls the enque_f826_utility_q procedure using bind variables and then execute the call to the stored procedure in a loop passing new bind variables each time?
    I've tried something like the following but it's not working:
    $conn = oci_pconnect (....);
    $stmt = "select * from f826_utility";
    $stid = oci_parse($conn, $sqlstmt);
    $r = oci_execute($stid, OCI_DEFAULT);
    $row = array();
    $msgid = "";
    $enqstmt = "call enque_f826_utility_q(:RID,:MID)";
    $enqstid = oci_parse($conn, $sqlstmt);
    oci_bind_by_name($enqstid, ":RID", $row); /* line 57 */
    oci_bind_by_name($enqstid, ":MID", $msgid);
    while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC))
    ++$rowcnt;
    if (! oci_execute($enqstid)) /* line 65 */
    echo "Error";
    exit;
    When I run this, I get the following:
    PHP Notice: Array to string conversion in C:\Temp\enqueue_f826_utility.php on l
    ine 57
    Entering loop to process records from F826_UTIITY table
    PHP Notice: Array to string conversion in C:\Temp\enqueue_f826_utility.php on l
    ine 65
    PHP Warning: oci_execute(): ORA-06553: PLS-306: wrong number or types of argume
    nts in call to 'ENQUE_F826_UTILITY_Q' in C:\Temp\enqueue_f826_utility.php on lin
    e 65
    PHP Notice: Undefined variable: msgnum in C:\Temp\enqueue_f826_utility.php on l
    ine 68
    Error during oci_execute of statement select * from F826_UTILITY
    Exiting!

    Thanks for the reply.
    I took a look at this article. What it appears to describe is
    a calling a stored procedure that takes a collection type which is an array.
    Does anyone from Oracle know if I can pass other database type definitions to a stored procedure from PHP?
    I have a type defined in my database similar to the following which is not
    an array but a record of various fields. This type corresponds to a payload
    of an advanced queue payload type. I have a stored procedure which will take as it's input, a payload type of this structure and then enqueue it to a queue.
    So I want to be able to pass a database type similar to the following type definition from within PHP. Can anyone from Oracle verify whether or not this is possible?
    create or replace type f826_utility_payload as object
    YEAR NUMBER(4,0),
    MONTH NUMBER(2,0),
    UTILITY_ID NUMBER(10,0),
    SUBMIT_FAIL_BY VARCHAR2(30),
    MUSTHAVE CHAR(1)
    );

  • Can I make a DVD using Quicktime or anything else in my arsenal?

    First off I apologize for m idiocracy in posting this in "Quicktime for Windows" before this as I simply was noy paying any attention, also, please forgive me what I am about to ask has been discussed, but I didn't find any answers in my searching so here goes: How can I make a DVD that will play in TV set DVD players? Do I need any alternate programs or possibly an upgrade to Quicktime Pro?
    Heres the situation I have that way, with any luck, you'll understand what and I am trying to do (and hopefully tell me it's a rather easy process): I have a friend that has a bunch of skate videos available for download on his personal web page....turns out those downloads are .mgp and they play through Quicktime. Now what I want to do is take those said videos and make them into a DVD I can watch in any player. Is this possible with Quicktime, iDVD, or anything else that came standard with my new Macbook or do I need another program? Sorry, I'm a new Mac user.
    Thanks for the help I've already been given on ths site and the info I am sure to receive now. So far these discussion forums have been extremely helpful.
    Message was edited by: p-squared

    If you have do do many then buy Toast 8 Titanium and use them directly in Toast and skip first making a QT version then turning around and making yet another version. Which avoid compressing the clips twice as well. MPEG-1 is a very low quality codec so I would not compress the clips once to QT and again to iDVD.
    Also iDVD is fussy and takes forever, Toast isn't and doesn't.

  • Can I change the email account on one of my iPads which my husband uses without effecting anything else?

    I have a new iPad 3 and I want to give my iPad 1 to my husband but to keep some of my apps on his ipad(1) we decided that we will use my Apple ID for buying apps/iTunes. But if I change the email account on the old iPad will this effect anything else in either of the iPads?

    No.
    1. You can keep your account in both of iPad.
    2. You can sign your email in your new iPad.
    3. You can sign your husband's email in old iPad which is your Apple ID without any problem.
    4. If you and your husband want to keep personal privacy, please make sure don't use same cloud. Which means, your husband old iPad needs to sign his individual iTunes account (Apple account). The one also can sign your account for downloading your apps. After dowload apps, you better sign off. (You can sign in/off anytime for downloading purpose.) Second, better don't sync email. Close that function first where is under in "system" setting.

  • HT5744 if I have OS X 10.6.8 SL and have downloaded all the security Java updates should I still download this latest Java for Mac OS X V 10.6 Update 16?  If so do I need to make any changes to my setting or anything else since I have downloaded all the j

    Just wondering if I should update the latest Java software download and if so shoould I make any other changes on my old MBP?  I have downloaded all the Java updates.

    mendel-  I have downloaded all Java updates.  However several times I was told by an expert in this forum to check something and open Java pref and do something else.  I did download it but my question was do I need to check or uncheck or do anything with Java Pref. I think the table is called.  Just checking so that not only the downloaded was installed but anything else that nees to be done was done.  this is why I ended up at this Security article which was way ovr my head.

  • Execute stored procedure before editing = Problem using DataTemplate

    Héllo,
    I'm working on a Publisher Report, in which I need to perform a pre treatment before editing the report.
    The report is based on a data model "SQL Query", like this :
    "select my_package.myfunction(:par01, :par02)
    from system.dual;"
    The function returns a cursor, with all the data I need to build the report. The first thing I tried is to add to this function the pre-treatment, which insert in several tables rows used by the function.
    But I've got the error "ORA-14551: cannot perform a DML operation inside a query".
    Is there a different way to do what I want ?
    Thanks for your answers.
    Edited by: jbg on 15 déc. 2010 07:10

    By searching on blogs, I found the data template solution. I created the following template :
    <dataTemplate name="dtWeekly" dataSourceRef="ORCL2" defaultpackage="pk_btx_spe_weekly">
    <dataQuery>
    <sqlStatement name="Q1">
    select libelle libelle from super.tmp_trace_pub
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReport" source="pk_btx_spe_weekly.pre_traitement()"/>
    <dataStructure>
    <group name="G_TEST" source="Q1">
    <element name="libelle" value="libelle"/>
    </group>
    </dataStructure>     
    </dataTemplate>
    the function pre_traitement() simply inserts a row in the "tmp_trace_pub" (I tested it directly in SQL*Plus, without any problem. I've got no errors, but the trigger doesn't seem to execute, and the XML generated is empty :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <DTWEEKLY>
    <LIST_G_TEST />
    </DTWEEKLY>
    Did I do something wrong ?
    Thanks,

  • Stored Procedure for Blocking from using a Specific Warehouse in any transaction

    Hi,
    Is it possible to write a SP from using a Specific Warehouse in any transaction ?

    Hi,
    Try this SP for sales order. Change 01 to your warehouse code
    IF @transaction_type in ('A','U') AND (@OBJECT_TYPE='17')
    BEGIN
    IF  exists (SELECT t1.docentry  FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry  WHERE T1.[WhsCode] = '01'  and
    t0.docentry =  @list_of_cols_val_tab_del )
    Begin
    SET @error = 123
    SET @error_message = 'Check warehouse code'
    End
    End
    Thanks & Regards,
    Nagarajan

  • Do I need flash of can I get rid of it and somehow use HTML or anything else? XPSP3 FF7b

    Please no details on how to troubleshoot. I'm looking for alternates to flash player and don't know enough about this topic despite googling this subject (alot)...

    Were you running iOS 7 beta?  If so, as a developer you need to log into the Developer forum for assistance.
    Not a developer and running iOS 7 beta?  Then you've stolen Apple's software and will receive absolutely no assistance from this forum.  Enjoy your iBrick!

Maybe you are looking for

  • Emails sent on iPhone do not show up on my Mac

    I have a few email accounts.  For my Gmail account if I send an email on my iPhone, it does not show up on in sent mail on my Mac (or anywhere else for that matter).  I am using Apple's Mail application and the emails I am sending from iPhone are als

  • Excise Invoice values not picking

    Hi gurus I am doing a plant rollout. We have existing plants 1000, 2000 and 3000. In the same location we are creating 2 more new plants 4000 and 5000.So we are using the same excise group and series group. i did all the configurations in SPRO> LG> T

  • How do i sync multiple ipods to itunes

    Hi can anyone tell me how u can sync multiple ipod touch to i tunes. Have 2 i phones and 2 ipod touches in the house xx help

  • Preboot sign-in password

    I have an LaserJet 500 color MFP M575.  I enter the preboot menu and select "3: Administrator" and it prompts me for a password.  I have to press the up/down arrows to enter a numeric password.  I set a password previously, but now it is not acceptin

  • Presentation Issues in Oracle 10gr

    Hi, I am upgrading the existing project from bea studio 5.7 to oracle 10gr; it is having some presentation; After importing the project in Oracle 10gr it is giving the following waring messages Severity and Description     Path     Resource     Locat