ISQL*PLUS load script component

Hi all,
I am sorry if this is not the correct forum to post in..
I would like to find out if anyone knows how to implement a text file loading mechanism from a jsp. It is similar to the iSQL*Plus script loading function:
1) User connects to the server from client terminal.
2) Browse for text file in client terminal.
3) Load content of text file into a textarea on a jsp.
What technology can be used? Java bean? Servlet? Any guide, advise or sample code would be appreciated.
Thank you!

Thanks for the report. The fix for this is indeed already in our 9.0 code (which will be the next release of iSQL*Plus)
- CJ

Similar Messages

  • ISQL*Plus Load Script component needed..

    Hi all,
    Like to find out if anyone knows how to implement a text file loading mechanism from a jsp. It is similar to the iSQL*Plus script loading function:
    1) User connects to the server from client terminal.
    2) Browse for text file in client terminal.
    3) Load content of text file into a textarea on a jsp.
    What technology can be used? Java bean? Servlet? Any guide, advise or sample code would be appreciated.
    Thank you!

    Have you had a look at Application Express? The SQL Worksheet component sounds like what you're looking for. It can't run SQL*Plus scripts, but it can execute single SQL and PL/SQL statements. It can load/save 'scripts' to the database too. It might be even better for your needs. Web based, free ...
    http://otn.oracle.com/apex
    You gave me a laugh there with the spellchecker bit. A good Sheffield sense of humour. Nice one.
    Alison

  • ISQL*Plus script parsing problem with the + operator

    Hi,
    You have most likely caught this one already.
    Select power(3,2) + power(3,2) from dual;
    Works from the iSQL*plus window but not when loaded from a script; the + operator is getting removed.
    Regards,
    Rob
    null

    Thanks for the report. The fix for this is indeed already in our 9.0 code (which will be the next release of iSQL*Plus)
    - CJ

  • SSIS script component to use defined connection manager to load data from a Oracle

    In SSIS script compoment, I can connect to oracle with hard-coded connectionstring:
    OracleConnection conn;
    conn = new OracleConnection();
    conn.ConnectionString = "Data Source=XE;User ID=hr;Password=******";
    however, when I defined an connection managers in the script compoment and call it as follows:
        IDTSConnectionManager100 connMgr;
        OracleConnection conn;
        public override void AcquireConnections(object Transaction)
            connMgr = this.Connections.MyADONETConnectionManager;
            conn = (OracleConnection)connMgr.AcquireConnection(null);
    I got error below:
    TITLE: Package Validation Error
    Package Validation Error
    ADDITIONAL INFORMATION:
    Error at Data Flow Task source [Script Component C# Oracel HR Oracle [21]]: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to class type 'Oracle.DataAccess.Client.OracleConnection'. Instances of types that represent COM
    components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e)
       at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.AcquireConnections(Object transaction)
       at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)
    Error at Data Flow Task source [SSIS.Pipeline]: Script Component C# Oracel HR Oracle failed validation and returned error code 0x80004002.
    Error at Data Flow Task source [SSIS.Pipeline]: One or more component failed validation.
    Error at Data Flow Task source: There were errors during task validation.
     (Microsoft.DataTransformationServices.VsIntegration)
    I did not find any example for Orale. A similar SQL server example is as linked below:
    http://technet.microsoft.com/en-us/library/ms135939(v=sql.110).aspx
    can anybody shed some light? I appreciate it...
    thanks,
    Steve

    You need to create a connectionmanager for Oracle connection and use it within the script task
    See
    http://www.mssqltips.com/sqlservertip/1787/oracle-parameterized-queries-in-sql-integration-services-ssis/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to set default working directory in iSQL*PLUS

    In regular SQL*Plus, one could set the properties attribute of the shortcut icon to a default working directory. Is there a way to set a default for iSQL so that you don't have to reset this each time you log on?

    The default path for the "Browse..." (Netscape) or
    "Choose" (Opera 6) button for loading scripts????
    This would be browser specific - even the button text
    is chosen by the browser. I've never tried to rig the
    initial path. Maybe it can be done with a shortcut
    to the browser executable?
    -- CJ

  • Isql*plus login

    i have installed oracle 10g and i have a problem with the isql*plus login because after 20 mins that i log in it is asking for me to log in again which i find very frustrating...is there a way to disable the 20 mins login timeout?

    Setting the Session Time Out
    Timing out iSQL*Plus sessions helps to reduce machine load and to maximize resources. The time out interval is set by the session-timeout element. It defines the time a session can be idle before it is expired.
    You need to stop the iSQL*Plus Application Server to make changes to the session-timeout element. You can edit the web.xml configuration file to change the timeout interval. The web.xml file is located in the directory:
    $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/isqlplus/isqlplus/WEB-INF
    In the web.xml file, search for the <session-timeout> element inside <session-config>. The syntax of the line to change in the configuration file is:
    <session-config>
    <session-timeout>15</session-timeout>
    </session-config>
    Where the value is the number of whole minutes of idle time before the session times out. It has a default value of 15 minutes. It can be set to any value from 1 to 1440 minutes. It can also be set to never expire by entering a negative value such as -1. It should not be set so small that users do not get a chance to enter their scripts. When a user tries to use a timed out iSQL*Plus session, the Login screen is displayed and the user is prompted to log in again. The following error is displayed: SP2-0864: Session has expired. Please log in again.

  • The quality of iSQL PLus

    Just a quick question to all of you out there, using iSQL Plus: are you not disappointed in what Oracle have made? I mean, Oracle have been betting on the Java technology for 4 - 5 years, however, they have not used it to make a superior "platform-independent-run-anywhere" version of the classic SQL Plus tool. Does this not seem strange to you all that after all these years they release a "platform independent" version of SQL Plus that has LESS features than the original - and is far less user friendly (I never thought that possible until now)???
    Am I the only one who is amazed by this? I feel that Oracle should be making a new version of SQL PLus in Java - with all the "bells and whistles" that we have come to expect from a "Windows environment"
    What do you all think? I would like to know.
    regards,
    Unknown

    Hi Alison,
    I have "revealed" myself! I am the "Unknown" who posted the initial query. Thanks for your reply - very informative. I appreciate your point of view regarding speed issues, however, I do feel that you (read Oracle) have made the wrong decision in terms of which technology to use for rewriting SQL Plus.
    I guess the problem in the past for ORacle has always been to cater to the "lowest common denominator", as the Oracle RDBMS runs on ALL platforms. Therefore SQL Plus never could be a particulary "advanced" tool in terms of functionality and user-friendliness. But that's just the way it had to be.
    These days, there is Java which can (theoretically) run on all platforms (that support Java). Yes, Java does not run as fast as C++ etc. etc. - I don't want to get into that discussion - however, I have been working with HTML, Java and Oracle RDBMS for 4 - 5 years, and Java has really come of age in that time.
    Through my work and own personal experience, I have discovered a fact about websites (read HTML) that hasn't changed over the years - it is extremely limited in terms of functionality and user-friendliness. HTML is not - for me - an acceptable technology to write GUI's for applications/data entry systems nor RDBMS tools such as SQL Plus.
    So, given this to be true (I believe this to be so), then what other choices are there? Well, there's Flash and Director. Both very impressive technologies, however, they only can work on Windows and Macintosh. There is also Java, which is also a very impressive technology, albeit with its own set of limitiations. Nevertheless, Java has an advanced API for writing GUIs and it runs on Windows, Linux, Unix, Mac, and presumably other platforms.
    For me - Java is the logical choice of technology for rewriting SQL Plus. It gives you the ability to write "user friendly" Windows like applications, which will run on all platforms. Now, I am not saying that there wouldn't be issues/problems with Java; of course there are. Just like any other technology. You have to weigh up the pros and the cons before embarking on designing/developing an application. However, in this case, I feel the pros far outweigh the cons.
    Now, unlike alot of other system designers/developers, I actually "eat what I serve" - I use Sun's Forti (written entirely in Java) as my Java RAD tool, I use TogetherSofts "TogetherJ" as my design tool for Java (also written in Java), I use a Java based interface for the version control software we use here at work.... in fact, the one thing I am missing is a good Oracle tool written in Java. I currently use Quest's SQL Navigator, however, its quality is decreasing.
    Anyway, I am digressing! My point is simple - Java will enable you to write a highly functional RAD tool for Oracle to replace the prehistoric and particularly un-user friendly tool SQL Plus. YES - you are right - it most probably won't load as fast as a web page, but once it is loaded it will run quickly. I strongly suggest that the iSQL Plus team take a look at Sun's Forti (very impressive tool - no, the MOST impressive tool I have seen for Java) as well as Quest Software's SQL Navigator. I think the iSQL Plus team would get alot of good ideas and inspiration from them.
    There is, of course, another problem here - and that is datababe connectivity. Unfortunately, Oracle have been increasing the size of their JDBC drivers ever since day one, to the point that it is PROHIBITIVE to download them to an applet. I'm sure the JDBC team have a bazillion excuses for this, however, I am personally not buying it. For me, the exhorbitant size of the drivers is a sign of badly designed code. Regardless of my personal views, the size of the JDBC drivers mean that it is not feasible to write a SQL Plus applet which download the JDBC drivers. The only solution is to use CORBA and/or RMI.
    Okay! That's probably enough from me for now!!! Please don't take this as "Oracle bashing" - I have invested alot of time into Java and Oracle, and I am more than happy to be of some assistance, however small. You asked about what features I thought were missing - well, look at Forti and SQL Navigator. That will give you some idea of what I expect. But, to summarise, I consider the following features to be necessary:
    1. Code to be displayed in multi-colours (user definable). Such a simple thing, yet SO useful
    2. SQL results to be displayed in a tabular/grid-like format, with copy/paste functionality plus porting to text files.
    3. In-built stored procedure editor - like in SQL Nav. Very nice.
    4. Debug functionality
    5. Tuning module - for DB tuning
    6. Some kind of Tree Navigator window, which allows one to traverse all database objects (see SQL Nav)
    7. Ability to generate DDL scripts from current DB objects (see SQL Nav)
    8. Ability to define one's own shortcut keys (see Forti - very very sexy)
    Alison, please feel free to email me at [email protected] if you wish to discuss this futher and/or post a reply to this "disccussion"
    yours sincerely,
    Alexander Day

  • Rs.LoadReport syntax within Script Component of SSIS task

    Hello,
    please, what does Row.path, Row.name etc.... stand for?
    How should I enter folder path, report name...What about this:
    /FolderName/ReportName....Can not get rid of syntax errors what ever try...If possible, please example...
    Thanks
    string extension, mimetype, encoding;
                string[] streamIds;
                SC_7bb1aae362d44e26a741ccbbecdc6e18.csproj.ReportExecution2005.Warning[] warnings;
                byte[] results;
                rs.LoadReport(Row.path + Row.name, null);
                results = rs.Render(Row.reportformat, null, out extension, out mimetype, out encoding, out warnings, out streamIds);
                System.IO.FileStream writer = System.IO.File.OpenWrite(Row.folderPath + "\\" + Row.name + "." + Row.Extension);
                writer.Write(results, 0, results.Length);

    Please, this
    //Load Report       
            rs.LoadReport(Row.ReportPath , null);
    I read in:
    Bulk Report Generation using SSIS and SSRS 2008 R2 from MSDN
    while from an tutorial I found this:
    rs.LoadReport(Row.path + Row.name, null);It is suppose to be the same? Is plus sign correct or it is suppose to be comma?Please, can you instruct me which is which? Script component is my case...

  • ISQL*Plus Customizations

    I want to use this product for a central repository of scripts for our DBA team, but without the use of @, @@, and start commands it realy makes it hard. Will the final have this capability? If not, can the page be customized to browse/run scripts of the machine hosting the site?
    I see huge potencial for this product, in fact we created something similar a couple of years ago, but it had more limitatiions.
    Thanks in advance

    The script upload feature will probably change for the next release of iSQL*Plus. We intend it to load the script from the file system to the input area, then the script will need to be run by clicking Execute.
    There aren't any plans to allow iSQL*Plus access to the middle tier, only through the file system available to the client. You could always map (in the case of Windows) a drive to your client and access it that way.
    iSQL*Plus Team

  • I receive the error: Unable to load block component C:\Program Files\Hyperception\VABINF\KeyRcv.dll

    I have two Major issues with our Infinity Project computers,
    We have one entire lab that is getting this error... "Unable to load
    block component C:\Program Files\Hyperception\VABINF\KeyRcv.dll. 
    Please verify that the component exists and any dependencies it may
    have are satisfied."  It is also producing this error with
    NumEntry.dll.  Both files exist.  I am not sure what
    dependencies these files may have.  Ideas?
    We have several systems that are giving the following error on one of
    our labs... "You have exceeded the number of block functions allowed by
    VAB for Infinity; contact Hyperception regarding upgrades."  From
    what The professor here at UTA told me when I first took on this
    project, this was a problem that we had on the previous boards and that
    someone at Hyperception was able to help us resolve this problem.
    Can you help out with these issues?  The first one I need an answer today if possible. 
    Thanks,

    We have seen this type of problem on some computers (we do not know why as of yet).The problem with missing blocks is very likely being caused by file permissions, and can be seen when non-administrators are using VAB software. To resolve this: 1. login as ADMINISTRATOR 2. run the command line script from a DOS prompt as shown below: cacls "C:\Program FIles\Hyperception\VABINF" /T /E /G Everyone:F It will scroll through the name of every file in the provided directory, and all subdirectories. This should reset every file, and allow the USER to access all files in VAB software. This should correct the problem. Regards,Steve

  • ISQL*Plus - How to use it?

    I don't have any kind of database installed in my PC nor do I intend to do so. I want to use SQLPlus on a remote database. People here mentioned I could do that with iSQLPlus.
    I went to the following site http://www.oracle.com/technology/obe/obe9ir2/obe-mng/isqlplus/isqlplus.htm.
    It mentions that a database installation is needed to run iSQLPlus. Then one of the guys in this forum mentioned that a database installation is not needed.
    If anyone has successfully used iSQLPlus please help me set it up.

    Hi,
    You can use this links:
    - [Introduction to iSQL*Plus, 1 of 3 |http://download.oracle.com/docs/html/A88826_01/ch1.htm]
    - [Configuring iSQL*Plus, 1 of 8 |http://download.oracle.com/docs/html/A88826_01/ch2.htm]
    - [The iSQL*Plus User Interface, 1 of 4 |http://download.oracle.com/docs/html/A88826_01/ch3.htm]
    - [Using iSQL*Plus , 1 of 9 |http://download.oracle.com/docs/html/A88826_01/ch4.htm]
    You can also use SQL Developer (it's free) this tool provides a graphical interface so users can browse the database, run SQL, PL/SQL and SQL*Plus statements, execute SQL scripts, and edit and debug PL/SQL statements, and much more...
    To download please refer to:
    - http://www.oracle.com/technology/products/database/sql_developer/files/what_is_sqldev15.html
    Cheers ;)
    Francisco Munoz Alvarez
    www.oraclenz.com

  • 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

  • Regular expression and Script component in SSIS 2008

    Could you please help me to write regular expression so that it can be used in script component to fetch the data from fixed width file so that the file format can be validated and loaded accordingly.
      IR-TYPE                        PIC X.
     IR-JOB                         PIC X(4).
     IR-PHASE                       PIC X(2).
     IR-CO-ID.
     IR-LVL1                        PIC X(2).
     IR-LVL2                        PIC X(2).
     IR-EMP-NBR                     PIC X(10).
     IR-CK-NBR                      PIC 9(9).
     IR-CK-DATE                     PIC X(6).
     IR-CK-AMT                      PIC S9(7)V99.
     FILLER                         PIC X(35).
    The above schema definition will be stored in regualar expression and through script component each column will be fetched and validate to verify the file format.

    I am quiet new I can provide the file layout .
    1819001HB01002582016 03009291810050200013399I
    1712001HB01004688418 03009007210050200021143I
    1712001HB01004688418 03009007310050200005950{
    Schema definition of the file
    IR-TYPE                        PIC X.
    IR-JOB                          PIC X(4).
    IR-PHASE                      PIC X(2).
    IR-CO-ID.
    IR-LVL1                        PIC X(2).
    IR-LVL2                        PIC X(2).
    IR-EMP-NBR                  PIC X(10).
    IR-CK-NBR                    PIC 9(9).
    IR-CK-DATE                  PIC X(6).
    IR-CK-AMT                   PIC S9(7)V99.
    FILLER                         PIC X(35).

  • Oracle 10g - iSQL*Plus URL issue

    Hello:
    I'm trying to run a sql script file via my browser and I'm receiving the following error message:
    SP2-0920: HTTP error 'URL access is disabled in iSQL*Plus ' on attempt to open URL
    In my HTML file, my SQL script is located on c:\demo\script.sql. In the A HREF portion of my HTML, I am not sure whether I am referencing my script.sql correctly. I'm wondering if this could be the cause of the error message.
    This is the HTML file I am running on my browser:
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <!--Run Employee Report-->
    </body>
    </html>
    If anyone can help me out that would great. Thank you in advance.
    Message was edited by:
    fullfocus
    Message was edited by:
    fullfocus
    Message was edited by:
    fullfocus
    Message was edited by:
    fullfocus

    Sorry it took so long but I finally had a chance to get back to this. This is what I did. My test.html file is located in the d:\sql directory but it could be located anywhere. It looks like this:
    <HTML>
    <HEAD>
    <TITLE>iSQL*Plus Dynamic Report</TITLE>
    </HEAD>
    <BODY>
    <!--H1><em>i</em>SQL*Plus Report</H1>
    Run Employee Report
    </BODY>
    </HTML>
    ora9i is the name of my machine -- a Windows XP Pro SP2 installation.
    The script.sql file is:
    set pagesize 200
    select *
    from emp_details_view
    order by last_name, employee_id
    This file is located in the $ORACLE_HOME\Apache\Apache\htdocs directory which on my machine is d:\oracle\ora92\Apache\Apache\htdocs. The file has to be there because the HTTP Server configuration file d:\oracle\ora92\Apache\Apache\conf\httpd.conf has a configuration parameter called DocumentRoot which tells the HTTP Server where to look for documents. You can change the location where it will look by using symbolic links or aliases but for the sake of simplicity, I left the parameter alone.
    To get the script to run, these are the steps I took:
    1. In IE7, click File --> Open and browse to the location on your hard drive where the test.html file is located and click on Open and then OK.
    2. This should present you with a page that says
    iSQLPlus Report
    Run Employee Report
    This comes from the formatting I used in my html file above.
    3. Click on Run Employee Report
    4. This will take you to the iSQL*Plus login page where you will be asked to enter a Username, Password and Connection Identifier. The username should be a user who has access to the HR schema and the connection identifier can simply be the name of your Oracle SID. If you have Oracle installed on your local machine, you can leave this field blank.
    5. If everything is working, the script.sql will run and the next page will have the results of running the script which will be everything in the emp_details_view.
    Tom

  • Data conversion into specified format using Script component in SSIS 2008

    We have a field in the flat file source which is of the format 13399I , and it need to be type cast to the below format.
     13399I = 1339.99
     5950{ = 595.00
    The sign field equals:
    {=0
    A=1
    B=2
    C=3
    D=4
    E=5
    F=6
    G=7
    H=8
    I=9
    please let us know how to accomplish using script component in SSIS

    You can use the following in the script task.
    1) Create a dictionary to hold the key-value pairs ({=0,A=1...).
    2) Use a substring function to pull out all the string minus the last character.
    3) Append the last character back after replacing the character with the respective value from the dictionary.
    4) Convert the final string to int/decimal/numeric as per the destination.
    Do keep in mind, the data you are referring to is in the COMP3 format. You can do some further research regarding how to convert COMP3 to decimal. There are many ways out there. I personally prefer to load the data into a table and us a lookup table
    to do all this. But it's entirely by preference.

Maybe you are looking for