Executing crystal reports through a shell script

We are currently in the processing of building a POC using Crystal reports and was hoping to find a way to execute canned crystal reports via a shell script. The reason being we wanted to schedule the executing of the report through our scheduler where we would build in the dependencies.
Does anyone have a simple example on how to do that.

What sort of shell script? Can you provide more info?
The only CR SDK is for .NET and Java.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter

Similar Messages

  • Problem-Report generation using shell script

    Hi
    We have the Production database and the Reporting database (copy of Production database),
    both on Oracle 9.2.0.5 and Solaris 5.8. There is a package inside the Oracle database, which extracts some data from inside the
    database, and would generate a report. A shell script has been created in Solaris which would
    send in the parameters and call the pakage to generate the report. The parameters it is sending is
    the name of report to be generated, and the location where it is to be generated, both hard-coded into
    the script. The script is scheduled to run through crontab.
    The problem we are facing is that, if we run the script for Reporting database, it successfully
    generates the report. But if we use that script for Production database, it gives the error
    "Invalid directory Path". I have tried using various other directory paths, even '/tmp'
    and '/', but it still gives the same error when executed for Production dataabse.
    Could somebody provide any ideas what might be going wrong.
    The reasons it is to be executed on Prod db and not the Reporting database are unavoidable.
    It anyway runs in off business hours and takes about 10secs to execute.
    Please do let me know if there is any other info that I missed to provide here.
    Thanks in advance...

    I will be just guessing because you didn't provide contents of script and package.
    The "Invalid directory path" as you said could be ORA-29280 due non existent directory.
    Try execute (as sys or system) select * from dba_directories; (or select * from all_directories; as user which the script is login to) on both databases and compare the results. If there is missing your important directory then create it using create directory <dirname>; (from sqlplus and don't forget to grant rights for user).
    This error could come from shell script. In that case you should find resolution yourself because you didn't provide script source.

  • Oracle BI Publisher 10.1.3.4-Can you execute a report via a unix script

    Would like to know if its possible to run an OBI-Publisher report using a command line or a unix script instead of using the scheduler.
    If so anyone have a sample of how to accomplish this...
    Thanks in advance...
    DS

    Check these, use that forum for specific to BIP
    Re: Run BI Publisher from the command line through a shell script
    Is there a UNIX command line to export/import XML Publisher templates?
    Ifhelps mark

  • Unable to pass parameter in oracle procedure through unix shell script

    Hi Experts,
    I have oracle procedure where in I have to pass the value of procedure parameter through unix script.
    Follwoing is the sample procedure which i tried to exceute from the unix.
    Procedure:
    create or replace procedure OWNER.PRC_TESTING_OWNER(OWNER IN VARCHAR2) AS
    sql_stmt varchar2(1000) := NULL;
    v_count number := 0;
    v_owner varchar2(100) := owner;
    begin
    sql_stmt:='select count(1) from '||v_owner||'.EMP@infodb where rownum<=10';
    execute immediate sql_stmt into v_count;
    DBMS_OUTPUT.PUT_LINE(sql_stmt);
    DBMS_OUTPUT.PUT_LINE(v_count);
    END;The script which I used is:
    Unix
    #!/bin/ksh
    parm=$1
    echo start
    sqlplus -s scott@DEV/tiger <<EOF >>result_1.txt
    set serveroutput on;
    select '$parm' from dual;
    exec owner.PRC_TESTING_OWNER('$parm');
    EOFThe script is working fine that is i am able to pass to parameter value through unix shell script. :)
    But if I want to pass the value of the owner in cursor , I am unable to pass this value through unix.
    Following the procedure which i am trying to implement.
    create or replace procedure OWNER.PRC_TESTING_OWNER(OWNER IN VARCHAR2) IS
    v_owner varchar2(100) := owner;
    CURSOR main_cur IS 
      select
      i.ROWID  rid ,
      emp_name,
      deptid
      from v_owner.employee;
    CURSOR subset_cur(c_deptid NUMBER ) IS
        SELECT *
          FROM v_owner.DEPT d
          where  d.dept_id=c_deptid;
    --##main loop     
    FOR i IN main_cur LOOP
          FOR j IN subset_cur(i.deptid) LOOP     
    BEGIN
    insert into v_owner.RESULT_TABLE
    END;
    END LOOP;
    END LOOP;How can i pass parameter value of the stored procedure through unix script(that is "owner" in this case), when these parameter value is
    used in cursor? :(
    Can anybody help me regarding the same?
    Thanks in Advance !! :D

    It's not the parameter in the cursor that is the problem, it's that you are trying to use static SQL for something that won't be known until run time (the owner of the table).
    You would need to use something like ...
    declare
       l_owner        varchar2(30) := 'SCOTT';
       l_ref_cursor   sys_refcursor;  
       type l_ename_tab is table of scott.emp.ename%type;
       l_ename_array  l_ename_tab;
    begin
       open l_ref_cursor for
          'select ename
          from ' || l_owner || '.emp';
       loop
          fetch l_ref_cursor bulk collect into l_ename_array limit 10;
          exit when l_ename_array.COUNT = 0;
          for x in 1 .. l_ename_array.count
          loop
             dbms_output.put_line(l_ename_array(x));
          end loop;
       end loop;
       close l_ref_cursor;
    end;
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01

  • Altering schema of tables/objects inside a crystal report through API

    hi all,
            We run crystal reports through a Java application (using CR4E API) connecting to Oracle database. All the tables/views within the report do not use fully qualified names (i.e. schemaName.objectName) instead they use the object name alone. Earlier we would run all the reports logging in as the schema owner and hence all the objects would be accessible without issue. Per a new requirement we now log in as a non-schema owner ID and the objects are now not accessible to this user id unless a fully qualified object is not provided as the default context schema will now be different.
           We tried altering the schema through the API like so,
            ITable origTable = null;
            ITable newTable = null;
            String DB_USER_NAME = username;
            String DB_PASSWORD = password;
            String TRUSTED_CONNECTION = "true";
            String SERVER_TYPE = "JDBC (JNDI)";
            String USE_JDBC = "true";
            String DATABASE_DLL = "crdb_jdbc.dll";
            String JNDI_DATASOURCE_NAME = jndiName;
            String CONNECTION_URL = connectionURL;
            String DATABASE_CLASS_NAME = driverName;
    Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
                for(int i = 0;i < tables.size();i++){
                    origTable = tables.getTable(i);
                    if (tableName == null || origTable.getName().equals(tableName)) {
                        newTable = (ITable)origTable.clone(true);
                    newTable.setQualifiedName("TestSchema." + origTable.getAlias());    <--- Set actual schema here but it still takes the alias as "command"
    Are we doing anything wrong here? It appears that the table name is always "command", internally I think CR uses the name command for its table and we are not allowed to change it. The table name, alias and qualifier name are be default set to "command" by CR. If I append schema name to the table name I get schemaName.command as against schemaName.objectName.
    Synyonyms are not an option for us for various reasons. We will not be able to go down that road no matter what. However we are looking at an API related solution here so if anyone could advise in this regard it would be very helpful.

    Lindell - your response was very helpful.  I was able to create a SQL Command on the subreport and change the subreport links on the main report to use the paramters in the SQL Command.  The report is now very fast - even when there are lots of detail records on the main report.  It is properly executing the query and not reading all 2M records into memory for each subreport.
    I'm still totally confused as to why Crystal was misbehaving so poorly and changing how the subreport queried the database when the only change was the fields used for record selection on the main report.  It really looks like a bug to me, but maybe someone can still enlighten me.
    thanks again so much.  We are in Parallel testing for a production rollout - and the users are MUCH happier now!  (which of course makes me much happier!)
    Susan
    PS I was not aware of the SQL Command - had never used it before.  Took me a little while to figure it out and how to do the linking - but it is very powerful.  Thanks again.

  • Calling a report from unix shell script

    Hi,
    I had to call a report from unix shell script.
    May i know the procedure to accomplish this
    Thanks in Advance
    A.Gopal

    First you should not include the whole path to your report in the call ...
    Use like this:
    /ora/u01/oracle/v101/as2/bin/rwrun.sh report=an_stati destype=file desname=/ora/u01/oracle/v101/as2/test.pdf desformat=pdf
    In $ORACLE_HOME/bin/reports.sh:
    1) Verify that you have updated the REPORTS_PATH variable to include your folder where you have the report in question
    REPORTS_PATH=/ora/u20/app/qits/env1/run:$ORACLE_HOME/reports/templates:$ORACLE_HOME/reports/samples/demo: ....
    2) Verify that the REPORTS_TMP variable is pointing to a valid location and that the oracle user has access to write on it.
    After that, post the content of the tracefile located at $ORACLE_HOME/reports/logs/{in-process report server name folder}/rwserver.trc
    If no file is present then it means that you need to enable trace in your reports's conf file.... go to the $ORACLE_HOME/reports/conf folder and and locate the .conf file that correspond to your in-process reports server name (as specified in the rwservelet.properties file)... open/edit the file to enable trace logs ..
    i.e.
    Change the following line:
    <!--trace traceOpts="trace_all"/-->
    to <trace traceOpts="trace_all"/>
    Bounce the reports server and try to run the report again, this time the .trc file should be generated, post the content so that we can take a look.

  • Creating Sap Crystal Report Through Oracle Stored Procedure Packages

    Hi,   
    1.How we can create crystal report through oracle stored
    procedure packages pls tell me the steps through adding command then
    tell me the syntax what should i write in command to call the stored
    procedure packages or if have some other option then also tell. 
    2.can
    we link stored procedure column to other table column that used in
    report.

    Hi Ganesh,
    As this error comes when you are trying to insert non-numeric value into a numeric column in db it seems that your field might be numeric and you are trying to send it as a string in database.
    Please check your Store Proc carefully..
    Reference Thread: Oracle/PLSQL: ORA-01722
    --Dhana

  • How to read specific line in a file through UNIX shell script..

    Dear Friends,
    I have generated .ldt file under admin/import/US folder through FND_LOAD script for Download the responsibility.
    I registred Shell script (Host concurrent program) in Oracle apps. Now i want to read the file in speciific line which i was generated in admin/import/US folder through unix shell script. Please help me how to read specific line and the i want to replace that which i am going to read the specific line.
    Thanks in advance..
    Regards,
    Velu.

    Hi,
    Thanks for reply,
    My requirement i have to find the specific line in a file and find and replace needed word over there it's should happen programatically. i want to read specific line in a file Once complete find and replace the condition should exists. The loop will go to next file and read the same line in next file also do the same process upto how many files over there.i am doing through UNIX shell script. Please help me out to find the
    Your suggestion is highly appriciated.
    Thanks,
    Velu.

  • Run crystal report through BI, can't locate par file on BOBJ server

    Attempting to run crystal report through BI iView. 
    Followed steps here: http://wiki.sdn.sap.com/wiki/display/BOBJ/CreateBOEXI3.1IntegrationKitIViewTemplateintoSAPEP+Portal
    successful until we try to locate the par file:
    com.businessobjects.pct.masteriview.par
    Is there something we need to install to be able to load this file, or is there somewhere we can download.
    As of now, stopped b/c can't find
    com.businessobjects.pct.masteriview.par

    Thanks Ingo, would this be the correct file to download and install?
    Download BusinessObjects XI 3.1 Java Portal Integration Kit - WAR 10 MB
    Located here:
    http://www.sdn.sap.com/irj/boc/enterprise;jsessionid=(J2EE3414800)ID1586935850DB11532971180627469992End?rid=/webcontent/uuid/503988db-58c5-2b10-f79d-cb96700417f9
    then click Download BusinessObjects XI 3.1 Java Portal Integration Kit - WAR 10 MB
    to get here:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f0c30ff1-4e75-2c10-a385-8eff81c946aa
    We currently have BOBJ set up, CMC/INFOVIEW, and crystal linked to SAP BI...so I thought we'd installed everything we need, I guess this is more for portal...b/c now our goal is to see what crystal reports look like in BI portal instead of infoview.
    thanks a lot,
    matt

  • Crystal Reports through MSY

    Hi,
    I have to make a crystal report for the activities of type complaints in Mobile Sales Application through Mobile System Maintenance.
    How can I create connection to databse while designing the crystal reports through Mobile System Maintenance. Are there any special settings need to be done to connect individual business object?
    Thanks,
    Swarna Seeta

    Hello Falk,
    Thanks for your response.
    Here are some more details of my query.
    I would like to design a crystal report through Mobile System Maintenance->Report Maintenance for the activity details. For that I need to link the business objects (BOACTIVITY) through database expert. I need the procedure to link the business object when I design the crystal report.
    Hope I am clear now. Let me know any more details you need.
    Thanks,
    Swarna Seeta

  • How to print crystal report through DOS

    Can we print a crystal report from report viewer in text mode for dot matrix printer through command prompt

    Hi
    I dont think there is a specific method for printing CR in DOS.
    Try the following procedure:
    first make a .txt file of the report and on the click execute a .bat file which should contain the command for printing to lpt1 the required generated .txt file.Use Shell() to execute the bat file.
    I hope this works for you
    Also check the following links:
    http://www.computing.net/answers/dos/dos-printing/9700.html
    and
    http://visualbasic.ittoolbox.com/groups/technical-functional/visualbasic-l/dos-printing-using-crystal-reports-987353
    Regards
    Chen

  • Calling a report from a shell script

    We are modifying all concurrent programs to encrypt the oracle password by using the "ENCRYPT" option in the concurrent program definition for all unix based programs.
    The db user/password is derived from the FCP_LOGIN within the shell script. If I submit the concurrent prorgam and go to the root directory on which the unix shell scripts are present and execute the following command :
    ps -ef
    I can see the call to the concurrent program and since I am using the encrypt method, i cannot see the password(I could see the password before the change)
    The problem is one of the shell scripts is calling an Oracle Report by using ar25run command which needs a userid as the parameter.
    So when I issue the above ps command, i can see the password in the call to this report.
    Is there any other way of passing the oracle user/password to the report? This is required for SOX compliance.
    thanks,

    I guess it should be the same problem as if you are calling CONCSUB from unix also, because both need userid and password.
    If that's the case probably metalink note 104541.1 might help you.

  • Error message when executing a report through a VB application

    Hello,
    I have a problem when I want to launch a Crystal Report 10 report in a Visual Basic application.
    I created a report using "Add a command" to add a SQL query to this report, the report is working well when I launch it in Crystal Report. But when I launch it in the application I get an error message "The table 'Command' could not be found".
    (Other reports are working in VB when I create a report whitout the sql command tool)
    How can I do to make this working through VB ?
    This application uses a sql server 2005 database.
    Thank's in advance for your help,
    Régis

    Thank's for your answer, yes I'm connecting through an ODBC connection, yes the VB app is running the same odbc entry.
    When I have only a "normal" link to a table the report is working well, the problem is that when I add a sql command in this report, the VB application thinks it's a "normal" sql table and it gives me the error message. The VB application didn't recognize that the table command in the report is a sql request. I don't know what's the difference between executing this report directly in CR or in the VB application, the report didn't react in the same way even if the ODBC entry is the same.
    I don't know if what I try to do is possible, is it possible to execute a CR report with a sql command in a VB application ?
    FI : I found yesterday the way to create the same report without a sql command, its working in the VB app. But it would be great if I could solve this problem because it's much more easier to create a report giving only the sql request and not to do that manually in the report (attaching all the tables, making the group by, sort...).

  • How to add OLE wordpad objects to a crystal report through VB program

    Can we programmatically add OLE wordpad objects to a crystal report XI r 2. through VB.NET or VB6?
    And is there a way of treating a database binary/blob field as an ole object in CR?

    Hi Mohan,
    Try it in the Designer first. If it works in the designer then it will work in our SDK's but you'll have to use RAS. So when you post your question to the .NET Development - Crystal Reports Forum be sure to specify what version you are using and anything else as far as versions go.
    It may be easier to simply link the OLE Object in the designer, check the help file out on how to.
    Thank you
    Don

  • Authorization problem to execute a report through portal

    Hi All,
    One of user while trying to execute report through portal, getting error message saying that
    "you are not authorized to execute the report XXXXXXX'
    Can not load query <query name> (data provider <data provider name> No authorizations for requested service.
    The report is a web template which is getting executed through portal.
    User is having all the authorizations to execute the report(report autho as well as infoprovider autho also)
    we have regenerated the user roles , done user comparision....every thing is OK.
    Still unable to execute the report.
    Please advice what can be done in this case....
    Regards

    Hi Shaik,
    Are you able to run this report with your user id?
    If so check the role or authorization objects which are missing to the user.
    And also check whether he got portal roles assigned to his profile.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on May 12, 2009 2:06 PM

Maybe you are looking for

  • Registering a Partner application with Oracle SSO 10gR2

    Hi Everybody I'd like to ask a question around registering a partner application with Oracle SSO. I have entered my home_url, logout_url and cancel_url e.g. home_url is https://vevopuitest1.co.uk/vevo_test1 and so on for the other fields. When I save

  • NO_PERMISSION Exception when calling secured EJB-methods

    In WL6.1, I have an Ejb with secured methods. The (Swing) client application accesses the Ejb through rmi-iiop using the JDK1.3.1 Orb. Unfortunately, it seems that the caller identity (which was supplied in the InitialContext lookup) is not propagate

  • Make the installer for my executable run the DAqcarddriver and runtime engine installer automatically

    *Hi I would like to know how to make the installer for my executable run the DAqcarddriver and runtime engine installer automatically I would like to include run time engine and the drivers of  my daqcard(AI16XE50),( and maybe Ni daq or anything else

  • Need help in solving java.io.NotSerializableException

    Hi, Weblogic 9.2 I need help in solving the java.io.NotSerializableException: weblogic.jndi.internal.ApplicationNamingNode I dont know why ApplicationNamingNode has to be serialized. Full stack trace will be provided if needed. thank you

  • Unicode conversion problem : File Separator

    Hi, I need help regarding Unicode conversion error for SAP program. In one program, I need to change the data type which is not unicode compatiable. Can anyone please help me to change the type, which i mentioned below : <b>constants: c_fs_delimiter