Compiling Package through Command Window.

Hi
I am new to Oracle and need some help in compiling PL/SQL packages from SQL PLUS.
I have two files
1) An SQL file ----------Calculate1.sql
2) and package ----------Indentify.pck,sql
I tried the following
SQL > @Calculate.sql (this was succesfully executed)
SQL > @Indentify.pck.sql (throwed an error)
The package has about 2 procedure and 10 function calling from it.
Can somebody please help how to compile the package file from SQL PLUS command line?
Thanks
Vino
Edited by: 936981 on May 27, 2012 10:21 AM
Edited by: 936981 on May 27, 2012 10:22 AM

SQL> show error /* Or query user_errors */
Demo:
Filename: testpkg.pck
create or replace package testpkg
is
procedure test;
end;
create or replace package body testpkg
is
procedure test
is
begin
null;
end;
end;
SQL> @'c:\testpkg.pck';
Package created.
Package body created.
SQL> show errors;
No errors.Regards
Biju

Similar Messages

  • Compiling packages from command line

    hi...good morning all...
    I want to compile 5 packages from command prompt..
    I have written a batch file like this...
    d:
    call sqlplus -s scott/tiger@ora11g @package1.sql
    call sqlplus -s scott/tiger@ora11g @package2.sql
    call sqlplus -s scott/tiger@ora11g @package3.sql
    call sqlplus -s scott/tiger@ora11g @package4.sql
    call sqlplus -s scott/tiger@ora11g @package5.sql
    pause
    exit
    But it is not running...only the package 1 is getting compiled after putting a '/' after the prompt "call sqlplus -s scott/tiger@ora11g @package1.sql"..
    But the rest of the packages are not getting compiled..it is not throwing any error also...I have kept the 5 package bodies in the D drive...
    Please help..

    thanks a lot friends for your replies...
    @mahir: I have made a test.sql(in d drive) file which contains the following wntry only
    @d:\package1.sql
    @d:\package2.sql
    @d:\package3.sql
    @d:\package4.sql
    @d:\package5.sql
    and from another bat file(run.bat) i have called that...
    sqlplus -s scott/tiger@oracle11g @test.sql
    but it is not running....
    I have pressed '/' then the first package compiled and again it got stopped..
    the number of times i pressed '/', the number of times it got compiled...there are only 5 packages...but if i pressed the '/' for 20 times ,it is compiled for 20 times...so i think the rest of the packages are not getting compiled...
    @ravikumar: I dont want to execute the same command for different packages...I want to run all the packages at a single go...

  • Help packaging an android apk through command line

    Hello everyone.  I've recently developed an app that is near the release deadline and I've ran into the problem of low resolutions icons.  All of the troubleshooting I've done has claimed I'll need to manually package the app through the command line to do this.  I have never done this before so I'm having some trouble. 
    I've downloaded all of the required files I believe and have reached the correct bin folder, I'm completely clueless as to what syntax I need to type in from this point though.  I've gotten as far as "adt -package" which then outputs that I'm missing additional information, but as I said, I haven't used command promt much and I have no idea how to format the rest of the information I need to put in or how to attach my current app.xml file to it.
    Any help would be appreciated.
    Edit: Nevermind everyone.  After a lot  more time spent researching I've managed to piece together how to do it and actually understand it as well.

    Hi,
    Here is the command to package android apk through command line;
    <adt-path> -package -target <target-option e.g. apk, apk-debug etc> -storetype pkcs12 -keystore <your certificate> -storepass <password> name.apk app.xml name.swf assets
    Please run adt -help on terminal or cmd if you need any help regarding targets or packaging command. adt is available at you sdk/bin/adt folder.
    Also, you can see the page http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128cdca935b-8000.html for more details.
    Hope this will help.
    Regards,
    Nimit

  • Calling oracle command window through forms

    I need to call oracle command window in the forms. in the sence when i clicked a button in forms then oracle window has to open.
    Is that possible to call a oracle command window in forms.
    Please help me in this.
    Thanks in advance,
    raju.

    I need to call oracle command window in the forms. in
    the sence when i clicked a button in forms then
    oracle window has to open.
    Is that possible to call a oracle command window in
    forms.
    Please help me in this.
    Thanks in advance,
    raju.What do you mean by "Oracle command window"???

  • Javafx through command prompt

    Hi,
    untill now i have used NetBeans for developing javafx applications,
    i want to know how to run javafx applications through command prompt.
    what are the requirements?
    which environment variables to be set?
    and commands to compile and run javafx applications?
    thank you.

    There are some detail steps to run your javafx from command line.
    Firstly Create new file with some javafx source code and save them to specific to your Class name . For eg Test.java with package name test
    Let's assume my javafx is inside C:\Program Files\Oracle directory
    I'll tell you in environment of Window:
    Open CMD
    Let's assume you are in right directory
    set JAVAFX_LIB = C:\Program Files\Oracle\rt\lib\jfxrt.jar
    javac -cp "%JAVAFX_LIB%" -d . Test.javaNow goto directory of javafx sdk/bin . There must be javafxpackager.exe
    javafxpackager -createjar -srcdir <your src dir> -appclass test.Test -outfile <your file name>.jar -outdir <your output dir>Now run the jar file . It will run great.
    Thanks
    Narayan

  • Error 1719. The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance. Getting this error while installing the package in the windows 2012.

    Getting below mentioned error while installing a package  in the windows 2012 server remotely through psexec command
    Error 1718. Windows Installer Service could not be accessed.
    The same msi is getting installed local in through when we are doing through manually
    Please help on the same

    Hi Rahulan,
    Would you please let us know current situation of this issue? If any update, please feel free to let us know.
    Just addition, please refer to following threads and check if can help you.
    The Windows Installer Service could not be accessed.
    error 1719 windows installer service could not be accessed ....
    Hope this helps.
    Best regards,
    Justin Gu

  • Generate the fmx through command Prompt

    Hi,
    I am using Oracle forms6i, Oracle 10g Database and Windows (OS).
    Is it possible to compile the FMB file through command Prompt.
    And then i need to move the fmx files to server through command prompt.
    Thanks,
    Ansaf.
    Edited by: Ansaf on Jan 24, 2012 5:20 PM

    Ansaf wrote:
    Hi,
    I created the batch file as per your code and i changed only the useridn/password@db.
    I run the batch
    But i cant find the fmx file.Sorry i post the 10g batch compiler
    From where u run the batch file ? It should be in that folder where you .fmb exist.
    If then don't work. add the location path before the ifcmp60.exe
    Here is the 6i compiler
    Echo compiling forms ....
    for %%f IN (*.fmb) do C:\ORANT\BIN\ifcmp60.exe userid=mail/tti@ait module=%%f batch=yes module_type=form compile_all=yes window_state=minimize
    ECHO form compilation completechange the ifcmp60.exe path as you have
    Hope it will works for you
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: HamidHelal on Jan 24, 2012 8:12 PM

  • Compiling package Not found

    Hi All,
    I have windows XP. I have java files in following 3 directories that I want to compile.
    C:\spring\commands\*.java
    C:\spring\controller\*.java
    c:\spring\service\*.java
    I went in to command directory and run javac *.java --- all java files successful compile
    I went to service directory and run javac -d *.java It keeps complaining
    AuthenticationService.java:9: package spring.commands does no exist
    import springexample.commands.LoginCommand; not found
    On the contrary AuthenticationService.class is present in the commands directory. Then why it complains and what is the solution ?
    thanks
    pp

    Assuming all classes' source code starts with one of the following: package spring.commands; package spring.controller; package spring.service (and in the associated directory).javac -claspath c: spring\commands\*.java spring\controller\*.java spring\service\*.javaThe classpath must contain the root directory for the package, in this case c: not the package directories themselves. So the path to the .class file is classpath_directory + package_directory(s).
    I am not sure that c: will be interpreted as a valid directory - you may need to use c:\ or you may need to put the .java files in a better directory such as c:\myjava.

  • Getting error while trying to upload the data in excel from SSIS package through sql agent job

    We are getting below errors.
    Error:
    The Microsoft Jet database engine cannot open the file '\\serversdev\Documents\QC Files\Prod.xls'. It is already opened exclusively by another
    user, or you need permission to view its data.
    Please suggest ASAP
    Regards,
    Ramu
    Ramu Gade

    Hi Dikshan Gade,
    According to your description, you want to upload data from excel to database, when you call ssis package through SQL Server Agent job, you got the error message.
    To troubleshoot the problem, please refer to the following steps:
    Validate that the account has permissions on the file and the folder.
    Verify that the file and the data source name (DSN) are not marked as Exclusive.
    Make sure SQL Server Agent Services service account has the permission to access the database.
    We can check SQL Server Agent’s activity logs, Windows Event logs and SSIS logs to get more clues. Also the tool Process Monitor is helpful to track the cause of registry or file access related issues. For more information about the issue, please refer to
    the following KB article:
    http://support.microsoft.com/kb/306269
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to compile a report in windows

    Dear Memebers,
    Generally standard reports contain a lot of user exits as a results of which we cannot compile the reports using reports builder. How can we compile a standard report in windows. I know the syntax which is shown below but how should i proceed.
    REM WINDOWS COMPILE REPORT
    ::compile_report.bat
    cls
    Echo compiling Report .....
    for %%f IN (FAS400.rdf) do RWCON60 userid=apps/apps@test batch=yes source=%%f
    stype=rdffile DTYPE=REPFILE OVERWRITE=yes logfile=log.txt
    ECHO FINISHED COMPILING
    What if i have a report in some directory in windows. Can i mention the path and how do i run the above mentioned commands as a script in windows command prompt.
    I would really appreciate your help. Correct me if i am wrong.
    Thanks
    Sandeep

    for forms:
    REM WINDOWS COMPILE FORMS
    ::compile_forms.bat
    @echo off
    cls
    SET DBConnectString =
    SET /P DBConnectString= Please enter DB connect string (user/password@sid):
    SET workingDirectory =
    SET /P workingDirectory= Enter the directory where FMBs are located (i.e. c:\dev\forms\):
    cd %workingDirectory%
    @echo on
    echo Compiling Forms....
    for /f %%a IN ('dir /b *.fmb') do ifcmp90 module=%%a userid=%DBConnectString% batch=yes
    echo Finished Compiling for reports:
    REM WINDOWS COMPILE FORMS
    ::compile_reports.bat
    @echo off
    cls
    SET DBConnectString =
    SET /P DBConnectString= Please enter DB connect string (user/password@sid):
    SET workingDirectory =
    SET /P workingDirectory= Enter the directory where RDFs are located (i.e. c:\dev\reports\):
    cd %workingDirectory%
    @echo on
    echo Compiling Reports....
    for /f %%a IN ('dir /b *.rdf') do rwconverter userid=%DBConnectString% batch=yes source=%%a stype=rdffile dtype=repfile overwrite=yes logfile=log.txt
    echo Finished Compiling

  • Error: Failed to acquire connection while exporting a file using SSIS package through SQl Server Agent job.

    Hi Team,
    I am running a sql server job which is loading data to a sharepoint document library.File is an excel format and is getting loaded
    when executed through SSDT solution .But when i am using an SQL Agent job to pick up the file it doesnt get the path and agent job fails with the error "Failed to acquire connection".I have deployed the SSIS Package through SQL Server 2012 deployment
    methodologies.
    I am not able to trace the error of loading data from a sharepoint library.library. Sql agent jobs works fine when i give local path.The
    account which is running the sql agent job is the same who has access to document library.I also tried to run the job through proxy account. I am using a xml configuraion to store my credentials.I am able to palce the same file to a network drive in the same
    server through sql server agent job. The only problem is when I am trying to load the file to a sharepoint folder.
    Thanks,
    Arsa..

    Is that the WebDAV method that you are suggesting here to map the n/w drive?
    Its kind of webdav but you will be using windows nw drive to store data
    yes, I am able to create the file to D: , but didn't check with the C:.
    Try with c:, as c: require special permisssions
    If this helped you resolve your issue, please mark it Answered

  • Group Policy - Issues deploying software packages through GPO

    Hello everyone,
    I am having issues successfully deploying MSI packages through group policy.  I have set my computer account up in its own test OU in my domain, but yet the software will not deploy.  Example, I'm trying to deploy AVG Anti-Virus and make sure it
    is installed on each and every PC in my domain.  As for the GPO, I set it up as an assigned package and pointed to the location of the package with the UNC file path (visible to both the DC and my computer that is part of the affected OU)
    On the domain controller, I get these messages in application event logs:
    Beginning a Windows Installer transaction: \\hs-dc2\software\avg\installavg.msi. Client Process Id: 9048.
    Ending a Windows Installer transaction: \\hs-dc2\software\avg\installavg.msi. Client Process Id: 9048.
    This shows up when I refresh GP on my computer.  I run gpresult /h GPReport.html and get the following message:
    Software Installation failed due to the error listed below.
    Fatal error during installation.
    Additional information may have been logged. Review the Policy Events tab in the console or the application event log for events between
    The software is in a share on the domain controller that is visible from my computer, and permissions are set where "Everyone" has read access.  I have tested the package on my computer and it installs
    correctly if I do it manually, so it's a good package. 
    I'm at a loss.  I am admitedly very new to GP management, but I'm pretty sure I have covered all my bases here.  I humbly ask for any and all help that you all can provide.
    Thank you all very much, have a great weekend!

    > Magnolia_Schools.exe
    What's that???
    > \\hs-dc2\software\avg\installavg.msi
    > <file://\\hs-dc2\software\avg\installavg.msi> /qb addeploy=1
    /qb ADDEPLOY=1
    Uppercase matters (:
    A bissle "Experience", a bissle GMV... Wenn meine Antwort hilfreich war, freue ich mich über eine Bewertung! If my answer was helpful, I'm glad about a rating!
    I should have explained, my apologies.  The InstallAVG.msi is the package I have GP deploying.  it is a package that AVG wrote for us that goes in, uninstalls the two previous antivirus softwares we have on our network if it is present, and
    then wraps it to run magnolia_schools.exe which installs the AV software.  I am uninstalling AVG now and will try reinstalling with
    \\hs-dc2\software\avg\installavg.msi /qb ADDEPLOY=1 and report back.
    also, the only logs I found that were around the time of the install attempt were such as these:
    1: 2905 2: C:\windows\system32\appmgmt\MACHINE\{06ee0d46-cd5f-4216-a09f-2aeb573aa5ba}.aas
    1: 2905 2: C:\windows\system32\appmgmt\MACHINE\{06ee0d46-cd5f-4216-a09f-2aeb573aa5ba}.aas
    Does that tell you anything?
    I will say this, if this means anything...now that AVG is installed, the event logs are changing from an error %%1603 to this:
    Failed to apply changes to software installation settings. The installation of software deployed through Group Policy for this user has been delayed until the next logon because the changes must be applied before the user logon. The error was : %%1274
    The removal of the assignment of application exe2msiSetupPackage from policy Install AVG failed. The error was : %%2
    So it acts like it's at least seeing that the package is installed...and reacting differently, correct?
    Thanks so much

  • Output jframe information to command window

    Hi all I have a program that tracks the assets of a customer, kind of like a cart that holds cds, appliances, etc...
    I wanted to be able to print out the results to the command window after they enter the number of how many items from what the user enters after they press "current status" or if they "delete" their current items. I want it to keep doing this until they close the window and exit the program. People have told me to add the System.out.println to where it says "delete" or "current status" but Im not sure how to add it in I will attach the code here. Thanks
    import java.awt.Color;
    import java.awt.GridLayout;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class TestProgram extends JFrame implements ActionListener{
       JLabel column1, column2;
       JLabel totalItems, totalCost;
       JLabel serialNum;
       JLabel electronics, autos, furnitures, cds;
       JButton TrackAssets, delete;
       JPanel panel;
       JTextField electronicsAsset, autosAsset, furnituresAsset, cdsAsset;
       JTextField serialNumber;
       JTextArea items, cost;
       // constructor to initialize the top variables/fields
       public TestProgram()
             column1 = new JLabel("Select Items");
         column2 = new JLabel("Specify Quantity");
         electronics = new JLabel("Electronics");
         electronicsAsset = new JTextField();
         electronicsAsset.addActionListener(this);
         autos = new JLabel("Autos");
         autosAsset = new JTextField();
         autosAsset.addActionListener(this);
         furnitures = new JLabel("Furnitures");
         furnituresAsset = new JTextField();
         furnituresAsset.addActionListener(this);
         cds = new JLabel("Compact Discs");
         cdsAsset = new JTextField();
         cdsAsset.addActionListener(this);
         serialNum = new JLabel("Serial Number input here");
         serialNumber = new JTextField();
         electronicsAsset.setNextFocusableComponent(serialNumber);
    //Create labels and text area components
         totalItems = new JLabel("Total Items:");
         totalCost = new JLabel("Total Cost:");
         items = new JTextArea();
         cost = new JTextArea();
    //Create buttons and make action listeners
         TrackAssets = new JButton("Current Status");
         TrackAssets.addActionListener(this);
         delete = new JButton("Delete all");
         delete.addActionListener(this);
    //Create a panel for the components
         panel = new JPanel();
    //Set panel layout to 2-column grid
    //on a white
         panel.setLayout(new GridLayout(0,4));
         panel.setBackground(Color.white);
    // add details
         getContentPane().add(panel);
         panel.add(column1);
         panel.add(column2);
         panel.add(electronics);
         panel.add(electronicsAsset);
         panel.add(autos);
         panel.add(autosAsset);
          panel.add(furnitures);
          panel.add(furnituresAsset);
          panel.add(cds);
          panel.add(cdsAsset);
         panel.add(furnitures);
         panel.add(furnituresAsset);
         panel.add(totalItems);
         panel.add(items);
         panel.add(totalCost);
         panel.add(cost);
         panel.add(serialNum);
         panel.add(serialNumber);
         panel.add(delete);
         panel.add(TrackAssets);
       public void actionPerformed( ActionEvent event ){
                 // variables for method actionPerformed
                 String output, output2;
                 Object source = event.getSource();
                 Integer electronicsNo, autosNo, furnituresNo, cdsNo, serialNum;
                 // class responsible for showing different items
                 AssetTracker tracker = new AssetTracker();
                 Double cost;
                 // program is instance of TestProgram creates a new file
                 TestProgram program = new TestProgram();
                // if they track assets...
                if(source == TrackAssets){
                  tracker.serialNum = serialNumber.getText();
                  tracker.electronics = electronicsAsset.getText();
                  tracker.autos = autosAsset.getText();
                  tracker.furnitures = furnituresAsset.getText();
                  tracker.cds = cdsAsset.getText();
             if(tracker.electronics.length() > 0){
                       //statement that might throw an exception
                       try{
                           electronicsNo = Integer.valueOf(tracker.electronics);
                           tracker.itotal += electronicsNo.intValue();
                         //find invalid number     
                         catch(java.lang.NumberFormatException e){
                           electronicsAsset.setText("Invalid Value");
                       else {
                             tracker.itotal += 0;
             if(tracker.autos.length() > 0){
                        //find invalid again
                         try{
                      autosNo = Integer.valueOf(tracker.autos);
                      tracker.itotal += autosNo.intValue();
               catch(java.lang.NumberFormatException e){
                      System.out.println("Invalid Value");
             else {
          tracker.itotal += 0;
        if(tracker.furnitures.length() > 0){
           //seek invalid numbers
         //statement that might throw an exception.
          try{
            furnituresNo = Integer.valueOf(tracker. furnitures);
            tracker.itotal +=  furnituresNo.intValue();
        // statements to be executed if a matching Java exception occurs in try.
          catch(java.lang.NumberFormatException e){
             furnituresAsset.setText("Invalid Value");
             else {
          tracker.itotal += 0;
        if(tracker.cds.length() > 0){
         //check then find invalid
          try{
            cdsNo = Integer.valueOf(tracker.cds);
            tracker.itotal += cdsNo.intValue();
          catch(java.lang.NumberFormatException e){
            cdsAsset.setText("Invalid Value");
          else {
          tracker.itotal += 0;
        // display
         serialNum = new Integer(tracker.itotal);
         output = serialNum.toString();
         this.items.setText(output);
         tracker.icost = (tracker.itotal * 300.00);
         cost = new Double(tracker.icost);
         output2 = cost.toString();
         this.cost.setText(output2);
       // electronics, autos, furnitures, cds
       // if user delete all items from assets
       if(source == delete){
         serialNumber.setText("");
         electronicsAsset.setText("");
         autosAsset.setText("");
         furnituresAsset.setText("");
         cdsAsset.setText("");
         serialNumber.setText("");
         tracker.icost = 0;
         cost = new Double(tracker.icost);
         output2 = cost.toString();
         this.cost.setText(output2);
         tracker.itotal = 0;
         serialNum = new Integer(tracker.itotal);
         output = serialNum.toString();
         this.items.setText(output);
      // main method
      public static void main( String[] args )
            TestProgram frame = new TestProgram();
              // title of JFrame
              frame.setTitle("Asset tracking program");
            // mew window created
            WindowListener l = new WindowAdapter() {
                    public void windowClosing(WindowEvent e) {
                            System.exit(0);// exit
            // add window from package then show window
            frame.addWindowListener(l);
            frame.pack();
            frame.setVisible(true);

    I don't understand the question. Are you telling us you don't understand how to use System.out.println(...);? How do you debug programs without using this method?
    Usually the first program someone learns to write is something like:
    public static void main(String[] args)
        System.out.println("Hello World");
    after they press "current status" or if they "delete" their current itemsYou want to do some activity when the above actions occur. You must already have code in your program to do something in the above cases. So simply add the System.out.println(..) statements in the same part of code.

  • Variable used in OS Command (windows) not Resolving?

    In my package:
    1st Step: Declare Variable FILENAME
    2nd Step: Set Varaible FILENAME=testcopy.txt
    3rd Step: OS Command (windows), Text of your command=cmd C:\copy #CPE.FILENAME c:\temp
    (CPE is the project name)
    However the variable does not get resolved?
    ODI 11g, hangs on the 3rd Step (Green lightning) and the code in operator is shown as: cmd C:\copy #CPE.FILENAME c:\temp
    Anything additional to resolve variables in an Windows OS Command?

    Try with OdiOSCommand.

  • Hide command window from transactions in sap portal

    Dear experts
                  sir i want to hide command window from transactions iview in sap portal when i using sap gui for windows  sir i know very well settings for sap gui for html. so is there any possiblity for hiding command window from transactions iview when i use sap gui for windows
    please help...............
    Edited by: mousam jaini on Nov 1, 2010 12:11 PM

    Hi Mousam
    You can get solution from the  SAP Note: 1010519
    If ur system doesnot meet the pre-requiste, then you can set the below parameter under transaction sicf:
    ~webgui_simple_toolbar=1
    Pls go through the below article to display the SAP Transaction as SAP GUI
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e046cb5c-711a-2a10-95a9-81b365901b95
    Thanks
    Keshari

Maybe you are looking for

  • New Macbook Pro (2010) 15 inch battery issues!!!!

    Hi, Please help me.I sense a fraud act by the macbook servicing center in my city. My macbook was bought in 2010 and after having used many times I was said tha the machine was getting heated up due to poor standard of the battery and that the batter

  • Cannot install 10.0.3 update

    Hi all; There is no way in the world that I can install the FCPX UPDATE 10.0.3, and for that matter the Motion 5 update, or Compressor either. running Lion 10.7.2 and have no issues, the Apps, FCPX is ver 10.0.2, from the previous update, that went f

  • Just up graded to Labivew 7.1 from 6.1 3-d graphs dont work right where can I get lattest version of cw3dgraph

    Recently up graded to Labivew 7.1 from 6.1.  3-d graphs dont work right. VI's using the Activex 3-D graphs developed in 6.1 worked fine.  Since up grading to 7.1 the graphs work after a fashion but many features don't. Anyone else have a similar prob

  • Creating Point-to-Multipoint connection using Bluetooth

    Hi, I have a problem with my application. It's supposed to be a part of a Bluetooth multiplayer game responsible for data exchange between devices. I created it based on the code from [http://www.forum.nokia.com/info/sw.nokia.com/id/2b17fb6f-b9a4-4cd

  • AIA Error Handling framework

    Hi, We have an AIA implementation where we are not using HWF for error handling. Now we have another project coming up where we would like to leverage this functionality. Was wondering if there is a way to activate HWF for few integrations only not a