Compile Package with DreamCoder

Hi
I compile the package and debugge with DreamCoder for oracle and is very easy for all PL/SQL developers.
All task for developers is simple with this product .
URL : http://www.mentattech.com
Regards,
Peter

I have tried dropping the package and re-compiling it but to no avail. I can compile other packages/procedures/functions without any issues.
Also, trying to run either EXEC UTL_RECOMP.recomp_parallel(4, 'SCHEMA_NAME'); or @?/rdbms/admin/UTLRP.SQL gives the following erros:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Process ID: 7040
Session ID: 388 Serial number: 9039
ERROR:
ORA-03114: not connected to ORACLE
DOC> The following query reports the number of objects that have compiled
DOC> with errors (objects that compile with errors have status set to 3 in
DOC> obj$). If the number is higher than expected, please examine the error
DOC> messages reported with each object (using SHOW ERRORS) to see if they
DOC> point to system misconfiguration or resource constraints that must be
DOC> fixed before attempting to recompile these objects.
DOC>#
ERROR:
ORA-03114: not connected to ORACLE
DOC> The following query reports the number of errors caught during
DOC> recompilation. If this number is non-zero, please query the error
DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC> are due to misconfiguration or resource constraints that must be
DOC> fixed before objects can compile successfully.
DOC>#
ERROR:
ORA-03114: not connected to ORACLE
ERROR:
ORA-03114: not connected to ORACLE
ERROR:
ORA-03114: not connected to ORACLE
ERROR:
ORA-03114: not connected to ORACLE
ERROR:
ORA-03114: not connected to ORACLE

