Parameters in SQL File

Hi,
I have an SQL File in Eclipse which uses a String parameter. When i try to send it to "Crystal Reports->Add to New Report" a message says that there is an error in the sql sentence.
I was wondering if there is a way to use an SQL file with parameters in Crystal Reports for Eclipse.
This is my SQL:
SELECT substr(factura.fanum,1,6),sum(dfimp)
FROM factura,detfact
WHERE
factura.fanum=detfact.fanum AND
detfact.dftip='TM' AND
factura.fadgen<=&1 AND
(factura.fadcob IS NULL OR (factura.fadcob IS NOT NULL AND factura.fadcob>&1)) AND
(factura.fadbaixa IS NULL OR (factura.fadbaixa IS NOT NULL AND factura.fadbaixa>&1)) AND
(detfact.dfdbaixa IS NULL OR (detfact.dfdbaixa IS NOT NULL AND detfact.dfdbaixa>&1)) AND
0 = (SELECT count(*)
  FROM devfact
  WHERE devfact.fanum=factura.fanum AND
  fadcob<=&1 AND
  dvddev>&1)
GROUP BY substr(factura.fanum,1,6)
Thanks in advance

Not possible. You cannot edit the SQL a report generates which also tells you you can inject a SQL statement into a report. The report generates the SQL it requires when creating the report.

