How to compile Reports sample OCI program in Sun solaris ?

TO All:
Here is reports OCI sample program.
#include <stdio.h>
long ret,rwcrun(),rwcsql();
main()
char options[132];
long len;
strcpy(options,"userid=ps51/ps51 report=emp batch=yes paramform=no destype=file desname=l.ps");
printf("/options are: %s",options);
len=strlen(options);
ret=rw2run(options);
printf("/n Value of return code is %d",ret);
exit();
Pls guide me , how to compile this program in Sun Solaris platform .
1. Which library file I need to include.
2. How to create make (.mk) file.
If I compile this program using below command.
$>cc ociprg.c r30dll.o
then "rw2run" not found error.
Also I need to use RW2RRB oci function, for this which library I need to use.
Thanks in Advance
Siva
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by R.Siva Kumar [[email protected]]:
TO All:
Here is reports OCI sample program.
<HR></BLOCKQUOTE>
null

Similar Messages

  • How to compile version independent OCI program?

    Hi,
    I am trying to compile my C++ application on linux which uses oci library. I have installed oracle 11g on my system.
    My make file looks like this -
    [SKIP]
    ifeq ($(PLATFORM),LINUX)
    ORACLELIBS= -L$(ORACLE_HOME)/lib -lclntsh \
              -L/usr/lib \
    -lm -lpthread
    endif
    [SKIP]
    $(ORACLE_HOME)/lib contains following files -
    libclntsh.so =>libclntsh.so.11.1
    libclntsh.so.10.1 =>libclntsh.so
    libclntsh.so.11.1
    This works fine with Oracle 11g.
    Now I am wondering If I run my application with oracle 10g, Do I need to need to relink my application?
    My application should work fine with both Oracle 10g and Oracle 11g. I don't want to keep two different versions..
    Thanks in advance ,
    Mac

    If I compile mysampleApp with Oracle 10g shared
    libraries, it shows dependency (ldd mysampleApp ) on
    libclntsh.so.10.1. Now if I run my application on the
    system having oracle 11g, it will still look for
    libclntsh.so.10.1. Oracle 11g has libclntsh.so.11.1.
    My application will fail.You should compile your app against either 10g or 11g, and deploy your app with the Instant Client runtime it needs. This makes your app independent of which shared libs the server uses, because you package your own Oracle runtime with your app. --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to  compile and run javacard program

    how to compile and run javacard program "HelloWorld"

    1. Where is save Servlet program?
    2. How to set classpath?
    3. how compile and run?
    http://www.coreservlets.com

  • Help on How to compile and execute awt programs

    can any1 say how to compile and execute awt programs
    Edited by: 863765 on Jul 18, 2011 3:29 AM

    EJP wrote:
    The answer is the same for anycode.Oh, but it's not. If he starts with MyClass.java, and we tell him
    javac MyClass.java
    java -cp . MyClassthen that advice won't work when he creates MyClass2. The poor guy will be left lost and alone, with no clue how to proceed! {noformat};-){noformat}

  • Using GCC on SunSolaris2.8 to compile and link sample OCI programs

    Hi,
    Does anyone have sample make file (or modified version of demo_rdbms.mk) or command to compile and link OCI demo programs using gcc?? I am trying to compile and link cdemo81.c from rdbms/demo directory.
    gcc related files are under /usr/local/bin and /usr/local/lib, /us/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1
    Thanks

    Hi,
    I finally got cdemo81.c to compile and link on Solaris 8 using Oracle 8.1.7.3. I got some help from one other person who had posted similar question on this forum. Following is the makefile that I am currently using to compile my oci code. Please note that you need to have $(ORACLE_HOME) and LD_LIBRARTY_PATH set before you try to compile using gcc.
    ************** Makefile Starts here ***********************************
    CPP=g++
    CC=gcc
    LD=ld
    CCFLAGS= -g
    CPPFLAGS=-g3 -Wall
    INCDIR=-I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/network/public
    LIBNAME=liboralib
    SOEXT=.so
    DLLINK=-shared -ldl
    ###SOFLAGS=-shared -Wl,-expect_unresolved -Wl,-soname,$(LIBNAME)$(SOEXT) $(LIBPATH)
    SOFLAGS=-shared -Wl
    LDFLAGS=-shared -expect_unresolved * -soname
    LIBPATH=-L$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/lib/ -R$(ORACLE_HOME)/lib/ -R$(ORACLE_HOME)/rdbms/lib/
    ORALIBS= -lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -lnoname8 -lntcp8 \
    -lntcps8 -lnsslb8 -lntcp8 -lntns8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8 -lnus8 \
    -lnldap8 -lldapclnt8 -lnsslb8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8 \
    -lntcp8 -lntns8 -ln8 -lnl8 -lclient8 -lvsn8 -lcommon8 -lgeneric8 \
    -lmm -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lnbeq8 -lnhost8 -lnus8 -lnldap8 \
    -lldapclnt8 -lnsslb8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lntcp8 \
    -lntns8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8 \
    -lnsslb8 -lnoname8 -lntcp8 -lntcps8 -lnsslb8 -lntcp8 -lntns8 -ln8 \
    -lnl8 -lclient8 -lvsn8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8 \
    -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lcommon8 -lgeneric8 -lnls8 \
    -lcore8 -lnls8 -lcore8 -lnls8 -lnsl -lsocket -lgen -ldl -lsched \
    -lc -laio -lposix4 -lkstat -lm -lthread -lwtc8
    LIBS=$(ORACLE_HOME)/rdbms/lib/defopt.o $(ORACLE_HOME)/lib/sscoreed.o $(ORACLE_HOME)/lib/libclntsh.so $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORALIBS)
    ##LIBS=$(ORACLE_HOME)/rdbms/lib/defopt.o $(ORACLE_HOME)/lib/sscoreed.o $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORALIBS)
    ###LIBS=$(ORACLE_HOME)/rdbms/lib/ssdbaed.o $(ORACLE_HOME)/lib/nautab.o $(ORACLE_HOME)/lib/naeet.o $(ORACLE_HOME)/lib/naect.o $(ORACLE_HOME)/lib/naedhs.o $(ORALIBS)
    ORALIBSO=-lnetv2 -lnttcp -lnetwork -lncr -lclient8 -lvsn -lcommon8 -lgeneric8 \
    -lmm -lnlsrtl3 -lcore8 -lnlsrtl3 -lcore8 -lnlsrtl3 -lnetv2 -lnttcp \
    -lnetwork -lncr -lclient8 -lvsn -lcommon8 -lgeneric8 -lepc -lnlsrtl3 \
    -lcore8 -lnlsrtl3 -lcore8 -lnlsrtl3 -lclient8 -lvsn -lcommon8 -lgeneric8 \
    -lnlsrtl3 -lcore8 -lnlsrtl3 -lcore8 -lnlsrtl3 -lnsl -lm -ldl -lm \
    -ldl -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr \
    -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp -lnetwork -lncr \
    -lnetv2 -lnttcp -lnetwork -lncr -lsql
    ###-lnbeq8 -lnhost8 -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -lnoss8 -lnoname8 -lntcp8 \
    #ORALIBS=-lnetv2 -lnttcp -lnetwork -lncr -lclient8 -lvsn -lcommon8 -lgeneric8 \
    # -lmm -lcore8 -lnlsrtl3 -lepc -lnsl -lm -ldl
    CPPOBJECTS=orabase.o orastmt.o
    HEADER=orabase.h orastmt.h
    .SUFFIXES: .cc .c
    ###.c.o:
    ###     $(CC) $(CCFLAGS) $(INCDIR) -o $@ -c $<
    .cc.o:
         $(CPP) $(CPPFLAGS) $(INCDIR) -o $@ -c $<
    #lib: $(CPPOBJECTS) $(HEADERS)
    #     $(CPP) $(CPPFLAGS) $(SOFLAGS) $(LIBPATH) -o $(LIBNAME)$(SOEXT) $(CPPOBJECTS) $(LIBS)
    #clean:
    #     $(RM) *.o core *~
    #distclean: clean
    #     $(RM) $(LIBNAME)$(SOEXT) so_locations
    ###ocimanager:     ocimanager.o
    ###     $(CC) -o $@ $(LIBPATH) $(LIBS) $<
    ocimanager.so: ../obj/ocimanager.o
         $(CC) $(LIBPATH) -o ocimanager.so -G ../obj/ocimanager.o $(LIBS)
    ##     gcc -L$(ORACLE_HOME)/lib/ -L$(ORACLE_HOME)/rdbms/lib/ -o ocimanager.so -G ../obj/ocimanager.o $(LIBS)
    ../obj/ocimanager.o: ocimanager.c ocimanager.h
         $(CC) $(CCFLAGS) $(INCDIR) -o ../obj/ocimanager.o -c ocimanager.c
    **************** Makefile ends here*********************************************
    Hope this helps
    Brunda

  • Compile OCI program in Sun wrokshop

    Hi, I am new to Sun workshop and Oracle OCI. How can I set up the environment to comipler Oracle OCI in Forte Sun workshop without using oracle make file?
    Thanks,
    Sherry

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by R.Siva Kumar [[email protected]]:
    TO All:
    Here is reports OCI sample program.
    <HR></BLOCKQUOTE>
    null

  • How to compile and run package programs in Java

    Hi,
    I want to know how to compile and run the package programs in Java using -d. instead of creating the package folder manually.
    eg:
    package Test;
    class test1
    public void disp()
    //Any code;
    I want to compile this without creating the folder ' Test ' manually. that is if we use -d with javac the Test folder will be created automatically. I need the format of -d
    could anyone please help me.
    Thanks in Advance ,
    Ambika

    My program Test.java in F:\Tomcat5\webapps\Ambika\WEB-INF\Classes. I compiled in the format below. I got like this. What should I do for this? But yesterday I compiled like this only, It compiled and the folder com\cert\Test.class is created. Today again I compiled the pgm after deleting the already created folder 'com\cert', I got the error like this.
    I've given my pgm and the thing I've got when I compiled it.
    Test.java
    package com.cert;
    public class Test
         public void display()
              System.out.println("Hai");
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>javac -d F:\Tomcat5\webapps\Ambika\WEB-INF\Classes\Test.java
    javac: no source files
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are u
    sed
    -classpath <path> Specify where to find user class files
    -cp <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -endorseddirs <dirs> Override location of endorsed standards path
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -version Version information
    -help Print a synopsis of standard options
    -X Print a synopsis of nonstandard options
    -J<flag> Pass <flag> directly to the runtime system
    F:\Tomcat5\webapps\Ambika\WEB-INF\Classes>
    Plz help me.
    thanks in advance
    Ambika

  • How to create reports for java programs?

    Hi,
    I have planned to do a project using java,that will help to create reports for java programs. To create reports for java programs i used two options.
    1)Crystal reports
    2)Write the code to produce reports for each java programs
    The second one little cumbersome.SO i planned to develop a software that is compatible for creating java reports.
    I would like to know how i will do the project?Can you help me to made it a successful project.Hope you can help me.
    Expecting your reply
    PreethiRenjith

    Uggg... Crystal reports...
    I would personally write a generic report generator, It would probably be easier than fighting w/
    crystal reports (CR is popular, but painful :) )
    Anyhow, I've written report generators for many different applications. It is one of the simplest projects you
    can take on, and the results make you feel special --
    If your need nicely formated, portable, printable reports, you could have your report generator make PDF files (the format is open, and VERY simple, plus people like pdf files) you can get the pdf spec from adobe or from wotsit.org (the famous wotsit file format archive).
    enjoy!

  • How to compile and run java program at command console

    hi there
    can anyone tell me how to compile and run a java program at command console? I have installed JRE 1.3.1, and also have installed JBuilder 5 if it helps.

    try this
    System.out.println("Enter your Name : ");
    BufferedReader console = new BufferedReader( new InputStreamReader( System.in ) );
    String s = console.readLine();
    System.out.println("Hello : "+ s+" !" );

  • How To Skip Report of Submit Program

    Hello All,
    I am submitting a Report program from a Program and should return to the calling program after processing.
    I have used  SUBMIT program WITH Parameters
                                                    AND RETURN .
    with this syntax, report of the submit program is displayed first, followed by the report of main program. I do not want the list of submit program to be displayed. How can I skip the same? Please advice.
    Thanks in advance,
    Pallavi.

    Hi Pallavi,
    Use SUBMIT Program  EXPORTING LIST TO MEMORY
              AND  RETURN.
    To use this data of the submitted report follow below process.
    Than once you return to ur main program CALL FUNCTION 'LIST_FROM_MEMORY'
    than to conver this list to text format  CALL FUNCTION 'LIST_TO_ASCI'
    Finally dont forget to use CALL FUNCTION 'LIST_FREE_MEMORY'.
    Regards,
    Ganesh.
    Edited by: Ganesh Lathi on Oct 4, 2011 1:45 PM

  • How to restore a Oracle 9i Backup from Sun Solaris to Linux

    Dear all,
    I am using Oracle 9.0.1.
    I make a Hot Backup which made by Rman in the Sun Solaris
    and now, I want to restore this backup to the Linux machine.
    But in the Linux machine,
    the database name & path is different from that in Sun Solaris.
    Does Oracle backup can restore across different platforms?
    Does anyone know how to do write ryman statement to do this?
    Thank for your kindly help.
    Wilson

    You cant resore backup in different platform.
    /Jonas

  • How do I setup high speed internet on Sun Solaris 10?

    Hello,
    I have comcast high speed internet. It doesn't work automatically. How can I setup my high speed internet connection to work with Sun Solaris 10?
    Mateusz

    Pickup a broadband router, made by dlink, linksys, netgear, SMC or Cisco. If possible get a wireless with 4 port switch built in. This will give you added flexibility if you happen to get another system or a wireless laptop. You want a gateway router that does NAT, SPI firewall, DHCP.
    Plug it into your cable modem then into your sun box, default settings on the router will generally self configure to the broadband you connect to and there will be no problems. However if you are using a DSL or bigpond they require a username and password to get the line active, this requires an initial login to the firewall to pick PPoE on the WAN side.
    Different brands default to different 'non routeable' internal IP's, all are 192.168.x.x, smc defaults to 192.168.1.x or 192.168.2.x depending on release date, Linksys defaults to 192.168.2.x as does linksys, Netgear defaults to 192.168.1.x, the owners manual will usually tell you this.
    They are generally made to default to a windows box so configuring a unix box has to be done either manually or with the dhcp option. www.dslreports.com has alot of good vendor specific information on configuring these things.
    At any rate you need to create a file in /etc called 'defaultrouter' with the routers IP address, in the smc case it would be 192.168.2.1, pick a couple of outside DNS servers and put them in a file in /etc called resolv.conf in the format
    nameserver xxx.xxx.xxx.xxx
    nameserver xxx.xxx.xxx.xxx
    copy nsswitch.dns nsswitch.conf
    pick an address in the 192.168.2 range like .25 and add it in the /etc/hosts file, create a hostname.hme0 file with the host name thats in the hosts file and reboot.
    Then try to ping the router, if no ping then the chang the 3td octet 1 instead of 2 and try again.
    I've never tried doing the .dhcp thing but I've never used dhcp for a sun box before because all I do is servers.
    I think I'd try the DHCP thing first then get to the router to get all it's information and write it down. Usually the ISP will populate the router with dns servers and any dns requests are answered by the router in the dhcp configuration. I think thats about it...

  • How to find a unused hard disk in Sun Solaris unix

    Hi All,
    Can any one tell, how to find all the unused hard disk in Sun Solaris using Unix command.
    Thanks & Regds
    PAN

    not understand your question, find command is used to look for files, not disks.
    easier way is to logon to your system open up 2 windows, on 1 window # cat /etc/vfstab
    on second window type format.
    format will list all the disks in your system.
    vfstab file will list all the potential disks and slices used as swap devices and filesystems like your os and application filesystems etc ...
    then you compares left and right.
    but even then be very very very careful if you find disks in "format" not found in /etc/vfstab doesn't mean disk not in use, if your system is clustered the clustered resources like mounted volumes will not show up under the /etc/vfstab
    if you not familiar with unix u better dun touch.

  • How to compile all the SAP programs?

    Hi,
    When i click on a t.code its taking sometime to compile the program associate with it. May i know how can i compile all the programs at one short so that i dont have to compile them one by one?

    Hi,
            Type TCode--
    1. -> SGEN
    2. -> Select the first option as All the component
    3. -> Select ALL the component like SAP_BASIS, SAP_ABA,
            PI_BASIS,..... etc.
    4. -> Now run it.
    5. -> Select the option like Schedule it or Run Directly.
    Make sure that you run SGEN in non-working hours and also suggest you to make sure that archive mode is off or your autoextend mode is on because of the load generation.
    Best of Luck,
    Gaurav

  • How to compile and Run servlet Program

    Hi,
    pls help me the following doubt
    i am using Tomacat 4.1 server.
    1. Where is save Servlet program?
    2. How to set classpath?
    3. how compile and run?
    bye
    Mathi

    1. Where is save Servlet program?
    2. How to set classpath?
    3. how compile and run?
    http://www.coreservlets.com