Similar Messages

  • Trouble compiling package with JDK 1.4

    Hi,
    I just installed JDK 1.4 on a new machine, now I have trouble running compile scripts that used to work on my old machine. The old an new are configured with Win 2000. The following compiles without problem:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\MyClass.java"
    Changing this statemetn to:
    javac -classpath "..." -d "..." "c:\.....\com\...\some package\*.java"
    should compile all Java files in 'some package', instead what I get is the following error message:
    error: cannot read: c:\.....\com\...\some package\*.java
    The documentation says that this should still work. Anyone aware of changes in 1.4 that could cause this problem?
    Thanks for responding

    As a work-around, you can use some Unix-styled shell (that is, command processor) which expands the *.expression into the list of the matching file names, thus releaving javac from this task. (Caveat: directory names with a space inside will cause problems.)
    I can recommend the Cygnus package (including the command processor "bash") or "MinGW", the Minimalist GNU For Windows with its simpler sh:
    http://www.mingw.org/
    ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/porters/Mikey/

  • How to compiling package with j2sdk

    can I just use one command line to compilng a package under J2SDK?

    I'm sure I'm not really doing you any favours here since wherever you would go otherwise (like a tutorial) would teach you much more than the simple answer to your question but, if you'll promise (no crossed fingers) to go and look at the tutorial mentioned by jesperdj then I'll tell you...
    javac dir1\*.java dir1\dir1a\*.java dir2\*.javai.e. list all the directories you want compiled, with spaces in between.
    Chris.

  • Got Error While Compiling Packages with TOAD (URGENT)

    Dear Experts,
    Please help me to resolve this erroe this is very criticla.
    ORA-20000: You have insufficient privileges for an objects in this schema
    ORA-06512: at "SYS.DBMS.UTILITY" LINE 422
    ORA-06512: Line 1

    You should be connected to the user that owns the packages, or SYS.

  • Compiling packages with libapr in it, strange link errors

    On my Solaris 10 boxen, suddenly I cannot build stuff anymore that utilizes Apache's apr.
    This includes Apache 2 (2.0.53 and 2.0.54), and subversion.
    The funny thing is, I did build 2.0.53 a few weeks ago, and did not bump into the problem. Rebuilding it, with identical configure options, environment vars and make invocation, leads to the following errors.
    They make little sense to me. Clues, anyone?
    The following output is from an attempt to build subversion. The same errors occur when building Apache 2:
    ---- Snip ----
    phil@turing> pwd; cat PHIL/build
    /phil/sw/sunos/i386/obj/subversion-1.1.4
    #! /bin/sh
    unset CPPFLAGS
    unset LDFLAGS
    unset LD_LIBRARY_PATH
    LD_RUN_PATH=/phil/sw/sunos/i386/lib; export LD_RUN_PATH
    /phil/sw/src/subversion-1.1.4/configure \
    --prefix=/phil/sw/sunos/i386/pkg/subversion-1.1.4  \
    --disable-mod-activation  \
    --enable-javahl  \
    --with-berkeley-db=/phil/sw/sunos/i386/pkg/db-4.2.52  \
    --with-editor=vi  \
    --with-zlib
    make
    phil@turing> sh ./PHIL/build
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_tryrdlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_exit@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setstacksize@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_create@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlerror@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `write@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_key_delete@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_create@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_setspecific@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `gethostname@SUNWprivate_1.1'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `open@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `writev@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_trywrlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `waitpid@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `fcntl@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_init@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_join@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `select@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_sigmask@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutex_consistent_np@SUNW_1.3'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_setrobust_np@SUNW_1.3'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_equal@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_destroy@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_init@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlopen@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_mutexattr_settype@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_getdetachstate@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_detach@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `read@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_getspecific@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `poll@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_attr_setdetachstate@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlsym@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_rdlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_wrlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_self@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `dlclose@SUNW_1.22'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_rwlock_unlock@SUNW_1.2'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/subversion/libsvn_subr/.libs/libsvn_subr-1.so: undefined reference to `fsync@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `pthread_once@SUNW_0.9'
    /phil/sw/sunos/i386/obj/subversion-1.1.4/apr/.libs/libapr-0.so: undefined reference to `sigaction@SUNW_0.9'
    collect2: ld returned 1 exit status
    make: *** [subversion/clients/cmdline/svn] Error 1
    ---- Snip ----

    Same thing with curl and others....
    root@sol10[20:50] > gcc -v
    Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.4/specs
    Configured with: ./configure --prefix=/usr/local
    Thread model: posix
    gcc version 3.4.4
    What gives?
    make[2]: Entering directory `/home/src/curl-7.14.0/lib'
    make[2]: Leaving directory `/home/src/curl-7.14.0/lib'
    make[1]: Leaving directory `/home/src/curl-7.14.0/lib'
    Making all in src
    make[1]: Entering directory `/home/src/curl-7.14.0/src'
    make all-am
    make[2]: Entering directory `/home/src/curl-7.14.0/src'
    /bin/ksh ../libtool tag=CC mode=link gcc -g -O2 -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/libcurl.la -lsocket -lnsl -lz
    gcc -g -O2 -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o strtoofft.o timeval.o ../lib/.libs/libcurl.so -lsocket -lnsl -lz -Wl,--rpath -Wl,/usr/local/lib
    ../lib/.libs/libcurl.so: undefined reference to `dlopen@SUNW_1.22'
    ../lib/.libs/libcurl.so: undefined reference to `dlsym@SUNW_1.22'
    ../lib/.libs/libcurl.so: undefined reference to `dlclose@SUNW_1.22'
    collect2: ld returned 1 exit status
    make[2]: *** [curl] Error 1
    make[2]: Leaving directory `/home/src/curl-7.14.0/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/src/curl-7.14.0/src'
    make: *** [all-recursive] Error 1

  • Execution of Immediate SQL in compiled package in two versions of SQL*PLUS

    A peculiar problem has risen in our database.
    Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results
    We have a compiled package with two procedures that contain immediate SQL statements, and these are:
    +PROC_DELETE_ROWS+
    +     -- This immediate sql deletes unreferenced Document Types from the DOC_REF_TYPE table+
    +     delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)+
       +     and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)+
       +     and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)+
       +     and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)+
    +PROC_ADD_NEW_ROWS+
    +     -- Drop the temporary table+
    +     drop table TMP_PROARC_DOC_REF_TYPE+
    +     -- Create a temporary table+
    +     create table tmp_PROARC_DOC_REF_TYPE as+
    +     select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC+
    +     from PROARC_DOC_REF_TYPE_VW+
    +     -- Insert document types that do not exist in the DOC_REF_TYPE table+
    +     insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)+
            +     select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s+
            +     where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)+
    I am using the following test script:
    +Exec mypackage.proc_delete_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+
    +Exec mypackage.proc_add_new_rows;+
    +Commit;+
    +Select count(*) from DOC_REF_TYPES;+We have a Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    I am using SQL*Plus: Release 8.1.7.0.0
    The test script is working as expected.
    Count after delete =155
    Count after insert = 511
    but when I use another computer with SQL*Plus: Release 10.x
    The Test script returns the following
    Count after delete =155
    Count after insert =155
    The same is happening when I am running the scripts as a scheduled job.
    QUESTION:
    I believe I have found a fix for the problem though. By changing tmp_PROARC_DOC_REF_TYPE in the insert statement to all upper case, the script is running in both environments apparently. But how is this possible? I am executing a compiled package in the database. The session shell should have no impact on the behaveour of the procedure I am calling. What causes this?
    Edited by: Reon on Jun 16, 2011 4:44 AM

    1) I am using the same user (PANDORA)
    2) (PANDORA) for both
    3) I am actually not handling any errors. Just skipping any error altogether. I'll check to see what exceptions are raised, and come back.
    I have also noticed that SQL/PLUS is not the culprit here. If I use SQLTools 1.5 to run the script, the same thing happens. So it has to do something with the connection or session environment that is inheritet to both clients.
    The CODEZ:_
      procedure add_doc_types IS
      sqlstr     VARCHAR2(2000);
      begin
      BEGIN
           sqlstr := 'drop table TMP_PROARC_DOC_REF_TYPE';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      BEGIN
           sqlstr := 'create table tmp_PROARC_DOC_REF_TYPE as select DOC_REF_TYPE, substr(DOC_REF_TYPE_DESC,1,100) as DOC_REF_TYPE_DESC from PROARC_DOC_REF_TYPE_VW';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
        BEGIN
            sqlstr := 'insert into doc_ref_type t (DOC_REF_TYPE, DOC_REF_TYPE_DESC)
                    select distinct DOC_REF_TYPE, DOC_REF_TYPE_DESC from TMP_PROARC_DOC_REF_TYPE s
                    where not exists (select 1 from doc_ref_type t where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
            sqlstr := 'update doc_ref_type t set DOC_REF_TYPE_DESC = (
                    select DOC_REF_TYPE_DESC from tmp_PROARC_DOC_REF_TYPE s
                    where t.doc_ref_type = s.doc_ref_type)
                    where exists (select 1 from tmp_PROARC_DOC_REF_TYPE s where t.doc_ref_type = s.doc_ref_type)';
         EXECUTE IMMEDIATE sqlstr;
        EXCEPTION
          WHEN OTHERS THEN
            null;
        END;
      end add_doc_types;
      procedure delete_doc_types IS
      sqlstr     VARCHAR2(2000);
       BEGIN
            sqlstr := 'delete from doc_ref_type t where exists (select 1 from PROARC_DOC_REF_TYPE_VW d where d.doc_ref_type = t.doc_ref_type)
            and not exists (select 1 from doc_ref d where d.doc_ref_type = t.doc_ref_type)
            and doc_ref_type not in (select doc_ref_type from eis_doc_ref_type)
            and doc_ref_type not in (select eis_doc_ref_type from eis_doc_ref_type)';
          EXECUTE IMMEDIATE sqlstr;
         EXCEPTION
           WHEN OTHERS THEN
             null;
      end delete_doc_types;Edited by: Reon on Jun 16, 2011 2:01 AM

  • Package compile faile with error ORA-03113: end-of-file on communication..

    Hi There,
    We're trying to compile a package and we're getting this error that we're not sure how to debug and/or tackle. Your assistance is highly appreciated.
    create or replace
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 4252
    Session ID: 1149 Serial number: 5910
    The package use to compile without any issues; also we have it working in other environments. We can't see any differences at this stage.
    Oracle Version:11.2.0.1 x64
    OS: Windows 2008 Server R2
    Thanks in advance for your help.
    Thanks

    I have tried dropping the package and re-compiling it but to no avail. I can compile other packages/procedures/functions without any issues.
    Also, trying to run either EXEC UTL_RECOMP.recomp_parallel(4, 'SCHEMA_NAME'); or @?/rdbms/admin/UTLRP.SQL gives the following erros:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7040
    Session ID: 388 Serial number: 9039
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of objects that have compiled
    DOC> with errors (objects that compile with errors have status set to 3 in
    DOC> obj$). If the number is higher than expected, please examine the error
    DOC> messages reported with each object (using SHOW ERRORS) to see if they
    DOC> point to system misconfiguration or resource constraints that must be
    DOC> fixed before attempting to recompile these objects.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    DOC> The following query reports the number of errors caught during
    DOC> recompilation. If this number is non-zero, please query the error
    DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors
    DOC> are due to misconfiguration or resource constraints that must be
    DOC> fixed before objects can compile successfully.
    DOC>#
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE
    ERROR:
    ORA-03114: not connected to ORACLE

  • How to use single ant build to package with and without native extensions

    Hi,
    I am using iOS native extensions for Adobe air. For this I am listing the extensionid in the application descriptor file. Since the package with native extensions are meant to run only on device, I want my build script to work without native extensions too to be able to run on simulator. Is this manadatory that I need two separate application descriptors/basically two build scripts to compile and package them? Please suggest and let me know if more explanation is needed.
    Thanks,
    Swathi.

    why are you wanting to use single frames?
    They allow having the initial frame address stay in the
    address bar, and not
    show the linked page's address. The problems they cause
    usually override any
    value.
    Or- if we aren't using the same words the same way, please
    give an example
    site of what you want to do.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • OWB Can't Import Existing Package with Collection Data Type as Arguments

    I created a package and compiled it successfully as the follows:
    +++++++++++++++++++++++++++++
    CREATE OR REPLACE PACKAGE PACKAGE_TEST AS
    TYPE Num_LIST IS TABLE of NUMBER INDEX BY BINARY_INTEGER;
    FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER;
    FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER;
    END PACKAGE_TEST;
    CREATE OR REPLACE PACKAGE BODY PACKAGE_TEST AS
    FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER IS
    ln_sum NUMBER;
    BEGIN
    ln_sum := arg1 + arg2;
         RETURN ln_sum;     
    EXCEPTION
    WHEN OTHERS THEN
    RETURN -10000;     
    END TEST_FUNCTION1;
    FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER IS      
         ln_sum NUMBER;
    BEGIN
    ln_sum :=0;
         FOR i IN 1.. args.COUNT LOOP
         ln_sum := ln_sum + args( i );     
         END LOOP;     
         RETURN ln_sum;     
    EXCEPTION
    WHEN OTHERS THEN
    RETURN -10000;     
    END TEST_FUNCTION2;     
    END PACKAGE_TEST;
    ++++++++++++++++++++++++++++++++++++++++
    Then I tried to import the package into OWB (9.2). The problem came: all the package body and
    the specification of TEST_FUNCTION1 were imported, but the package specification of
    TEST_FUNCTION2 couldn't be imported. The IMPORT FILTER gave an error message:
    "TEST_FUNCTION2: Argument Data type is not supported".
    How to resolve this problem? It is very import for our project, since we have to import some
    packages with user_defined collection data types as arguments.
    Thank you.
    Lushu

    Hi Lushu,
    Unfortunately this is indeed not supported and I would not know how to work around this one. The only way I guess that this would work is to not import it, and then use Expressions to call the function with inputs.
    Jean-Pierre

  • Compiling packages

    Hi all,
    I have problem on compiling packages.
    Here is the structure of the directory
    1:path is c:\java
    2:Created a directory inside java folder called test1 as parent directory,then I created a new folder calledd test2 inside the test1.(c:\java\test1\test2).
    3. I have created java class called House.java in which I have declared a package
    package  test1.test2;4.I have created the main class HouseMain.java with
    code]package test1.test2;
    5.I have copied all the java class in the folder test2.
    I cant get it compiled even after setting the classpath.
    Can anyone help me please how to compile ?.
    Thank you

    Hi all,
    I have problem on compiling packages.
    Here is the structure of the directory
    1:path is c:\java
    2:Created a directory inside java folder called
    test1 as parent directory,then I created a new
    folder calledd test2 inside the
    test1.(c:\java\test1\test2).
    . I have created java class called House.java in
    which I have declared a package
    package  test1.test2;4.I have created the main class HouseMain.java with
    code]package test1.test2;I have copied all the java class in the folder
    test2.
    I cant get it compiled even after setting the classpath.
    Can anyone help me please how to compile ?.
    Thank youTry this:
    Navigate to c:\java and type exactly this:
    javac -classpath . -d . test1\test2\*.javaNote the "dot" after both -classpath and -d. Read the javac docs to make sure you understand what those mean.
    You should see all the .class files in the same directory as your .java files. (Not the best idea, but easy for now.)
    To run, type this:
    java -classpath . test1.test2.HouseMain%

  • Compiling Packages like PKG_READ_BLOB_IMAGE.pks

    Hi All,
    Can anyone help me how to compile or use the packages like PKG_READ_BLOB_IMAGE.pks or PKG_READ_BLOB_IMAGE.pkb
    Thanks
    Arif

    Hello,
    This package is part of a private Java Bean article. It would be nice if the person that ask a question could give a minimum of information instead of waiting for other people to spend time trying to understand what is behind the question.
    You can compile this package with Sql*Plus, Sql Developer, TOAD, or any software capable of compiling a package in a database.
    Francois

  • Compiling packages or procedures

    Hello,
    I am compiling a package , procedures etc. The query comes back with invalids. I have show error. How do I retrieve more detail information about why the package/procedure/view are invalid?
    DECLARE
                    v_status       VARCHAR2(10);
                    v_cmd          VARCHAR2(150);
                    Cursor rw_objects
                     IS
                      Select object_name,object_type,status,owner
                      From dba_objects
              WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
              AND owner = UPPER('&&DW_SCHEMA')
                      AND status = 'INVALID';
             BEGIN
                 FOR  t IN rw_objects
                           LOOP
                                  IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
                                      v_cmd  := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';  
                                     execute immediate v_cmd;
                         ELSIF
                                     t.object_type ; = ('PACKAGE') THEN                                 
                                     v_cmd  := 'ALTER  PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';  
                                     execute immediate v_cmd;  
                                  ELSIF                               
                                      t.object_type ; = ('PACKAGE BODY') THEN                                 
                                      v_cmd  := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';  
                                     execute immediate v_cmd;  
                                    dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
                                  END IF;
                    END LOOP;
    END;
    SELECT   object_name, object_type, status                    
                   FROM  dba_objects
                   WHERE STATUS = 'INVALID'     
                   AND UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
                   AND owner = UPPER('&&DW_SCHEMA')
               ORDER by object_type;
    show errors; Here are the results.
    OBJECT_NAME                                                                OBJECT_TYPE         STATUS                            
    PM206                                                                           PACKAGE BODY        INVALID
    DW_BE_DFACT_TB_REFRESH_HANDLER                            PACKAGE BODY        INVALID
    DW_BE_DFACT_TB_INITIAL_HANDLER                               PACKAGE BODY        INVALID
    CHART_HANDLER                                                            PACKAGE BODY        INVALID
    DW_CRS_HANDLER                                                          PACKAGE BODY        INVALID
    DELETE_UPDATE_PROC                                                   PROCEDURE           INVALID
    DW_CBS_PROC                                                              PROCEDURE           INVALID
    DW_GL_DFACT_VW                                                           VIEW                INVALID
    8 rows selected.
    No errors.

    too bad COPY & PASTE are broken for you!
      1  DECLARE
      2                  v_status       VARCHAR2(10);
      3                  v_cmd          VARCHAR2(150);
      4                  Cursor rw_objects
      5                   IS
      6                    Select object_name,object_type,status,owner
      7                    From dba_objects
      8            WHERE UPPER(object_type) IN ('VIEW','PROCEDURE','FUNCTION','PACKAGE', 'PACKAGE BODY','TRIGGER','SYNONYM')
      9            AND owner = UPPER('&&DW_SCHEMA')
    10                    AND status = 'INVALID';
    11           BEGIN
    12               FOR  t IN rw_objects
    13                         LOOP
    14                                IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
    15                                    v_cmd  := 'ALTER ' || t.object_type || ' ' || t.owner||'.'||t.object_name || ' COMPILE ';
    16                                   execute immediate v_cmd;
    17                       ELSIF
    18                                   t.object_type ; = ('PACKAGE') THEN
    19                                   v_cmd  := 'ALTER  PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE PACKAGE';
    20                                   execute immediate v_cmd;
    21                                ELSIF
    22                                    t.object_type ; = ('PACKAGE BODY') THEN
    23                                    v_cmd  := 'ALTER PACKAGE ' || ' ' || t.owner||'.'||t.object_name || ' COMPILE BODY';
    24                                   execute immediate v_cmd;
    25                                  dbms_output.put_line( rpad( t.object_type || ' ' || t.object_name, 50, ' ' ) || ' VALID ');
    26                                END IF;
    27                  END LOOP;
    28* END;
    29  /
    old   9:           AND owner = UPPER('&&DW_SCHEMA')
    new   9:           AND owner = UPPER(' USER1')
                                  IF  t.object_type ; IN ('SYNONYM','VIEW','TRIGGER','PROCEDURE','FUNCTION') THEN
    ERROR at line 14:
    ORA-06550: line 14, column 49:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    The symbol ";" was ignored.
    ORA-06550: line 18, column 48:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset
    ORA-06550: line 22, column 49:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( * @ % & = - + < / > at in is mod remainder not rem then
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset
    SQL>

  • Import package with .* in jsp

    If i want to use HashMap in jsp page i need to have HashMap of util package in import statment in
    page directive.
    What is difference in Using
    a) <%@ page import="java.util.HashMap"%>
    b) <%@ page import="java.util.*"%>
    Is there any performance issue using importing package with .*

    Ofcourse there will be a performance issue. In the
    second case (<%@ page import="java.util.*"%>
    ) , you are loading all the classes in java.util
    package into your JSP, where as in the first case you
    are getting only HashMap. So the second option will
    affect the performance. Always import only the
    required classes.
    rgdsThen you have no idea how import works. The only difference at all would come at compile time. After the page is compiled, there would be no performance issue whatsoever.
    The main reason for doing one or the other way (same for any Java class) is clarity for those reading the code. Meaning if you use the full import, when they see "HashMap" in the code, they can look at the import statements and be sure that it's in java.util package. But generally, most people are going to be familiar with the classes in the common packages, like java.util. So I wouldn't generally list the specific classes if you are using more then one from the same package. There are other considerations where packages have classes of the same name (java.sql.Date & java.util.Date) but generally, I would always just put the full class name in the code.

  • OpenSSH 4.4p1 packages with PAM support for Solaris 9, 10

    As mentioned in a previous post* , I've compiled OpenSSH packages with PAM support for Solaris 9 and 10. They've since been updated to version 4.4p1, and are compiled against a static zlib (1.2.3) and OpenSSL (0.9.8c). You can find them here:
    http://firewallworks.com/downloads/unsupported/Solaris-sparc/
    Regards,
    Greg
    * http://forum.sun.com/jive/thread.jspa?threadID=103378&tstart=105

    Yes, zlib 1.2.3 is a requirement. In facts, zlib mentions a 2005 vulnerability fix but I found no matching patch in sunsolve. See
    http://www.kb.cert.org/vuls/id/JGEI-6E7RC3
    I have been wandering whether to replace the official zlib. Linking statically is probably a better idea. Thanks

  • How do i get error after compiling package

    Hi ,
    i am compiling some packages by sys schema of hr schema as
    alter package hr.example compile package
    but it shows compiled with error
    how can i see that errors as i dont know the password of hr schema ..
    Thanks in advance

    First of all you should not be using SYS to compile anything ... create a DBA account.
    Second there is not need to be HR to see the errors ... type "SHO ERR" and you should see the errors and if that does not work there is always the simple
    SELECT * FROM dba_errors;In the future please do not post questions without full version number and, when possible, screen scrapes (cut and paste) so we can see what you are doing.

