Automate object compilation using Sqlplus

Hi,
Why is that when you try to compile an object in sqlplus it prompts for you to hit the '/' key and then enter key. Is there a way to not wait for those key entries and compile automatically.
For eg. when I issue a command like
c:\Sqlplus> @c:\proca.pkg
it get the following
c:\sqlplus> @c:proca.pkg
436
It basically waits at the line number 436 and then I have to hit "/" and enter key to get the message Package Created.
I would like to suppress that and want the package compiled without user inputs.
Any help would be appreciated.
Thanks
Ash

Put the '/' inside in your package it won't prompt that again.
Regards.
Satyaki De.

Similar Messages

  • How to compile all package body using sqlplus ?

    hi all,
    How to compile all package body using sqlplus ?
    Please help.
    Amy

    dbms_utility.compile_schema will compile all the invalid objects in a schema, including the invalid package bodies. If you only want to compile the invalid package bodies, you could write your own dynamic SQL stored procedure to do that using the user_source view, but that's a lot more effort for a very minimal benefit.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • ORA00932 inconsistent datatypes For member methods in SQLJ Object called from SQLPlus

    Hi, I would very much appreciate advice on the following problem, its a tricky one, here are the full details....
    A) EXECUTIVE SUMMARY....
    I have created an oracle object type by wrapping a SQLData java object with the Oracle Create type statement. I am using Oracle 9i on NT4. However despite following the very few Oracle examples I could find, I get the following error....
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypesHere is what I've done...
    1) Create Java object using SQLData interface (see listing below)
    2) Load the Java source to Oracle 9i
    3) Run the Oracle Create Type statement to wrap the java class
    4) Use the objects in a table and successfully insert rows and query attributes using SQLPlus
    5) Find I can't pull back data from any instance methods without getting an "inconsistant datatypes" error for both string and int datatypes. (see below for queries and output from SQLPlus)
    B) STEP BY STEP DETAILS FOLLOW......
    1) Java Source (in file \dealcalcs\Dealtest.java)
    package dealcalcs;
    import java.sql.SQLException;
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleTypes;
    import java.sql.*;
    public class Dealtest implements SQLData
    public static final String SQLNAME = "SWITCHBLADE_DATA.DEALTEST";
    public static final int SQLTYPECODE = OracleTypes.STRUCT;
    protected java.math.BigDecimal m_dealid;
    protected java.sql.Timestamp m_startdate;
    protected String m_dealtype;
    protected Double m_facevalue;
    /* constructor */
    public Dealtest() { }
    public void readSQL(SQLInput stream, String type)
    throws SQLException
    setDealid(stream.readBigDecimal());
    setStartdate(stream.readTimestamp());
    setDealtype(stream.readString());
    setFacevalue(new Double(stream.readDouble()));
    if (stream.wasNull()) setFacevalue(null);
    public void writeSQL(SQLOutput stream)
    throws SQLException
    stream.writeBigDecimal(getDealid());
    stream.writeTimestamp(getStartdate());
    stream.writeString(getDealtype());
    if (getFacevalue() == null)
    stream.writeBigDecimal(null);
    else
    stream.writeDouble(getFacevalue().doubleValue());
    public String getSQLTypeName() throws SQLException
    return SQLNAME;
    /* accessor methods */
    public java.math.BigDecimal getDealid() { return m_dealid; }
    public void setDealid(java.math.BigDecimal dealid) { m_dealid = dealid; }
    public java.sql.Timestamp getStartdate() { return m_startdate; }
    public void setStartdate(java.sql.Timestamp startdate) { m_startdate = startdate; }
    public String getDealtype() { return m_dealtype; }
    public void setDealtype(String dealtype) { m_dealtype = dealtype; }
    public Double getFacevalue() { return m_facevalue; }
    public void setFacevalue(Double facevalue) { m_facevalue = facevalue; }
    //These last two are the member methods I call
    public String testme(){
    String tmp = new String("testme worked");
    return tmp;
    public int testint(){
    int tmp = 0;
    tmp = 88;
    return tmp;
    2, 3, 4) Here is how I wrap the uploaded SQLJ object, create a table using it, and put a row in it....
    create or replace type deal_t as object
         external name 'dealcalcs.Dealtest'
    LANGUAGE JAVA USING SQLData (
    DEALID NUMBER (11) external name 'dealid',
    STARTDATE DATE external name 'startdate',
    DEALTYPE VARCHAR2 (50) external name 'dealtype',
    FACEVALUE FLOAT (49) external name 'facevalue',
    MEMBER FUNCTION testme RETURN VARCHAR2
         EXTERNAL NAME 'testme() return java.lang.String',
    MEMBER FUNCTION testint RETURN NUMBER
         EXTERNAL NAME 'testint() return int'
    ) not final
    create table dealsobjtab of deal_t;
    insert into dealsobjtab values ( deal_t(1, to_date('1/jan/1968'), 'NZD/NZD', 500))
    COMMIT
    5) Here I select attributes from the object table, and select using the two member methods, note that my member methods fail miserably, and advice on fixing this would be much appreciated....
    select * from dealsobjtab aaa
    DEALID STARTDATE DEALTYPE FACEVALUE
    1 01/01/1968 NZD/NZD 500
    1 row selected
    select value(aaa).dealid from dealsobjtab aaa
    VALUE(AAA).DEALID
    1
    1 row selected
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    Phew, that was a long email, I hope you are still awake after all that. I have no idea how to solve this, and would really appreciate some advice to get me going.
    Yours Sincerely,
    Michael Cato

    But, i am receiving the error i have mentioned. is it depends on the java version also?
    Please suggest..

  • Unable to connect using sqlplus using Oracle 11.2.0.1 32bit(x86) client

    I have database running on Oracle 11.2.0.3 on Linux 5.5 64bit. Another server where I have installed Oracle Client 11.2.0.1 32-bit (x86). (http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html).
    But I can not do tnsping, I get segementation fault. Additionally, I can not to database using sqlplus <user>@SID. I get prompted for the password, then I am back the unix prompt again without any error.
    For debugging, I installed 64bit version of the client, which can connect to database. I am using same version/copy of tnsnames.ora. No special character (^M) in the tnsnames.ora.
    Any suggestions how do I get this fixed?
    Thanks,
    KP

    I figure I should update my findings on the resolution.
    during Oracle 11.2.0.1 client installation, there was an error/warning message about oracle net configuration assistant unable to run. So, I had ignore it thinking its benign and created the tnsnames.ora file manually. On a hunch after 9 days of debugging, i decided to look into this warning message, and found some info in the ora32Inventory/logs/installAction-<date>.log. It had following error about java when running oracle net config.
    INFO: # Java VM: Java HotSpot(TM) Server VM (1.5.0_17-b02 mixed mode)
    INFO: # Problematic frame:
    INFO: # C [libnnz11.so+0x3c35e]
    So, I google the error, and after some research and reading, found an oracle patch to address this error:
    ORA-24550: SQL*Plus 32-Bit Client May Crash On Linux X86-64 OS With AMD Processor [ID 1120724.1]
    Patch info: 8670579 - DBBETA :NETCA/DBCA FAILED WITH HOTSPOT VIRTUAL MACHINE
    Typically, this patch (8670579) is installed on Oracle RAC. however I tried on my app server (oracle client). It resolved my sqlplus issue and more importantly it resolve my application (Business Objects/BSAE) installation issue where it was unable to connect to oracle database using 11.2.0.1 client.
    Cheers,
    KP

  • How to set .oraenv command in linux to use sqlplus.

    Hi
    I have installed oracle 11.1.0.6.0 in Oracle Enterprise Linux 5.
    My problem is every time i use sqlplus, i have to execute .oraenv at first. There it always asks me to enrer ORACLE_SID = [oracle] ?
    Is there any way to fix it permanently?
    Thanks

    user576726 wrote:
    Thanks
    Could you please tell me how to export those variables? because I am new in Linux.Actually it depends on your system. While installing Oracle 10g on Linux, I make the following changes to .bashrc file in order to connect to database automatically without defining the same variables once more
    export ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1
    export ORACLE_SID=your_database_sid
    export PATH=$ORACLE_HOME/bin:$PATH

  • How to view stored procedure using SQLPlus

    I have created the following stored procedure in Oracle, I would like to know how to view this stored procedure using SQLPlus:
    CREATE PROCEDURE get_product_code(prod_no IN VARCHAR2) IS
         CURSOR Getno IS
              <my_query_goes_here>
         BEGIN
              For Getno_cur IN Getno LOOP
              DBMS_OUTPUT.PUT_LINEGetno_cur.name);
              END LOOP;
         END;
    run;

    Hi,
    You can also use USER_SOURCE in place of ALL_SOURCE, for getting your own procedure code (or any pl/sql schema object).
    Regards

  • Where we can test the SAP objects by using eCATT?

    Hi Abapers,
    Where we can test the SAP objects by using eCATT?Is there any separate software or tool we have to install or its included in the SAP itself?
    I have ECC5.0 version?how can i configure or install eCATT?
    Please explain the step by step procedure?
    Early reply is highely appriciable.
    Regards,
    Chow.

    Hi
    Extended Computer Aided Test Tool (eCATT) to create and execute functional tests for software. The primary aim is the automatic testing of SAP business processes. Each test generates a detailed log that documents the test process and results.
    Features
    You can:
    · Test transactions and reports
    · Call BAPIs and function modules
    · Test remote systems
    · Check authorizations (user profiles)
    · Test database updates
    · Test the effects of changes to customizing tables
    · Test the effect of changes to customizing settings
    · Check system messages
    Constraints
    eCATT runs in a system based on SAP Web Application Server 6.20 or higher. However, you can use this system to test systems with Release 4.6C or higher.
    check these link,
    eCATT- An Introduction
    /people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
    Creating Test Scripts
    /people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
    eCATT Logs
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    eCATT Scripts Creation – TCD Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    Creation of Test Data Container
    /people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
    eCATT Scripts Creation - SAPGUI Mode
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    Integrating ECATT & MERCURY QTP Part -1
    /people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
    Using eCatt to Test Web Dynpro ABAP
    /people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
    and
    -command reference
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    http://prasadbabu.blogspot.com
    https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
    http://www.erpgenie.com/ecatt/index.htm
    hope this helps.
    Regards
    Anji

  • Java program Compiling using Maven

    Hi,
    I am upgrading 1.4 to 1.5 java. And in my local pc i have compiled programs and able to eploy the application. But the problem is in server when i try to compile using maven it gives a compilation error.
    If you are saying that it is an issue of maven then also i wanted to discuss this strange issue here.
    /usr/build/Application/java/com/sql/DataStoreInterface.java:686: warning: unmappable character for encoding UTF8
        [javac] �* Inserts a blank row at the specified position of the DataStore's result set buffer. Returns the number of the row added.The statement is commented but the compiler is not identified the same. When i checked encoding type using file --mime {filename} i got it like text/x-java; charset=iso-8859-1. This is not the case for all some java file types are text/x-c++; charset=us-ascii but that is not giving error.
    One more issue is elicited below.
    ] cast to java.lang.Object for a varargs call
        [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
        [javac]                     meth.invoke(comp, n);
        [javac]                                       ^Can any one suggest how can i solve this two issues.
    Thanks
    Rasa.

    rasa wrote:
    Hi,
    I am upgrading 1.4 to 1.5 java. And in my local pc i have compiled programs and able to eploy the application. But the problem is in server when i try to compile using maven it gives a compilation error.
    If you are saying that it is an issue of maven then also i wanted to discuss this strange issue here.
    /usr/build/Application/java/com/sql/DataStoreInterface.java:686: warning: unmappable character for encoding UTF8
    [javac] � ...� above might be a broken copyright #) symbol. In java code comments, I'd replace it with word *(copyright)*
    #) broken copyright symbol -- I've seen it broken that way in one project. I remembered this because one of colleagues made a funny remark on it. There was something like:
    ...it's not a bug, these are sacral signs with a very special meaning.
    Let me explain:
    - i with two dots means we spotted all i's and some more
    - reverted question sign means there are no questions left anymore
    - "1/2" is a math symbol for square root meaning we've got to the roots of the Universe with our product

  • Submit sparql using sqlplus

    I want to run a sparql query using sqlplus. I got something real simple to work fine like:
    select s,typ from table(sem_match('(?s rdf:type ?typ)', sem_models('cnodb'), null, null, null))
    However, I get errors when the sparql is a bit more complex like this:
    select subj,rel,obj from table(sem_match('(?s rdf:object ?obj . ?s rdf:subject ?subj . ?s dc:relation ?rel)', sem_models('cnodb'), null, null, null))
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.spatial.rdf.server.ParseException: Encountered "." at line 1, column 21.
    Was expecting:
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 203
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 67
    ORA-06512: at line 4
    Does anyone know the proper syntax to submit this sparql? Thanks.
    Russ

    I can run queries with paranthesis syntax.
    However, when I run the following query:
    select scan_num, rt from table(sem_match(
    '{ ?s rdf:type owl:scan.
    ?s owl:_num ?scan_num.
    ?s owl:_retentionTime ?rt. }',
    sem_models('final1'), null,SEM_ALIASES(SEM_ALIAS('owl','http://www.owl-ontologies.com/mzxml.owl#')),null,null,null));
    I get following results:
    select scan_num, rt from table(sem_match(
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.spatial.rdf.server.ParseException: Encountered "?s" at line 2, column 4.
    Was expecting one of:
    "OPTIONAL" ...
    "FILTER" ...
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 203
    ORA-06512: at "MDSYS.RDF_MATCH_IMPL_T", line 67
    ORA-06512: at line 4
    Elapsed: 00:00:00.05
    sqlplus OK
    May I know what the error could be?

  • Automatic JSP compilation

    All,
    I am working with R12-iStore. As per metalink link note: 458338.1, I have enabled automatic JSP compilation. Bounced all services.
    After logging into iStore then when I click on Profile link, blank page displayed.
    ibeCAcpProfMenuHome.jsp -> This is the JSP file which is used for Profile page. This page exists in $OA_HTML & class file in $COMMON_TOP/_pages directory.
    The above profile jsp page contains the following JSPs. These files are there in $OA_HTML directory but the classe files are not there in $COMMON_TOP/_pages directory.
    1) ibeCZzpHeader.jsp
    2) jtfincl.jsp
    My question is , do I need to compile them to fix this issue even though auto JSP compilation option is enabled ?
    is this auto compilation doesn't compile the pages while loading or accessing ??
    Thanks,

    Hi Hussein,
    I have checked the log file. It looks like , the bounce was proper.
    Also, I have raised SR with ORacle Support.. lets hope we get some good solution.
    ================================================================================
    04/03/09-16:10:34 :: adapcctl.sh version 120.6.12000000.4
    04/03/09-16:10:34 :: adapcctl.sh: stopping OPMN managed OHS instance
    opmnctl: stopping opmn managed processes...
    04/03/09-16:10:36 :: adapcctl.sh: exiting with status 0
    ================================================================================
    04/03/09-16:10:48 :: adapcctl.sh version 120.6.12000000.4
    04/03/09-16:10:48 :: adapcctl.sh: starting OPMN if it is not running
    opmnctl: opmn is already running.
    04/03/09-16:10:48 :: adapcctl.sh: starting OPMN managed OHS instance
    opmnctl: starting opmn managed processes...
    04/03/09-16:10:51 :: adapcctl.sh: exiting with status 0
    ================================================================================

  • I created a new ID for my Iphone, because the old ID was an email address I no longer have. Also, the phone wouldn't recognize the password I have always used. Now the problem is when I try to update my apps, it automatically wants to use the old ID.

    I created a new ID for my Iphone, because the old ID was an email address I no longer have. Also, the phone wouldn't recognize the password I have always used. Now the problem is when I try to update my apps, it automatically wants to use the old ID. I've set the new ID for the phone, but it defaults to the old one when asking for a password to update apps.

    That's because all apps are forever tied to the Apple ID used to obtain them, & can only be updated using that ID.
    To use your new ID with these apps, you'll have to delete them, then repurchase. Or, contact iTunes support, explain the situation, & ask that they add these apps to the download queue of your new ID.

  • Runtime error 429, activeX component cant create object while using netbet pro on windows 7 & 8.1 HELP!!!

    runtime error 429, activeX component cant create object while using netbet pro
    does anyone know what I could do to fix this problem??? netbet pro was't available for a while then it's back but has yet to run

    What's netbet pro?
    I'd recommend asking questions about third party applications in the vendor's forum, not a Microsoft forum meant for admin scripting.
    EDIT: Ah, some gambling website...
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Generic Object Services using Web Dynpro

    I am using Web Dynpro for ABAP and would like to access Generic Object Services (GOS) to view attachments to an SAP Business Object.  Using the cl_gos* classes does not work when running WebDynpro as it uses the controls framework. 
    How can I access the functionality of GOS from a Web Dynpro application?
    Regards,
    Bob

    Hi,
    I assume that you wantted to have the attachements in a mail.
    Please check out the Adobe Forms(ie PDF attachements) and Office Control UI elements in WDA.
    Regards
    Lekha

  • Photo flow object not using thumbnails, only the primary image

    I'm currently evaluating the trial version of this to see if it's something we can tweak to the way we'd like it, and I can't seem to get the object to use the thumbnail views (presumably for the angled views to either side of the centered image).  What we're trying to do is to use a version of the image with a fixed location "tool tip" above it when it's centered and displayed at the full size, but use a "thumbnail" image that doesn't have this.  The intention is when an image is centered, a box will be above the image with a brief description (the powers that be want it stationary rather than hover with the mouse location), but the thumbnail views to either side will not have it.
    The link to the page using it is www.perleyhalladay.com/beta/index.html, and the XML file is www.perleyhalladay.com/beta/PhotoFlow/gallery.xml.  "magesFolder" is set to PhotoShow/images (relative to the location of index.html), and the images load fine...it's just that I've tried swapping thumbnail images to mix them up (even with the example version I downloaded), and it seems as though it's using the primary image for both the thumbnails and the centered version.  Is there a variable missing from the XML file or a PARAM missing from the HTML file that would enable/disable the use of thumbnails globally.
    Is this perhaps an undocumented limitation in the trial download version that would be remedied in the paid version, or is there something else amiss?

    If you are addressing some applicarion that someone created and is selling, you'll need to contact the seller to get details about their product.

  • How to STARTUP multiple Oracle Databases, using sqlplus (SOLARIS)

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

    Hi guys,
    I am pretty new at solaris and oracle, right now i have oracle 11gr2 installed in my Solaris 10 machine.
    I managed to create 2 databases with 2 different ORACLE_SID, (e.g. A & B)
    my question is, is it possible to have both of this Databases mounted and opened??
    here is the step i have done so far:
    - go to /ORACLE_HOME/bin
    - I started my one and only LISTENER - ./lsnrctl start LISTENER
    - ORACLE_SID=A
    - ./sqlplus / as sysdba
    - SQL>STARTUP
    Everything went well, until i set another ORACLE_SID (in another terminal) to ORACLE_SID=B, and when i tried to start it up using SQLPLUS, i get this "Segmentation Fault - core dumped".
    It seems like i start the 2nd database wrongly, is there proper way to do this?
    i need the 2 databases (SID A & SID B) to be running concurrently.
    thanks

