Problem in compiling oracle 8i procedures

Hi Rupinder,
I have a complex problem and need your help in fixing it.
I’m trying to setup our test environment (Application & database) both in Pentium 4 desktop. The platform is windows 2003 server installed in the desktop without any problem and updated by installing SP1.The database is oracle 8i I installed the server version in the same workstation.
When I created the database and imported the user which I exported from the production server I had problem in some procedures some of them when I compile I get error message
(Screenshot below).I tried to search in the internet and my search was hopeless as I didn’t find any useful topic. The same procedures run in the production and backup environment without any compilation problem the only difference that oracle in the working environment is installed in Unix servers separated from the windows 2003 application servers in addition that the working environments are servers while the test pc is just a desktop Pc. Does it affect? Is there any solution for this problem?
Error:
PLS-00103:encountered the symbol "join" when expecting one of the following:...
Regards,
Nadia Al-Hurz
Credit Bureau Supervisor
The Benefit Company
Tel: +973 17500400
Fax: +973 17500401

It appears that the word "join" appears somewhere in ur SQL/PL SQL code.
I dont think the keyword JOIN is allowed in Oracle 8i, only in Oracle 9i/ later versions. pl check, ur server machines may be using Oracle 9i/higher version than the oracle 8i for windows that u use.
If so, you must ideally install same/higher version on the windows platform.
Else, try re-coding the SQLs using WHERE clause instead of using the JOIN keyword(s).
Regards,
Sudheer Godgeri.

