Linux C Programming, Acces to an Oracle Database on other Machine

Hi,
I want to develop a c console program for accessing to a oracle database which runs on an other machine. (TCP/IP)
What i need (which libraries, api, etc...) and where can i find them ?
If you can show me links containing simple examples i'll be happy.
I'm using Suse Linux 6.3
Thank you.
null

Hi,
What exactly do you want to be able to do from your console program. The only way that I've accessed the database from a C program is through OCI (Oracle Call Interface). From what I can tell this uses SqlNet (or Net8) to access the database. OCI usually comes with distributions of the database. This was probably no use to you. If you could give some more info I may be able to help more.
Carl
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ali basel ([email protected]):
Hi,
I want to develop a c console program for accessing to a oracle database which runs on an other machine. (TCP/IP)
What i need (which libraries, api, etc...) and where can i find them ?
If you can show me links containing simple examples i'll be happy.
I'm using Suse Linux 6.3
Thank you.<HR></BLOCKQUOTE>
null

Similar Messages

  • Oracle Database unavailable after machine restart

    I have a dedicated machine where I have installed Oracle Database 11.2.0.1.0 under Oracle Linux 6. It worked fine until today, when I had to shutdown the machine for physical relocation. Much to my surprise, when I have restarted the machine, EM wasn't available. Then I realized I could no longer remotely connect to the Database. Then I found out that the listener was down. Then I tried starting the listener, it said that no clients are supported. Then I tried to manually start the DB from sqlplus, I could not even log in to it. Then I ran dbca, which cried about EM not being secure. Then I found out that the emkey.ora was missing (and as a newbie, I hadn't made a backup).
    I spent 3 hours trying to figure out how to bring the DB online; I'm afraid I ran out of solutions. Right now I am rebuilding the whole EM Repository using dbca and hope for the best.
    Update: dbca finished with no errors. I can now connect with sqlplus and see that all data is there. However, EM still doesn't properly connect. I am getting "Enterprise Manager is not able to connect to the database instance". However, state of components lists:
    - Database Instance: Open
    - Listener status: UP
    - Agent connection to Instance: Succeeded
    I can't figure out why EM won't connect. I have this feeling it's a listener misconfiguration, however netca is very limited, just a next-next-next thing.
    My listener.ora is below:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = eburlacu)
    (ORACLE_HOME = /oracledb/product/11.2.0/dbhome_1)
    (SID_NAME = eburlacu)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = eburlacu-server.ro.oracle.com)(PORT = 1521))
    ADR_BASE_LISTENER = /oracledb
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER = OFF
    ...And why is EM using port 5500?
    LE: I can now remotely connect to the Database from a different machine, using Oracle SQL Developer, so the listener seems to be working well, after all. I'm confused now...
    Edited by: EduardB on Sep 28, 2012 3:24 PM

    Thank you for the response. It makes some sense, however I wouldn't have expected the Oracle DB to be so se sensitive to a simple machine move.
    The network configuration hasn't changed a bit. I am in the same network, I have the same IP (it's a static IP and a static DNS hostname which was granted to this machine specifically). I just changed floors.
    I never touched the EM environment. All I did was:
    1. Installed Oracle Database.
    2. Added a schema (basically created a new user).
    3. Allowed SQL Developer through the firewall.
    4. Remotely connected with SQL Developer and created tables and functions, all basic SQL work, nothing fancy.
    The restarts were simply for testing purposes (does it still start as expected? Are there warnings, error messages?). Two restarts were performed to re-arange some wiring, again nothing fancy.
    I am just a newbie doing some learning and gaining some hands-on experience (after taking Linux and SQL classes). The Oracle Database 11g Administration Workshops are scheduled for 2013 but in the meanwhile I am trying to understand why could my installation mess up so badly with no outside interaction.
    What would your advice be in this situation? Reinstall everything under OEL5 + 11.2.0.1.0? Reinstall OEL6 with clean 11.2.0.3.0 installation?
    Note: my first priority at this moment is hands-on experience with SQL. Since both sql*plus and Oracle SQL Developer can connect and work fine, should I simply stop bothering with EM for the moment and let it limp until I attend the Administration Workshops? I have almost half a million records in the DB but my SQL statements (saved on a different machine) can re-generate all the data in about 1h or so, so it's not a big deal if I wipe everything.

  • CAN I INSTALL BOTH (ORACLE 9IAS AND ORACLE DATABASE )INTO SAME MACHINE.

    oracle 9ias and oracle 9i database in same machine Feb 25, 2003 11:22 PM
    Reply
    Dear Friends,
    I installed oracle 9ias. and then i hosted my form,report into that server . All was working properly.
    at this time my database was into another machine.
    then i installed oracle 9i database into the same machine
    (as the oracle 9ias was installed)
    at the instalation of oracle 9i database one error comes
    and shows that Agent configuration Assistant Installation
    fail.
    but After installation of database it work properly.
    there is no problem.
    but when I try to run from through web(by using oracle 9ias)
    it gives Internal error(500).
    i check and find that my appache server for 9ias is working properly and in services of windows 2000 no error comes.
    HOW CAN I INSTALL BOTH (ORACLE 9IAS AND ORACLE DATABASE )INTO SAME MACHINE.
    With regards
    Siddharth Singh
    [email protected]

    Hi James,
    Have u ever tried ORACLE 9iAS R2 on Redhat Linux ?
    If yes what is the version of RH Linux you were using ?
    Any docs for that ?
    [email protected]
    Regards
    Amudharasu

  • CLONE ORACLE APPS DATABASE TO OTHER MACHINE

    Hi,
    I want to know how I can clone oracle APPS database to other machine.
    Just want to know the database part.
    Thanks in advance

    You really, really want to ask this in the appropriate Oracle Apps forum. Cloning the database may or may not be sufficient-- most packaged applications have their own data dictionaries that may need to be manipulated in application-specific ways in order to properly clone the application. The folks in the Oracle Apps forum should be able to tell you what scripts, if any, you'd need to run for your particular Oracle Apps version and database.
    Justin

  • How to start Oracle database in solaris Machine

    I installed Oracle database in my solaris machine. Everything went fine .. I was able to install it and test the database if it's working or not.
    Something happened that made me shut down and restart the solaris machine, the problem is that Oracle is not running, so I have to start it manually, and I'm not sure how to do that ... Is there a way to start Oracle automatically once the solaris machine is started ...
    I'm using the SSH Secure Shell Client to configure and install everything into the solaris machine ..

    Here is the work around for starting oracle instance automatically.
    1) logon the system as root user.
    2) under /etc/init.d/ directory, create a file name oraclestart(name the file to what you feel comfortable). eg: /etc/init.d/oraclestart.
    with the following content:
    #!/bin/sh
    # Created by Henry Nguyen
    # Date 10/11/2005
    # Script to automatic start and stop oracle instances on server
    ORACLE_HOME=/export/home/oracle/product/9.2.0.1.0 (diffrent on your system)
    if [ ! -f $ORACLE_HOME/bin/dbstart || ! -f $ORACLE_HOME/bin/dbshut ]; then
    echo missing oracle start/stop script
    exit 1
    fi
    case "$1" in
    'start')
    su - oracle -c '$ORACLE_HOME/bin/dbstart'
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl start'
    'stop')
    su - oracle -c '$ORACLE_HOME/bin/lsnrctl stop'
    su - oracle -c '$ORACLE_HOME/bin/dbshut'
    esac
    3) create 2 soft link as following:
    ln -s /etc/init.d/oraclestart /etc/rc2.d/S99oraclestart
    ln -s /etc/init.d/oraclestart /etc/rc0.d/K10oraclestart
    Note the S99 and K10: that are Solaris priorities to when start and stop an oracle instance and those letter must be capitalized.
    Hope this will help you

  • Hyperion 11.1.1.3 and Oracle Database on separate machines, any experience?

    Hi,
    anybody has experience on installing Hyperion 11.1.1.3 (and paths) on Windows 2003 Server with Oracle Database 11g installed on separate machine?
    Is there any known issue?
    thanks a lot
    robo

    Hi,
    Many installs the Oracle database is situated on a separate server than the hyperion install, it is quite common.
    As long as there is a good link between the machines you should be fine.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Oracle database on virtual machine without a license

    Hi,
    Someone told me earlier that you can install Oracle on a virtual machine without buying a license. Do you know an internet link that could confirm this.
    Thanks.

    What about preconfigured virtual machines Oracle distributes? Do you have to have a license for them as well? I'm pretty sure you do, it would say in big letters if you didn't need a license...
    I not can you alter the installations by building additional instances?Yes, you can add instances (except to an XE database) for testing but you asked about licensing a server...
    ~Jer

  • How to connect to an Oracle database on one machine from another client machine?

    I installed oracle database 11g (server and client) on one machine. It works perfectly. Then I installed oracle client (ODTwithODAC1120320) in another machine. Now I want to connect to the database of the previous machine. I tried to connect but It failed. I think .ORA files should be configured. What should I do to fulfill this.
    thanks...

    thank you for the quick response..
    this link Installing Oracle Database Client for oracle client installation. But the content refers all oracle database installation. could you please get know me that oracle client means only the OdtWithODAC or some thing else? This link Installing Oracle Database Client explain but not the OdtWithODAC. Please let me know clearly.
    Please let me know the exact name of the software that I should download from the oracle website that refers the oracle database client.
    thanks
    Priyashantha hp

  • How to sync Oracle Database with other DB

    Trying to find out if there is a way to keep my data set in oracle database in sync with other DB tyring to access the same data to make sure the data being grab is the most updated data.
    They mention about Oracle Pipe...whats that?
    thanks

    What is the "other database" being used for? Are you using it for disaster recovery? To offload reporting? Something else?
    Are you trying to replicate the entire database? Or some subset (a schema, a handful of tables, something else)?
    What version of Oracle are you using on the source? What database are you using on the destination?
    Are changes allowed on both databases? Or do you just need a master/ slave architecture?
    What is the acceptable delay between a change being made on the primary and that change becoming visible on the destination?
    Justin

  • Best way to move Oracle database to another machine

    Hello,
    I'm trying to find the best solution for that case:
    On first Unix machine I'm running 10g database. Whole oracle (binary files + datafiles + index + redo) takes about 350GB from my first storage.
    On second Unix machine (and second storage) I'd like to run exactly the same instance (the first one is going to be a backup server).
    I work in real OLTP environment, and I can only afford a 4-5 hours of downtime (in the night) to move from server 1. to 2.
    Could you recommend me the best solution for moving database to no. 2. My problem is, that between storage 1. and storage 2. I've only 30MB/s bandwidth, sequence:
    1) instance_on_1: shutdown immediate
    2) scp /u01/oracle server2:/u01/oracle
    3) instance_on_3: startup
    will take about 3-4 hours, so I would have no time to additional tasks.
    Best regards
    R.

    user2676302 wrote:
    Hello,
    I'm trying to find the best solution for that case:
    On first Unix machine I'm running 10g database. Whole oracle (binary files + datafiles + index + redo) takes about 350GB from my first storage.
    On second Unix machine (and second storage) I'd like to run exactly the same instance (the first one is going to be a backup server).
    I work in real OLTP environment, and I can only afford a 4-5 hours of downtime (in the night) to move from server 1. to 2.
    Could you recommend me the best solution for moving database to no. 2. My problem is, that between storage 1. and storage 2. I've only 30MB/s bandwidth, sequence:
    1) instance_on_1: shutdown immediate
    2) scp /u01/oracle server2:/u01/oracle
    3) instance_on_3: startup
    will take about 3-4 hours, so I would have no time to additional tasks.
    Best regards
    R.Hi and welcome to forum. Why don't you want to use DUPLICATE DATABASE command of RMAN to duplicate the databsae without any downtime?

  • Calling Dot Net program From oracle Database

    Hi
    is there any way to call DOT NET program Like C# from oracle database, i mean is there way to call it from pl-sql stored procedure or trigger ..etc
    I read that is possible with java , C, C++, but is it possible with C#
    Best Regards

    If your Oracle database is running on Windows and is a reasonably recent version (I believe 10.1 or later), it has the ability to create .Net stored procedures just like you have the ability to create Java stored procedures. That tends not to be a particularly commonly used feature but it's an option. If you compile your .Net application to a DLL, you could also call it as an external procedure.
    More commonly, however, if you're talking about a .Net program that is deployed on a middle tier server, however, would be for the .Net application to expose an API (say, a web service API) that the database could invoke (via UTL_DBWS or UTL_HTTP).
    Justin

  • Oracle Linux Patching/Updates Impact on Oracle Database

    I have several questions regarding Oracle Linux patching and its impact on Oracle Database.
    3 node Cluster
    Operating System: Oracle Linux Release 5 update 2
    Kernel: 2.6.18-92.1.22.0.1.el5 x86_64 GNU/Linux
    Grid Infrastructure: Oracle Grid Infrastructure 11g Release 2 (11.2.0.2)
    Database: Oracle Database 11g Release 2 Enterprise Edition (11.2.0.2) with RAC option
    ASM with ASMLib is being used for Data and FRA.
    *1)* Given your at Oracle Linux Release 5 update 2, will applying only Security Patches require any changes to ASMLib, Oracle Grid Infrastructure and/or Oracle Database (software binaries, configuration etc.)?
    *2)* Given your at Oracle Linux Release 5 update 2, will applying Bug Fixes and Security Patches to Oracle Linux 5 update 2 require any changes to ASMLib, Oracle Grid Infrastructure and/or Oracle Database (software binaries, configuration etc.)?
    *3)* Given your updating from Oracle Linux Release 5 update 2 to Oracle Linux Release 5 update 8, will this require any changes to ASMLib, Oracle Grid Infrastructure and/or Oracle Database (software binaries, configuration etc.)?
    I would most whole heartedly appreciate if someone could answer the specific questions asked, inline if possible. Our System Administrator is preparing to perform some patching and as the DBA I'd like to be certain what changes I need to prepare for? I also have a single instance database setup with Oracle Restart. I don't know if this impacts the answers above.
    Thanks in advance.

    How do you plan to apply Oracle Linux security patches? As far as I'm aware the yum security plug-in does not work with the Oracle public yum repository and there is no really feasible way to automate and determine security related patches only, unless you setup Oracle Enterprise Manager Grid Control (11g) or Cloud (12c)  and have a subscription to Oracle ULN.
    If you upgrade your Oracle Linux to the latest available version using the public yum repository, all patches, including errata will be applied. You cannot apply patches and stay on a specific release version unless you have a subscription and appropriate yum repository access.
    As far as I'm aware there are no changes required to your Oracle database or ASM setup and configuration when updating the OS, provided the version of the Oracle database is supported for the specific OS version (ASM features like ADVM/ACFS are kernel version depending). Upgrading from one major release to another, such as upgrading Oracle Linux 5 to Oracle Linux 6 is not supported and will require upgrading the Oracle Database to 11.2.0.3. You can check the Oracle database certification matrix to determine which Oracle database release version is required for which OS version http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm
    The relinking of Oracle Database binaries is a common practice when updating the OS. I do not think it is necessary under Linux. Oracle binaries are typically standalone applications, or use Oracle provided libraries, or in some cases use OS shared libraries, which does not require relinking of Oracle binaries. Upgrading the Oracle database software of course requires relinking.
    Edited by: Dude on Dec 4, 2012 2:09 PM

  • How to install Oracle Database Audit Vault

    Hi all,
    i have my database in oracle 10g in linux environment, i wont to install oracle database audit vault 10.2.3 in linux
    can any 1 let me know how to install it or what or the steps required.
    any usefull link would be helpfull
    Thanks....

    Hi,
    Please check : How to install Oracle Database Audit Vault - Yahoo Video Search Results
    Thank you

  • Oracle Database migration to Exadata

    Dear Folks,
    I have a requirement to migrate our existing Oracle Database to Exadata Machine. Below is the source & destination details:
    Source:
    Oracle Database 11.1.0.6 Verson & Oracle DB 11.2.0.3
    Non-Exadata Server
    Linux Enivrionment
    DB Size: 12TB
    Destination:
    Oracle Exadata 12.1
    Oracle Database 12.1
    Linux Environment
    System Dowtime would be available for 24-30 hours.
    Kindly clarify below:
    1. Do we need to upgrade the source database (either 11.1 or 11.2) to 12c before migration?
    2. Any upgarde activity after migration?
    3. Which migration method is best suited in our case?
    4. Things to be noted before migration activity?
    Thanks for your valuable inputs.
    Regards
    Saurabh

    Saurabh,
    1. Do we need to upgrade the source database (either 11.1 or 11.2) to 12c before migration?
    This would help if you wanted to drop the database in place as this would allow a standby database to be used which would reduce downtime or a backup and recovery to move the database as is into the Exadata.  This does not however allow you the chance to put in some things that could help you on the Exadata such as additional partitioning/adjusting partitioning, Advanced Compression and HCC Compression.
    2. Any upgrade activity after migration?
    If you upgrade the current environment first then not there would not be additional work.  However if you do not then you will need to explore a few options you could have depending on your requirements and desires for your exadata.
    3. Which migration method is best suited in our case?
    I would suggest some conversations with Oracle and/or a trusted firm that has done a few Exadata implementations to explore your migration options as well as what would be best for your environment as that can depend on a lot of variables that are hard to completely cover in a forum.  At a high level I typically have recommended when moving to Exadata that you setup the database to utilize the features of the exadata for best results.  The Exadata migrations I have done thus far have been done using Golden Gate where we examine the partitioning of tables, partition the ones that make sense, implement advanced compression and HCC compression where it makes sense, etc.  This gives us an environment that fits with the Exadata rather then a drop an existing database in place though that works very well.  Doing it with Golden Gate eliminates the migration issues for the database version difference as well as other migration potential issues as it offers the most flexibility, but there is a cost for Golden Gate to be aware of as well so may not work for you and Golden Gate will keep your downtime way down as well and give you opportunity to ensure that the upgrade/implementation will be smooth by giving some real work load testing to be done..
    4. Things to be noted before migration activity?
    Again I would suggest some conversations with Oracle and/or a trusted firm that has done a few Exadata implementations to explore your migration options as well as what would be best for your environment as that can depend on a lot of variables that are hard to completely cover in a forum.  In short here are some items that may help keep in mind exadata is a platform that has some advantages that no other platform can offer, while a drop in place does work and does make improvements, it is nothing compared to the improves that could be if you plan well and implement with the features Exadata has to offer.  The use of Real Application Testing Database Replay and flashback database will allow you to implement the features, test then with a real workload and tune it well before production day and allow you to be nearly 100% confident that you have a well running tuned system on the Exadata before going live.  The use of Golden Gate allows you to get an in Sync database run many replays of workloads on the Exadata without losing the sync giving you time and ability to test different workload partitioning and compression options.  Very nice flexibility.
    Hope this helps...
    Mike Messina

  • Can oracle database interact with sysbase database in real-time?

    There are two database,one is oracle,one is sysbase,sysbase is produce database.My program only can visit oracle database,and can't directly visit sysbase database.My question is whether there is a directly link from oracle database to sysbase database,when I visit oracle,oracle database can interact with sysbase database through this link real time? How to realize above function? Please give plan for it.
    Thanks in advance!
    Best regards,
    Edward

    Yes there is. You have to create heterogeneous connection between these two databases
    Take a look at below links:
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:13401716754850
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96571/repmultdemo.htm