Maybe you are looking for

  • ICal does not display all items in month view

    Hi, in month view, iCal displays ... to show that some items are not displayed. However, this happens many times when there is ample space to display the item, and even happens when there is only one item! Does anybody know how to force iCal to show

  • "general printer error" no code "PRINTER FAILURE" says to contact HP

    DO I NEED TO THROW THIS PRINTER AWAY AND GET A NEW PRIENTER?  i DID THE RESTART AND REPOWER NO LUCK

  • IPhoto - sort order mixed up!

    I am on Yosemite and and all the latest updates.  The other day my Macbook Pro would not wake so i had to "hard" reboot.  I had iPhoto opened when this happened.  When i rebooted iPhoto had to repair/rebuild database.  NOW, the Order-By-Date is all m

  • Z@RC*.tmp files

    Z@RC*.tmp files are not deleting during logoff on Windows 2008 R2 Terminal Server. Adobe 11.0 is being installed and these temp files are from IE 9.0 Adobe print jobs. This Blog: http://blogs.adobe.com/dmcmahon/2011/11/08/acrobatreader-tmp-files-left

  • Can't update Firefox. I'm using OS10.2.8. ,Firefox 2.0.0.12 .

    <blockquote>Locking duplicate thread.<br> Please continue here: [/questions/835635]</blockquote> When I tried to update to Firefox4 it told me 4 wont work with OS10.2.8. Can I update Firefox 2.0.0.12 to an earlier version of Firefox than4? How? Thank