Maybe you are looking for

  • New iTunes for managing apps

    Dislaimer: I am NOT an experience iTunes user! Question: How do I see my devices in a way I can manage the apps on them in the new iTunes? Background: I updated my iTunes yesterday to 11.01.12, the "new, even better" one. I understand it makes my mus

  • Error while trying to access repository from Application Explorer

    Hi All, I am trying to access the targets which I had previously created from AE. Everything was working fine. When I tried running iwae.sh script and open the target from AE it throws below error today. com.iwaysoftware.iwrepository.RepositoryExcept

  • KeyListener no longer working in JPanel

    Hi, I have implemented a graphics interface with JPanel with mouse action and movement captured. Everything works fine until I added KeyListener implementation. No matter what I do, I could not enable the key event. The top window is a JFrame which c

  • Trouble connecting to mySql database

    Hi Forum I have a site hosted with Godaddy, and have created a database, but I can not connect to the database with DW. 1)  I made made sure that the invisible file _mmServerScripts folder and the Connections folder are present both on my local machi

  • Mac App Store cannot update itunes, OS and remote desktop; keep saying it is updated and yet ask it ask you to update as in fact it is not updated

    I search my problem on web and got no solution. 1) mac app store shows some updates needed. e.g. itunes, remote desktop. 2) I clicked "update", and it changes to "installed" within seconds and then shows I have installed the update. 3) But the proble