Determination of the Structure of Code

Does anyone know if there is a way to determine the structure of a pl/sql program unit (variables, statements, loops) code (package, function, procedure, etc.)?

There are a few code editors (for example, the PL/SQL Developer) which makes available a code structure and a conventional code editor window. These windows are usually connected, so when you cilck on a part of the code structure window, the corresponding lines in the code editor window are highlighted.

How this kind of code editors to determine the structure of a program unit? They have an Analyzer client to read and analyze the source code. Is there an Oracle API to get that information?

Published by: user630459 on 12/05/2009 05:10

Published by: user630459 on 12/05/2009 05:13

Published by: user630459 on 05/12/2009 06:05

Published by: user630459 on 05/12/2009 06:06

They have an Analyzer client to read and analyze the source code

Probably yes.

Is there an Oracle API to get that information?

In later versions, Oracle provides more detailed information for plsql via PL/scopeunits.

Tags: Database

Similar Questions

  • Password protect the Structure/form Code

    Hello

    I'm looking for a way to password protect the structure of a form code, but leave any open/no secure is to say fill, print, emailing, etc.  Is it possible to do it with these versions of the applications that someone found?

    Adobe Acro Pro X 10.1.6

    Adobe Livecycle designer ES2 9.0

    I don't want the user to see the protection when the form is opened in the reader.  I just want to see the protection or password message box if someone were to open the PDF in Livecycle Designer.

    I tried the password protecting the form with LC and then extend the rights but it always take off password protection when I do that.  So first I add protection in LC, then I save the PDF file and then I open the PDF in Acro Pro X and extend the rights.

    If anyone has faced this, I would appreciate some suggestions.  Is there a way to code in the open event, perhaps to check the environment?

    Yes, you can add a password to a doc that will only be visible when you open it in LiveCycle designer and not when a user opens the file in Reader/Acrobat.

    You also need well Acrobat AND LiveCycle designer.

    You are doing your dev in the designer, then you add security in Acrobat.

    In acrobat

    Advanced > Security > encrypt with password

    Then under authorization, check box restrict editing, provide a password, and check the brand of what you can allow/disallow.

    Click OK.

    A 2nd dialog box will ask you to re-enter your password.

    Subsequently, you must save the file and you will notice that the title bar now (secure)

  • Why push button and stop button does not work in the structure of the casing and buckle my VI? (code attached)

    I am a beginner. I'm trying to create a simple VI only switches beetween two types of signals like sine and triangle when someone press on the push button and at the same time, save the data in the file to my desktop. I also have a stop button which no longer record data.  Here are my questions and dproblems:

    1. when I press the button, it does not the true and false in the structure of the case so that I can see the triangle wave stops and begins the sine waveform table.

    2 when I press the stop button, I want the program still running, but the process of writing data in time the loop stops. I don't mind if the graph of the wave stops too but it would be better for the user to see the wave form is running, but the data will stop recording.

    3. Although the condition of the loop did not accept the local variable for the stop button inside the loop or within the structure of the case, so I put the button outside all the loops and the structure.  (I know that this is a problem, I do not know how to use a single button several times in a single code. The local variable did not work the world premiere? I have to?)

    4. the data file it creates hase a lot of lines and columns. I expect a time column and a column of mixed signals based on the push button amplititude this user press every time.  I did that with the acquisition of data and a sensor, it automatically gives me the voltage and time in a column. I tried 2D and 1 d and it has not changed anything.

    Thank you for your help

    Like you said, you read only your entries at the beginning, then whatever value they had before you hit run is worth to be seen by the rest of the code. Programming LabVIEW is based entirely on the data flow and parallelism. It is incredibly powerful and has led to its success over the years (coupled with graphical programming), but is usually one of the first things the new developers stumble on. This is a simple resource to familiarize themselves with its functioning. The function to highlight execution is a great way to watch how your application uses data streams.

    Simple code goes like this:

    • Containing the main code of while loop

      • Inside of the whole loop is all user interaction code or modify the code entry
      • Stop the terminal loop is attached to stop certain criteria or user selection of a stop button
    • Loop initialization above all if necessary
    • Closing referrals and communications, etc after all loop

    It's very simple code. If you want to watch in more advanced architectures that are scalable, Google "LabVIEW State Machine" or "LabVIEW producer consumer."

    If you are just starting, you should do a free training have the capabilities of LabVIEW.

    "Give me six hours to chop down a tree and I will spend the first four sharpening the axe.  -Abraham Lincoln

    Here are some free training focused mainly on LabVIEW and hardware tools to help get started.

    Training center of NOR

    NEITHER start-up

    -Hardware Basics

    -Guide of MyRIO project Essentials (a lot of good simple circuits with links to youtube events)

    -LabVEW databases

    -DAQ Application tutorials

    -CRIO Developer's guide

    Learning OR training videos resources

    Introduction to LabVIEW for 3 hours

    Introduction to LabVIEW for 6 hours
    Paced self-study for students
    Self Paced Training beginner to advanced, required SSP
    LabVIEW training Wiki

  • Impossible to determine the application exit code

    Hi guys,.

    I used the code below at the exit of the application programmatically.

    Application:instance()->requestExit();

    but I get following errors:

    Impossible to determine the application exit code

    Please find the error attatched image.

    Please help me to fix it.

    Application::instance()->exit(0);
    

    Or any code you want to use instead of 0.

  • Dynamically retrieve "rank" in the hierarchy to determine the next member to be inserted into the structure?

    Hello

    I have a hierarchy with the structures of members following leaves:

    Depending on which division they are ZEN-A, ZEN - B and C ZEN with 7 numbers after them.

    Is there a way to dynamically retrieve the Member in the ZEN-A, ZEN-B and C ZEN in three separate properties so that the user DRG can determine the next member must be added?

    For example, if I have a structure that looks like this:

    ZEN-A0000001
    ZEN-A0000002
    ZEN-A0000003
    ZEN-A0000004

    I want a property which would show the user DRG WHAT ZEN-A0000004 is the largest number so that he or she must insert ZEN-A0000005.

    Thank you!

    Hello

    How do you combine them?

    If something like this ParentABCD-AliasABCD

    Then, you can use the formula Concat to do the same thing:

    Concat ((HierNodePropValue (Hierachy2, ABBREV (), PropValue (Core.ParentName)))-, (HierNodePropValue (Hierachy2, ABBREV (), PropValue (Custom.AliasXXX))))

    Thank you

  • Determine whether the instance of the object is of a specific object class.

    I was not able to find the answer in the documentation or in the forum. My terminology is perhaps a bit off (Java and c# background back to PL/SQL programming).

    The general question is: given an object instance how to determine if the type of the instance is of the same kind as a specific object class.

    In particular, I do a unit test and examine the returned object instance. The effective yield is described as follows

    -This data structure contains a pointer to an LDAP session
    SESSION OF SUBTYPE IS RAW (32);

    I expect an instance of DBMS_LDAP. SESSION. To confirm this, I propose that the returned pointer DEREF and see if it's a type of DBMS_LDAP. SESSION. When this is confirmed, then I can further the return of reference.

    Draft code is

    BEGIN
    IF DEREF ({RETURN$}) some_operator_which_compares_object_types DBMS_LDAP. SESSION
    THEN
    RETURN TRUE;
    ON THE OTHER
    RETURN FALSE;
    END IF;
    END;

    where some_operator_which_compares_object_types is what I need to know.

    Thank you for your help. And of course, the other way to do business and/or links to the correct location in the documentation are appreciated.

    Kind regards
    Bill

    I think you are looking for [IS OF | http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/conditions014.htm] condition.

    SQL> create or replace type mytype as object(a number);
      2  /
    
    Tipo creato.
    
    SQL> declare
      2  x mytype := mytype(1);
      3  begin
      4  if x is of (mytype)  then
      5  dbms_output.put_line('OK');
      6  end if;
      7  end;
      8  /
    OK
    
    Procedura PL/SQL completata correttamente.
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2009/12/29/estrarre-i-dati-in-formato-xml-da-sql/]

  • Satellite A110-178 cannot run the Da Vini Code game

    My satellite A110-178 cannot launch the game "The Da Vini Code". following error occurs:

    Encountered exception! You want more information (will take several seconds to determine)?

    When I choose 'Yes', the following lines appear:

    (Slayer) Address of exception

    [no info game crash]

    IMAGE HELP STACK:
    TArchive::operator = + A9D22

    MAP FILE STALKWALK:

    All I can do is press 'OK '.
    the program stops, and that's the end of it.
    I don't know what that means, is there a problem with my hard - or software?

    If anyone can help me and translate the language of code of my computers, I'll be gratefull for this,
    because this is not a cheap game,

    Thanks in advance,

    Davina

    Post edited by: Davina Deleye

    I recommend you to check some forums on this game. I found one under http://www.isohunt.com/forum/viewtopic.php?p=126110

    Maybe you can find answer here. Read it carefully.

  • HELP: Activation server determined that the specified product key has been blocked

    I did a complete reset of my ENVY 17 laptop and now whenever I try to re-activate Windows 8 Pro that I reinstalled using the USB recovery, I get error:

    Code: 0xC004C003

    Description: The activation server determined that the specified product key has been blocked.

    I have Microsoft Suppot had called and were told to contact HP (manufacturer of my pc. Someone at - he met sam and how wa it is resolved?

    Thank you

    Rico.

    Solved! HP technical support took care of me Thank you so much.

  • using the structure of the event in the LabVIEW classes

    Hello

    I'm new in the use of LabVIEW classes, so don't know much how I can use them.

    In my main program, I have clusters with five elements in each. The elements are controls two States and in some groups, there are three States controls. The user will press the buttons (controls), and different things will happen. In my first program were I not using classes, I had a structure of the event and the controls were cases of event in the structure.

    Is it possible to somehow use an event of cases in one of the methods that is created in the classes, so that say, that's not in the main program?

    I have attached two photos: I wanted to have a structure of the event in servoTouchEvent (in left.tri.lvclass) who is a child.

    Let me know if my explanation is not clear.

    Grateful for the help!

    Hello

    Yes, you can have a structure of the event in a Subvi rather in your main VI of top-level UI. The trick is to use the 'Save for events' and passing in references to orders that you want to have the event trigger structure for. The refnum output since the function is entered in the terminal of dynamic event of the structure of the event who could live in a Subvi. You can add instances of event where you will see these control events as dynamic events then you can do something with. These excerpts from shows all the code in a simple diagram, but the stuff in the structure of disable diagram could easily transformed into a Subvi:

     

    All this can be done without classes. What will buy classes you include the ability to encapsulate your screws and also perform different code based on what object on the hierarchy of the parent-child classes is on a wire. If the behavior of your code is different between 2-3 State and controls (which I do not know what state controls 3 you are referring), you can take advantage of the classes.

  • Control the Structure of the event with text file

    I'm new relativaly in LabVIEW (experience only about 2 weeks). I am currently control a stepper motor using a structure of the event. Similar to the sample code given by LIFA, I entered my settings how the engine not move away, then press a button on the windows before, and it works this way. I also have other equipment that works as well in LabVIEW, as a transnational step; all components operate individually.

    Now, I'm trying to make the more automated system and to ensure that all the different equipment work in the same code. So, I tried to implement a structure of the event using a text as an input file to try to control events. The text file has a table 1 d of numbers going down vertically (only the line numbers change). So, I used a table of index function to take the numbers one by one, use a loop (while loop in this example) to go to the bottom of the column of numbers. However, the event not register the change, even if the indicator shows the value is changing.

    Attached, it's my test code and the text file that I use to try to control the structure of the event. Please let me know what I am doing wrong. Thank you.

    Oh, now I understand what you tried to say. I'm using a loop and a case structure to activate different events with the entries in the table. I thought case structures and event were the same, but you taught me the event structures are used just for the façade stuff. Thank you all!

  • How to control the structure of the event

    What I'm trying to do, it's when the condtion is true, I want that the structure of the event to excute. But the event structure wil excute not except if he's changed the puch model, any idea how?

    It is more likely that he wants the sequence of events that he has set up to run after the result once changes.  If you change the logic to check the values after each numeric change (2), you will need to learn how to check to make sure that the latest iteration was not true.  Otherwise, it will start the sequence over and over.

    Really, you have to escape completely the structure of the event.  This isn't what you want.  Your code lends itself to a great state machine.

    You'll want to ask you a few things:

    (1) I want my code to run continuously or I just want to check double-digit times? (your code is currently the second)

    (2) I want the user to be able to stop my code once the sequence begins? (it is usually a Yes)

    (3) what I want 6 Road, path 5 or the comparison to happen first?  I want all run at the same time?  Do I need one before the other? (currently, you cannot predict what will happen first).

    You will need to understand the topics are: State of the machines, the flow of data, structures, business, calendar, and race conditions.  Now, you need to get you into trouble.

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

  • An interrogation continues with the Structure of the event, please help me understand

    Dear Forum,

    I'm 3 months in LabView. I created a front panel with what I consider a reasonable set of code below with a basic entry control power boulean a case controlled set of actions. I enclose a strongly striped version to the bottom of this structure with sections deleted button so that the executed code is removed to simplify just ask questions on this control structure. After the recent webinar, I understand this form of control to call a continuous structure of vote - and it makes perfect sense and seems natural for me to the point of programming of data flow.

    But according to the webinar it is preferable to use the structure of the event.

    However, the structure of the event seems really weird to me. My main question here is certainly the structure of the event MUST be voting each of the values itself anyway, otherwise how does he know that an event had occurred?

    So what is the difference between explicitly "polling" the buttons myself with a while loop and using a complex (for me) of the event with 'hidden' polling stations under?

    The vote of the 4 buttons in my example should be done at the same time if Labview is truly multithreaded/parallel? There should be no difference in the level of the computer between my code querying and the code 'hidden' the structure of the event making the mark.

    Thank you in advance for you help to clarify my confusion.

    Sincerely,

    Robert Gibbs

    rg8766 wrote:

    Surely the process:

    Check the OS press > OS encodes this trigger to send > OS sends a trigger that the button has been pressed > Labview checks if a trigger happened > Labview decodes what action has been coded in this trigger > Labview takes appropriate, based on relaxation measurements

    has more steps and is more intensive than processor

    LabVIEW checks the key > Labview performs the appropriate action when you press the button?

    BONE is already this process in any case.  If you are in fact doubly effort without worrying.  And the OS is much more efficient that your code will be.  So just let the OS do work heavy while your code sleeps.

    And think about the trigger more as an alarm clock.  You are asleep (do nothing, with no CPU) when your alarm goes off.  You wake up and perform the task that the alarm tells you to do.  Once done, you are waiting for another alarm, so you get to sleep.

  • How to stop queuing in the structure of the case

    I'm trying to find the Summit and the Valley of the signal. I'm able to find it, but I don't want to make the zero with the pic. I just want to get the value of Ridge and Valley. Is it possible to stop queuing the values in the structure of the case? As I have a several signals which peak/Valley must be found that I can't use the library functions.

    Kanye wrote:

    I'm trying to find the Summit and the Valley of the signal. I'm able to find it, but I don't want to make the zero with the pic.

    First of all, and more which has been mentioned, there are serious shortcomings, making the Subvi is not very universal.

    • Your Subvi does NOT export the correct value of the Ridge (or Valley), but the value just after (which is more a peak or a Valley!)

    • Your Subvi is only the positive peaks and valleys negative. This seems very restrictive. In general, you could easily have a Valley even if all the data is positive. Right? (With the exception of the Valley of death for example, most of the valleys are above sea level, for example )

    • Your code is extremely complicated, with two sets of structures of the case, each stacked three deep, four change records and tons of comparisons. Here is a simpler version. (To imitate your outings, place a statement select after each comparison and output the value or zero depending on the result of the comparison).

  • Time-out in the structure of the event

    Hello

    I try to configure the time-out period in the structure of the 5s event using the loop, as shown in the picture as an attachment. The problem is that this time-out event occurred only when I code debugging and does not happen when I run the same without debugging. Any suggestions on this?

    Thank you!

    OK, just use VISA Read to read the first three octets.  Then do another set VISA Read the number of bytes defined in dlen.  If the data does not, then you will get a VISA expiration time.

Maybe you are looking for

  • Mijn Dvd-RW-station (E :) laat couriers next mededeling zien:plaats een cd.) While er al een cd inzit.

    Geachte lezer/lezeres, Mijn Dvd-RW-station (E :) laat mij principled dat er een cd moet worden geplaatst.) Good dat er al een cd inzit. IK heb alle cd used om ITU giving you proberen. Ook heb ik geprobeerd met clean oplosser. Die laat principled dat

  • White screen on laptop G60

    When he opens the laptop restart it said resumption of the windows, then turns off with just the cursor. He started flashing black when I was with her, almost as if he was trying to stop or go to sleep. The first time I thought it was because it was

  • Continues to run 'check updates' for hours

    Separated from this thread. Someone at - he found a solution to this problem.  I was not able to load the updates since June - like Omer Levy he just continues to run 'check updates' for hours but nothing happens... can someone give a reasonable way

  • limited access/no internet connection wifi at home

    I connect my laptop to router at home via wifi. But I had limited or no internet connections message often enough. Usually after the diagnosis, it will reconnect and works very well. However it will not work for long. Diagnosis looks like this And co

  • Download Windows 8 evaluation problem

    When I was about to download, I selected 64 - bit, because my computer is 64-bit. When I chose and went to download, it says it would download 32 bits when 64-bit has been selected. Help!  the link: http://www.microsoft.com/en-us/evalcenter/evaluate-