Similar Messages

  • Problem in calling Oracle stored procedure from Java.

    I am trying to invoke the Oracle stored procedure from Java. The procedure does not take any parameters and does not return anything. If I call it from SQL prompt it is working perfectly. I am calling it in my program as follows.
    callable_stmt=con.prepareCall("{call pkg_name.proc_name()}");
    callable_stmt.execute();
    The problem is the control-of-flow is getting strucked in the second line I wrote. It is not giving any error also.
    Please clarify me what's wrong with my code?
    Seenu.

    And how long does the stored procedure take to run from your client machine when running it via sqlplus?

  • Problem while using oracle stored procedure in VC

    Hi All,
    I have created JDBC system and connected my locally installed Oracle data base to the VC.  I mapped the data base user to my VC user. I tested connection and it is fine. Further I see the DB alias in Visual Composer and I can drop stored procedures to my story board. I can define parameters, but when I am executing procedures I get the error message.
    Problem: I can not execute stored procedures stored in Oracle data base. Error Message: Portal request failed. Could not execute stored procedure.
    In the stored procedure, I have used select query, that returns set of records, so that  I have used  REF CURSOR as OUT Parameter. Is REF CURSOR supported by VC?. Else, any  tricks available to solve this problem?.
    Note: Stored Procedure of Sql server is working fine in VC.
    Thanks,
    Venkatesh R

    Returning (or sending in) multiple rows directly from (or to) a stored procedure is not currently possible. I have been in contact with SAP on this subject earlier, and they suggest using a web service to do the job. I used this as a work around, calling the stored procedure from a web service. I send in VC tables to this web service, and this in turn contacts my stored procedure.
    The problem is related to the connector framework in the J2EE environment.
    I am on 7.0 sps 17
    If you use stored procedure single value parameters of type varchar, number ... then VC has no problem communicating with your procedures.
    Good luck
    Henning Strand

  • Problem in writting oracle stored procedure in java

    Hi,
    Can anybody please suggest me how can I access oracle stored procedure in Java.
    Thanks

    please find the examples in the below url.
    http://javaalmanac.com/egs/java.sql/pkg.html

  • Executing an oracle stored procedure in xMII 11.5

    Dear all,
          I am facing problem executing an oracle stored procedure using sql query in MII. The SP does not have any input or output parameters & consists of only 2 insert statements. I tried to use Command Mode, FixedQuery & FixedQuery With output mode, but the SP doesn't run.
    This is the error i get when i use :
    execute InsertTest or exec InsertTest -  A SQL Error has occurred on query, ORA-00900: invalid SQL statement
    I read in one of the posts to use 'CALL' instead of 'exec' or 'execute'. Even with this i get error which states:
    A SQL Error has occurred on query, ORA-06576: not a valid function or procedure name
    The syntax i used is CALL InsertTest  -  'InsertTest' is the SP name.
    I also checked Sam's comment in one of the posts about jdbc driver. We are using oracle 9i, so i guess there is no problem with the version of DB.
    The stored procedure is working fine in SQL Developer, How else can i invoke the SP in MII?
    Any help would be greatly appreciated.
    Thanks,
    Sushma.

    Hi all,
    for insert create procedure
    CREATE PROCEDURE MII_TEST_INSUPD
    (ID_IN IN NUMBER,
    NAME_IN IN VARCHAR2)
    IS
    BEGIN
      -- UPDATE ROW
      UPDATE TEST SET
              NAME = NAME_IN
      WHERE
              ID = ID_IN;
      -- NOT RETURN INSERT NEW LINE IN TABLE
      IF SQL%ROWCOUNT = 0 THEN
         INSERT INTO TEST (ID, NAME) VALUES (ID_IN, NAME_IN);                        
      END IF; 
    END;
    In MII you create a query template
    Mode - Command
    FixedQuery - insert the code below
    CALL MII_TEST_INSUPD ([Param.1],'[Param.2]')
    for returns the grid using procedures in oracle you need create a package on oracle server
    CREATE PACKAGE PKG_test IS
      TYPE cursortype is ref cursor;
      PROCEDURE test (mycursor in out cursortype);
    END PKG_test;
    CREATE PACKAGE BODY PKG_test IS
      PROCEDURE test (mycursor in out cursortype) AS
      BEGIN
         open mycursor for select * from test;
      END;
    END PKG_test;
    In MII you create a query template
    Mode -  FixedQueryWithOutput
    FixedQuery - insert the code below
    CALL PKG_TEST.TEST(?)
    Danilo

  • Problems to compile Perl DBD::Oracle with InstantClient 11.1.0.7

    machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# perl Makefile.PL
    Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/
    Configuring DBD::Oracle for perl 5.010000 on linux (x86_64-linux-gnu-thread-multi)
    Remember to actually READ the README file! Especially if you have any problems.
    Installing on a linux, Ver#2.6
    Using Oracle in /usr/lib/oracle/11.1/client64
    DEFINE SQLPLUSRELEASE = "1101000700" (CHAR)
    Oracle version 11.1.0.7 (11.1)
    Found /usr/share/oracle/11.1/client64/demo.mk
    Found /usr/share/oracle/11.1/client64/demo.mk
    Using /usr/share/oracle/11.1/client64/demo.mk
    Your LD_LIBRARY_PATH env var is set to '/usr/lib/oracle/11.1/client64/lib'
    Reading /usr/share/oracle/11.1/client64/demo.mk
    WARNING: Oracle /usr/share/oracle/11.1/client64/demo.mk doesn't define a 'build' rule.
    WARNING: I will now try to guess how to build and link DBD::Oracle for you.
    This kind of guess work is very error prone and Oracle-version sensitive.
    It is possible that it won't be supported in future versions of DBD::Oracle.
    PLEASE notify dbi-users about exactly why you had to build it this way.
    Found header files in /usr/include/oracle/11.1/client64.
    Checking for functioning wait.ph
    System: perl5.010000 linux excelsior 2.6.26-1-vserver-amd64 #1 smp sat nov 8 20:24:14 utc 2008 x86_64 gnulinux
    Compiler: cc -O2 -g -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    Linker: /usr/bin/ld
    Sysliblist:
    Oracle makefiles would have used these definitions but we override them:
    CC: /usr/bin/g++
    LDFLAGS: -g
    [-g]
    Linking with -L../../ -locci -lclntsh -lpthread [from $(CCLIB)]
    Checking if your kit is complete...
    Warning: the following files are missing in your kit:
    META.yml
    Please inform the author.
    Warning: -L../../ changed to -L/root/.cpan/build/DBD-Oracle-1.22-WXjXWy/../../
    LD_RUN_PATH=/usr/lib/oracle/11.1/client64/lib
    Using DBD::Oracle 1.22.
    Using DBD::Oracle 1.22.
    Using DBI 1.607 (for perl 5.010000 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.10.0/auto/DBI/
    Writing Makefile for DBD::Oracle
    *** If you have problems...
    read all the log printed above, and the README and README.help.txt files.
    (Of course, you have read README by now anyway, haven't you?)
    Everything works fine right now ;-) but now:
    machine:~/.cpan/build/DBD-Oracle-1.22-WXjXWy# make
    Skip blib/lib/DBD/Oracle.pm (unchanged)
    Skip blib/lib/oraperl.ph (unchanged)
    Skip blib/arch/auto/DBD/Oracle/dbdimp.h (unchanged)
    Skip blib/arch/auto/DBD/Oracle/ocitrace.h (unchanged)
    Skip blib/lib/Oraperl.pm (unchanged)
    Skip blib/arch/auto/DBD/Oracle/Oracle.h (unchanged)
    Skip blib/lib/DBD/Oracle/GetInfo.pm (unchanged)
    Skip blib/arch/auto/DBD/Oracle/mk.pm (unchanged)
    cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" Oracle.c
    Oracle.xsi: In function 'XS_DBD__Oracle__db_disconnect':
    Oracle.xsi:306: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:306: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi: In function 'XS_DBD__Oracle__db_DESTROY':
    Oracle.xsi:352: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:352: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi:380: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:380: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi: In function 'XS_DBD__Oracle__st_finish':
    Oracle.xsi:675: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:675: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi: In function 'XS_DBD__Oracle__st_DESTROY':
    Oracle.xsi:752: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:752: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    Oracle.xsi:766: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    Oracle.xsi:766: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" dbdimp.c
    dbdimp.c: In function 'ora_db_login6':
    dbdimp.c:528: warning: format '%d' expects type 'int', but argument 8 has type 'size_t'
    dbdimp.c:535: warning: format '%d' expects type 'int', but argument 8 has type 'size_t'
    dbdimp.c:738: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
    dbdimp.c:738: warning: format '%d' expects type 'int', but argument 9 has type 'long unsigned int'
    dbdimp.c:787: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:787: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_st_cancel':
    dbdimp.c:842: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    dbdimp.c: In function 'ora_db_disconnect':
    dbdimp.c:879: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:879: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_db_STORE_attrib':
    dbdimp.c:976: warning: value computed is not used
    dbdimp.c: In function 'createxmlfromstring':
    dbdimp.c:1058: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
    dbdimp.c:1066: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
    dbdimp.c:1077: warning: passing argument 4 of 'OCILobWriteAppend' from incompatible pointer type
    dbdimp.c: In function 'dbd_preparse':
    dbdimp.c:1243: warning: value computed is not used
    dbdimp.c: In function 'dbd_rebind_ph_varchar2_table':
    dbdimp.c:1546: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
    dbdimp.c:1554: warning: format '%d' expects type 'int', but argument 3 has type 'STRLEN'
    dbdimp.c:1584: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
    dbdimp.c:1584: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
    dbdimp.c: In function 'dbd_rebind_ph_number_table':
    dbdimp.c:1991: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long unsigned int'
    dbdimp.c:1991: warning: format '%u' expects type 'unsigned int', but argument 8 has type 'long unsigned int'
    dbdimp.c: In function 'dbd_rebind_ph_char':
    dbdimp.c:2197: warning: format '%d' expects type 'int', but argument 5 has type 'IV'
    dbdimp.c: In function 'pp_exec_rset':
    dbdimp.c:2412: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:2412: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_bind_ph':
    dbdimp.c:2743: warning: format '%d' expects type 'int', but argument 2 has type 'IV'
    dbdimp.c:2752: warning: format '%d' expects type 'int', but argument 2 has type 'IV'
    dbdimp.c:2786: warning: format '%d' expects type 'int', but argument 3 has type 'IV'
    dbdimp.c:2799: warning: unknown conversion type character '_' in format
    dbdimp.c: In function 'ora_st_execute':
    dbdimp.c:3018: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:3018: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c: In function 'ora_st_execute_array':
    dbdimp.c:3328: warning: unused variable 'sv2'
    dbdimp.c: In function 'ora_st_finish':
    dbdimp.c:3473: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    dbdimp.c:3473: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    dbdimp.c:3491: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    dbdimp.c: In function 'ora_st_destroy':
    dbdimp.c:3587: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    dbdimp.c: In function 'ora_st_STORE_attrib':
    dbdimp.c:3672: warning: value computed is not used
    dbdimp.c: In function 'ora_st_FETCH_attrib':
    dbdimp.c:3720: warning: value computed is not used
    cc -c -I/usr/include/oracle/11.1/client64 -I/usr/local/lib/perl/5.10.0/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" -fPIC "-I/usr/lib/perl/5.10/CORE" -Wall -Wno-comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION=\"11.1.0.7\" oci8.c
    oci8.c: In function 'fetch_cleanup_rset':
    oci8.c:974: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:974: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'fetch_func_rset':
    oci8.c:1031: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:1031: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'dbd_rebind_ph_lob':
    oci8.c:1095: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
    oci8.c: In function 'get_attr_val':
    oci8.c:1655: warning: unknown conversion type character 'O' in format
    oci8.c:1655: warning: format '%s' expects type 'char *', but argument 6 has type 'size_t *'
    oci8.c:1655: warning: too many arguments for format
    oci8.c:1672: warning: unknown conversion type character 'O' in format
    oci8.c:1672: warning: format '%s' expects type 'char *', but argument 6 has type 'size_t *'
    oci8.c:1672: warning: too many arguments for format
    oci8.c: In function 'get_object':
    oci8.c:1911: warning: format '%d' expects type 'int', but argument 6 has type 'struct OCIIter **'
    oci8.c: In function 'fetch_get_piece':
    oci8.c:2024: warning: format '%d' expects type 'int', but argument 6 has type 'ub1 *'
    oci8.c:2047: warning: format '%d' expects type 'int', but argument 7 has type 'ub4 *'
    oci8.c:2056: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:2061: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:2061: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'ora_describe':
    oci8.c:2823: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
    oci8.c:2963: warning: format '%d' expects type 'int', but argument 6 has type 'void *'
    oci8.c: In function 'ora_st_fetch':
    oci8.c:3048: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:3063: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:3074: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'int'
    oci8.c:3085: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:3085: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c:3092: warning: format '%ld' expects type 'long int', but argument 2 has type 'I32'
    oci8.c:3092: warning: format '%ld' expects type 'long int', but argument 3 has type 'I32'
    oci8.c: In function 'init_lob_refetch':
    oci8.c:3474: warning: value computed is not used
    oci8.c:3549: warning: value computed is not used
    oci8.c:3556: warning: format '%ld' expects type 'long int', but argument 2 has type 'ub4'
    oci8.c:3596: warning: format '%ld' expects type 'long int', but argument 2 has type 'int'
    Running Mkbootstrap for DBD::Oracle ()
    chmod 644 Oracle.bs
    rm -f blib/arch/auto/DBD/Oracle/Oracle.so
    LD_RUN_PATH="/usr/lib/oracle/11.1/client64/lib" cc -shared -O2 -g -L/usr/local/lib Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
    -L/usr/lib/oracle/11.1/client64/lib -L/root/.cpan/build/DBD-Oracle-1.22-WXjXWy/../.. -locci -lclntsh -lpthread \
    chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so
    cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
    chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
    /usr/bin/perl "-Iblib/arch" "-Iblib/lib" ora_explain.PL ora_explain
    Extracted ora_explain from ora_explain.PL with variable substitutions.
    cp ora_explain blib/script/ora_explain
    /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ora_explain
    Manifying blib/man1/ora_explain.1p
    Manifying blib/man3/DBD::Oracle.3pm
    Manifying blib/man3/DBD::Oraperl.3pm
    Some clues or just forget it!
    Thanx, Alejandro

    I'm also a PostgreSQL man, so it should be easy to communicate.
    I can reproduce your problem with DBD::Oracle, and I guess that your problem is that the database is on a different machine, while "make test" assumes that it is on the same machine (like when you unset PGHOST in PostgreSQL).
    The error message means that for a local database Oracle expects a local "database name" in the environment variable ORACLE_SID, but the environment variable is unset (roughly equivalent to PGDATABASE).
    When you encounter connection problems with DBI, it's always a good idea to try to connect in the same way with the command line utility "sqlplus".
    In your case, I would say that the equivalent connection attempt with sqlplus would be:
    sqlplus scott/tiger
    which will probably give you the same error message, right?
    With your tnsnames.ora, I would recommend that you set the environment variable TWO_TASK to "caw".
    Then Oracle will look for the entry "caw" in tnsnames.ora (this is roughly comparable to setting PGSERVICE in PostgreSQL, where PGSYSCONFDIR corresponds to Oracle TNS_ADMIN).
    If your test login is not "scott/tiger", set ORACLE_USERID as described in README.login.txt.
    Yours,
    Laurenz Albe

  • Problem calling Oracle's procedure in Chain

    Hi
    In chain I call Oracle's procedure using ABAP code:
    ======================================
    REPORT  ZETL_MAIN.
    DATA: p_err_code TYPE i,
          p_msg(1000) TYPE c.
    EXEC SQL.
      EXECUTE PROCEDURE ETL.MAIN (OUT :p_err_code, OUT :p_msg)
    ENDEXEC.
    IF p_err_code = 0.
      MESSAGE  p_msg TYPE 'I'.
    ELSE.
      MESSAGE  p_msg TYPE 'E'.
    ENDIF.
    ============================================
    Every time after I change procedure, compile it
    and run chain for the first time, I recieve error.
    Doing nothing, I run chain the second time and it is
    completed with success.
    Does anybody know the reason of it ?
    Regards
    PWnuk

    Hi,
    The addition %ERRCODE is exclusively designed for internal use. It is no longer available as of Release 6.10
    please see the note 364707
    May be you can change code this way
    EXEC SQL.
    EXECUTE PROCEDURE
    sap_distr_utils_pkg.get_info_cli_prc(
    in :w_kunnr,
    out :nome1 )
    ENDEXEC.
    IF SY-SUBRC ne 0 OR nome1 ne 347.
        WRITE: / 'Wrong result for EXECUTE PROCEDURE:', nome1.
    ENDIF.

  • How to compile Oracle java strored procedure in Putty

    I have created a java strored procedure , which would be invoked by oracle function.
    This java stored procedure is get compiled via SQL plus. While compiling by the use of putty , it shows lots of compilation error .
    How to compile Oracle java strored procedure in Putty??

    You'll need to add the j2ee.jar to your classpath. Usually you'll have to add some jars from your app server to your classpath as well.
    For example (using weblogic):
    javac -classpath c:\java\j2ee\j2ee1.3.1\lib\j2ee.jar;c:\tools\appserver\weblogic\wl7.1\lib\weblogic.jar
    HelloServlet.java

  • How to compile Oracle procedure throught ODI procedure

    Hi
    Can any one help me how to compile oracle procedure through ODI11g
    I am awar of that, how to call oracle procedure in ODI and execute it.
    Please help me
    Regards,
    Phanikanth

    You want to know how to compile, or how to call, or both ?
    I don't know for compilation, but call a procedure is simple.
    You juste have to create an ODI Procedure and write the SQL statement like you do in a query editor.

  • Problem with calling a oracle stored procedure

    Hi,
    I am using the following callable statement to invoke a oracle stored procedure/function.
    String myCallableStmt="{?=call IB_DDL.CREATE_DATASET(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}";
    But I am getting the following errors which do not make sense to me
    Exception in thread "main" java.lang.NullPointerException
         at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:870)
         at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:956)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
         at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
         at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
         at org.jtdemo.CreateDataSet.callCreateDatasetProcedure(CreateDataSet.java:246)
         at org.jtdemo.Main.main(Main.java:29)
    Can anyone help me here.
    Thanks in advance
    Kalyan

    May be I have used the word "procedure" loosely. Its infact a oracle function which returns a message of type Varchar2. Hence "{?=.....} here is used for registering the return value from the function. The remaining statement CREATE_DATASET(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?), here the first 14 are input parameters whereas the last one is the OUT parameter of the function. Hope this helps. Anways I am pasting my code below...
    CallableStatement cstmt = null;
              String myCallableStmt="{?=call IB_DDL.CREATE_DATASET(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}";
              try {
                   System.out.print("Creating DataSet.......\n");
                   cstmt = targetCon.prepareCall(myCallableStmt);
                   cstmt.setObject("USER_ID_IN",this.USER_ID_IN);
                   cstmt.setObject("TABLE_NAME_IN",this.TABLE_NAME_IN);
                   cstmt.setObject("LAYOUT_IN",this.layoutCollection);
                   cstmt.setObject("DATA_TABLESPACE_IN",this.DATA_TABLESPACE_IN);
                   cstmt.setObject("INDEX_TABLESPACE_IN",this.INDEX_TABLESPACE_IN);
                   cstmt.setObject("STRING_POOL_NAME_IN",this.STRING_POOL_NAME_IN);
                   cstmt.setObject("NUMBER_POOL_NAME_IN",this.NUMBER_POOL_NAME_IN);
                   cstmt.setObject("DATE_POOL_NAME_IN",this.DATE_POOL_NAME_IN);
                   cstmt.setObject("LINK_POOL_NAME_IN",this.LINK_POOL_NAME_IN);
                   cstmt.setObject("DATASET_LEVEL_CONSTR_TYPE",this.DATASET_LEVEL_CONSTR_TYPE);
                   cstmt.setObject("DATASET_LEVEL_CONSTR_BODY",this.DATASET_LEVEL_CONSTR_BODY);
                   cstmt.setObject("POOLING_IN",this.POOLING_IN);
                   cstmt.setObject("SEGMENTATION_IN",this.SEGMENTATION_IN);
                   cstmt.setObject("DATASET_PARTITIONING_IN",this.DATASET_PARTITIONING_IN);
                   cstmt.registerOutParameter("DATASET_ID_OUT",OracleTypes.INTEGER);
                   cstmt.registerOutParameter("RETURN_MESSAGE",OracleTypes.VARCHAR);
                   cstmt.execute();
                   String returnMessage = (String)cstmt.getObject("RETURN_MESSAGE");
                   System.out.print(returnMessage);
              }catch(SQLException e) {
                   e.printStackTrace();
              }

  • ERROR compiling Oracle Forms 10g

    Hi,
    I am getting the following error while compiling Oracle 10g Forms on HP-UX 11.11:
    ./frmcmp_batch.sh module=/home/sneha/IAS_Upgrade/My_Forms/MY_MENUS.fmb USERID=user1/test123@orcl module_type=FORM OUTPUT_FILE=
    /home/sneha/IAS_Upgrade/OUTPUT/MY_MENUS.fmx compile_all=yes upgrade=yes build=yes
    Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.5.0 - Production
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.4.0 Production
    FRM-10043: Cannot open file.
    Form not created
    I am using Oracle 9.2.0.5 database and AS 10.1.2.
    The forms were earlier compiled on IAS 9.0.4
    Could someone please guide me as how to resolve this error?
    Thanks in advance,
    Sneha

    The problem was with a few environment variables. Our DBA has changed the convention of f90 and hence the change in environment variables.
    The problem is solved now.
    Thanks a lot for your help.
    -Sneha

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • Oracle Stored Procedure in Java

    I am try to write a stored procedure which is to written using java and then loaded into oracle. What this stored procedure does is insert some values into an oracle table. Here is a piece of code that i have tested before doing the whole real thing. But the stored procedure compiled, loaded into oracle without problems. Once the stored procedure is executed, it does nothing.
    Heres the code -
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class test{
    public static void insert()
    Connection cn = null;
    PreparedStatement ps = null;
    String sql ="INSERT INTO Testing.test VALUES ('JEFF')";
    try{
    cn = new OracleDriver().defaultConnection();
    ps.execute(sql);
    ps.close();
    cn.commit();
    cn.close();
    }catch(Exception e){
    Here is the table structure in Oracle 9i -
    Name Null? Type
    USER NOT NULL CHAR(12)
    Hope u guys can help me out.

    Once the stored procedure is executed, it does nothing.Actually it DOES do something - it throws a NullPointerException. You have a catch block with nothing in it, so your code doesn't report the problem.
    How do you execute this? Is there another class that calls it?
    This doesn't use a stored procedure. You need a java.sql.CallableStatement for that.
    Where did you get this code? Does it even compile?
    When I tried to create a table named "user" in my Oracle instance it complained. I made it "application_user" instead. How did you ever try this problem?
    I think you need a JDBC tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/
    Here's how I'd write it:
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    public class OracleInsertTest
        public static final String DRIVER   = "oracle.jdbc.driver.OracleDriver";
        // Substitute your host, database, username, and password
        public static final String DATABASE = "jdbc:oracle:thin:@host:1521:database";
        public static final String USERNAME = "username";
        public static final String PASSWORD = "password";
        public static void main(String [] args)
            if (args.length > 0)
                try
                    Class.forName(DRIVER);
                    Connection connection = DriverManager.getConnection(DATABASE, USERNAME, PASSWORD);
                    String sql = "INSERT INTO application_user(name) VALUES(?)";
                    PreparedStatement statement = connection.prepareStatement(sql);
                    statement.setString(1, args[0]);
                    int numRowsInserted = statement.executeUpdate();
                    System.out.println("# rows inserted: " + numRowsInserted);
                    statement.close();
                    connection.close();
                catch (Exception e)
                    // Empty catch blocks are usually a very bad idea.
                    e.printStackTrace();
            else
                System.err.println("No command line argument given");
    }MOD

  • Ora-04021 error while compiling a stored procedure

    Hi Gurus,
    I am getting a ora-04021 timeout error while trying to compile a stored procedure. My Oracle version is 9i on Unix.
    Thanks
    Amitava.

    amitavachatterjee1975 wrote:
    Hi Gurus,
    I am getting a ora-04021 timeout error while trying to compile a stored procedure. My Oracle version is 9i on Unix.
    Thanks
    Amitava.
    my car won't go.
    tell me how to make my car go.
    How do I ask a question on the forums?
    https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360002
    [oracle@localhost ~]$ oerr ora 4021
    04021, 00000, "timeout occurred while waiting to lock object %s%s%s%s%s"
    // *Cause:  While waiting to lock a library object, a timeout occurred.
    // *Action: Retry the operation later.
    [oracle@localhost ~]$

  • Problem in calling a stored procedure by passing few arguments.

    Hi Friends,
    I am converting a Purchase module which is developed in forms3. In that Copy PO is one page which uses to copy previously generated PO. Now I have a situation that coping a record of few tables into same tables by modifying few columns. First I need to display one table record in a page which is read only and same data have to be displayed in the same page which can be modify. Depending on the changes now i need to insert a new record into the table and remaining related table data should be copied as well. This should be done by using stored procedure.
    while I trying this I am getting following error.
    1.     JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=Error : java.sql.SQLException: ORA-06550: line 1, column 16: PLS-00201: identifier NUM must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    2.     Error : java.sql.SQLException: ORA-06550: line 1, column 16: PLS-00201: identifier NUM must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    3.     JBO-25009: Cannot create an object of type:java.lang.Number with value:79
    Please Help me to solve this, I will be waiting for your valuable reply.(Email :[email protected])

    Probably problem is inside PL/SQL procedure. PLS-00201: identifier NUM must be declared indicates for this.

Maybe you are looking for

  • Motion 4 crashes while trying to save or export

    The program works fine when I'm in it, but crashes the minute I try to save or export.  Here is what I have tried to do so far.  First I just unistalled Motion from a article I found off of Apple's website and then re-installed.  Didn't work.  I then

  • Background job hanging reasons

    background job hanging reasons

  • MB5B : show the material slip

    Hello, I'm using MB5B to have a report of stocks with material movement. When I make some material movement, I have filled the "material slip" field. How to get it in report MB5B ? thanks a lot.

  • X2-01

    i do have x2-01, my problem is that after i restored all factory settings, i lost many information including games, themes, and tones which were already stored by nokia....infact my phone is now empty...nw hw can i get bek all the information which w

  • Driver not capable

    My Delphi application runs fine on Oracle8 and Oracle9 (SQLServer, Informix, Sybase, Access) databases but when connecting to an Oracle7.34 database the ODBC driver (Oracle2.05.03.01B)(Manager 3.520.5303.2) returns; "Oracle][ODBC Oracle Driver] Drive