Execute store procedure( in Id, in out RefCursor), and data fetched in ref cursor should be sent out as excel sheet.

I am trying to make a ssis package that get the data calling the store proc with two param one is ID and other is Sys_refcursor. Say Store Proc as ListName(Id int, myCur sys_refcursor), which gets the datas with the conditions inside it.
REATE OR REPLACE PROCEDURE schemaName.LISTNAME (P_ID  IN INT, LST_NAME_REFCUR   IN OUT SYS_REFCURSOR)
IS
P_NAMESOURCE_ID INT;
BEGIN
    SELECT SOURCE_ID INTO P_NAMESOURCE_ID FROM SEARCHING_TABLE ST WHERE ST.ID = P_ID;           
               IF (P_NAMESOURCE_ID=1)
               THEN
                  OPEN LST_SOURCE_REFCUR FOR 
                        SELECT ST.ID,
                               ST.TRANSACTION_DATE AS TRAN_DATE,
          IF (P_NAMESOURCE_ID=1)
               THEN 
                  OPEN LST_SOURCE_REFCUR FOR             ....     
then i need to get the data from that refcursor and fetch those data to excel sheet to a virtual directory.
Any help would be appreciated. I am new to SSIS. and i need to do this assignment this friday. 

Hi 11srk,
To fetch data from Oracle store procedure, you can use a Script Component as source to call the Oracle stored procedure by using System.Data.OracleClient OracleDataReader, and get the rows and add them to the pipeline buffer. For more information, please
see:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/1d0b3a1b-8792-469c-b0d1-f2fbb9e9ff20/dump-oracle-ref-cursor-into-ms-sql-staging-table-using-ssis
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/fcdaa97e-8415-4c3e-8ffd-1ad45b590d57/executing-an-oracle-stored-procedure-from-ssis?forum=sqlintegrationservices
http://msdn.microsoft.com/en-us/library/system.data.oracleclient.oracledatareader(VS.90).aspx  
Regards,
Mike Yin
TechNet Community Support