Maybe you are looking for

  • My macbook pro (late 08) won't power on

    Greetings, I've been searching around in the forums and didn't find anyone with the same problem that have had this issue solved. The problem started about a month ago when i accidently left the computer running out of battery during the night. The d

  • How can I edit a DVD Template for Premiere Elements 10?

    In previous versions of Premiere Elements, I would edit DVD Templates using Photoshop or Photoshop Elements to include my logo and change the color or tint of the background. Now, I can only see the Fun template in the DVD Templates folder. I want to

  • How to pay USD invoice with SGD in Incoming Payment with a diff FX Rate?

    Dear Experts, My system configuration is: LC: SGD SC: USD I have a USD invoice that I will like to pay off with an incoming payment, But i will like to pay it off with SGD. The date is 1/1/2010 and the USD exchange rate is 1.5 for this day. However I

  • VRML Loader

    Hi, I'm trying to create a very simple VRML viewer in Java and I have problems using the official VRML loader from j3d.org. Actually, Java 3D seems to work fine (I've successfully compiled and run a 3D, rotating cube), but when it comes to VRML scene

  • Get Calling Application Name

    How can I get the name of the Application I use to connect to the DB from within a procedure/view? The user ID used has no DBA or system privileges, so it can not use v$Session.... Thanks in advance for any help Jerome