What is the orders to run script

how can I put them in order to run inside my script file? I am trying to make 2 users database same... and want to run them in order so they dont effects each other. For example if I put drop table top of the list I will probably get some error...
Drop index
alter tables
create tables
create index
create function
drop function
create procedure
drop procedure
create sequence
drop sequence
create trigger
drop trigger
create type
drop type
create synonym
drop synonym
create view
drop view
drop table

Well, it depends,
In general you can drop views, sequences, indexes, procedures etc. in a clear-down script with no ill-effect.
Obviously if you don't drop everything, some things might become invalid. For example, if you
drop procedure B and procedure A relies on it and you don't drop procedure A, procedure A
becomes invalid. However, if you then recreate procedure B, procedure A will be re-validated.
Do you need to drop tables, or will alter tables do? Do you need to keep data?
If you need to drop tables, you will either need to do it
from child to parent table if you have foreign keys, or
you will have to drop the foreign key constraints before dropping.
Don't forget you may need to reissue grants if you're dropping and recreating things.

Similar Messages

  • What is the order of OS updates needed-?

    What is the order of OS updates needed to get to the most current OS? I currently am running 10.7.5 Also, I've tried looking for the OS updates, but only seem to find updates and not the whole OS i.e.: 10.8 and 10.9  Thanks!

    The following has instructions: https://www.apple.com/osx/how-to-upgrade/

  • What is the order of starting the services?

    Hi,
    I have 2 node RAC with ASM. what is the order of starting the services like crs, asm,nodeapps, db, ,listener?
    can you help me?
    Thanks

    The basic steps are asm, crs, db, listener, nodeappsTypo there? First CRS then ASM.
    Also, if you are running ocfs2, then the very 1st step would be ocfs2 (if your voting and OCR disks are on a ocfs2 volume, it needs to mount before CRS can start).

  • What is the form name (SAP script name ) for KO02 output .

    Hai ,
    what is the form name (SAP script name ) for KO02 output . and also pl guide how to customize that.
    thank u in advance

    spro---->controlling ->internal Order->Order Master Data----> Prepare Output and see the documentation of this.
    Regards
    Peram

  • What is the order of restoring backups in sharepoint 2010

    Hi
    production form has 
    2 web application ,custom solutions and service applications configured(user profile,serarch)
    here what is the order of restoring backups in  my newly created test form
    adil

    Hi
    in my production environment when i create new web application how
    the custom solution included in _layouts folder?
    this  is the information from systemsettings>farmsolutions
    Name: xyz.scan.wsp
    Type: Core Solution
    Contains Web Application Resource: Yes
    Contains Global Assembly: Yes
    Contains Code Access Security Policy: No
    Deployment Server Type: Front-end Web server
    Deployment Status: Deployed
    Deployed To: http://spwf01:81/;
    http://spwf01:83/; http://spwf01/;
    http://spwf01:84/; http://spwf01:82/
    here  there is no webapplication with port 85 , but when i create new web application with port 85
    this solution exists in _layouts folder
    adil

  • What is the order of execution of global transfer routine where multiple routines are involved?

    Hi,
    Suppose we have start routine, transformation routines and end routine defined between datasource and data target, and also we have a global transfer routine created on an infoobject.
    What is the order of execution of routines in this scenerio?
    Also if conversion routine like ALPHA is defined for an Infoobject, when does this come into flow.?
    Please enlighten me.
    Thanks,
    Akshara

    Hello Akshara ,
    The sequence of routines are as
    1. Start Routine
    2. Master Data Look Up or
    3. Field Level Routine
    4. End Rountine
    Apart from this , there is Expert routine, which is used in special cases, when there are not the sufficient functions to perform a transformation. It can be used as a interim solution , and it performs all the  functions of Start routine, end routine , field routine.
    Note : if you have created  transformation, and then created Expert routine, then system will delete all the existing transformations.
    Further to this, you can explore more, by debug the transformation as suggested by Vijay Kumar.
    Hope this helps !
    Regards
    YN

  • HT4910 documents edited on iphone, ipad, & mac   what is the order of creation and editing and must each change be manually initiated to update the icloud

    documents edited on iphone, ipad, & mac   what is the order of creation and editing and must each change be manually initiated to update the icloud?

    No idea what you mean by the firsy part of your question.
    Documents edited on the Mac need manually uloading to iCloud at iCloud.com,documents edited on the mobile devices are updated automatically.

  • What is the order of deletions when a DVR is full

    1302 wrote:
    My DVR is nearly full and I have a number of items marked for recording in the next two weeks one of which will surely bring DVR to 100% full. What is the order in which the DVR will begin deleting previously recorded programs to make room for latest recordings?  Normally, the oldest recordings will be deleted.... with the X1 system DVR, you can select to KEEP for 1 year or select "Space is needed" within the DVR manager.. -=Ray=-

    1302 wrote:
    My DVR is nearly full and I have a number of items marked for recording in the next two weeks one of which will surely bring DVR to 100% full.
    What is the order in which the DVR will begin deleting previously recorded programs to make room for latest recordings?
    Sounds like an external hard drive might be something to investigate for your DVR.  
    Some details at the links below:
    http://customer.xfinity.com/help-and-support/cable-tv/external-dvr-storage/
    http://store.comcast.com/my-book-av-dvr-expander/detail.php?p=442589&v=comcast_accessories
     

  • What is the program can run this flash

    hi all, I download some flash from this funny site
    http://www.funny-pictures.com/
    but i can't run it in my computer , means my computer not my
    browser , i run it only into flash programs as flash editor or
    macromedia flash 6 (open it and click file menu and choce open and
    search it), I want to open it directly , just click it to open
    without any program

    If you know the job name, than you can find out the associated program name.
    Go to SM37.
    Select your job from the list
    Select "Step" ... here it will show you the program name
    Put cursor on the program name and Go to > Variant to know what was the input to run this job.
    Regards,
    Naimesh Patel

  • What are the components of sap script?

    what are the components of sap script?

    SAP scripts is a word processing tool of SAP which has the following components: Standard text. It is like a standard normal documents. Layout sets. - Layout set consists of the following components: Windows and pages, Paragraph formats, Character formats. Creating forms in the R/3 system. Every layout set consists of Header, paragraph, and character string. ABAP/4 program. Components of scripts are Layout sets, SAPScripts text, ABAP print program, symbols, function module like open form, start form, write form.
    Please have a look at below links, might be useful for you.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
    Also have a look at below links:
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • What is the difference between a script & a report ?

    What is the difference between a script & a report ?

    hi,
    script is basically used for printing,
    report is for information,
    printing a report is difficult,
    report can be interactive,
    script is not interactive,
    script is client-dependent,
    report is client-independent,
    script is modified in most cases,
    report is developed from the scratch,
    thanks,
    kcc

  • What is the order in which implementaions of a BADI be executed??

    Hi Frnds,
                  If i have more than one implementation for a BADI, what is the order in which they will be executed.
    Regards,
    Navin.

    Hi,
        abt <b>enhancement ponts</b> in simple language
    They are POINTS in standard sap program
    (eg. Before Saving data, Before Displaying Data)
    where some other BADI/Include/Form
    is called.
    In this called badi/include/form,
    the customer can write his own code
    eg. for validation purpose etc.
    2. By doing so,
    the standard sap program need not be changed.
    Only the badi/fm/include/form
    needs to be changed.
    Enhancement-Point is a part of the new enhancement framework. He is some lite reading.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/94/9cdc40132a8531e10000000a1550b0/frameset.htm
    Please check this blogs and wiki as well.
    /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    /people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/thenewEnhancementFrameworkandthenewkernel-basedBAdI&
    REgards

  • What is the order of Column Names in Sqlite query results?

    I am writing an application using Adobe Air, Sqlite, and Javascript.
    After writing the following select statement:
              SELECT field1, field 2, field 3, field 4 FROM TableA;
    I would like to get the columnName/data combination from each row -- which I do successfully with a loop:
              var columnName="";
              for (columnName in selResults.data[i]) {
                   output+=columnName + ":" + selResultsdata[i][columnName] + ";";
    My issue is that the column names come out in a different order every time I run the query and never once have they come out in the desired order -- field 1, field 2, field 3, field 4.  If I run the query in Firefox's Sqlite Manager, the columns come out in the "proper" order. When I run them in Adobe Air, the order will be the same if I run the query mulitple times without closing the app.  If I make a change such as declaring the columnName variable with "" before the for column, or declare it as (var = columnName in selResults.data) , then the order changes.  If I shut down my app and re-open after lunch and run query, it comes out in another order.  At this time, I'm not interested in the order of the rows, just the order of the columns in each output row.  I've even tried assiging an index to columnName which seems to just pick up a single letter of the columnName.
    I'm in the process of changing my HTML presentation of the data to assign a precise columnName to an HTML table title, but I'm reluctant to let go of the above concept as I think my separation of HTML/presentation and Javascript would be better if I could use the solution described above.
    So, does anybody know how to force the order of the columnNames in my output -- or what I'm doing to cause it to come out in a different order?
    Jeane

    Technically there isn't any "order" for the return columns. They aren't returned as an Array -- they're just properties on an Object instance (a "generic object"). The random order you're seeing is the behavior of the for..in loop iterating over the properties of the object. Unfortunately, with a for..in loop there is no guaranteed order for iterating over properties (and, as you've seen, it tends to vary wildly).
    The only solution is to create your own list of the column names and sort it the way you want to, then use that to create your output. For example, use the for..in loop to loop over the properties, but rather than actually get the values, just dump the column names into an Array:
    var columnName="";
    var columns = [];
    for (columnName in selResults.data[i]) {
        columns.push(columnName);
    columns = columns.sort(); // just uses the default alphabetical sort -- you would customize this if desired
    var j = 0;
    for (j = 0; j < columns.length; j++) {
        columnName = columns[j];
        output+=columnName + ":" + selResultsdata[i][columnName] + ";";

  • Has the behavior of 'run script' changed in Snow Leopard?

    These work fine:
    tell application "Safari"
    return URL of front document
    end tell
    tell application "Safari"
    set longURL to URL of front document
    return longURL
    end tell
    This does not:
    set getFrontmostURLCommand to "URL of front document"
    tell application "Safari"
    set longURL to run script getFrontmostURLCommand
    end tell
    return longURL
    Why? It looks like a script interpretation error but I can't figure out what's wrong.
    The error returned is:
    error "Safari got an error: Can’t get URL of document 1." number -1728 from "URL of front document"

    I see. Is there a way to make the application variable? I'm writing a function because getFrontmostURLCommand works with a couple of different browsers and I want it to be run conditionally based on the user's browser. Something like this:
    set defaultBrowser to GetDefaultWebBrowser()
    on GetDefaultWebBrowser()
    set _scpt to "export VERSIONERPERL_PREFER_32BIT=yes; " & -
    "perl -MMac::InternetConfig -le " & -
    "'print +(GetICHelper \"http\")[1]'"
    return do shell script _scpt
    end GetDefaultWebBrowser
    on defaultGetFrontmostURLCommand(defaultBrowserApplication)
    tell application defaultBrowserApplication to set longURL to URL of front document
    end defaultGetFrontmostURLCommand
    on caminoGetFrontmostURLCommand()
    tell application "Camino" to set longURL to URL of current tab of browser window 1
    end caminoGetFrontmostURLCommand
    if defaultBrowser is in {"Safari", "WebKit", "Opera"} then
    defaultGetFrontmostURLCommand(defaultBrowser)
    else if defaultBrowser is "Camino" then
    caminoGetFrontmostURLCommand()
    end if
    set the clipboard to longURL

  • What determines the order of label in a label stack?

    Suppose there is a PE router,take part in igp mpls,bgp ipv4 with label,vpnv4 and TE.Then when a packet pass the LSR from CE,the LSR will put several label on the packet.Then comes the question:How can the router determine the order of these labels when puting them on the packet.
    I think there's two possibal answers:
    first,it is define by some document,that's an arbitrary answer;
    second,it is relate to the packet process flow.
    I wonder what is the truth.I need some detailed explain or document.thanks!

    The idea behind the stack is derived by the need to have multiple forwarding tables for the under lying forwarding planes.
    1) What this means is each router as pointed by you can have multiple protocols which may be utilizing MPLS labels for data forwarding. MPLS TE will have labels of its own via RSVP to forward data on TE tunnels, VPNs will have VPN labels to forward VPN data across via MPBGP, Global routes would have labels allocated by LDP to forward data between LSR's.
    2) This essentially creates multiple forwarding tables. Now where and how does the label stack come into picture, this can be answered by answering a simple question.
    3) Where did the MPBGP get the label from for the VPN, from the IBGP nexthop, now is there any label to reach the next hop yes, there is via LDP, hence you get a label stack.
    So whenever you build a forwarding table for any plane through a existing LSP then you have a label stack.
    For eg: if you have a VPN label learnt via a LDP LSP which in turn is built via a MPLS TE LSP then you have a 3 label stack. (the lowermost being VPN since it was learnt through a next hop reachable via LDP label, which in turn was connected till the next hop via multiple TE tunnels.)
    On the converse if you have a MPLS TE tunnel running between the PE's end-to-end you need not run LDP at all and the label stack to forward data across would be consiting of a VPN label and a TE label only.
    HTH-Cheers,
    Swaroop

Maybe you are looking for

  • How to factory unlock an iphone 4s (to work in Greece)?

    Factory unlock for iphone 4s

  • Issue with Oracle.sql.NUMBER in Java Stored Procedure

    When we try to make a call to the Oracle.sql.NUMBER(String) inside a java stored procedure and pass values from '01' to '09', it throws java.lang.StringIndexOutOfBoundsException: String index out of range: 3 We use Oracle 9.2.0.6 - JServer Release 9.

  • Filtering Internet access?

    +PAX Greetings all, and a Merry Christmas! We're a small monastery. And due to this, we need to implement some Internet filtering. Unfortunately, it's not the basic kind of filtering. Frankly, I'm not sure that all of what we're looking to do can be

  • Acrobat xi pro give a message: finito periodo di prova

    ciao ho la licenza ctreatibve cloud for team che comprende acrobat ix pro ma acrobat ix pro da il messaggio che il periodo di prova è terminato lo stesso problema lo avevo su pc e con la chat lo abbiamo risolto ma su mac sono bloccato: ho disisntalla

  • SWF Panel: how to get/set pixel or better - grab and paste BitmapData

    Hi everyone, trying to understand how to read and write pixel color from image or better - current layer but can't understand how to do this. Does this even possible? Main idea - it's pick current layer, put it to the SWF Panel. Doing there some modi