How to call one .sql file from other .sql

I am trying to call no of .sql files from one .sql file.
But it gives me error in SQL*PLUS that unable to open file.
Suggest me solution.
Thanks
Chanda

Are the sql files in the current directories where sqlplus has been started ?
If not, did you give the full path name for the called sql files when calling them from sqlplus ?
Could you give us the complete sqlplus command that you use to call your files and the physical location of the called files with the exact error message ?

Similar Messages

  • How to call a .jsp file from Applet

    Could any one guide me how to call a .jsp file from a Applet using action Event.
    Thanks

    http://javaalmanac.com/cgi-bin/search/find.pl?words=URL+post

  • How to call a jar file from oracle forms (6i)

    Hi,
    I'm working with oracle 6i. I want to know that how to call a .jar file from forms menu. when I use HOST('<path>\test.jar') it is working in 'Client Server' any way. but the problem is I use application server in order to run my form. so my form is in the server and I run the form via clients web browser. in that case above solution will not work. if any body knows how to overcome this problem please reply.
    thanks.
    duminda

    I created a bean area and set the class name as implementation class. within that java bean class I called to a bat file which consists of the execution command of the jar file ( because i don't know how to call .jar file from my bean class directly).
    then i tried to run it in application server. its still not running.
    can you tell me what i have to do within my bean class? or can you suggest any solution?
    thank you.

  • How to call a .jar file from a java bean?

    any body knows how to call a .jar file from a java bean?

    Crosspost!
    http://forum.java.sun.com/thread.jspa?messageID=4349619

  • How to call a .bat file from java code?

    How to call a .bat file from java code? and how can i pass parameters to that .bat file?
    Thanks in advance

    thanks for ur reply
    but still i am getting the same error.
    I am trying to run a .bat file of together tool, my code looks like below
    import java.lang.Runtime;
    import java.lang.Process;
    import java.io.File;
    class SysCall{
         public static void main(String args[]){
              String cmd="D://Borland//Together6.2//bin//Together.bat -script:com.togethersoft.modules.qa.QA -metrics out:D://MySamples//Metrics// -fmt:html D://Borland//Together6.2//samples//java//CashSales//CashSales.tpr";
              //String path="D://Borland//Together6.2//bin//Together.bat ";
              Runtime r= Runtime.getRuntime(); //Declare the system call
              try{
                   System.out.println("Before batch is called");
                   Process p=r.exec(cmd);
                   System.out.println(" Exit value =" + p.exitValue());
                   System.out.println("After batch is called");
              /*can produce errors which must be caught*/
              catch(Exception e) {
                   e.printStackTrace();
                   System.out.println (e.toString());
    I am getting the below exception
    Before batch is called
    java.lang.IllegalThreadStateException: process has not exited
    at java.lang.Win32Process.exitValue(Native Method)
    at SysCall.main(SysCall.java:17)
    java.lang.IllegalThreadStateException: process has not exited

  • How to call external Perl routines from Pl/SQL - Urgent

    Available software in the Test Environment:
    1. Sun Unix 2.8
    2. Oracle 8.1.7 ( 8i)
    3. Perl 5
    Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts.
    The steps followed for for C are -
    1. Create and compile a simple C program to execute a unix command (eg., touch a file).
    2. Make a shared library of the above compiled program (object), i.e., load the compiled object module into a dynamic load library.
    3. Declare the above library in Oracle using SQL*Plus.
    4. Define a PL/SQL function or procedure to call the external routine.
    5. Test the external routine.
    The above steps run good for a C program, but step 2 fails when run for a Perl script.
    When I tried to use the following command for step 2 -
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
    SHARED_LIBNAME=cmd_lib.so \
    OBJS=tst_cmd.pl
    got the following error -
    ld: fatal: file tst_cmd.pl: unknown file type.
    ld: fatal: File processing errors. No output written t cmd_lib.so
    *** Error code 1
    This gives me an indication that demo_rdbms.mk does not understand/interpret Perl scripts. Going through the demo_rdbms.mk suggests the same.
    My questions is - How do we call external Perl scripts/routines from PL/SQL ??
    Do I have to get a different version of "demo_rdbms.mk" ?
    PS: The perl scripts used above (tst_cmd.pl) is error free and works as intended in the unix environment.

    Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts. Well, C is a "compiler" language and Perl is interpreted. In a sense, C is not "scripts".
    When I tried to use the following command for step 2 -
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
    SHARED_LIBNAME=cmd_lib.so \
    OBJS=tst_cmd.pl
    got the following error -
    ld: fatal: file tst_cmd.pl: unknown file type.
    ld: fatal: File processing errors. No output written t cmd_lib.soI guess this compiles an extproc "stub" with your object file, generating an external procedure. So the object file really needs to be an object file :-)
    My questions is - How do we call external Perl scripts/routines from PL/SQL ??I'd guess you need an embedded Perl interpreter in the external procedure.
    Not much help though I'm afraid :-/
    Cheers
    Fredrik

  • How to call a .js file from a JSP in JSPDynpage

    Hi ........I have a javascript file called set.js under the scripts folder .
    I need to call this .js file from my JSP in a JSPDynpage Application.
    Please help me do this..
    Regards
    Smita

    Hi,
    store your js file also under the jsp folder with a .jsp extension and then call it in your jsp page by an include statement. this was found working. later you may try with changing the extension to .js and try your luck:)
    <%@ include file="set.jsp" %>
    Chill,
    Steel

  • How to call a .rpt file from oracle form 10g

    I need to call a .rpt file from oracle form 10g. please suggest what to do for this

    Hi,
    onlz rdf and rep files are Reports executables. Convert rpt to rep and you are file (Reports has a conversion utility in the bin directory)
    Frank

  • How i call a executable file from a pl/sql

    how i can call a executable file make in c (unix) from a pl/sql
    Thanks for your help

    You need to use libraries. use the executable and create a library by specifying the path and invoke it from the Stored procedure. It is like an external file to the database.
    --Rajakumar.

  • How to call a Forms6i file from Forms10g

    Dear all,
    Can any one help me on how to call a x.fmb in FORMS6i version from a y.fmb in FORMS10G version.I used CLIENT_HOST( ) buitin for calling a 6i version x.fmb from 10G version y.fmb,but its not working.I gave this CLIENT_HOST( ) built in in when-button-pressed trigger.when i gave the string that is given as parameter to CLIENT_HOST( ) in command prompt the 6i fmb opens...and similarly i need to open a fmb in FORMS10G verison from FORMS6i version fmb

    Hi,
    Forms 6i modules only run on Forms 6i runtime and Forms 9i modules run on Forms 9i runtime. If you want to bring together two of these module into one application you have to upgrade from Forms 6i to Forms 9i or call it on a separate runtime using a hiost command. If you run it on the web, which Forms 9i runs only, then you use web.show_document() to call the Forms 6i release installed on Oracle Application Server 9.0.1
    Frank

  • How to call a rdf file from Form

    Hi,
    I am begginer in Oracle Reports Builder, and I would like to know how to call a .rdf (report) file from a Form, passing parameters.
    Thanks in advance.
    Sandro

    Hello,
    http://www.oracle.com/technology/products/forms/techlisting10g.html
    Integrating Oracle Forms 10g and Oracle Reports 10g 2-
    Oracle Forms Services - Using Run_Report_Object to call Reports with a Parameter Form
    Regards

  • How to read a text file from other machine???

    I have a text file located in local machine. I use th e code below to retrieve data from that particular text file.
    String realPath     = (String)getServletContext().getRealPath("");
    BufferedReader holsFile = new BufferedReader(new FileReader(realPath + "/webpages/holidays.txt"));My question is , how could I retrieve the records from the tsxt file if the file is located in another machine or webserver?
    Thanks for advanced.

    It's ok to be new.
    The answer is yes. (But I'll let you look in the javadoc to see which package it's in).
    Also it may be worth understanding that there is no such thing as a "function" in java, operations are termed "methods". To go further, you should realise that URL is a class not a "function" or method. The parentheses mean you're calling the constructor.
    HTH
    /k1

  • Calling a batch file from PL/SQL

    Is there a way to call a windows batch file from within a stored
    program in Oracle?
    I need to check for error records in a table and if exists, I
    would like to call a batch file that invokes mail server and
    sends an error notification to a designated person..
    Thanks in advance

    Re: Upgrate problem

  • How to call java class file from jsp

    hi
    we need to call java classes (which are written separately in .java file )from jsp file. we need it for our project if anyone knows about please reply us.
    bye
    siva sankari

    you can call the methods in a lot of ways. you could use scriptlets with the
    <%@ page import="package.class"%> and then inside instantiate an object
    <%
         MyClass mc = new MyClass(parameters if any);
         mc.theMethodYouWantToCall();
    %>or as Madathil has stated,
    or use the JSP tags
    <jsp:useBean id="anyname" class="classname"/>and then use the getProperty tag
    or even Custom Tags

  • How to call any .tmpl file from servlet by sending some parameters ?

    Hi,
    I am new to Java Servlet and HTML template language ( anyfile.tmpl).
    I have created simple login authentication with user registration for new user.
    If user already exists, after successful login, he should be navigated to INBOX page (that inbox page is some inbox.tmpl file) from SERVLET itself using following BOLD statements given in code below. But its not working.. :-( Please do the needful.
    Thank you.
    if (session == null) {
         try {
              userName = request.getParameter("login");
              pwd = request.getParameter("password");
              if (!userName.equals("") && !pwd.equals("")) {
              try {
    //Database connection, data fetching, query execution etc.
    // code will go here
                   while (rs.next()) {
                   if (userName.equals(rs.getString("username")) & pwd.equals(rs.getString("pwd"))) {
                        String u_name = userName;
                        String ph_no = (new Integer(rs.getInt("ph_no"))).toString();
                        String address = rs.getString("address");
                        session = request.getSession();
                        session.setAttribute("user", userName);
                        String inbox = context.getInitParameter(INBOX);
                        Template inboxTmpl = new Template(inbox);
    *                    inboxTmpl.setParam("userName", u_name);*
    *                    inboxTmpl.setParam("ph_no", ph_no);*
    *                    inboxTmpl.setParam("address", address);*
    *                    out.println(inboxTmpl.output());*
                        System.out.println("Login successful..");
                        break;
                   rs.close();
         pstmt.close();
    con.close();
    (P.S - I am forced to use HTML.TEMPLATE(i.e. .tmpl file) instead of JSP)}

    Where does Template come from?
    But its not working.The other day I called the car repair shop. I told them my car did not work and I wanted them to fix it. They asked what was wrong, whether it did not start, whether suspicious sounds were heard, whether the car did not want to brake any longer, whether it gave a smoke from the exhaustion, whether the wind shield was broken, whether the oil was leaking etc. But I insisted just telling them "it doesn't work".

Maybe you are looking for

  • Getting the required property of an item in a bean

    Hello all, is it possible to get the required property of e.g. a VTextField inside a PJC? I am trying to write a bean that iterates through all the components of a form a puts a red border on all fields marked as required in Forms. I cannot find an a

  • Duplicate row deletion

    Hi, I have a tricky situation. my query is like this: select count(*), source, ttype, tdate, qty, rate, cost, charge, impstatus, errorcode, proj_code, res_code, role_code, job_id, extl_id, taskid, rate_curr, cost_curr,ext_source_id, chg_code, inp_typ

  • Is AES supported in 1.4.1

    Hi is there a reason why I cannot use AES with 1.4.1 and a Mac OSX 1.2.8 machine? DES and Blowfish worked so far. What gives? Thanks in advance

  • This is not a very java question

    hi, I was implementing the bresenham algorithm taking a look at this link: http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm But I don't understand this lines: if (2 * error >= deltax) {              y = y + ystep              error = error -

  • The Size or Non-Size of Safari's Cache

    Greetings: I know this question's been asked ad nuseum here and only because the answers back are more inscrutable than a Chinese crossword puzzle, which is bad enough, then you even get the "well, why do you even wanna do that??" Because I want to!