Connecting php with oracle9i database

i tried to connect to oracle 9i database after creating
dsn name as studentphp with username admin and passwd admin by using the following command and i got the following error.
pls suggest me some solution
$link=odbc_connect("studentphp","admin","admin");
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\Documents and Settings\ramakrishna.MSITLAB\Desktop\SIS\login_form.php on line 20

I think you are in window platform, so you need to get oracle driver for ODBC and create data source in ODBC.

Similar Messages

  • Connect Developer6i with Oracle9i

    Dear OTN members;
    how to connect Developer6i with Oracle9i Database
    Please reply asap
    by

    Hi,
    just configure the tnsnames.ora file in the net80\admin of teh Forms Home to include the database information.
    Frank

  • Query regarding connecting dashboards with SQL DATABASE using WSDT

    Hello Sir,
    I am trying to connect dashboards with Sql database via WSDT, but i have encountered the same problem as described in your SAP community blog (SAP Web Service Design Tool: From web service creation to Xcelsius consumption).
    when i tried connecting CR server with WSDT ,it still shows that total number of available licenses is 0.
    What can be done to solve this issue.
    for your detail reference, we are using CRS NUL version's 60 days Evaluation keys and same with Xcelsius Departmental edition.
    I would really appreciate, if you revert back to my mail as soon as possible

    Which version of Crystal Reports are you using? The regular ReportDocument SDK probably isn't robust enough to handle this, unless you create a connection using that connection string at design-time which you don't change at runtime. You might be able to add those properties using the in-proc RAS SDK, though. This is available with CRXI R2 as of SP2, and CR2008.

  • Connecting AIR with external database

    Is it possible to connect AIR application to the external database in MySQL technology?

    Are you trying to connect to a MySQL database on a web server somewhere? If so, by far the easiest way to do so is to use some sort of application server layer (e.g. PHP, ColdFusion, Java) on the web server, and have the AIR application call the PHP (or whatever) code to get the data. That is the approach that all the links Greg has given you are talking about.
    Of course, in order to make that work you need to know enough PHP/Java/ColdFusion to write that middle layer. In the example you're asking about, the information it wants to know is the name of the server that the MySQL database is running on, and the MySQL username and password for the MySQL account that your PHP code is supposed to use. There are tons of resources on the web for writing PHP code that accesses MySQL, so you'll find much more and better information in other places than what you'll find in the Adobe AIR forums.
    However, maybe you want to have the MySQL server running directly on the user's computer rather than on a web server somewhere. In that case you would have a few options:
    Run a web server and application server (e.g. Apache and PHP) on the user's computer and use those to connect between the AIR application and the MySQL server.
    Write Java code to communicate between the MySQL server and the AIR app, and call that code using Merapi (http://merapiproject.net/)
    Run the MySQL server on the user's computer and call the server directly from AIR using ActionScript. While there is no built-in support for MySQL in AIR, there is a third-party (open source) library for calling MySQL directly from ActionScript available here: http://code.google.com/p/assql/. I haven't tested it so I have no idea how complete it is, but it's a solution to consider.
    However, in all three cases you're depending on some external pieces that have to be installed and loaded separate from your AIR application. (For instance, most users probably don't want a MySQL server running on their computer all the time if they aren't using your AIR app all the time -- so you'd want a way to start and stop the server, which also couldn't be done directly in AIR.) People do write applications that use external resources like this, but it's not the easiest thing to implement.
    If you're really wanting to run the database locally, the best solution (assuming it works for your needs) is to use AIR's built in local SQL database engine (based on SQLite). If you've looked at that option already, and found that it doesn't work for you, I'd be interested to know more about what you're trying to accomplish that you can't accomplish with the AIR local database.

  • Phpmyadmin connection issue with mysql database on local computer

    Got mysql and phpmyadmin installed on my iMac. I open phpmyadmin site in safari and try to login to the database and I get the following error:
    "Safari can’t open the page “http://imac.local/phpMyAdmin/index.php?lang=en-utf-8&token=872752b265e4d375dddae b18d06bd85b” because the server unexpectedly dropped the connection, which sometimes occurs when the server is busy. You might be able to open the page later."
    I can connect to the sql database okay from the mysql manager gui just fine. Any suggestions?

    Hi David-
    Thank you for your QUICK and CORRECT reply!  Yes, creating the _mmServerScripts folder in my SSL folder on my remote server did the trick!!
    I did try to setup a testing server using one of your tutorials, but I received FTP errors.  Since I have a working website with remote and testing flagged on the same server and for my ease of understanding, I copied the setup as closely as I could (less the SSL add-on).  Mind you, I originally setup that website 3 years ago, so I'm a bit rusty.  I'm not a web developer and don't do this for a living, thus I get by with instructions from the books I own, web tutorials, Adobe forums, etc., but I have not taken any classes.  It's not my choice to work with PHP, but I have to in order to pull data from database tables into my web pages.  Since I don't do this for paying customers, I don't have to setup anything too fancy (thank goodness).  I would like to know how to debug and write java script code, but I lack the time and patience (mostly patience).
    Besides...Adobe does such a good job with their products, that I can get by pretty well without having to know everything.
    Again, THANK YOU!!!
    PS- Would you mind replacing my root site info above with the following:  www.sitename.com/ssl/

  • How i can connect php and oracle9i ?

    hello am new to php.i have oracle 9i and php and apache.oracle is installed at one system and php inother one at network .when i have at same pc's i connect it.but now it's at different systems how i can connect.plzz tell me complete steps of apache that i will define and next complete process to connect php and oracle .plzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    Apache and PHP need to be on the same system. That system also needs either the database or Oracle client libraries like Oracle Instant Client. There are steps for installation of the PHP side on http://www.oracle.com/technology/tech/php/index.html
    There are various Oracle installation notes in the Oracle manuals or software bundles.
    -- cj

  • Oracle Discoverer 4i (portal db - oracle 8i) connectivity issue with 11g database

    Hi All
    We have oracle discoverer 4i with portal db (oracle 8i).
    We connect to the external databases using db links in the portal db and the reports will use the db link to retrieve the data from views in the external databases.
    External databases we were connecting is oracle 10g version and now we have upgraded these databases to 11g version.
    Now i have a created a new db link to this 11g database and i have created a new EUL in portal to connect to this 11g database.
    But when i try to create a report using the discoverer from this new EUL after login to the discoverer we get a "cannot connect to database" error.
    We have all the necesscary privilege to the user and the new database link works perfectly fine. (when we try to query directly using SQL plus from portal database using this db link the query works perfectly fine).
    Im not sure if this is a compatibility issue in connecting from oracle disc 4i to a 11g database.
    Can any one advise if this is the case and if there is any workaround for this?
    Regards,
    Raj

    Are you saying you are having issues with a database link between 8i and 11g (pl post exact versions to 4 digits) ? If so, it should be expected as database links between these two versions are not supported. Is there a reason you cannot upgrade the portal database to at least 10gR2 ?
    See MOS Doc 207303.1
    HTH
    Srini

  • How to connect JSP with MySql Database?

    HI All...
    I want to know or How to connect Mysql with JSP or JSF any other software is available? please help me.....

    I want to know or How to connect Mysql
    with JSP or JSF any other software isavailable?
    please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
    Edit: And forget the terminator, who needs it?

  • How to connect portal with msaccess database

    we have to develop oracle portal applications with msaccess as a back end.how to connect portal to access.
    thanks in anticipation.

    I want to know or How to connect Mysql
    with JSP or JSF any other software isavailable?
    please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
    Edit: And forget the terminator, who needs it?

  • Connect Problems with Oracle Database Express Edition 11g Release 2

    Hello,
    I am a student trying to install Oracle Database Express Edition 11g Release 2 and SQL Developer on my home system, Win7 64Bit, in order to practice some things I've learned from me DBA class and Developer classes.
    Anyway, I have everything installed, but I am having difficulty connecting as SYS or SYSDBA in the 'Run SQL Command Line', I keep getting the ORA-01017: invalid username/password: logon denied.
    However, If i select the 'Start Database' I get this:
    C:\oraclexe\app\oracle\product\11.2.0\server\bin>
    and I can type sqlplus / as sysdba and it starts up just fine and show user lists me as "SYS".
    but if I go back to 'Run SQL Command Line' I still cannot connect as SYS or SYSDBA...I find this both confusing and frustrating. I don't know if I am in different instances or something like that, but I seem to be limited to connecting only as "SYSTEM". I need SYS because I want to practice creating datafiles, instances and things like that, but I seem to be lost.
    Also, I am trying to create a new DB connection with SQL Developer and I can only us SYSTEM for my login which, if I understand correctly, will limit my privileges. Again When I try to sign in with SYS or SYSDBA I get error'd out. When I installed Ora11gDBExpress I was prompted in input a single password that was supposed to grant me access as SYS or SYSTEM, but I am limited to only SYSTEM for some reason.
    So, I am looking for help/guidance as to what to do.
    Thanks in advance for any and all help,
    Warren

    General rule of thumb, don't use sysdba unless you want to shut down the database, or grant a database user privileges on a sys object.
    A SYSTEM connection is not "limiting", it has the DBA role which means a user with a system connection can do most anything needed, including select/update/delete/drop any user's objects as well as change parameters in the instance.
    The system user can indeed add datafiles, tablespaces, etc. The instance and database should already be created as long as the installer completed all its chores correctly. For XE, per the license agreement only one instance can run on one host. If you want to try creating a database, it will require shutting down the XE instance and creating a new database service, creating the database, and installing the system catalog and any other optional components desired. Good practice indeed, but a bit advanced for the new user.
    Do create users for schemas ... connect system; create user <username> identified by <password> and connect <username> for the schemas (a collection of objects) within the database. Grant the resource and create session privilege to <username> to allow the database user the ability to create tables, indexes, stored procedures, etc.
    There is no "or" in a sys as sysdba connection, from 10g onwards a sys connection requires using the sysdba privilege. To enable a sysdba connection, add your host user to the ORA_DBA group on the host. To verify the OS users in the ORA_DBA group, this might work for win7, in a cmd box ...
    $ net localgroup ora_dba
    ...If your OS user is in the ora_dba group the sys as sysdba password is not relevant, you can in fact type anything for a password. If you wish to connect with the sysdba privilege from a remote client, that is a bit different and requires knowing the password set in the instance password file. Which should be set the same as the system password defined in the installer, but you can change that by creating a new password file. Another slightly advanced topic.
    In Windows IMHO its better to leave the listener and database set to Manual start (in the services applet, Start/Run/services.msc) and start the listener, then the database, when its needed. At least for an XE instance, as its intended for practice and learning RDBMS management.
    Edited by: clcarter on Mar 2, 2012 6:19 PM
    fix typos

  • Connecting app with online database

    Hello,
    I have a problem and I'm hoping that you can help me solving it. I want to connect an online database with my windows phone app.  The database would have some data which I want to display in the app, users will be able to rate stuff that are in the
    database and add some stuff in it. So my problem is that I don't know which database is the best for me to use, a free and a simple one would be great.
    Thank you in advance 
    Otavio 

    Hi Otavio,
    According to your description, you want to public your database content, share and collect content from client apps. You will need to build a virtual machine on
    cloud service, install database instance on it, and use
    RESTful service to public
    CRUD operations. Unfortunately, there is no free version of cloud service. You can use your favor search engine to find more cloud service if you want.
    Another option is to use local database, such as
    sqlite. It’s free but you will need to do more work on data synchronization.
    Regards,
    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.

  • PHP with Oracle9i Configuration

    Respected Oracles Lovers,
    Hi,
    I am having a problem that I have intalled and configured Oracle 9i Database, Apache and PHP 5.1.5 successfully. But the problem is that when I want to retrive the records from scott/tiger@tech (user/password@service) with the coding:
    <?php
    $db_conn = ocilogon("scott", "tiger", "tech");
    $cmdstr = "select ename, sal from emp";
    $parsed = ociparse($db_conn, $cmdstr);
    ociexecute($parsed);
    $nrows = ocifetchstatement($parsed, $results);
    echo "<html><head><title>Oracle PHP Test</title></head><body>";
    echo "<center><h2>Oracle PHP Test</h2><br>";
    echo "<table border=1 cellspacing='0' width='50%'>\n<tr>\n";
    echo "<td><b>Name</b></td>\n<td><b>Salary</b></td>\n</tr>\n";
    for ($i = 0; $i < $nrows; $i++ )
    echo "<tr>\n";
    echo "<td>" . $results["ENAME"][$i] . "</td>";
    echo "<td>$ " . number_format($results["SAL"][$i], 2). "</td>";
    echo "</tr>\n";
    echo "<tr><td colspan='2'> Number of Rows: $nrows</td></tr></table>";
    echo "<br><em>If you see data, then it works!</em><br></center></body></html>\n";
    ?>
    When I run the page it gives me error:
    Fatal error: Call to undefined function ocilogon() in D:\Program Files\Apache Group\Apache2\htdocs\ORACLE.PHP on line 3
    ORACLE.PHP is the name of file.
    Please help me!
    Thanks
    Zeeshan Ali

    I think you need to use Oracle 10 for php 5.1.
    I'll also assume that you have ORACLE_HOME and NLS_LANG environment variables defined... is that the case?
    ~Jer

  • Connecting Nw2004s with DB2 Database on AS400

    hi,
    I have a BW Server with the following configuration
    OS: AIX 5L
    SAP System: NW2004s(BW 7.0)
    Database: Oracle 10 G R2
    I am trying to make a soruce sytem connection to the folowing datbase Server
    Database: DB2 UDB
    OS: AS400
    But as per note 523381, we have to go for a SAP Application Server. but even then the libdbsl file is not exisiting for AS400 machine.
    Please guide us of what we can do.
    Have any one faced this situation before

    Even when we go for a Windows Application Server, we could not find the DBSL file for DB2 UDB in AS400.
    We are referring to the DBSL File located in
    Support Packages and Patches> SAP NetWeaver&#61474; SAP NETWEAVER&#61474; SAP NETWEAVER 7.0 (2004S)&#61474; Entry by Component&#61474; Application Server ABAP> SAP KERNEL 7.00 64-BIT UNICODE> AIX 64bit> DB2 UDB--> lib_dbsl_138-20000977.sar
    The info page  of the DBSL file is telling that it supports only Operating System of Linux 2.6
    Please tell us where we can download the DBSL file DB2 UDB(DB4) Database in AS400 Machines.
    The info page of the lib_dbsl_138-20000977.sar is as follows
    supported environment
         database (SAP, table SVERS)   700
         operating system
         Linux 2.6
    The Details of the Source System are as follows
    Database: DB2 UDB  V5R3
    Operating System: AS400
    Please help

  • Connection problem with new database

    Hi
    Installed new database on my windows machine successfully
    while connectting as sys user error
    ORA-12500:TNS: listner failed to start dedicated server process
    wlile connecting toad and sqlplus

    Please read the error again "listner failed to start dedicated server process". Means what, listner listened your request to connect, it tried to hand-off the connect request but due to resources problem (lack of memory) it is not possible to start server process; i.e. presumably the server is very busy at that time. If you are not able to resolve the issue, please check the unwanted services and stop them in strat-run-services.msc.
    More information can be found at below link too:
    Re: ORA-12500
    HTH
    Girish Sharma

  • Create RFC for connecting BW with external database (ORACLE)

    Hello,
    I want to connect to a seperate oracle database from SAP BW system. For that i have to create a RFC.
    I hope i have to ctrate a TCP/IP connection.
    In SM59, I can see " start on explicit host " option where i have to give the program name. I dont know which program name i have to enter or from which location in sap/OS level i can find the program name.
    Please suggest the program name or the location.
    Thanks & REgards
    Prasanth

    Hi,
    Can anybody answer to my thread?
    Regards
    Prasanth

Maybe you are looking for

  • No sound in iMovie 3.03

    Running iMovie 3.03 in OS 10.4.6 and all is well except for sound. Songs play in iTunes, iMovie claims to add songs to project, but when play back.... no sound. Boxes on right all checked, volume at 100%. Cannot find iLife DVD to re-install. Any sugg

  • Install program

    When I enter the paid product serial number I get a wrong number entered message. The Adobe Acrobat 9 was on an old computer. I wish to load it on this computer. Can you help please.

  • How to install mdk in nwds for creating mobile applications

    Hi experts, how to install mdk in nwds for creating mobile applications? reward points for appropriate answer. Thank you, G.V.K.Prasd

  • Start/stop user programs with laptop-mode

    Hi, i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac. I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas? #!/bin/bash case

  • My PowerBook has insomnia...

    ...ever since 10.4.7, it seems, my PowerBook 1.67 GHz PowerPC G4 won't go to sleep if I leave it idle with the lid open. It used to have no problems bedding down when I left it alone, but seems to have developed a case of insomnia with the new system