Run large script in sqlplus

Dears,
When i ran large script using sqlplus this error happened "ORA-06550: line 16370, column 2: PLS-00123: program too large (Diana nodes)" and please i need solution to run this script.
the size of script is 17MB
thanx
Edited by: user12059086 on Oct 14, 2009 2:38 AM

user12059086 wrote:
this is first line from script:
DECLARE
     cid int;
begin
     select id into cid from country where countrynum = '110';
     insert into location(CountryID, CountryNum, LocationNum, LocationName)
     values (cid,'110','11000001','Antigua and Barbuda');
the script has 461059 lines... :(Ouch.
This is exactly not the way to load large volumes of data into Oracle. if the script actually ran it would probably kill the database due to over parsing never mind the performance of executing hundreds of thousands of individual insert statements to perform a bulk load.
As already suggested get the data in a format that can be loaded by external tables or SQL loader.
I'd link to the docs for those but they don't seem to responding at the moment.

Similar Messages

  • When pasted large # of values in Choice Prompt,  Stop running this script?

    Hi,
    In a choice prompt, I am cut paste large number of values (about 4000) in 11g dashboard. After a few seconds I get a popup 'Stop running this script?'. The same number of values works very quickly and without prompt in 10g.
    The behavior looks to be due to java script running to set the choice values in 11g. Even if I paste these as ; separated values time taken is very very large.
    Two questions
    (a) Why it takes so long compared to 10 g? If I paste small # of values (say 30) , control comes back with active 'Apply' button quickly.
    (b) What can be done to improve this performance?
    See this posting http://www.itwriting.com/blog/119-ie7-script-madness.html and work around to suppress the popup.
    I tried using presentation variable and that avoids the popup. Why?
    I will like to know what options I have for better user experience.
    Bhupendra

    You need to use Column Filter Prompt for this. One of the main reasons why this is not available in a Dashboard Prompt is that in a Dashboard Page you can have reports using the dashboard prompts and standalone reports(that do not use dashboard prompts). Since there is no link between the dashboard prompts and the individual reports per se, you would not be able to run the reports(that depend on the dashboard prompts) after entering the data in the dashboard prompt. The first way as i said is to use Column filter prompts instead of Dashboard Prompts. The other way to achieve this is, create the dashboard prompt and the report in seperate sections. Then minimize the report section. So, first time you open the dashboard the report would not run in the background. Expand when you actually want to see the report. The third way is to use presentation variables rather than using the is prompted clause. The fourth way is by specifying some default values(which i believe you do not want).
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • An error occured while running a script

    On launching Bridge, I an consistently receiving the following error.
    "There were problems loading a startup script the last time bridge was launched. Would you like to load them now?"
    Clicking [Yes] produces the following error:
    An error occurred while running a script. The script may not be compatible with this version of Bridge. Check for available updates by selecting the Updated command in the Help Menu
    Error in /Library/Application Support/Adobe/StartupScripts/AdobeStockPhotos.jsx
    Line 54: result = eval(script);
    Timeout while waiting for the engine
    I am running Bridge Mac CS2 - 1.0.4.6
    Adobe Stock Photos Update 1.0.8
    Power Mac G4 733 / OS X 10.3.9
    Updating either Bridge or Adobe Stock Photos does not correct the behavior.
    And curiously Stock Photos appears in the Favorites pane and appears to function.
    Any help ?
    Kurt Griffith.

    Good day,
    The Bridge v1.04.6 PS CS2 I am presently using has always come up with the Internet connection Error Message and none of my large imaging machines are connected nor will they ever be connected to the Internet.
    Is there a setting to do away with the Bridge trying to connect on my
    behalf ? I've spent a lot of time trying to 'fix' a problem that shouldn't have arisen.
    It wastes a lot of time trying to do something, which I do not want it doing.
    Thanks for any assistance you can provide in the matter. And please
    keep cranking out your wondrous though not totally controlable software, or so it seems.
    Best - Stephen Graham

  • Promt from user to proceed in case of error in sql script in sqlplus

    I am using Oracle 10g on Linux platform. I am executing a control.sql script from sqlplus from where i cam calling three *.sql scripts:
    control.sql
    SPOOL test.log
    SELECT 'Start of Control File at:'||systimestamp from dual;
    @00_create_table_scripts.sql
    @01_alter_table_scripts.sql
    @02_insert_scripts.sql
    SELECT 'End of Control File at:'||systimestamp from dual;
    SPOOL OFFI want that whenver there is an error in any of the three sql scripts, a prompt should be displayed asking the user if he wants to continue or not(Y/N). If he presses Y, then the remaining script shall be executed, otherwise execution should be stopped there.
    Can any body guide me how can i do this?
    Thanks.

    I want that whenver there is an error in any of the three sql scripts, a prompt should be displayed asking the user if he wants to continue or not(Y/N). If he presses Y, then the remaining script shall be executed, otherwise execution should be stopped there.If you have toad installed on your machine ,please run control.sql file from your machine .Toad will prompt an alert message saying that so and so error occurred and do you want to continue with that exception or not .
    Thanks,
    Prakash

  • Run a script by clicking on a button panel

    Hi,
    i am very new to scripting in after affects and in general.
    Several month ago i write severals little scripts to speeds up my workflow. I launch them via the "Launch Pad" script Panel.
    Now, i would like to put my scripts in my own panel but i'm missing the properties to link the "script part" and the "panel part".
    For the panel i have (just one button for the moment):
    win=new Window("window","new project",[0,0,500,500],{resizeable:true,});
    but_1=win.add("button",[33,16,103,36],"Sharpen3Way");
    win.center();
    win.show();
    and  my previous script that work independently.
    myComp = app.project.activeItem;
    // Selectionne la composition active
    app.beginUndoGroup("Sharpen 3 Way");              
    // Start Undo Group
    mySolid01 = myComp.layers.addSolid([100,100,100], "Sharpen", myComp.width, myComp.height,1);   // Ajoute un layer Solid
    mySolid01.adjustmentLayer = true;                                                                                             
    // Transforme le Solid en Adjustement Layer
    mySolid01.label = 5;                                                                                                                   
    // Attribue la couleur d'un Adjustement Layer
    mySolid01.opacity.setValue(40);                                                                                                  
    //  Change l'opacité du Layer
    myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask").name = "Unsharp Mask Large";  
    // Ajoute un effet  sur ce calque 
    myEffect = mySolid01.Effects.property("Unsharp Mask Large")(1).setValue(10);
    myEffect = mySolid01.Effects.property("Unsharp Mask Large")(2).setValue(40);
    myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask").name = "Unsharp Mask Medium";
    // Ajoute un effet  sur ce calque 
    myEffect = mySolid01.Effects.property("Unsharp Mask Medium")(1).setValue(65);
    myEffect = mySolid01.Effects.property("Unsharp Mask Medium")(2).setValue(1);
    myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask").name = "Unsharp Mask Fine";    
    // Ajoute un effet  sur ce calque 
    myEffect = mySolid01.Effects.property("Unsharp Mask Fine")(1).setValue(95);
    myEffect = mySolid01.Effects.property("Unsharp Mask Fine")(2).setValue(0.5);
    app.endUndoGroup();            
    // End Undo Group
    How do i make the relation to run the script when i click on the but_1 ("Sharpen3Way")
    thanks you.

    Hi,
    if you don't have that many scripts and they are short like this, you can make them into functions, and on click events the function is called.
    A bit off topic but i think important, (1) avoid windows of type window, palettes are better, (2) you should use the keyword "var" when declaring new variables,
    (3) to make it dockable have a look at David Torno's tutorials ([Tutorial] After Effects ExtendScript Script Writing).
    Edit : And also (4) You should use matchNames (or index) to refer to properties, not english name. If you hand this script to someone who does not have AE i english, it will probably not work
    For instance myEffect should be instead: myEffect = mySolid01.property("ADBE Effect Parade").addProperty("ADBE Unsharp Mask2");
    Xavier.
    (function(){
        var win, but_1, but_2;
        win = new Window("palette","new project",[0,0,500,500],{resizeable:true,});
        but_1=win.add("button",[33,16,103,36],"Sharpen3Ways");
        but_2=win.add("button",[33+100,16,103+100,36],"Sharpen0Way");
        but_1.onClick = sharpen3Ways;
        but_2.onClick = sharpen0Way;
        win.center();
        win.show();
        function sharpen3Ways(){
            var myComp, mySolid, myEffect;
            // Selectionne la composition active
            myComp = app.project.activeItem;
            if (myComp instanceof CompItem){
                app.beginUndoGroup("Sharpen 3 Way");                  // Start Undo Group
                // Ajoute un layer Solid
                mySolid01 = myComp.layers.addSolid([100,100,100], "Sharpen", myComp.width, myComp.height,1);
                mySolid01.adjustmentLayer = true;                                                                                                      // Transforme le Solid en Adjustement Layer
                mySolid01.label = 5;                                                                                                                            // Attribue la couleur d'un Adjustement Layer
                mySolid01.transform.opacity.setValue(40);                                                                                                          //  Change l'opacité du Layer
                // Ajoute un effet  sur ce calque (unsharp mask)
                myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask");
                myEffect.name = "Unsharp Mask Large";   
                myEffect(1).setValue(10);
                myEffect(2).setValue(40);
                // Ajoute un effet  sur ce calque (unsharp mask)
                myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask");
                myEffect.name = "Unsharp Mask Medium"; 
                myEffect(1).setValue(65);
                myEffect(2).setValue(1);
                // Ajoute un effet  sur ce calque (unsharp mask)
                myEffect = mySolid01.property("Effects").addProperty("Unsharp Mask");
                myEffect.name = "Unsharp Mask Fine";
                myEffect(1).setValue(95);
                myEffect(2).setValue(0.5);
                app.endUndoGroup();                // End Undo Group
            else{
                // ignore or send some alert
            return;
        function sharpen0Way(){
            alert("About to do something, ... dont know yet what.");
        return;

  • How to run a script from Oracle Form (Beside using HOST command)

    I would like to run a script from Forms 6.0. I know that we can actually issue this command :
    host('plus80.exe' username/password@connect_string @c:\scriptname);
    BUT, is there any other alternative ?

    Sqlplus is a different program, so one way or the other you have to leave Forms to run sqlplus. What is you objection against HOST?
    You can also run sqlplus from the database, but again you need a stored java procedure to call sqlplus (sort of HOST command that runs in the database).
    Francois' solution works if your script just has a query to run, but if you have specific sqlplus commands (spool etc.) forms_ddl is probably not a solution.

  • Cannot run SQL script on Oracle Database 10g Express Edition

    I'm trying to upload a script, and the file is being uploaded fine, but in the Script Editor window where I'm going to actually run the script, the entire file content is shown on one line and the whole edit area is in red. I'm not being able to run that script. Also if I create a new script from the editor, the edit area is again in red and I'm not able to save it. Please help me understand what's to be done so that I can run my SQL scripts.

    I'd bet the database is down.
    Try a login through sqlplus ("Run SQL Command Line" in the Oracle Express Edition 'Start' menu).
    Do a CONN / AS SYSDBA
    If you get a message about database or memory area not available, try STARTUP.
    If that doesn't work, you are best off in the General Database forum or the Express Edition forum.
    You'll probably get the most expert response in General Database, but the Express Edition forum can be gentler on newbies (as it is more accepted that questioners are not and do not have access to full-time DBAs).

  • Aborted calls at run external script step

    hello everyone
    when I was monitoring a script, I noticed a large percentage of calls are aborted on the node " run external script", and a few number of calls listed as " in process". only a small percentage of calls passed this node.
    I would like to ask what does this "abort" means, does it mean the the call fails at this node, or the caller purposely terminate the call at this node.
    thanks in advance

    Hi, David
    thanks for replying me back
    we are using IPIVR instead of CVP and system was under a really heavn load.
    one RES was just simplely playing a prompt
    Unfortunately some how, I couldn't get the log from IPIVR.

  • Running sql scripts.....HELP

    I have a Java program that I am running and I am connecting to the database. Normally, I have scripts that I run from a command prompt for Oracle such as @create_ddl_wt. I want to run these from my program but I don't know if it is possible to call these scripts. Is there any way possible to accomplish this programatically? Any help would be great. Thanks.

    Basically no.
    The scripts that you run are processed by sqlplus - it is specific to that app. And jdbc does not connect to sqlplus.
    You can of course call one of the java exec() methods and excute sqlplus with the script.
    Alternatively if you do NOT have sqlplus specific code in the scripts then there are ways to dynamically run strings (with SQL code in them) in Oracle. As I recall you use one of the library functions.

  • Create/ run MDX script on Essbase from FDM

    Hi there,
    Can anybody help me by creating and executing an MDX query from an import script in FDM?
    I've managed to create and run a report script on Essbase but the larger the cube the slower the report script.
    Therefore i was thinking about MDX.
    But before trying for days myself i was hoping someone might have experience in this and is willing to share.
    Thanks in advance,
    Marc

    Hmm, why does the word "Platypus" keep running through my head?
    Bob, I'm trying to do the same thing (create a .app to launch a unix application) and I also ran into the aesthetic issue of the spinning gear in the menu bar for the entire time the app was running. Since the unix app I'm running is a Usenet news reader, that spinning gear would be a long-term distraction. I'll check out Platypus, but I and probably the others in this thread are trying to learn how to do this stuff ourselves to further our OS X knowledge, not merely to solve this one problem.
    So with that being said, does anyone know if there's a way to create an Automator "Run Shell Script" action with that spinning gear in the menu bar suppressed? You know, besides using Platypus.

  • Running cgi script placed on one machine by a web server installed on anoth

    I have weblogic installed on machine 1 and
    CGI Script placed on another machine 2.
    Is it possible for Weblogic to service/run CGI Script placed on machine 2. If so how can we do it.

    Mah
    I don't know about Weblogic, but here is some code that POSTs to a CGI script (XXX.pl) with a few parameters and retrieves part of the result (and HTML table) in a large string.
    Maybe you could use this kind of thing:
    protected String getTable(String hostID, Interval interval) throws IOException{
    StringBuffer query=new StringBuffer(100);
    Socket s = new Socket("some.host.com",80);
    BufferedReader in = new BufferedReader
    (new InputStreamReader(s.getInputStream()));
    PrintWriter out= new PrintWriter(s.getOutputStream());
    Calendar c=Calendar.getInstance();
    c.setTime(interval.getStart());
    query.append("s%5fm="+MonthConverter.int2mmm(c.get(Calendar.MONTH)));
    query.append("&s%5fd="+c.get(Calendar.DAY_OF_MONTH));
    query.append("&byear="+c.get(Calendar.YEAR));
    query.append("&Report=Submit");
    out.print("POST /cgi-bin/XXX.pl?site="+hostID+" HTTP/1.0\n");
    out.print("Accept: text/html\n");
    out.print("User-Agent: yourapplicationname\n");
    out.print("From: myemail@myhost\n");
    out.print("Content-type: application/x-www-form-urlencoded\n");
    out.print("Content-length: "+query.length()+"\n\n");
    out.print(query.toString());
    out.flush();
    String line;
    boolean finished=false;
    boolean started=false;
    StringBuffer resultBuffer=new StringBuffer(1000);
    while ((line = in.readLine()) !=null
    && !finished) {
    if (line.indexOf("Tmin,Tmax and Precipitation amount")>-1)
    started=true;
    if (started)
    resultBuffer.append(line);
    if (line.indexOf("</HTML>")>0)
    finished=true;
    out.close();
    in.close();
    return resultBuffer.toString();

  • How to execute more than oracle scripts using sqlplus

    Dears,
    I have 10 scripts that create table ,need to execute scripts sequentially
    Example
    Ascript
    Bscript
    Cscript
    Dscript
    need to run scripts using sqlplus commands in one time

    user8929623 wrote:
    Dears,
    I have 10 scripts that create table ,need to execute scripts sequentially
    Example
    Ascript
    Bscript
    Cscript
    Dscript
    need to run scripts using sqlplus commands in one timeCreate a script like :
    @Ascript
    @Bscript
    @Cscript
    @Dscript

  • Perl's __END__ doesn't work under Automator's Run Shell Script action

    Howdy,
    I have a large embedded data file in my Perl source file using the _END_ token. It works great at the command line, but when I copy and paste my Perl code into the Run Shell Script code window and execute it, reading the special file handle DATA always returns 0 lines.
    Help?
    -Eric

    Originally I was using $@ to parse a string and get the result pasted by the service. That was a while ago. There, I noticed that some Japanese characters were messed up. Basically all the kana characters that come with voicing markers like が-ga (instead of か-ka) etc. I did not have the time to pursue that issue though.
    Then, last night, I found that a colleague of mine had tried to use $@ to feed to a local dictionary application called ding (http://ftp.tu-chemnitz.de/pub/Local/urz/ding/). His problem was with characters that had umlauts. After verifying how he wrote his action I remembered that I had similar issues with Japanese.
    Basically his command was "/path/to/ding $@"
    That's supposed to use the selected string as an argument to pass to ding, which will launch a Wish application where the string is used as the searched item.
    From Terminal, that works a treat. But the exact same line in Automator (with input as argument, not as stdin) messed the composition and the resulting string was not recognized by ding as a match to what it was supposed to match.
    So, I tried a few things to get to the core of the issue and found that a simple "echo [accented characters]" was enough to reproduce the difference in string handling between Automator and Terminal. That difference is also reproduced on a number of person's machines.
    I have a number of services that basically revolve on "run shell script" actions and involve 3rd party application outputs, preference files etc. so it would not be convenient to show that to you.
    I have sent a mail about this issue to the automator list yesterday too:
    http://lists.apple.com/archives/Automator-users/2011/Jun/msg00004.html

  • Running Oracle Scripts from Command Line

    Hi,
    How can i run Oracle scripts from command line.
    Actually i need to run these scripts from MSBuild before running Unit test projects

    C:\>sqlplus @myscript
    That would be the easiest variation
    C:\>sqlplus user/passwd@tns_alias @myscript
    would be an often used variation
    And then there is of course the version with parameter passing:
    C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
    Dunno about MSBuild

  • How can I run a script last?

    Hiya,
    I have a single backup job running a single dataset. That single dataset has an include statement to include a dataset directory, which holds individual datasets for the several hosts I want to back up, each with potentially different parameters. This works well, the hosts back up in some order (I don't care), everything's happy.
    However, what I want to do is add a step on the end of this process to run a report on the admin server after all the backups are complete. That is, to run a script once, last.
    If I add an "after backup" command in the dataset, it runs it (as stated in the manual) on the client servers, after every backup, which is no good to me. I've tried creating a separate job and scheduling it at a lower priority a few minutes later than the backup job, but that seems to just run when it feels like it, I presume because there aren't any conflicts so why shouldn't it?
    Can anyone advise how I should be doing this?
    Related question... I've tried putting an "after backup" step on the Catalog backup job, but that appears to get run twice (I presume because there are two "include" steps in the catalog dataset)! Is this expected? How can I get it to just run once, after the catalog backup is complete?
    Thanks,
    David.

    Thanks Donna, but... no. It didn't work.
    We've actually purchased a license for OSB, so I've fired this question at our official support channel now, and they came back with the same answer at the same time (are you the Oracle techie looking at my problem, by any chance?). For the record here's (with some tweaks for readability in this context) what I've sent back in response to that article.
    From the article, I thought perhaps the following might do the trick:
    include dataset /Hosts {
    after backup optional "/usr/local/osb/pre-n-post after-fsd-hosts mail"
    But, from the log:
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 1 - open brace appears where not allowed (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "include dataset /Hosts {
    2010/11/05.07:26:58 trouble parsing dataset in FSdaily line 3 - bad nesting (OB dataset mgr)
    "010/11/05.07:26:58 offending line is "}
    So it appears I’m not actually allowed to do that. I don’t understand why that would be.
    The only other idea I have is to include a dummy backup step, backing up something really small (because OSB won’t let you run a backup without backing anything up - sigh!), tack a script onto that, and hope like heck OSB decides that it should run that last. All the documentation I’ve read gives the impression that datasets are all about scope, not order, so I’m not altogether confident that this will work. In any case, it seems a pretty kludgy way of doing it! And, given the next paragraph below, I’m not all that sure it’ll work in any case.
    My idea of scheduling a catalog backup for five minutes later than the client backups, with a lower priority, so that it runs when the client backups finish, also has a flaw - if I use two tape drives in parallel, it runs the catalog job in parallel with the last client job, which is completely useless. I want to put on the end of the tape a backup of the catalog as at just after the client backups, so that in the case of a disaster I can restore that and I’ll be good to restore everything else.
    In addition to being completely useless for the purposes of putting an “after” catalog backup on the end of the tape, it’s also completely useless for the purposes of running a script last - I tried the following:
    include catalog {
    after backup optional "/usr/local/osb/pre-n-post after-catalog mail"
    This ran the pre-n-post script twice, once for each component of the catalog, which is altogether not what I want it to do.
    I can’t think of any way to achieve a catalog backup on the end of the script except for scheduling it for some time later and hoping the dataset backups always finish by then. Ugly.
    The only way I can think to achieve the run-a-script-last is to munge all the datasets together into one humongous dataset file, and do stuff as in the article to try to bend OSB to my will (again, hoping that OSB obeys the order of statements in the dataset). Which, when I’m given the ability to use “include dataset /Hosts” to make it easy to maintain, seems a bit of a mean trick to pull on me. And, again, with two tape drives available I’m not at all sure it’ll work in any case.
    I'll post further results as they come to light...
    David.

Maybe you are looking for

  • Radeon / kms / dri problems

    Hi, after messing around a few days with my new arch installation (and probably every other live distro in the last few weeks), I'm really tired of the problems related with the open source radeon driver. I read the ATI guide as well as the Xorg guid

  • Difference In Reports FBL1N & FK10N

    Hi, There is a typical thing happening with reports FBL1N & FK10N. When I am displaying the Report FBL1N on a end of November it is showing 8 Open items out of which four items have been cleared in next month. 209,483.99 175,443.99 184,644.00- 153,89

  • IPhoto8.1.2  does not answer

    When I try to open my iPhoto, the page is blank and it keeps spinning. I have to force the program to close. It happened all of a sudden, and has been like this for a couple of days now. What can I do?

  • PO BPM failing to call service reference occasionally

    Hi PO BPM Gurus, We have multiple PO BPM's running at the same time in our environment, each BPM is doing a WS call to SAP ECC to post transactions.  During the day, some messages will error out in BPM saying that cannot invoke the service reference

  • Logged in a new account instead of my old account?!

    I followed the new Adobe update login steps, and after creating a new account I was logged into a whole new account, but I can't seem to get into my old account. Help will be much appreciated, Thank you.