Read about connect to oracle database from excel macro, The latest news, videos, and discussion topics about connect to oracle database from excel macro from alibabacloud.com
This article mainly introduces how to connect to and operate Oracle database instances in JavaScript. This article describes a series of complete steps such as the running environment, code instance, and running result. For more information, see
Preface
In the development of B/s and c/s, javascript is basically not used to operate the
This section briefly introduces how to use ODBC to connect to the Oracle database,
To be honest, use oracleclient, oledb, and ODBC to access the Oracle database,
It is relatively simple. It is nothing more than a note that the database
Excuse me, how can I connect to the oracle database under the kohana framework? thank you! how can I use the pdo in the kohana framework to connect to the oracle database? thank you!
Use the original tns.
Reply to discussio
When using this method, you need to add the Oracle jar package to the classpath variable. This package can be found in $ ORACLE_HOME/jdbc/lib/classes12.jar of the oralce client program.
Import java. SQL .*;
Public class jdbcthin {// Dburl database connection string information, where "1521" is the port and "ora9" is the SIDString dburl = "JDBC: oracle: thin: @ 10
)
1234567891011121314151617
usingOracle.ManagedDataAccess.Client;publicstatic stringConnectOracle(){try{stringconnString ="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=130.147.246.144)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ECMS)));Persist Security Info=True;User ID=system;Password=Service01;";OracleConnection con =newOracleConnection(connString);con.Open();returnstring.Empty;}catch(Exception ex){returnex.ToString();}}
It is so simple!!!
Addit
)
1234567891011121314151617
using Oracle.ManagedDataAccess.Client;publicstaticstringConnectOracle(){try{stringconnString ="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=130.147.246.144)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ECMS)));Persist Security Info=True;User ID=system;Password=Service01;";OracleConnection con =newOracleConnection(connString);con.Open();returnstring.Empty;}catch(Exception ex){returnex.ToString();}}
It is so simple!!!
Addit
Using the JDBC-ODBC bridge to connect to the Oracle database and JDBC driver is almost the same, so we don't have to set the environment variable. There are two key statements for connecting to the database in JDBC:
Class. forname ("oracle. JDBC. Driver. oracledriver ");Co
I recently learned how to use proc for Oracle application development. However, I did not have much detail about this on the Internet. After some twists and turns, I finally completed a test case.
The function implemented by the program is very simple. By accessing a remote ORACLE database, a field is read, returned, and displayed. As I am a beginner and have lim
1. First install the local Oracle, here I use is xe10g, the specific installation will not demonstrate, all the way fool no brains, user name password custom set to Root/root;2. Install Plsql, not accustomed to English can be installed immediately after a noon plug-in, do not repeat;3. Connect the local database, user name: root; password (i.e. password): root;
First, the problem descriptionThe oracle-client side is not installed locally, and because of limited machine resources, you want to connect to the remote database via PL/SQL developer. Simple installation PL/SQL developer cannot connect to the database remotely.Second, the
PL/SQL Developer does not install a client to connect to a remote oracle database (for example, developeroracle)Labels ):Http://www.oracle.com/technetwork/cn/database/features/instant-client/index-092699-zhs.html2. Download and install PLSQL (around 16 Mb ):Http://www.onlinedown.net/soft/4902.htm3. Unzip the instantcli
Today, I learned about the latest popular Ruby on Rails, which is that when a code generator links an Oracle database, it checks for half a day of data. Finally found a way, ^______^.
1. Installation drive
http://rubyforge.org/projects/ruby-oci8/
Download and run (double-click) Ruby-oci8-mswin inside the *.RB
2. Change Database.yml
DevelopmentAdapter:ociHost:examplesidUsername:exampleuserPassword:examp
Connect to the sqlserver database:
String albumname = textboxname. text. trim (); // obtain the new album name sqlconnection conn = new sqlconnection ("Server = (local); database = Electronic album; uid = sa; Pwd = zouming "); // connect to the database Conn. open (); string
Label:1. Enter "Sqlplus/nolog" on the command line to start the tool.2. Connect to Oracle Server conn username/password @ server connection string as connection identityThe client tool connects to the server based on the server connection string, and after the connection string, the client can operate the remote database as if it were native, so the configuration
I. Software Download and environment configuration 1. download the software to http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html download the following three packages: Current address: Copy to c: \ instantclient_10_2 in which ociuldr.exe is a text export tool, specific parameters can refer to export nls_lang = xxxx (such as simplified chinese_china.zhs16gbk) 3. if you develop a Java application
Program And configure some environment variables, such as classpat
Generally, it can be divided into three steps:1. Install the Oracle client. Next, you can proceed. You don't have to change anything.2. Configure the local name to parse tnsnames. ora, without directly entering the connection string.3. Connection.
Let's talk about the name resolution Configuration:Add the following content to tnsnames. ora:Orcl_1.1.1.includedicated =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP) (HOST = 1.1.1.1) (PORT = 1521 ))(CONNECT_DAT
You need to download a plug-in to connect to the Oracle database.Http://www.ericjsmith.net/codesmith/forum/attach.aspx? A = 405
Installation Method:Copy the following two files to c: \ Program Files \ codesmith \ v2.6 (or the installation directory). In this way, you can add a data connection to codesmith studio, you can add a data source in schema expolor. You can select
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.