Similar Messages

  • How can i pass the Input value to the sql file in the korn shell ??

    Hi,
    How can i pass the Input value to the sql file in the korn shell ??
    I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
    can any one help me out.
    Raja

    Can you please more elaberate., perhaps you should more elaberate.
    sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
    so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.

  • Column heading is not coming while generating a .csv file from .sql file

    Hi all,
    Now since I am able to generate a .csv file by executing my .sql file, the column heading is missing in that. Please advise. I have used the following parameters in my query:
    set linesize 1000
    set colsep ','
    set echo off
    set feedback off
    set pagesize 0
    set trimspool on
    spool /path/file.csv
    select ...... from .... where .....;
    spool off
    exit

    set pagesize 0 <-- your problem
    you must set it into a high value (max value 50000)
    see:
    SQL> select * from dual;
    D
    X
    SQL> set pagesize 0
    SQL> select * from dual;
    X
    SQL> set pagesize 50000
    SQL> select * from dual;
    D
    X

  • How to get rid of annoying tool tips while editing SQL files

    I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database.
    While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying:
    "Parameter help is not supported for extended stored procedures"
    Generally I don't care about that and it is annoying because it keeps appearing over the top of the text I want to read. Is there any way to stop Visual Studio doing this?
    a

    Hi aptitude,
    Thank you for posting in the MSDN forum.
    >>I'm using Visual Studio 2013 to edit an .SQL file and I have attached the editor to a local SQL Server 2008 R2 database.
    Could you share us more information about this issue? You said that you edit the .sql file, which kind of app did you create which would use the .SQL file? Whether it is related to the SQL Server database project or others?
    If it is related to the SQL Server Database project, please post this issue to the SSDT forum:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=ssdt
    >>While editing the string that is passed to a sp_executesql procedure it keeps popping up a tool tip saying:"Parameter help is not supported for extended stored procedures".
    Reference:
    https://technet.microsoft.com/en-us/library/ms175170%28v=sql.105%29.aspx
    https://msdn.microsoft.com/en-us/library/ms188001(v=sql.105).aspx
    But if it is related to the SQL Server, to really repro this issue, and make sure that whether this warning is related to the SQL scrip or others, maybe you could select a better forum here:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    If I have misunderstood this issue, maybe you could share us a simple sample and the detailed steps in your new reply, so we could really repro this issue in our side.
    In addition, I did some research about the warning message:
    https://msdn.microsoft.com/en-us/library/ms173434.aspx?f=255&MSPPError=-2147217396
    The IntelliSense functionality of the Database Engine Query Editor does not support all Transact-SQL syntax elements. Parameter help does not support the parameters in some objects, such as extended stored procedures. For more information, see
    Transact-SQL Syntax Supported by IntelliSense.
    In SQL Server, it seems that it is related to the IntelliSense, I'm not very sure that whether it is related to the IntelliSense of VS IDE, but generally we could enable or disable IntelliSense under TOOLS->Option->Text Editor in VS
    IDE.
    Maybe you could disable IntelliSense in VS IDE, and then check it again.
    If I misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue with passing schema name as variable to sql file

    Hi,
    I have a scenario wherein from SYS a Java process (Process_1) is invoking SQL files and executing the same in SQLPLUS mode.
    DB: Oracle 11.2.3.0
    Platform: Oracle Linux 5 (64-bit)
    Call_1.sql is being invoked by Java which contains the below content:-
    ALTER SESSION SET CURRENT_SCHEMA=&&1;
    UPDATE <table1> SET <Column1> = &&1;
    COMMIT;
    @Filename_1.sql
    Another process (Process_2) again from SYS user is also accessing Filename_1.sql.
    The content of Filename_1.sql is:-
    DECLARE
    cnt NUMBER := 0;
    BEGIN
      SELECT COUNT(1) INTO cnt FROM all_tables WHERE table_name = 'TEST' AND owner = '&Schema_name';
      IF cnt = 1 THEN
      BEGIN
        EXECUTE IMMEDIATE 'DROP TABLE TEST';
        dbms_output.put_line('Table dropped with success');
      END;
      END IF;
      SELECT COUNT(1) INTO cnt FROM all_tables WHERE table_name = 'TEST' AND owner = '&Schema_name';
      IF cnt = 0 THEN
      BEGIN
        EXECUTE IMMEDIATE 'CREATE TABLE TEST (name VARCHAR2(100) , ID NUMBER)';
        dbms_output.put_line('Table created with success');
      END;
      END IF;
    End;
    Process_2 uses "&Schema_Name" identifier to populate the owner name in Filename_1.sql. But Process_1 needs to use "&&1" to populate the owner name. This is where I am looking a way to modify Call_1.sql file so that it can accommodate both "&&1"  to populate owner name values in Filename_1.sql (with avoiding making any changes to Filename_1.sql).
    Any help would be appreciated.
    Thanks.

    Bad day for good code. Have yet to spot any posted today... Sadly, yours is just another ugly hack.
    The appropriate method for using SQL*Plus substitution variables (in an automated fashion), is as command line parameters. Not as static/global variables defined by some other script ran prior.
    So if a script is, for example, to create a schema, it should look something as follows:
    -- usage: create-schema.sql <schema_name>
    set verify off
    set define on
    create user &1 identified by .. default tablespace .. quota ... ;
    grant ... to &1;
    --eof
    If script 1 wants to call it direct then:
    -- script 1
    @create-schema SCOTT
    If script 2 want to call it using an existing variable:
    -- script 2
    @create-schema &SCHEMA
    Please - when hacking in this fashion, make an attempt to understand why the hack is needed and how it works. (and yes, the majority of SQL*Plus scripts fall into the CLI hack category). There's nothing simple, beautiful, or elegant about SQL*Plus scripts and their mainframe roots.

  • Password displayed in plain text in sql file

    Hi all,
    I have a shell script that calls another sql file to connect to the database and do some queries. The username and password used to connect to the databse are in plain text in the sql file. My question is how can I hide these parameters in the sql file and be able to connect to the database.
    Thanks in advance.

    Oracle have something to do such thing : Secure External Password Store
    Laurent Schneider posted an example of usage on his blog : sqlnet.wallet_override=true
    Or you have an external tool : Oracle Password Repository which seems easy to use.
    Nicolas.

  • How to pass arguments to .sql file.......

    Hello,
    I want to pass arguments to .sql file which is being called from within a shell (.sh).
    suppose this is the line in shell -
    ${ORACLE_HOME}/bin/sqlplus -s abcuser/abcuser@abc < ${ABCDB_DIR}/A.sql $val >>${LOG}
    - now I want to pass '123456' to A.sql
    Please suggest how to do that.
    Thanks and regards,

    You can pass parameters to a shell script executing sql commands just like you would any other shell script.
    I have a script called test_os_variables.sh:
    sqlplus -s "/ as sysdba" << EOF
    select '$1' from dual;
    EOF
    Now I execute my script passing SHAWN as a parameter.
    ./test_os_variables.sh SHAWN
    SQL*Plus: Release 10.2.0.2.0 - Production on Tue Jan 9 08:09:46 2007
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL>
    'SHAW
    SHAWN

  • How to set the connection parameters for SQL

    How to set the connection parameters for SQL to access the MS Access database
    Attachments:
    Quick_SQL.vi ‏21 KB
    Doc1.doc ‏45 KB
    db1.mdb ‏112 KB

    Right-click the WINDOWS desktop, choose New->Microsoft Data Link. That will bring up a dialog that allows you to configure and test your database connection. You might connect to the Access database via ODBC or directly via Jet Engine. The Jet Enginge saves you the trouble of creating an ODBC connection on your PC. After you leave the dialog, the "data link" will show up on your desktop as text file. Open it and copy-paste the connection string to your VI.
    This webpage is an excellent resource for connection strings: http://www.able-consulting.com/ADO_Conn.htm
    If your application requires users to change the database connection at runtime, you can also include the dialog via ActiveX (MSDASC.IDataSourceLocator).

  • Execute the sql file

    hi all
    i want to execute a sql file from Pl/sql block.
    plz help me...
    thanx
    Ashish

    This is one way
    --  Program Name:   EXTcmd.sql
    --  This sql will create a java class.
    --  Parameters:  &1 = OS command string
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "EXTcmd" AS
    import java.lang.Runtime;
    public class EXTcmd
      public static void execute (String command)
       try
           Runtime rt = java.lang.Runtime.getRuntime();
           rt.exec(command);
       catch(Exception e)
        System.out.println(e.getMessage());
        return;
    --  Program Name:   EXT_execute_cmd.sql
    --  This sql will create a stored procedure to using java class to execute the command.
    --  Parameters:  &1 = OS command string
    create or replace procedure EXT_execute_cmd (cmd IN VARCHAR2)  as
       language java name 'EXTcmd.execute( java.lang.String)';
    --  Program Name:   EXT_job_execute.sql
    --  Called by: Oracle job
    --  Call        : EXT_execute_cmd
    create or replace procedure EXT_job_execute
             (P_EXEC_CMD IN VARCHAR2) is
    cmd_string varchar2(200);
    begin
      cmd_string := 'PUT YOUR SCRIPT HERE';
      EXT_execute_cmd(cmd_string);
    end EXT_job_execute;
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • OMS Configfuration failed with missing  cremds-rcu.sql file

    Hello,
    I'm performing a new install of 11g grid control, but observed the OMS failed. After a deeper dive, I noticed the output below which suggests that the cremds-rcu.sql file is missing from the install package. The error is below:
    oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: java.io.FileNotFoundException: /oem/Middleware/oms11g/rcu/integration/mds/sql/cremds-rcu.s
    ql (No such file or directory)
    Environment Information:
    uname -a:
    Linux oramgr 2.6.16.60-0.27-bigsmp #1 SMP Mon Jul 28 13:06:32 UTC 2008 i686 i686 i386 GNU/Linux
    SLES10 32bit
    2010-10-20 15:44:24.732 TRACE rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: Sql command to run: /oem/Middleware/oms11g/rcu/integr
    ation/mds/sql/cremds-rcu.sql
    2010-10-20 15:44:24.732 TRACE rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: m_bean.getCommandType() = SCRIPT
    2010-10-20 15:44:24.733 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: current user=SYS
    2010-10-20 15:44:24.733 NOTIFICATION rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::perform: Performing JDBCScript Action Command: /oem/Mid
    dleware/oms11g/rcu/integration/mds/sql/cremds-rcu.sql CMDLINE Parameters Length: 1
    2010-10-20 15:44:24.733 NOTIFICATION rcu: oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine::parseNexecuteScript: ParseNexecute Script: /oem/Middlew
    are/oms11g/rcu/integration/mds/sql/cremds-rcu.sql
    2010-10-20 15:44:24.734 TRACE rcu: oracle.sysman.assistants.rcu.backend.action.AbstractSQLAction::removeLocalErrors: Removing Local Fatal and Ignorable E
    rrors
    2010-10-20 15:44:24.734 TRACE rcu: oracle.sysman.assistants.rcu.backend.action.AbstractSQLAction::removeLocalErrors: Removing LocalFatal Errors
    2010-10-20 15:44:24.734 TRACE rcu: oracle.sysman.assistants.rcu.backend.action.AbstractSQLAction::removeLocalErrors: Removing LocalIgnorable Errors
    2010-10-20 15:44:24.734 INCIDENT_ERROR rcu: oracle.sysman.assistants.rcu.backend.action.JDBCAction::cleanAndLog: RCU-6134:Error while trying to execute J
    DBC action. - MDS
    oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: java.io.FileNotFoundException: /oem/Middleware/oms11g/rcu/integration/mds/sql/cremds-rcu.s
    ql (No such file or directory)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1121)
    at oracle.sysman.assistants.rcu.backend.action.JDBCAction.perform(JDBCAction.java:348)
    at oracle.sysman.assistants.rcu.backend.task.AbstractCompTask.execute(AbstractCompTask.java:243)
    at oracle.sysman.assistants.rcu.backend.task.ActualTask.run(TaskRunner.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.FileNotFoundException: /oem/Middleware/oms11g/rcu/integration/mds/sql/cremds-rcu.sql (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at oracle.sysman.assistants.common.dbutil.jdbc.NestedInputReader.<init>(NestedInputReader.java:69)
    at oracle.sysman.assistants.common.dbutil.jdbc.SQLScriptReader.<init>(SQLScriptReader.java:66)
    at oracle.sysman.assistants.common.dbutil.jdbc.ANSISQLScriptReader.<init>(ANSISQLScriptReader.java:55)
    at oracle.sysman.assistants.common.dbutil.jdbc.OracleSQLScriptReader.<init>(OracleSQLScriptReader.java:63)
    at oracle.sysman.assistants.common.dbutil.jdbc.SQLScriptReader.getSQLScriptReader(SQLScriptReader.java:356)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1075)
    ... 4 more
    2010-10-20 15:44:24.737 TRACE rcu: oracle.sysman.assistants.rcu.util.RCUCheckpoint::moveComponentToPending: Entering
    2010-10-20 15:44:24.737 TRACE rcu: oracle.sysman.assistants.rcu.util.RCUCheckpoint::moveComponentToPending: Moving component to pending list: MDS
    2010-10-20 15:44:24.737 TRACE rcu: oracle.sysman.assistants.rcu.util.RCUCheckpoint::moveComponentToPending: Completed action: 1
    2010-10-20 15:44:24.737 TRACE rcu: oracle.sysman.assistants.rcu.util.RCUCheckpoint::moveComponentToPending: Statements list size : 0
    2010-10-20 15:44:24.738 TRACE rcu: oracle.sysman.assistants.rcu.util.RCUCheckpoint::resetActionAndStatements: Entering.
    2010-10-20 15:44:24.738 TRACE rcu: oracle.sysman.assistants.rcu.backend.task.TaskContext::clearSQLEngines: Calling SQLEngine.done()
    2010-10-20 15:44:24.739 TRACE rcu: oracle.sysman.assistants.rcu.backend.task.TaskContext::clearSQLEngines: Calling SQLEngine.done()
    2010-10-20 15:44:24.742 ERROR rcu: oracle.sysman.assistants.rcu.backend.task.ActualTask::run: RCU Operation Failed
    oracle.sysman.assistants.common.task.TaskExecutionException: RCU-6134:Error while trying to execute JDBC action.
    at oracle.sysman.assistants.rcu.backend.task.AbstractCompTask.execute(AbstractCompTask.java:300)
    at oracle.sysman.assistants.rcu.backend.task.ActualTask.run(TaskRunner.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: oracle.sysman.assistants.common.task.ActionFailedException: RCU-6134:Error while trying to execute JDBC action.
    at oracle.sysman.assistants.rcu.backend.action.JDBCAction.perform(JDBCAction.java:368)
    at oracle.sysman.assistants.rcu.backend.task.AbstractCompTask.execute(AbstractCompTask.java:243)
    ... 2 more
    Caused by: oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: java.io.FileNotFoundException: /oem/Middleware/oms11g/rcu/integration/mds/sql/c
    remds-rcu.sql (No such file or directory)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1121)
    at oracle.sysman.assistants.rcu.backend.action.JDBCAction.perform(JDBCAction.java:348)
    ... 3 more
    Caused by: java.io.FileNotFoundException: /oem/Middleware/oms11g/rcu/integration/mds/sql/cremds-rcu.sql (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at oracle.sysman.assistants.common.dbutil.jdbc.NestedInputReader.<init>(NestedInputReader.java:69)
    at oracle.sysman.assistants.common.dbutil.jdbc.SQLScriptReader.<init>(SQLScriptReader.java:66)
    at oracle.sysman.assistants.common.dbutil.jdbc.ANSISQLScriptReader.<init>(ANSISQLScriptReader.java:55)
    at oracle.sysman.assistants.common.dbutil.jdbc.OracleSQLScriptReader.<init>(OracleSQLScriptReader.java:63)
    at oracle.sysman.assistants.common.dbutil.jdbc.SQLScriptReader.getSQLScriptReader(SQLScriptReader.java:356)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.parseNexecuteScript(JDBCEngine.java:1075)
    ... 4 more
    Any help would be greatly appreciated.
    Thanks in advance,

    I think the installation went wrong during the step: MDS Schema Configuration.
    1- The file you are missing (cremds-rcu.sql) should be in a filegroup1.jar file located in
    <your stage directory>/oms/Disk1/stage/Components/oracle.rcu.mds/11.1.1.2.0/1/DataFiles
    If you don't have the mentioned jar file, something went wrong during downloading the OMS zip files or the unzipping went wrong.
    Solution: uninstall OMS, download again, unzip and install
    2- If you open this jar file you should find 15 files that should have been copied during the installation to the directory /oem/Middleware/oms11g/rcu/integration/mds/sql
    If you don't find them here (and you do have the jar file) something went wrong during the installation phase of the OMS software. You may find what went wrong in one of the logs in oraInventory/logs
    Eric

  • How to execute a script(.sql) file from a PL\SQL procedure

    I would like to know how to execute a .sql file from a stored procedure and the result of it should update a table. My .sql file contains select statements.

    Hi!
    just go through the following piece of code -
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    str varchar2(200);
      3  begin
      4    str := '@C:\RND\Oracle\Misc\b.sql';
      5    execute immediate(str);
      6* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 5ORA-00900: invalid SQL statement
    Cause: The statement is not recognized as a valid SQL statement. This error can occur if the Procedural Option is not installed and a SQL statement is issued that requires this option (for example, a CREATE PROCEDURE statement). You can determine if the Procedural Option is installed by starting SQL*Plus. If the PL/SQL banner is not displayed, then the option is not installed.
    Action: Correct the syntax or install the Procedural Option.
    Regards.
    Satyaki De.

  • Preview of .sql Files.

    Hello.
    On Finder, I can preview all .txt files (a small reproduction of the file's contents). But by default, it is not possible for .sql files. On the preview window, I can only see the file's icon.
    How can I make it possible, since for me, .sql files are just text files, with a different extension (instead of .txt, it has .sql extension).
    Another question: is it possible to change the icon for all files from a specific type (ex. all .sql files)?
    Thanks in advance
    Carlos

    use this link to make quicklook treat .sql files as plain text files
    http://www.macosxhints.com/article.php?story=20071028184428583
    icons for a specific file type are set by the application which is currently the default application for that file type. if you change the default application the icons will all change. you can also change the icon used by the current default application. go to the main Applications folder, locate the application in question, control-click on it and select 'show package contents". then go to Contents->Resources. find the .icns used by the application and replace it by your own .icns file. restart.

  • Andrew - one more doubt in the donsample.sql file,it is urgent

    Andrew,
    I believe you can answer this ,i hope i am not trying too much on your patience.Thanks .I am connected to the oracle server.In that i execute a procedure which i believe is executing on the oracle server.i supply arguments to it .The arguement is a file on my local directory .The error code follows:-
    I have problem running a oracle procedure which uses a xml parser built on java libraries.When i executed this procedure the following error came:-
    SQL> execute domsample('\oraclexdk\xdk\demo\plsql\parser','family.xml','error.txt');
    BEGIN domsample('\oraclexdk\xdk\demo\plsql\parser','family.xml','error.txt'); END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.SecurityException: relative pathnames are not
    allowed(\oraclexdk\xdk\demo\plsql\parser)
    ORA-06512: at "SYS.XMLPARSERCOVER", line 0
    ORA-06512: at "SYS.XMLPARSER", line 144
    ORA-06512: at "IWADM.DOMSAMPLE", line 77
    ORA-06512: at line 1
    Do you know something about this .ie. classpath variables or something like that.if you want the domsample arguement syntax for further clarifications ,i am enclosing this in the following lines.The setbasedir(p,dir) prompts for a parser object and a complete directory path.what i give here is the path on my local directory and i think this creates the error.
    How do i rectify this error.is it on my(client) side or the server side.If it on the oracle server side or my side can you tell me what went wrong.The parser and the dom package everything else is working fine.It is really urgent ,andrew.This is holding up all the work.The arguement syntax help says on 'dir' that this is a pointer to external file system .I have a confusion that whether this refers to external file system of the server or the client.if so form the server how to route it to the client directory or should i have a space on the server, upload this file and execute the domsample.sql file.Can you clear this concept for me.
    'dir' - must point to a valid directory on the external file system
    and should be specified as a complete path name
    'inpfile' - must point to the file located under 'dir', containing the
    XML document to be parsed
    'errfile' - must point to a file you wish to use to record errors; this
    file will be created under 'dir'
    I know i might be bugging you ,but your answers are really great.Thanks.
    regards
    gopal

    I seem to have this error with both windows and unix directory space.Please help me with debugging this .I am really struck with it.The error occurs at the same line when executed with the file on the unix server.
    SQL> execute domsample('/user/sb8066/','family.xml','error.txt');
    BEGIN domsample('/user/sb8066/','family.xml','error.txt'); END;
    ERROR at line 1:
    ORA-20100: Error occurred while parsing: Permission denied
    ORA-06512: at "SYS.XMLPARSER", line 22
    ORA-06512: at "SYS.XMLPARSER", line 69
    ORA-06512: at "IWADM.DOMSAMPLE", line 63
    ORA-06512: at line 1
    I won't clutter the forum.just to get your attention,i hope you can help me solving this problem,please can you see this thread,because in future i will be using this only to contact you.Thanks for the continued help.The windows space idea was not used.Many configurations had to be changed.Can you note what is peculiar at line 22 ,line 69.line 63 of domsample reads is just an 'end-if';I will expecting your answer as soon as possible.
    regards
    gopal

  • Error while executing the .sql file

    Hello,
    Every time when i execute the below plsql it's keep throwing the error message as show in below output, this happens even when i manually create the trigger before executing the .sql file of all the below statements, can you please correct me what i am doing wrong here. Thank you.
    DROP TABLE FCSDWH.REF_DATA_MASTER;
    CREATE TABLE FCSDWH.REF_DATA_MASTER
    REF_DATA_MASTER_ID                      NUMBER PRIMARY KEY,
    DESCRIPTION                                     VARCHAR2(255 CHAR),
    CREATE_ID                                       VARCHAR2(10 CHAR),
    CREATE_DT                                       DATE,
    LST_UPD_ID                                      VARCHAR2(10 CHAR),
    LST_UPD_DT                                      DATE,
    ACT_STRT_DT                                     DATE,
    ACT_END_DT                                      DATE
    TABLESPACE FCSDWH
    STORAGE(INITIAL 50K);
    DROP SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ;
    CREATE SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ START WITH 1 INCREMENT BY 1;
    DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG";
    CREATE OR REPLACE TRIGGER FCSDWH.REF_DATA_MASTER_TRG
    BEFORE INSERT ON FCSDWH.REF_DATA_MASTER
    FOR EACH ROW
    BEGIN
    SELECT FCSDWH.REF_DATA_MASTER_SEQ.NEXTVAL INTO :NEW.REF_DATA_MASTER_ID FROM DUAL;
    END;
    /Output:
    SQL> @/home/smadala/REF_DATA_MASTER.SQL
    Table dropped.
    Table created.
    Sequence dropped.
    Sequence created.
    DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG"
    ERROR at line 1:
    ORA-04080: trigger 'FCSDWH.REF_DATA_MASTER_TRG' does not exist
    Trigger created.
    SQL>

    The trigger is "attached" to the table so when you drop the table the trigger goes as well.
    John

  • Importing and executing a .sql file into  Oracle 10g

    Hi
    I am looking to import and execute a .sql file(create scripts created of a databse designed in MS SQL Server 2005). The file was imported into Oracle APEX 3.10 but we are unable to execute the script. Please suggest alternatives as to how we can import these files.
    Thanks in advance.

    You likely need to migrate the database (objects and data). This is not so easy and you should have a look to migration tools: http://www.oracle.com/technology/oramag/oracle/07-sep/o57sql.html.

Maybe you are looking for

  • Suppression other than zero

    Currently using old version 4.2 and I'm fairly new to EVDRE having always used EVGTS etc. I'm trying to clean up our existing account dimension by searching for accounts that have a zero value.  I know of course you can use zero suppression to suppre

  • Terminal: could not open a new pseudo-tty

    Since I upgraded to Leopard my Terminal started to misbehave. Many times when i open it or a new window or just a new tab, all it displays it the message: Could not open a new pseudo-tty. An I cannot type in it or anything. Even if I quit Terminal an

  • Enhancement for validating SOLD TO PARTY and SHIP TO PARTY

    Hi All, Have written in the form routine USEREXIT_CHECK_VBAK to validate the sold to party and ship to party, but whenever error is encounted the  input fields comes in display mode but i need that in change mode so that user can enter the input agai

  • An unexpected error occured. PDFMaker was unable to produce the adobe PDF

    "An unexpected error occured. PDFMaker was unable to produce the adobe PDF." When trying to print PDF from Publisher (MS Office 2010) version 14.0.6129.5000 32bit. I am able to print to PDF Printer. I am using Adobe Acrobat 10.1.5. Windows 7 64bit.

  • Export quality loss

    I must be missing something. Is there some place I can read all about codecs and video formats and how to export from FCE without massive quality losses? Typical example: I download a one-minute video in MPEG-4 format. It's 114MB, 1280x720, uses AAC