Maybe you are looking for

  • How can I put Lightroom 4 video into a format for viewing on DVDs?

    I have made as slideshow in Lightroom 4. It translates well into MP4. This MP4 file runs on some computers and all BluRay players I've tested. I want this slideshow to play on all DVD playeres. How can I take the MP4 file... and make it into an AVI o

  • Application copied from disk image not recognised as correct arch by Finder

    Hi, occasionally, when I download a disk image ".dmg" that contains an application bundle ".app", I can run the application from the Finder by double-clicking on the icon of the application on the disk image, but when I copy the application to my har

  • IPhoto won't recognize my .jpg files from my camera

    I Photo will not recognize my photos when I try to import them from my camera.  I can download on my work mac but not my personal.  I tried to reformat the card and still nothing.  I can however download them from a CDR.  It's the strangest thing!! 

  • GetConnection() and close() bottlenecks

    Hi all When loadtesting our Weblogic 6.1 app with a SQL Server 2000 db I have found that the primary bottleneck are calls to Connection.getConnection() and Connection.close(). Often calls to these methods (15%) take about one second and about 1% of t

  • Pdf and Arabic

    hi, i need to generate a pdf report from mysql database, the problem is that adobe reader don't accept arabic as a language the output is rapish, how can i do it this is my site [spammy link removed] thanks in advance