Cannot Load 155MB SQL Script

Newbie here!
I am trying to load a 155MB SQL script (mostly INSERTs) in SQL Developer 1.2 and the program never displays the file and the tab at the top of the workspace turns gray. There is a lot of Disk and CPU activity right up until the point where it stops. Is there any way to run the script without loading it into the editor? I just need to build the table, not edit the script.
I can create and insert into smaller tables fine. I also have the same problem on other scripts of similar size or larger.
The system is a Pentium 4/1.7GHz (1GB RAM, XP SP2, 60GB Partition) running Database XE (10g) just downloaded last week. The 155MB script was created by SQL Developer on another system/database.
Thanks!

Thanks, that's what I was looking for and got me going. Still, I'm having a lot of trouble with these files that seem to be related to serious bugs in SQL Developer 1.1's Export>Insert on my source system. I'm having to reload most of these files using SQL*Plus because SQL Developer 1.2 hangs or drops rows with no explanation. Even SQL*Plus is struggling with them, which all points back to a faulty Export>Insert.
I cannot believe this is a 1.2 release...
However, thanks for the great help!

Similar Messages

  • Loading pl/sql scripts into OWB and running it

    Hi,
    Does anyone have an example for loading and executing PL/SQL Scripts in OWB?.
    Thanks
    Mehdi

    Hi Mehdi,
    Can you be more specific about what you want to achieve?
    Do you mean running a package that OWB generated as a mapping?
    Or running some external code?
    Please check the User Guide, especially chapters 6 (Creating Mappings), 9 (Using Oracle Warehouse Builder Transformations) and 11 (Deploying to Target Schemas and Executing ETL Logic).
    Good luck, Patrick

  • Dimension load through sql script generated by AWM

    Hi,
    I have taken the script which AWM has generated while loading a dimenson. I created it as a procedure in the schema where the AW having this dimension exists. The procedure works well when executed in this schema.
    Now I want to load the dimension through other schema by executing the procedure. I did following to achieve this:-
    1) Grant execute on the procedure is given to new schema
    2) Grant all on aw$<aw name>(dim exits in this AW) to the new schema
    When I try to run the procedure this give me following error:
    Successoracle.AWXML.AWException: Action BUILDDATABASE failed on object XPRO_OLAP_WH.XPRO_OLAP_WH
    Am I missing something?
    Thanks
    Brijesh

    Which version?
    If 11g, try the following too.
    a) use object security (available via awm, right click on dimension and select object security) to give access to dimension for other schema
    b) use keyword "AUTHID CURRENT_USER" in pl/sql package/procedure definition.
    c)
    grant OLAP_USER to <new_schema>;
    grant OLAP_XS_ADMIN to <new_schema>;
    Try a), b) first. Failing that, try a), b) and c).
    HTH
    Shankar

  • Is it possible to load an external sql script by connecting to a mysql data

    hi,
    this is ayesha parween.
    Basically we manually connect to the mysql server and go to the administrator and take the back up of the file
    and load the sql script for creating a schema creating the tables and populating the tables with the data.
    Is it possible through some java jdbc for connecting to the mysql server and creating the schema and creating the table structure and populating the tables with data.
    And if there is any error display some message.
    Regards,
    Ayesha.

    hi,
    this is ayesha parween.
    Basically we manually connect to the mysql server and go to the administrator and take the back up of the file
    and load the sql script for creating a schema creating the tables and populating the tables with the data.
    Is it possible through some java jdbc for connecting to the mysql server and creating the schema and creating the table structure and populating the tables with data.
    And if there is any error display some message.
    Regards,
    Ayesha.

  • Executing sql script from file, with multiple queries

    Hello,
    I am trying to load an SQL script from a file, parse the script into separate SQL statements, and execute each of them. The final statement will always be a query, and thus will return a result.
    Three problems arise:
    1. I don't know what TYPE of statement each one is (i.e. whether it is an UPDATE or a QUERY), which seems to be required in order to execute it in java (via executeQuery and executeUpdate).
    2. I am not sure of the best way to execute a series of statements (the Statement object has some "batch" functionality, but I'm not sure if there is a better way, or even of the proper way to use this).
    3. I need to be able to make sure the final statement is a QUERY, and thus will return a ResultSet. Otherwise I need to be able to throw an exception.
    This has been causing me a lot of trouble. Any help would be much appreciated.
    Thanks,
    Kevin

    Hi Kevin,
    Have you got any solution for your mentioned problem????
    I am facing almost the same kind of problem like I have some sql files containg simple sql statements as well as code for writting Procs , triggeres, index...functions..and so on. I need to execute this XYZ.sql file from Java side.
    Can you guide me about my problem?????
    Thanks in advance.............
    Mak

  • How to execute sql scripts from Powershell across multiple databases

    Re: How to execute sql scripts from Powershell across multiple databases
    I have an tsql script that I want to run across a list of databases. How is the best way to do this in Powershell? Thanks.

    My example below, using just the SMO and not breaking up the batches, the ExecuteWithResults give the following error when the .sql file contains a GO. My script files are as simple as a DECLARE and then a GO.
    WARNING: SQL Script Failed
    The object of type "Microsoft.PowerShell.Commands.Internal.Format.FormatStartData" is not valid or not in the correct sequence. This is likely caused by a user-specified "format-list" comm
    and which is conflicting with the default formatting.
        + CategoryInfo          : InvalidData: (:) [out-lineoutput], InvalidOperationException
        + FullyQualifiedErrorId : ConsoleLineOutputOutOfSequencePacket,Microsoft.PowerShell.Commands.OutLineOutputCommand
    Also, when executing from the ISE, is there a way to force the ISE to release the files. I am having to close the ISE and reopen my script every time I want to make a testing change to the .sql file.
    [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
    $scriptspath = "C:\temp\psExecuteSQLScripts\scripts"
    $SQLServer = "fidevc10"
    $SQLDB = "Bank03"
    # Create SMO Server Object
    $Server = New-Object ('Microsoft.SQLServer.Management.Smo.Server') $SQLServer
    # Get SMO DB Object
    $db = $Server.Databases[$SQLDB]
    # Load All SQL Scripts in Directory
    $scripts = Get-ChildItem -Path (Join-Path $scriptspath "*") -Include "*.sql" -Recurse
    # Loop through each script and execute
    foreach ($SQLScript in $scripts)
    $fullpath = $SQLScript.FullName
    # Read the Script File into Powershell Memory
    $reader = New-Object System.IO.StreamReader($fullpath)
    $script = $reader.ReadToEnd()
    # Execute SQL
    Write-Host "Executing $SQLScript on $SQLDB...."
    try
    $ds = $db.ExecuteWithResults($script)
    Foreach ($t in $ds.Tables)
    Foreach ($r in $t.Rows)
    Foreach ($c in $t.Columns)
    Write-Host $c.ColumnName "=" $r.Item($c)
    Write-Host "Complete"
    catch [Exception]
    Write-Warning "SQL Script Failed"
    echo $_.Exception|format-list -force
    Write-Host " " -BackgroundColor DarkCyan

  • Cannot load script for execution.

    hi 
     iam creating  the  sisi package  with in script task . script task   was  build successful .  but when i was executive the ssis packages vs 2012.
     it get  error :Cannot load script for execution..
     the code is 
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using System.IO;
    namespace ST_8cdbf584a74b48abb384d8f03cf42f4d.csproj
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
    The execution engine calls this method when the task executes.
    To access the object model, use the Dts property. Connections, variables, events,
    and logging features are available as members of the Dts property as shown in the following examples.
    To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
    To post a log entry, call Dts.Log("This is my log text", 999, null);
    To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
    To use the connections collection use something like the following:
    ConnectionManager cm = Dts.Connections.Add("OLEDB");
    cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
    Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
    To open Help, press F1.
            public void Main()
                byte[] dataByte = null; String errInfo = "";
                try
                    String sDirectory = Dts.Variables["User::Directory"].Value.ToString();
                    String CreatePartitionFileXMLA = sDirectory + "\\partitionssales20010701to20010731.XMLA";
                    String ProcessPartitionFileXMLA = sDirectory + "\\partitionssales20010701to20010731.XMLA";
                    // Create XMLA Script
                    Dts.Variables["User::CreatePartitions"].Value = ReadFile(CreatePartitionFileXMLA, errInfo);
                    if (errInfo.Length > 0)
                        Dts.Log("Error while reading XMLA file: " + errInfo, 0, dataByte);
                        Dts.TaskResult = (int)ScriptResults.Failure;
                    //Process XMLA Script
                    Dts.Variables["User::ProcessPartitions"].Value = ReadFile(ProcessPartitionFileXMLA, errInfo);
                    if (errInfo.Length > 0)
                        Dts.Log("Error while reading XMLA file: " + errInfo, 0, dataByte);
                        Dts.TaskResult = (int)ScriptResults.Failure;
                    Dts.TaskResult = (int)ScriptResults.Success;
                catch (Exception ex)
                    Dts.Log("Error Message: " + ex.Message, 0, dataByte);
                    Dts.TaskResult = (int)ScriptResults.Failure;
            public String ReadFile(String FilePath, String ErrInfo)
                String strContents;
                StreamReader sReader;
                try
                    sReader = File.OpenText(FilePath);
                    strContents = sReader.ReadToEnd();
                    sReader.Close();
                    return strContents;
                catch (Exception e)
                    MessageBox.Show(ErrInfo);
                    ErrInfo = e.Message;
                    return "";
     how to solve this issue
     pleasse help me..

    Hi sheshu0022,
    Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
    The following similar thread is for your reference:
    http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to load SQL scripts from a text file.

    Hi, i tried several time to load a text file/SQL script with 10 different tables and data, but 10g Express doesen't allows me to do that, any one can direct me or point out to me what i should do or do i need to adopt any special method to to get this done. i am sure there must be some thing where you can upload SQL scripts from a text file (in SQL command editor!). thanks

    Hi,
    see my other answer here:
    SQL command editor doesn't take more than 1 insert command
    This seems to be a duplicate question, right? Or am I missing something?
    Regards,
    ~Dietmar.

  • Java.sql.SQLException: Cannot load JDBC driver class 'null'

    Hi,
    I am a beginner of using jdbc, i use the tomcat4.1.x, mysql3.23.54 and it's jdbc driver 2.0.14. I place the drive <in jar file> in tomcat/commons/lib and configure the server.xml, web.xml and some testing coding. But there are some error like the following:
    java.sql.SQLException: Cannot load JDBC driver class 'null'
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
         at foo.DBTest.init(DBTest.java:18)
         at org.apache.jsp.test_jsp._jspService(test_jsp.java:48)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    of course its some of the error code and there are more.
    Why I have this problems and how can I fix it? Can someone help me??
    Thanks,
    Tong
    I place my test.jsp at tomcat/webapps/DBTest and DBTest.java at tomcat/webapps/DBTest/WEB-INF/classes/foo
    additional of the tomcat/conf/server.xml
    <Resource name="TestDB" auth="Container" type="javax.sql.DataSource" description="MySQL TestDB"/>
    <ResourceParams name="TestDB">
    <parameter><name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter><name>maxActive</name><value>10</value></parameter>
    <parameter><name>maxIdle</name><value>1</value></parameter>
    <parameter><name>maxWait</name><value>10000</value></parameter>
    <parameter><name>username</name><value>javauser</value></parameter>
    <parameter><name>password</name><value>javadude</value></parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    tomcat/webapps/DBTest/WEB-INF/web.xml :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    </web-app>

    Post the part of your code that loads the driver and connects. My guess is you are using a variable for the name of the driver and the variable has not been set to anything(intially set to null).
    Thanks
    Cardwell

  • Java.sql.SQLException: Cannot load JDBC driver

    THis topic has been discussed many many times but I still not able to connect to Oracle 8i from my servlet using Tomcat 4.1.12 on hp-ux and java1.3
    I always got: java.sql.SQLException: Cannot load JDBC driver class 'null'
    In server.xml:
    <Context Path="/MyApp" docBase="MyApp" debug="0" reloadable="true" >
    <Resource name="jdbc/ora" auth="Container" type="javax.sql.DataSource"/> <ResourceParams name="jdbc/ora" >
    <parameter>
    <name>username</name>
    <value>myname</value>
    </parameter>
    <parameter> <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter> <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@myhostname:1521:ora</value>
    </parameter> </ResourceParams>
    </Context>
    In MyApp/WEB-INF/web.xml:
    <resource-ref>
    <res-ref-name>jdbc/ora</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    The Oracle jdbc jar file classes12.jar is under common/lib in Tomcat's home. read Permission is there.
    In the servlet:
    init(ServletConfig config):
    Context init = new InitialContext();
    Context ctx = (Context) init.lookup("java:comp/env");
    dataSource = (DataSource) ctx.lookup("jdbc/acdb");
    doPost(..)
    the error occured at :
    synchronized (dataSource){
    con = dataSource.getConnection();}
    Thanks in advance!

    Everything looks correct to me, except for one thing.
    In your web.xml you have this:
    <res-ref-name>jdbc/ora</res-ref-name> In your server.xml, you have this tag, which matches your web.xml:
    <ResourceParams name="jdbc/ora" > But in your Java code, you've got this:
    dataSource = (DataSource) ctx.lookup("jdbc/acdb"); When I've successfully set up a Web app data source, all three names had to agree. You either need to change your Java lookup name to "jdbc/ora" or change the web.xml and server.xml to "jdbc/acdb".
    See if that does it. Everything else sounds correct to me. - MOD

  • Cannot load script for the required change in butt...

    I got the email saying Skype will be changed after 15 March.  It says we need the new buttons.  So I go the site, and then there is a big box which says: "cut and paste this" which is:
    <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script>
    <div id="SkypeButton_Call_[Removed for privacy]_1">
    <script type="text/javascript">
    Skype.ui({
    "name": "call",
    "element": "SkypeButton_Call_[Removed for privacy]_1",
    "participants": ["[Removed for privacy]"],
    "imageSize": 32
    </script>
    </div>
    So where do I paste this script. Plus I get we need to do on our Ipads as well.

    Hi sheshu0022,
    Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
    The following similar thread is for your reference:
    http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Unable to load sql script which is given in this tutorial: load_sample.sql

    Hi!
    To start, I inform you that I am beginner with Oracle. I installed Oracle 10g Express Edition on my computer(O/S: window xp)
    Then I go on http://127.0.0.1:8080/apex/f?p=4550:9:4181329966856697::NO:::, I login with system account, I create another dba account etc ... all looks very well ! Then I follow this tutorial: http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm
    and I am unable to load sql script which is given in this tutorial: load_sample.sql (page:What to do first> Loading Data). I try with a little sql script and same result. I use gedit with UTF-8 and load in UTF-8, my browser is Firefox .
    The result is: when I upload a script, The browser returns "script uploaded." Then I can click on my script but the file is empty ! Nothing is done when i click on "run". Also I can' create a script. To import a script I have to copy one by one request in sql commands. I try also to change the owner of load_sample.sql:
    But it doesn't work. If someone has an idea ? Thanks for your help.
    regards
    meraj

    Problem Solved.
    When I switched default browser from mozilla firefox to ie(internet explorer) the problem is solved i got this from forum post (Script Editor Not Working
    But still i want to know why "load_sample.sql" is not run with the default browser(mozilla firefox).

  • All of a sudden I cannot load Firefox. It gives this message: Script: chrome://tavgp/content/libs/include.js:595

    I cannot load Firefox. I have been using it for years. When I click, the hourglass comes on for about 3 seconds then goes away nothing happens. I kept trying different things don't know what I did just before but at some point, it gave me this error message: Script: chrome://tavgp/content/libs/include.js:595
    Thanks

    That is a problem with an AVG extension (toolbar).
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • When start firefox, error message appears (Java Script Application) "Cannot load xml rules - no root nod"e

    Cannot load xml rules - no root node

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • 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).

Maybe you are looking for

  • Error in ALE Service While Creation of Vendor Master

    hi, I am using a scenario where a third party system is sending vendor master data to a R/3 system The file is picked up by the file adapter(sender) and mapped to IDOC format, using Idoc adapter (receiver). A Vendor is then created by posting the CRE

  • TWIN3X2048-1600C7DHX on MSI X48C Platinum

    greetings, i'm already trying 3 weeks to get my RAM to the specified 1600 MHZ and so i got loads of problems where some already have been solved (i hope so...) i've got a Q9550 @ 2,83 with FSB 333 and so i had to do some changes on my bios config: FS

  • Preview playback on external monitor problem!

    Hi im using my 2009 Model Name: MacBook Pro Model Identifier: MacBookPro5,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.4 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 3 MB Memory: 4 GB Bus Speed: 1.07 GHz Boot ROM Version: M

  • Static collection - interesting

    We are having multiple financial servers running in a single JVM, the requirement is to maintain a hashtable in some object so that it may be accessed by another objects without passing refernce to it. For example: Class Example_1{ static Hashtable c

  • FBL3N : i have a problem when i print a report

    Hi Gurus, I have a problem when i print a report from Tcode : FBL3N - i didn't have the last line of the report - i have two pages : i want just one because it is a small report I choosed this Format : X_65_200 Please help me to solve these issues. T