Test script for syntax without running.

I have always wondered how to do this. Is there any way to have sql*plus check a script for correct syntax and column names, but NOT execute the code. I know that sql*plus doesn't have a TEST option, but it sure would be nice. Currently the only way to check code (especially updating code) is to let it rip and have a rollback at the end. Not the greatest way to do it.

EXPLAIN PLAN will only work for a single SQL statement.
If the script comprises a single transaction, one technique which might work is to first SET TRANSACTION READ ONLY.
This will attempt to execute every line in the script, but any statements which try to update the database will fail with "ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction". Similar to what the original post described with a rollback at the end, but without the I/O.

Similar Messages

  • Test Script for HR Off Cycle Process Model

    Hi,
    Does any one have the Test Script for Off cycle Process Model?
    Regards,
    Srini.

    Do you have any conditional breakpoint between second and third step?
    The red error is coming out of conditional breakpoint and it will work if you re-run the step. Generally, we put conditional breakpoint to make sure that we will start next process only after verfiying the result of the last step and thats why if you start manually it turns green.
    You can delete conditional breakpoint if you dont want.
    Arti

  • Test scripts for oracle applications using qtp testing tool

    hi
    i want some test scripts for oracle applications using qtp testing tool
    regards

    You will need to create separate scripts for Load testing. The functional scripts cannot be used in OLT. The exceptions to this would be the "General" items (Java Code Script & Web Services) which can also be used in OLT.
    e.g. Instead of selecting "Functional Testing - Oracle EBS/Forms"
    select "Load Testing (Protocol Automation) - Oracle EBS/Forms"
    Once you get into load testing you'll realise that you want to create very specific scripts and won't want to try re-using functional scripts. I know a lot of such tools are 'sold' on the fact that functional scripts can be re-used for load, but when it comes down to it you'll want to design your load scripts seperately anyway!

  • Test Script for Billing

    Hello Experts,
    I would like create test script for Billing.Since i have no clue about test script coz in my previous organization we have not made any script for testing.Now i would like to create testing for Billing.
    Could you all explain me what are the pre - requisites for testing only for Billing.
    What are the different ways for testing to perform since i have never worked on testing on documentations.
    Your reply would appreciate.
    Thanks
    Shri...

    Test script is nothing but unit testing through which you list down the steps that are needed to execute a test case and record the results.
    In your case, since you wanted a test script for billing, first you need to identify the different types of billing documents configured in production client.  For each and every billing document type, you need to create a test document and record in the following format
    Test Scenario No.
    Scenario:::Billing
    No.::TCode:::Description:::Input Data:::Output Data:::Remarks (OK/Error)
    We call this process as ASAP Methodology.  The prescribed format you can get in service market place.
    thanks
    G. Lakshmipathi

  • Test script for 4.6c to 4.7

    hi,
        can any one help me out to get test script for comparisons between 4.6c to 4.7

    HI,
    For 4.7  Try this link
    http://help.sap.com/saphelp_47x200/helpdata/en/fc/e3003deddfae4de10000000a114084/frameset.htm
    Regards,
    Sachendra Singh

  • Test script for functional tesitng

    Hi all,
    i need to create test scripts for Non sap screens( z-transaction). In that i m adding new fields. since Thsoe fields are new, i dont have any data to test the screens. From where i can get the data to perform the testing?
    some of the fields are like export country code and container number etc..?
    Plz help me guys its urgent for me
    Edited by: anil kumar on Jul 25, 2008 1:03 PM

    Yes i got the asnwer after analysing myself

  • Test scripts for controlling

    Can any one explain me what the test script contains for testing out transcation codes in controlling . can anyone provide me a sample of test script for testing transcations in controlling.
    Thanks
    Monica

    Hi,
    Before the configuration settings / Reports are moved to Production it needs to be tested by Consultants as well as Business Users.
    Business Users will specify their requirements during Blue Print phase - basically how the system should work. After completing the configuration, testing is done based on the requirements. For testing this Test scripts are prepared for different Business scenarios covering various Transaction codes. This sequence of testing different transaction codes is known as Test script.
    For example for a Sales Cycle testing - a Sales Order is created - Delivery document is created - a Billing document is created. Accounting documents are checked whether it is posted to correct GL Accounts / Profit Centers etc. All these steps should be included in Test script.
    Thanks
    Murali.

  • Test scripts , for upgrade project

    hi
    i am doing upgrade project, its my first experience ,
    can someone tell me what is the test scripts for testing, how to prepare it, and what's importance of this for fico side?
    offcourse points to all.
    thanx

    hi plz refer at
    http://www.thespot4sap.com/upgrade_guide_v2.pdf
    asign points if useful
    thanks
    Srilakshmi

  • Test Script for Event driven function

    Hi,
    i m new to this product. i have one doubt , is it possible to write test scripts for event driven functions ?
    if possible, could you please share some samples.?
    Thnk you.
    Bala.

    Yes.
    At the simplest, you could have a test like this:
    [Test]
    public function shouldThrowEvent():void {
      var eventCalled:Boolean = false;
      var someEventDispatcher:SomeEventDispatcher = new SomeEventDispatcher();
      someEventDispatcher.addEventListener( "someEvent",
              function ( event:Event ) {
                   eventCalled = true;
      assertTrue( eventCalled );
    I would recommend looking at docs.flexunit.org for more information.
    Mike

  • Rational Robot Test Scripts for Oracle Application Vanilla Instance

    Hi,
    Does anybody have Rational Robot Test Scripts for Oracle Applications Vanilla Instance. We are in the process of automating testing. But for the same, we need to have the test scripts for the standard functionalities/flows.
    Any help would be highly appreciated.
    kanjurm

    Hi;
    I belive there is no sch a script as you mention. Please log a SR for your request
    Regard
    Helios

  • Test Scripts for financials modules

    Hi,
    I am looking for detailed test scripts covering all test scenarios for system testing in financials modules. I am interested in Purchasing, Payables, Cash Management, Projects and Fixed Assets. I also need for Receivables and Order Management.
    Do some body have this please let me know. If there is any website or download place where I can get this. Please let me know.
    I am looking for a test script to show the purpose and results clearly including the gl accounts involved and the results in debiting and crediting the accounts in various transactions while doing the test. For ex. when you validate a PO matched invoice in Payables which accounts get affected and how etc.
    Thanks in advance
    Regards,

    Pl do a search for "financials test scripts" in the forum search - this has been discussed and responded to many times before :-)
    HTH
    Srini

  • Sample test scripts for Enhancements

    I need your inputs on some standard Test Scripts that should always be tested for Enhancements(User Exits etc...) Points will be rewarded.

    These are the table is the order in which you need to papoluate data from 10.7 instance for the conversion of customers:
    ·     RA_CUSTOMER_INTERFACE
    ·     RA_CUSTOMER_PROFILES_INTERFACE
    ·     RA_CUSTOMER_BANKS_INTERFACE
    ·     RA_CONTACT_PHONES_INTERFACE
    ·     RA_CUST_PAY_METHOD_INTERFACE
    Once data is there, you need to call custmer import programe.
    You have also number of API's for TCA, and process is same.
    Regards
    sanjit

  • Test Scripts for Process Chains

    Hi Gurus,
    Can anybody send me the sample test scripts or the available links for process chains
    to my mail Id. [email protected]
    I will assign full points.
    Thanks in adance.
    Maruthi.

    Hi Maruthi,
    Please go through the belwo links and let me know if you need any specific information. Also you can find lot of threads in SDN
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0f4e952-e46e-2910-1f9e-cae187cd16d1
    Assign points if its helpful.
    Regards,
    Jagadeesh.

  • Including a test script for other scripts in OpenScript

    Hi all,
    I am a newbie in OpenScript. I had created a "myfunctions" test script which have all the common functions for my scripts. I found out that, for the script to be called, we need to add it to the script assets. This will not be feasible in my case because there are many scripts that calls these functions and I cant add them to all. Is there any other method to include it (eg. Making it in a jar file and using import? or something of that sort?). Couldnot get any help from the net or the documentation. Please let me know a way to handle this.
    Thanks.

    Hi,
       Looks like the relative path information is not being properly resolved during Replay. Is the application URL being properly loaded in the Replay view? By "properly" I mean does it have the entire URL of the application with the protocol, server & port number?
    Regards,
    Satyajit

  • Get est time for sql without running against the db ??? possible ?

    hello,
    is there anyways to get a query execution time without running that against the database ?? even an estimate would be good...i am on 10.2.0.3 ......i am it might be impossible for it...but anyways to get estimate besides setting autotrace only ?? as i said want nothing but just like a estimate time for how long will it take to finish the query...i know we can very long_ops view but as i said..without running against the DB ...is that possible ?? as the explain plan i get shows time ?? but is that how long it will take to finish up or ?/
    select * from table(dbms_xplan.display);
    | Id  | Operation            | Name | Rows  | Bytes | Cost (%CPU)| Time     |  
    |   0 | SELECT STATEMENT     |      |    56 |  3192 |     9   (0)| 00:00:01 |  
    |   1 |  MERGE JOIN CARTESIAN|      |    56 |  3192 |     9   (0)| 00:00:01 |  
    |   2 |   TABLE ACCESS FULL  | DEPT |     4 |    80 |     3   (0)| 00:00:01 |  
    |   3 |   BUFFER SORT        |      |    14 |   518 |     6   (0)| 00:00:01 |  
    |   4 |    TABLE ACCESS FULL | EMP  |    14 |   518 |     2   (0)| 00:00:01 |  
    -----------------------------------------------------------------------------  

    user11168115 wrote:
    hello,
    is there anyways to get a query execution time without running that against the database ?? <snip>
    How long is a string?
    How deep is a hole?
    How long does it take to read an unknown number of blocks containing an unknown number of rows from an unknown disk system with an unknown contention load, pulling it across an network of unknown bandwidth and unknown load ....
    And I'm not saying that if you somehow provide all this that the answer can be known. I'm saying the too much of the information tht would be needed to make such an estimate is unknowable. Much of it will be widely variable from one execution of the query to the next execution of the exact same query. Which leaves you with exactly what to base your estimate on?
    Without even seeing your query, I can tell you with absolute certainty that it will take between 1 nano-second and 100 years to execute.

Maybe you are looking for

  • How to change the HTTP Response as XML (Content Type "text\xml")  When Post

    Hi Friends , I have created one RFC Destination TYPE H . When i am trying to post some XML Message to that particular HTTP Service using POST method . It succesfully accepted the XML File but , it is returning the String as " OK" . In the connection

  • Help Regarding a Project

    http://www.youtube.com/watch?v=P-y_rV6OSpw This is MenuPad....I want to make this app in Flash but i want to ask that how would i send selected order list to Server computer.....Please guide me

  • Manged Server not able to start.. default policy provider was not found.

    Hi All, SOA suiite 11.1.1.1.3.0 I am able to start admin server successfully. and while starting Managed server I am getting below error. I am trying to start managed server in cmd promt. could anyone pls suggest me to resolve this?? ####<Jun 5, 2013

  • I WIH TO KNOW HOW TO INCREASE FONT SIZE

    I have CS4 Extended version of photoshop and due to eyesight problem I am now having trouble reading headings such as file, edit etc on the menu bars and also headings noting details of the thumbnail prints. Can someone explain to me in detail how I

  • PHP strip_tags

    Hello, I am trying to strip all html tags except the <p>, <strong> and <br> tags. I am running this line of code: $desc = strip_tags($row_prd['prd_desc'], '<p> <strong> <i> <br> <br /> <BR>'); I dont get any errors but the only tag that is left remai