Please explain how to connect to an Oracle database with CF9 standard

Can someone walk me through this process?  I am trying to help a group that upgraded frmo cf8 enterprise to cf9 standard.

1. You'll need to download the Oracle JDBC Drivers (http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html)
2. Put the appropriate .jar files in your <coldfusion>/lib folder
3. Restart CF
4. Create a Datasource using the "Other" option
5. Create an appropriate connection string
Examples:
jdbc:oracle:thin:[USER/PASSWORD]@[HOST][:PORT]:SID
jdbc:oracle:thin:[USER/PASSWORD]@//[HOST][:PORT]/SERVICE
It has been a long time since I have done this, but I have done it and know it works. I remember the issue with SID vs SERVICE being a huge PITA.
Good luck,
Jason

Similar Messages

  • How to connect Java to oracle Database Express Edition?

    Anyone can help me?
    How to connect JAVA TO ORACLE DATABASE EXPRESS EDITION?

    I suggest you to read this article:
    http://wiki.oracle.com/page/JDBC
    Regards,
    Ricky

  • Unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver

    I am unable to connect to my Oracle Database with Microsoft's ODBC for Oracle driver vers.2.573.4202.00 on a Win98 computer.
    First, I create a "Net Service Name" in order for the ODBC Driver to find the Oracle server. I then created a System DSN in the ODBC Data Source Administrator and assigned the "Net Server Name" as the server in the "Microsoft ODBC for Oracle Setup". But when I test this DSN with Oracle's provided "Oracle ODBC 32Bit Test vers.2.5.3.1.0" I get an error:
    SQLSTATE: NA000
    Native Error Code:0
    Driver Message:[Microsoft][ODBC driver for Oracle][Oracle]
    This error occurred on all three Win98 computers I have tried. It does however, seem to work fine on WinNT 4.0, and believe it or not, on the two Win95 computers I have tried.
    Does anyone have any fixes, recomendations, or advice?
    Thank you,
    Eric Edwards
    null

    Why are yu not using the Oracle ODBC driver - these can be downloaded from OTN.
    Have you set up a tnsnames.ora entry for the Oracle database you want to connect to? Does this name have a domain name added to it? Check %ORACLE_HOME%\network\admin\tnsnames.ora for the service name. If it is a name of the form :
    name.domain.subdomain
    then you should try using this full name when configuring the ODBC data source.
    null

  • 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 connect to an oracle database server from a linux server?

    Hi,
    I am a total newbie to oracle. At my work, I only know that there is a server with an oracle 10g database set up.
    I was provided with the hostname, oracle sid, port, username and password but i don't know how to connect to it, log on to it and do things on the database.
    Can anyone give me a pointer on how to get started (like how to log on to the server and start doing some simple things. )
    Any help is appreciated :)
    Thank you

    Goto your local Oracle install directory and then goto folder NETWORK/ADMIN
    cd ${ORACLE_HOME}/network/admin
    do you see a tnsnames.ora file there? If you edit that file in your favorite editor, you would hopefully see some entries there already setup. See if one of those entries contain the hostname, sid, port that was given to you. if it does, that name is what you will use:
    $ sqlplus username/password@name_of_tns_entry_you_found_aboveif not, then just duplicate an existing entry and change the relevant settings for your database, give it a new name and use it to connect.
    alternatively you can also use the "Net Configuration Assistant" application.

  • How to connect to remote Oracle Database 10g Express Edition

    Hi,
    I am very new to Oracle. I have created a successful application using OCCI call (createConnection()) to connect to local (resided on the same PC) Oracle Database. Now I would like to move the application to resided on a different PC and try to connect to Oracle Database. Can anyone points me to the right direction in doing this?
    Thanks in advance.

    Can anyone points me to the right direction in doing this? Well at least for me, self study on OCCI documentation is pointing to the right direction ;-)
    OCCI requires only four shared libraries (or dynamic link libraries, as they are called on some operating systems) to be loaded by the dynamic loader of the operating system.
    Installing Instant Client resolve this.
    Cheers!

  • How to connect two different oracle databases

    Hi All,
    I have a special scenario like the following:
    I have an oracle Database 10g, it has to get some data from the Oracle Apps Database (the API is defined in the Views and Packages of the 10g database)
    Is it possible for me to make a connection with the 10g database to the Apps database.
    Do I have to use any engines like JDBC for the connection between the two databases
    The issue here is because of security Issue, I cant create a database schema in the Apps database
    What can be the solution for this issue..
    Many thanks in advance
    and best regards.......

    You might be able to use a database link to connect from one db to another.

  • Connecting to an oracle database with SQLPlus

    I'm trying to connect from one CentOS server with SQLPlus installed to another CentOS server with Oracle installed.
    I've installed
    oracle-instantclient-basic-11.1.0.1-1.i386.rpm
    and
    oracle-instantclient-sqlplus-11.1.0.1-1.i386.rpm
    on the first server.
    I'm able to connect to the oracle server via SQL Developer without difficulties.
    When I try to connect to it via the command line with SQLPlus, I'm running the following:
    sqlplus savantdb@//192.168.100.37:1521/orcl
    But all I'm getting back is something that reads like help documentation.
    I've exported the LD_LIBRARY_PATH to point at /usr/lib/oracle/11.1.0.1/client/lib/:/lib
    I've created a tnsnames.ora file in my home directory containing the following:
    orcl=
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=tcp)
    (HOST=drax)
    (PORT=1521)
    (CONNECT_DATA=
    (SERVICE_NAME=orcl)
    Then I tried moving to my home directory and running
    sqlplus savantdb@orcl
    This prompts for a password, then throws the following error:
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Then asks for a username/password, after which it throws the following error:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    What I want to do is allow my unit tests written in Selenium and PHPUnit to make shell_exec calls to execute sql files to recreate the database from scratch before putting the application through its paces. So I need to make it totally non-interactive.
    Can anyone give me a clue where I'm going wrong here?

    You are mixing up the various naming methods. Try to stick to one!
    Your first attempt sqlplus savantdb@//192.168.100.37:1521/orcl uses the so-called "easy connect" method.
    That's actually not a bad idea, as it is fairly short and does not require a "tnsnames.ora" file, which is a pain in the somewhere or else.
    sqlplus has a parsing problem if you don't enclose part of the string in double quotes. You cannot find that in the documentation, but in Metalink Note 274757.1.
    The syntax is like this:
    sqlplus savantdb@\"//192.168.100.37:1521/orcl\"
    Your second attempt tries to use the TNS (local) naming method, but for that you need to have an environment variable TNS_ADMIN pointing to the directory containing "tnsnames.ora". It does not matter if that directory is your current directory or not. You don't need that if you use the method described above.
    The last error message is because of the annoying behaviour of sqlplus to ask for username and password (for a local connection!) again if the first attempt failed.
    You can avoid that by giving sqlplus the -L flag.
    Yours,
    Laurenz Albe
    PS: If you want to "make it totally non-interactive" you should add a password, like
    sqlplus savantdb/password@//192.168.100.37:1521/orcl
    In that case, you don't need to add the \"

  • Anyone have useful information how to connect to an oracle database?

    I first tried "Instant Client", following all the instructions, and had the problems described here I don't get it :(
    And then I tried the 10g installation CD to install the client and all it did was install the exact same "instant client" files which I had already installed.
    I'm just looking for a quick and easy way to get sqlplus and other clients like Tora connecting. After that, I will worry about how to get JDBC and PHP connecting. I don't mind reading documentation but not hundreds of pages of highly complex material with a raft of assumed knowledge (ie. I have no wish to become a DBA).
    Any links to articles/tutorials etc would be appreciated - ie. connecting to ORACLE in 10 easy steps... not
    "Installation Steps:
    1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.
    2. Unzip the packages into a single directory such as "instantclient".
    3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.
    4. Start your application and enjoy."
    from http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
    which has turned out to be utterly useless and unhelpful :(

    I guess I was asking a broader question in general which related to the more specific question in the "instant client" forum for which I provided a link.
    I don't get it :(
    This has more detail about the client environement and my initial attempts at connecting (as per instructions on the Instant Client page).

  • How to connect to remote Oracle database

    hi everybody!  
     i am using LabVIEW with LabSQL locally and Oracle 10.2 database remotely.The remote computer's name is zkz,IP is 192.168.1.2,database name is 'test',TNS listener name is 'listener'.On local computer i have a instantclient.The problem is i can not connect to the database from local computer.What should be the connection string?
    thanks      

    help me please!

  • How to connect a remote Oracle Server with its IP

    is it possible to connect Oracle SerVer in VC
    I have used Microsoft ODBC driver for oracle and Oracle odbc driver to test in VC++6.0,
    but SQLDriverConnect, OCI methods failed.

    with VC++ an odbc driver for oracle is also installed with which u can connect to oracle db all u need to know is the database SID or oracle server name
    try doing this it will work hopefully
    regards

  • Connecting to an Oracle database after clicking on a foi

    Does anyone know how or have any examples on how to connect to an oracle database after clicking on a 'feature of interest' in MapViewer? I want to be able to click on a 'feature of interest' on the map, and have a list of records from an oracle table displayed using the identified key of the foi. I am able to create the feature of interest, and add the event listener for 'mouse click', but am unsure how to connect to the database at this point. I have been able to connect to the database in a different jsp, but not from here. Thank you.

    1. Create a JSP page that does the database query. It should take the foi id as an input parameter.
    2. In the foi mouse click listener, display the JSP page in iframe. The iframe can be placed outside the map or inside the info window. The function should do something like this.
    function myClickListener(point, foi)
    mapview.displayInfoWindow(point, "<iframe id='my_iframe_id' frameborder=0 width=300px height=400px />", 300, 400) ;
    var myIframe = document.getElementById("my_iframe_id") ;
    myIframe.src = "http://myhost/myjsp?key=" + foi.id ;
    }

  • Connect to oracle database with php script

    Hello!
    How can I connect to an Oracle database with a PHP script? I read about it at www.php.net:
    "Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client libraries to use this extension."
    Where can I get these libraries from?
    Who knows more about the issue?
    Thanks a lot for your help!
    Martin
    null

    Hello
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by mheibel([email protected]):
    Hello!
    How can I connect to an Oracle database with a PHP script? I read about it at www.php.net:
    "Oracle 8 functions; These functions allow you to access Oracle8 and Oracle7 databases. It uses the Oracle8 Call-Interface (OCI8). You will need the Oracle8 client libraries to use this extension."
    Where can I get these libraries from?
    Who knows more about the issue?
    Thanks a lot for your help!
    Martin<HR></BLOCKQUOTE>
    Install and put working a sqlnet working client (install the Oracle Client option of the Oracle Database CD ROM). Than compile php with the --oci option. Than try the samples in php.net (oci function in the help).
    These are the steps... Put everything working is a little more complicated...
    FS
    null

  • Connect ORACLE database with sysdba privileges

    Hi Guru,
    I am connecting to my ORACLE database with my VB application.
    I have problem with connecting to the database with SYSDBA privileges. i.e it is not connecting to the database with SYSDBA privileges.
    If I connect my db from SQLPLUS. Its worked like this..
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> select Name from v$datafile;
    select Name from v$datafile
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> connect as sysdba;
    Enter user-name: user_1
    Enter password: ****
    Connected.
    SQL> select Name from v$datafile;
    NAME
    C:\NEW\ORADATA\ITPL\SYSTEM01.DBF
    C:\NEW\ORADATA\ITPL\UNDOTBS01.DBF
    C:\NEW\ORADATA\ITPL\CWMLITE01.DBF
    C:\NEW\ORADATA\ITPL\DRSYS01.DBF
    C:\NEW\ORADATA\ITPL\EXAMPLE01.DBF
    C:\NEW\ORADATA\ITPL\INDX01.DBF
    C:\NEW\ORADATA\ITPL\ODM01.DBF
    C:\NEW\ORADATA\ITPL\TOOLS01.DBF
    C:\NEW\ORADATA\ITPL\USERS01.DBF
    C:\NEW\ORADATA\ITPL\XDB01.DBF
    10 rows selected.
    SQL>
    Now in my VB application if I am using following string to connect the database.
    m_adoCnn.ConnectionString = Provider=MSDAORA;Password=pass;User ID=user_1;DBA Privilege=SYSDBA;Data Source=ITPL
    It will connect properly to the database but gives error while executing the query select Name from v$datafile;
    as,
    ORA-00942: table or view does not exist
    Can any body help me in this or provide me proper connection string.

    Hello,
    I am getting below error when i kust Clic k on Test Connection in SSMS:
    TITLE: Microsoft SQL Server Management Studio
    The test connection to the linked server failed.
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "test".
    OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    BUTTONS:
    OK
    Can you please guide is there any other setting i need to do after install Oracle Client ?
    Best Regards,
    Tushar Malvi

  • How to connect Discovere to oracle apps

    Hi professors,
    Help Help Help can some one pls explain to me how to connect discoverer to oracle apps , i installed the vision 11.5.10.2 and discoverer is pre installed with it. Pls ineed to connect it.pls help.
    secondly how do i create end user layer after connection and connect to oracle apps standard report

    Hi
    Take a look on MetaLink at document: 313418.1
    That contains all of the rules and steps for connecting Discoverer to E-Business Suite.
    In order to have an EUL that understands E-Business Suite's logins and responsibilities, please take a look at the document called Setting up an Apps mode EUL available as a free download from my website here: http://learndiscoverer.com/downloads/downloads.htm
    Best wishes
    Michael

Maybe you are looking for