Similar Messages

  • Getting data stored in ref cursor ( got from store proc in oracle) to excel sheet)

    Hey, I am trying to Get data stored in ref cursor ( got from store proc in oracle) to excel sheet in a virtual folder using ssis. 
    I am getting errors and cant do it. If anyone can help me

    Hi Nabin000,
    The Oracle stored procedure doesn't work with SSIS source adapters such as OLE DB Source because the data provider doesn't provide metadata for the source adapter. To achieve your goal, you can use a Script Component as source to call
    the Oracle stored procedure by using System.Data.OracleClient OracleDataReader, and get the rows and add them to the pipeline buffer. For more information, please see:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/1d0b3a1b-8792-469c-b0d1-f2fbb9e9ff20/dump-oracle-ref-cursor-into-ms-sql-staging-table-using-ssis
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/fcdaa97e-8415-4c3e-8ffd-1ad45b590d57/executing-an-oracle-stored-procedure-from-ssis?forum=sqlintegrationservices 
    http://msdn.microsoft.com/en-us/library/system.data.oracleclient.oracledatareader(VS.90).aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • TS1702 when i am trying to download new game from app store it showing "to check the time and date settings"?

    when i am trying to download new game from app store it showing "to check the time and date settings"?

    planb77  The OP said he has iOS 3. The Automatic in Settings>General>Time and Date was introduced in iOS 5. The OP just has to see if the time and date, included time zone, are correct.

  • Executing Store Procedure random timeouts

    We have some simple stored procedures that run find when run under the Advantage Data Architect, but randomly times out when we call them from our ASP web site using the OLEDB driver.
    When we try to call them using the Advantage Java database driver we get and error code 9105 SQL state S0000 error with no descripive message.
    Does anyone have any insights into either of these issues?
    Dave Anderson

    Your stored procedure only takes Milliseconds to finish normally?
    How do you know it is timing out?  The default is 30 seconds so seeing it timeout I would have assumed it was a longer running one.  Are you getting the ADS error 7209 back or Run-Time error
    '3712' Operation has been cancelled by the user?
    It's been ages since I've looked at VB, but I think it should be something like this
    cmd = New ADODB.Command
    cmd.CommandText = "execute procedure ....."
    cmd.CommandType = adCmdText
    cmd.CommandTimeout = 0
    rs = cmd.Execute
    For the JDBC issue, it is difficult to tell by the date, but I think that date indicates likely a 10.x or 11.x driver.  The issue I was thinking of I believe was fixed in 9.x.
    You can try the latest 11.1 version (11.10.0.20) as I think that was released in July of this year.  Maybe it will help?  If not a support incident would be a good idea (particularly if you can duplicate it)
    Out of curiosity are you using the varying output type stored procedures?  (Not that I have anything to offer as a workaround, but the error is indicating there was a problem retrieving column informaiton and this is the only thing I can think of off the top of my head).
    Edgar

  • Execute Store procedure from derived table

    I would like to create a devired table to use in the LOV for my prompt.  Can I execute a store procedure in the defintion of the derived table instead of a sql statement ?  My store procedure is in a sql 2008 database

    Derived Table and SP are not the same. Derived table is more like a database view and is not a replacement for SP. I'd suggest you to use Derived table only if it is not possible to create a database table/view.
    Is it necessary for you to use your stored procedure as a data source? Are you trying to join it's result set to another table or view?
    You can create Materialized view in the database. Use that as a table in Universe.
    Try to use this object LOV in your prompt.

  • Execute store procedure from form

    How do I execute a store procedure from FORM
    I have a store procedure in the database
    all it does insert a value to table test.
    in 'WHEN-NEW-INSTANT-TRIGGER' of the form MODLUE I put
    test_curor; (name of the store procedure)
    The module does have block or any thing it.
    There was no syntax errors or form error
    but it did not insert into the table.
    Why????

    I just tested this myself and you are right. If you have one block with no items in it the when-new-form-instance trigger will not be fired. I got a message back saying 'block had no items', though it ran OK. This kinda makes logical sense, since there is nothing for the form to do. I put a button onto the block and the procedure fired no problem. I must admit I have never tried creating a form with no items in it so I haven't seen this behaviour before.
    Shucks you live and learn every day!

  • Error while executing store procedure

    we are using JSQLConnect jdbc driver 3.0 verson.
    When we trued to excute store procedures its giving error like
    com.jnetdirect.jsql.w: Stored procedures called with static parameters cannot return output parameter values, please use CallableStatement.setXXX() to set the values of all input parameters.
    we are using SQLServer2000.
    Could anybody tell me why this is error is coming and how to solve this.
    Thanks
    Hemanth

    Obviously it doesn't like the stored procedure. If you posted the signature for that it might help.
    You are using a CallableStatement right?

  • Benefit of using store procedure instead of select statement to pull data into biztalk

    I was wondering why store procedure is more beneficial than using select statement to pull data into biztalk?

    In addition to the above two points, in case if there is a change in logic of stored procedure, you only need to modify the stored proc and the applications calling/using it may be left intact.
    Also, stored procedures are complied code so performance is better and safe too.
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Keeps asking for rpt file when executing store procedure

    Hi all,
      I have coded an standard stored procedure but when I execute it, Management Studio keeps asking for .rpt file to save the results. I am using Enterprise 2008 R2. 
    This is the code:
    USE [mydatabase]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[usp_chart](
    @parameters)
    AS
    BEGIN
     SET NOCOUNT ON;    
     DECLARE @query NVARCHAR(4000)
        DECLARE @total INT
        DECLARE @strDescriptor NVARCHAR(4000)
        DECLARE @dsvalues NVARCHAR(4000)
        DECLARE @strCache NVARCHAR(2000)
        SET @strDescriptor = dbo.udf_chart_derived_descriptor_intotemp(@derivation_Id)
     SET @dsvalues =  dbo.udf_chart_derived_dynamic_query_fortopn(  @derivation_Id,
           @cache_Id,
           @topn,
          @flt_customer_Id,
          @flt_user_Id,
          @flt_datefrom,
          @flt_dateto,
          @product_Id
        SET @strCache = 'SELECT top ' + @topn + 'PERCENT g.Supplier_Id Supplier_Id 
    INTO #T_CacheTopN
    FROM T_CacheSupp g 
    WHERE g.Cache_Id = ' + @cache_Id + 
    ' ORDER BY g.Position'
        IF @strFilter is null 
         BEGIN
    SET @query = @strCache + ';' + @strDescriptor + ';' +
    'DECLARE @total INT;' +
    @dsvalues +
    'SELECT @total = COUNT(*)
     FROM #T_Condition; 
     SELECT c.Condition_Index, ROUND(COUNT(*)/CAST(@total as float),2)*100
     FROM #T_Condition c
     GROUP BY c.Condition_Index';
         END
        ELSE
         BEGIN
           DECLARE @sqlfilter NVARCHAR(2000)
      SET @sqlfilter =  dbo.udf_chart_dynamic_query_filter_fortopn(@strFilter,@product_Id,@topn, @cache_Id)
      SET @query = @strCache + ';' +@strDescriptor + ';' +
    'DECLARE @total INT;' +
    @dsvalues +
    'SELECT @total = COUNT(*)
     FROM #T_Condition;'+ @sqlfilter +
     ';SELECT c.Condition_Index, ROUND(COUNT(*)/CAST(@total as float),2)*100 
     FROM #T_Condition c LEFT OUTER JOIN #T_NotWanted d
     ON c.Data_Id = d.Data_ID
     WHERE d.Data_Id is null
     GROUP BY c.Condition_Index';
         END 
        EXEC(@query)
        RETURN
    END
    When I execute:
    DECLARE
    @parameters NVARCHAR(4000)
    execute usp_chart_derived_fortopn @parameters
    it asks me for a .rpt file.
    Why is that? I am not running a report.
    Thanks

    As other have said, you have set Results to File.
    But since you posted your code, I had a look at it. I was not able to understand why you use dynamic SQL. For instance, this:
        SET @strCache = 'SELECT top ' + @topn + 'PERCENT g.Supplier_Id Supplier_Id 
    INTO #T_CacheTopN
    FROM T_CacheSupp g 
    WHERE g.Cache_Id = ' + @cache_Id +  ' ORDER BY g.Position'
    Can be written as
    SELECT top (@topn) PERCENT g.Supplier_Id Supplier_Id 
    INTO #T_CacheTopN
    FROM T_CacheSupp g 
    WHERE g.Cache_Id = @cache_Id  
    ORDER BY g.Position
    If you can avoid dynamic SQL, your code becomes easier to maintain, and less vulnerable for nasty surprises.
    And if you use dynamic SQL, you should use sp_executesql and pass parameter values as parameters instead of inlining them.
    Erland Sommarskog, SQL Server MVP, [email protected]
    Links for SQL Server Books Online:
    SQL 2008, SQL 2005 and 
    SQL 2000.
    (Just click the link you need.)

  • I have downloaded some products from the store.(education).i want to pay and have them to use.what  should i do?

    i have downloaded some products from the store.they werer downloaded.now i want to get them and used them.i do i make the payments and get these downloaded products?
    <Email Edited by Host>

    Again, what product? And from the Apple Store, or the iTunes Store? I presume you mean the iTunes Store since you mention a "Purchased" list, but I'm not sure.
    Since you seem to have problems in English, you might want to try posting your issue - a complete description of the issue, please - in your native language. That might be easier for all concerned.
    Regards.

  • Store procedure doesn't return resultset

    hi guys
    i m stuck in a prob.I am using "com.microsoft.jdbc.sqlserver.SQLServerDriver"
    when i call a normal query it run fine but when i try to call a store procedure it gives no result set was produce, is it a problem with driver but if i use jdbsodbc driver it work fine.
    code:-
    pStmt= conn.prepareStatement("{call insertOpacResultsTemp(?,?,?,?,?)}");
    pStmt.setString(1,sUserID);
    //and other parameters
    Resultset=pStmt.executeQuery();
    plz guys help me out

    Hello Amit,
    Oracle Stored Procedure
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    create or replace package test_package as
    type my_cursor is ref cursor;
    procedure test_procedure (name in varchar2,sys_cursor out my_cursor);
    end test_package;
    create or replace package body test_package
    as
    procedure test_procedure (name in varchar2,sys_cursor out my_cursor)
    as
    l_sys_cursor my_cursor;
    begin
         open l_sys_cursor
         for select * from krm_system
         where parameter_id = name;
         sys_cursor:= l_sys_cursor;
    end test_procedure;
    end test_package;     
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Java code for getting result set
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    public class StoredProcTester{
         public static void main(String args[]){
              try{
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:isorcl","user_id","password");
                   CallableStatement cstmt = conn.prepareCall("{call test_package.test_procedure(?,?)}");
                   cstmt.setString(1,"MAX_MEMORY");
                   cstmt.registerOutParameter(2,OracleTypes.CURSOR);
                   cstmt.execute();
                   ResultSet rs = (ResultSet)cstmt.getObject(2);
                   while(rs.next()){
                        System.out.println("ID\t" + rs.getString(1));
              }catch(Exception e){
                   e.printStackTrace();
    }

  • Oracle JBDC error while calling the store procedure

    HI All,
    I am get one strange error while calling a store procedure which has two parameter in and out.
    I am pass the correct XML file which reaches the RDB and then PI receives a exception error message saying:
    oracle.rdb.jdbc.common.RdbException: Closed Resultset
    where as no error log is availble in RBD for the same.
    Can anybody tell me what can be the cause of the error.
    Let me know if you requires more information on this.
    -adi

    Hi Kiran,
    Thanks..
    But I am not able to understand you. I am calling a store procedure not a table. and we not doing anything in the store procedure except return one constant value in Out parameter.
    -Adi

  • Problem with IN OUT Number, OUT RefCursor for EF Model StoredProcedure call

    When I call a stored procedure using the EF Model and implicit binding via App.config which has three parameters i.e. 'IN Number', 'IN OUT Number' and 'OUT sys_refcursor', the 'IN OUT Number' is not set correctly on return from the procedure.
    The 'IN OUT Number' is for an error code and is set to 12345 on input and is then set to 54321 by stored proceedure for return.
    The correct value is returned when the call is via OracleCommand using implicit binding via App.config but remains unchanged when the call is via EF Model and implicit binding via App.config.
    The ODP documentaion says you cannot have two OUT RefCursors when using EF Model but does not say you cannot have OUT RefCursor and other non-RefCursor OUT parameters.
    The idea behind this type of procedure is to have multiple input parameters to configure and filter the stored procedure and an output result set that consists of an error code and a collection of result rows in a RefCursor.
    I am using 11g R2 database and ODP 11g Release 2 (11.2.0.2.30) and ODAC Entity Framework beta.
    The query uses Scott/tiger schema with parameters department code, error code and list of employees for department.
    code:
    PROCEDURE TEST_PARAMETERS
    DEPT IN NUMBER,
    ERROR_CODE IN OUT NUMBER,
    DEPT_EMPLOYEES OUT sys_refcursor
    AS
    BEGIN
    DBMS_OUTPUT.PUT_LINE('DEPT = [' || DEPT || ']');
    DBMS_OUTPUT.PUT_LINE('ERROR_CODE = [' || ERROR_CODE || ']');
    OPEN DEPT_EMPLOYEES for SELECT empno, ename from emp where deptno = DEPT;
    -- set ERROR_CODE for return
    ERROR_CODE := 54321;
    END TEST_PARAMETERS;
    The App.config for implicit RefCursor binding is as follows ...
    <oracle.dataaccess.client>
    <settings>
    <add name="SCOTT.TEST_PARAMETERS.RefCursor.DEPT_EMPLOYEES"
    value="implicitRefCursor bindinfo='mode=Output'" />
    <add name="SCOTT.TEST_PARAMETERS.RefCursorMetaData.DEPT_EMPLOYEES.Column.0"
    value="implicitRefCursor metadata='ColumnName=EMPNO;
              BaseColumnName=EMPNO;BaseSchemaName=SCOTT;BaseTableName=EMP;
              NATIVE_DATA_TYPE=number;ProviderType=Int32;
              PROVIDER_DB_TYPE=Int32;DataType=System.Int32;
              ColumnSize=4;NumericPrecision=10;
                   NumericScale=3;AllowDBNull=false;IsKey=true'" />
    <add name="SCOTT.TEST_PARAMETERS.RefCursorMetaData.DEPT_EMPLOYEES.Column.1"
    value="implicitRefCursor metadata='ColumnName=ENAME;
              BaseColumnName=ENAME;BaseSchemaName=SCOTT;BaseTableName=EMP;
              NATIVE_DATA_TYPE=varchar2;ProviderType=Varchar2;
              PROVIDER_DB_TYPE=String;DataType=System.String;
              ColumnSize=10;AllowDBNull=true'" />
    </settings>
    </oracle.dataaccess.client>
    When the call is via OracleCommand both outputs are correct i.e. ERROR_CODE gets set to 54321 and the correct emplyees for department 10 are returned
    code:
    private void TestParametersViaOracleCommand()
    try
    string constr = "DATA SOURCE=ORCL;PASSWORD=tiger;PERSIST SECURITY INFO=True;USER ID=SCOTT";
    OracleConnection con = new OracleConnection(constr);
    con.Open();
    OracleCommand cmd = con.CreateCommand();
    OracleDataAdapter adapter = new OracleDataAdapter(cmd);
    DataSet ds = new DataSet();
    cmd = con.CreateCommand();
    cmd.CommandText = "SCOTT.TEST_PARAMETERS";
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.BindByName = true;
    OracleParameter dept = cmd.Parameters.Add("DEPT",
    OracleDbType.Int32,
    ParameterDirection.Input);
    dept.Value = 10;
    OracleParameter errorCode = cmd.Parameters.Add("ERROR_CODE",
    OracleDbType.Int32,
    ParameterDirection.InputOutput);
    errorCode.Value = 12345;
    // RefCursor output parameter implicitly bound via App.Config
    adapter = new OracleDataAdapter(cmd);
    adapter.Fill(ds);
    // should be 54321 and is ...
    Console.WriteLine("after call errorCode.Value = " + errorCode.Value);
    Console.WriteLine("list size = {0}", ds.Tables[0].Rows.Count);
    // only one table
    DataTable deptEmployeesTable = ds.Tables[0];
    for (int ii = 0; ii < deptEmployeesTable.Rows.Count; ++ii)
    DataRow row = deptEmployeesTable.Rows[ii];
    Console.WriteLine("EMPNO: " + row[0] + "; ENAME: " + row[1]);
    catch (Exception ex)
    // Output the message
    Console.WriteLine(ex.Message);
    if (ex.InnerException != null)
    // If any details are available regarding
    // errors in the app.config, print them out
    Console.WriteLine(ex.InnerException.Message);
    if (ex.InnerException.InnerException != null)
    Console.WriteLine(
    ex.InnerException.InnerException.Message);
    output:
    before call errorCode.Value = 12345
    after call errorCode.Value = 54321 (should be 54321!)
    list size = 3
    EMPNO: 7782; ENAME: CLARK
    EMPNO: 7839; ENAME: KING
    EMPNO: 7934; ENAME: MILLER
    However when call is via EF Model the correct employees are returned but the ERROR_CODE parameter is unchanged on return.
    code:
    private void TestParametersViaEFModel()
    var context = new ScottEntities();
    Decimal dept = 10;
    ObjectParameter errorCodeParameter = new ObjectParameter("ERROR_CODE", typeof(decimal));
    errorCodeParameter.Value = 12345;
    Console.WriteLine("before call errorCodeParameter.Value = " + errorCodeParameter.Value);
    // RefCursor output parameter implicitly bound via App.Config
    var queryResult = context.TestParameters(dept, errorCodeParameter);
    // should be 54321 and is ...
    Console.WriteLine("after call errorCodeParameter.Value = " + errorCodeParameter.Value + " (should be 54321!)");
    List<TestParameters_Result> deptEmployeesList = queryResult.ToList();
    Console.WriteLine("list size = {0}", deptEmployeesList.Count);
    for (int ii = 0; ii < deptEmployeesList.Count; ++ii)
    TestParameters_Result result = deptEmployeesList[ii];
    Console.WriteLine("EMPNO: " + result.EMPNO + "; ENAME: " + result.ENAME);
    output:
    after call errorCodeParameter.Value = 12345 (should be 54321!)
    list size = 3
    EMPNO: 7782; ENAME: CLARK
    EMPNO: 7839; ENAME: KING
    EMPNO: 7934; ENAME: MILLER
    errorCodeParameter.Value IS NOT CORRECTLY RETURNED!
    If there is no RefCursor then both outputs are identical i.e. the parameters are being passed in correctly and the problem is not with the 'IN OUT' parameter. Also same thing is true if ERROR_CODE is made an OUT parameter. Also tried changing the position of the parameter in the list but still get same problem i.e. works when OracleCommand but not when EF Model. Also note that the RefCursor results are correct for both types of call i.e. it is just a problem with the value of the 'IN OUT ERROR_CODE' parameter.
    I have also enabled debug stepping from Visual Studio 2010 into Oracle PL/SQL as described in
    "http://st-curriculum.oracle.com/obe/db/hol08/dotnet/debugging/debugging_otn.htm"
    and have verified by inspection that the correct values are being passed into the stored procedure and that the stored procedure is definitely setting the ERROR_CODE to 54321 prior to return.
    Most of our stored procedures have these type of parameters i.e. several IN params to configure the work of the stored procedure, an OUT NUMBER parameter for the Error_Code if any and a RefCursor for the result list.
    Is this a bug or a feature? Am I doing something wrong?

    Just to clarify ....
    If the ERROR_CODE parameter is made an 'OUT' parameter instead of an 'IN OUT' parameter the correct return value is given for the OracleCommand invocation but the WRONG value is still returned for the EF Model invocation i.e. just changing the parameter from 'IN OUT' to just 'OUT' does not fix the problem.

  • How to load and define Java Store Procedures using Consolidator Manager??

    Hi,
    I am trying to create a store procedure with a very easy example and I can not succeed. i am a bit new with OLite and I will appreciate any help from your side. I am quite lost now regarding of using java with OLite and it is becoming quite urgent for me. Thanks a lot in advanced.
    Those are the steps that I follow:
    - Creating the java class
    I create the java file MYUPPER.java with next code :
    public class MYUPPER {
    public static String doUpper( String p_text )
    return p_text.toUpperCase();
    I compile it and I create the jar file:
    C:\>javac MYUPPER.java
    C:\>jar cf MYUPPER.jar MYUPPER.class
    - This is an abstract of my java code using the API:
    ( m_cm is ConsolidatorManager)
    // Create the java resource
    m_cm.createStoredProc( "MYUPPER.jar", "MYUPPER", "doUpper", "doUpper");
    // Add it to the publication
    m_cm.addJavaResource( "PMTS", "MYUPPER" );
    - After running that code I do not receive any exception and checking into the repository looks ok:
    a) From the Mobile Server I can see the Java Ressource MYUPPER for that publication
    b) I can see the entries in C$Resouces and in C$Pub_Objects as well
    *** ON THE CLIENT:
    Then I go to the client device a Windows XP labtop where I did install the jre 5.0 and I added the bin path to the system variable PATH.
    - I get a POL-8000 error when synchronizing (could not start the Java Visrtual Machine)
    - Anyway, I can see the MYUPPER.class file deployed in the same directory than the databases are.
    - I have also tried next from msql:
    c:\>msql system/manager@jdbc:polite:tomeu_conscli
    Oracle Lite MSQL Version 10.3.0.2.0
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Connected to: Oracle Lite ORDBMS
    Database Name: CONSCLI (Read Write)
    Database Version: 10.3.0.2.0
    Auto Commit: off
    Driver Name: oracle.lite.poljdbc.POLJDBCDriver (OLite 4.0)
    SQL> select * from c$resources;
    PUB_NAME | DB_NAME | RESOURCE_NAME | RESOURCE_TYPE | RESOURCE_DATA
    PMTS | pmts | MYUPPER | JAVA CLASS | -¦¦¥ 1
    1 row(s) returned
    SQL>
    SQL> exit
    Disconnected from CONSCLI
    c:\>msql system/*****@jdbc:polite:tomeu_pmts
    Oracle Lite MSQL Version 10.3.0.2.0
    Copyright (c) 1997, 2008, Oracle. All rights reserved.
    Connected to: Oracle Lite ORDBMS
    Database Name: PMTS (Read Write)
    Database Version: 10.3.0.2.0
    Auto Commit: off
    Driver Name: oracle.lite.poljdbc.POLJDBCDriver (OLite 4.0)
    SQL> select doUpper('fhjdjf') from dual;
    [POL-8035] no such attribute or method
    SQL> create table sp (id number(1) primary key );
    Table created
    SQL> alter table sp attach java source "MYUPPER" in '.';
    [POL-8028] error in calling a Java method
    SQL> commit;
    Commit complete
    SQL> select sp.doUpper('fhjdjf') from dual;
    [POL-8035] no such attribute or method
    Lost... :(
    Tomeu

    sorry to bother, similar like above, i tried many times on my computer to load a simple image in java application.. here's my code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    public class View extends JFrame {
         private URL imageURL;
         private File file;
         private Image sourceImage;
         private String name, title, message;
         private int width, height;
        public static void main(String[] args) {
            System.out.println( "Hello Eros!!!" );
            View img = new View();
        public View() {
             name = "D:/shared/inputpic.gif";
             file = new File( name );
            Toolkit toolkit = Toolkit.getDefaultToolkit();
            try {
                imageURL = new URL("http://www.google.com.my/images/logo_sm.gif" );
            } catch (MalformedURLException e) {
            if ( file == null ) {
                sourceImage = Toolkit.getDefaultToolkit().getImage( name );
                System.out.println( file );
            } else {
                sourceImage = toolkit.getImage( imageURL );
                System.out.println( file );
            width = sourceImage.getWidth( this );
            height = sourceImage.getHeight( this );
            System.out.println( "Pixel = " + width + "x" + height );
            if ( width * height == 1 ) {
                title = "Greetings";  // Shown in title bar of dialog box.
                if ( file == null ) {
                    message = "Unable to load the file " + name;
                } else {
                    message = "Unable to load the link " + imageURL;
                JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
    }could anyone test this n give my the reason i couldnt even load the image

  • Store Procedure execution using dataset

    hi friends
    can anybody tell me how to execute oracle stored procedure using dataset in C#
    Thnx
    Monika

    Double post?
    execute store Procedure in Oracle

Maybe you are looking for

  • Upgrade from a two tier EBS 11i 11.5.10.2 on Windows 2003 Apps and Windows 2008 R2 DB  tier to two Tier R12.2.3 both on Windows 2008 R2

    Hi, Any ideas about the best practices for the migration/upgrade reflected with the below question? I have a source EBS11i 11.5.10.2 running as a two tier configuration ( apps tier on server  ora10 on Windows 2003, DB tier 11.2.0.2 on server ora1 on

  • Indesign cs4 keeps crashing on startup

    My Indesign cs4 crashes when it shows the recent documents dialog box, it never fully loads, just shows the white box then hangs for a while until it crashes finally. Im running Mac OS X 10.5.8. Crash report included, it's pretty long... Thanks in ad

  • Harman Kardon

    OK I'm about to give up and abandon my prejudice for surround sound. I suppose I can still listen in stereo and at least the kids have the option of using it when I'm not there. Someone has told be there is a Harman Kardon receiver in cash converters

  • PIR is replenished when the Production order GR is cancelled.

    In a Make to Stock scenario(Gross requirements planning - Strategy 11) with Forward/Backward consumption  mode , the system adds the PIR qty when the GR from Production order  is reversed for some reason , is there way to prevent this from happening.

  • Adding background image to navigation tabs

    I am adding a backgraound image to a navigation tab and so far have found the only way to do this is by modifying the HTMLTableCell class and adding a method that sets the background image. The closest existing method is setBgColor - which doesn't wo