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
One, in the configuration file, the Oracle connection string is stored1. Connection string:"Data source=127.0.0.1/test;user id=xxx;password=xxx;provider= ' oraoledb.oracle '"2.provider[providers], there are two kinds: ' oraoledb.oracle ' for Oracle, 'msdaora' for Microsoft Company. If you take 'msdaora', the Blob field gets an exception.Second, the connection methodBefore 1.NET 4.0, you can access the
1. Open SQL Plus login directly, require username and passwordStart-"program-" oracle-"Application development-" SqlplusMy computer is "start"-"oracle-oradb11g_home1"-"Application Development"-"SQL Plus"After the database installation is complete, there are two system-level users:System default password: ManagerSYS default password: change_on_install2. Go to cmd
Connecting to an Oracle database is simple, as follows
The code is as follows
Copy Code
Connectionstring= "PASSWORD=CZH; User id=czh;data source= (description= address_list= (address= (protocol=tcp) (host=192.168.168.211) (PORT=1521)) ( Connect_data= (server=dedicated) (Service_name=skydream)); "
HOST: Server IP or server name
Service_name:oracle Data Name
User
Recently found a good thing on the Internet sqlapi++, it is available to access multiple SQL databases (oracle,sql server,db2,sybase,informix,interbase,sqlbase,mysql,postgresql) C+ + Library. sqlapi++ directly invokes the APIs of the local Target database management system (DBMS) (unlike ADO using the OLE DB and/or ODBC intermediate). The sqlapi++ Library acts as a middleware to indirectly access the role o
There are two ways in which JDBC connects to an Oracle database:
Connection Database SID
Connecting to a database service_name
When the SID is connected, the string is as follows:URL="Jdbc:oracle:thin:@192." 168.56. :1521: orcl1 "Password=When Service_Name is connected, the string is as follows: url=
The code is as follows
Connectionstring= "PASSWORD=CZH; User id=czh;data source= (description= address_list= (address= (protocol=tcp) (host=192.168.168.211) (PORT=1521)) ( Connect_data= (server=dedicated) (Service_name=skydream)); "
HOST: Server IP or server name
Service_name:oracle Data Name
User Id:oracle username
Password:oracle User Password
If the Oracle database and the
Operation Steps:1, DLL download and reference (this DLL is actually oracle for C # specifically provided, in its official can also download to the Oracle website): Oracle.ManagedDataAccess.zipAfter downloading, place the Oracle.ManagedDataAccess.dll in your project and then reference2. Call (connstring change to its own connection string)Using Oracle.ManagedDataAccess.Client; public static string Connectora
The connection application of the database is an important knowledge point of each programming language, this article records how to connect the database under Python.
The local environment is as follows:
System: Windows7 64 bits
Python version: python2.7
Database: Oracle 1
1. Enter Excel Test form, Test.xls.2. Save As. csv format3. Create the Sql*loader control file Test.ctl, which reads as follows:Load dataInfile ' C:\test.csv 'Insert INTO table test fields terminated by ', ' (COLUMN1,COLUMN2,COLUMN3,COLUMN4,COLUMN5)Data files need to be copied to the corresponding location4. Create a corresponding test table in the database testsCREATE TABLE Test (Column1 Varchar2 (10),Colu
department
--Unable to display departmental information without employees
3. Unequal connection
The related two columns in two tables are unequal joins, and the comparison symbol is generally >,
REM salgrade
--desc salgrade;
--select * from Salgrade;
REM shows the employee's number, name, salary, and level of salary.
SELECT empno,ename,sal,salgrade.* from Salgrade,emp
WHERE EMP. SAL BETWEEN losal and hisal;
REM Displays the employee's number, name
Label:The configuration file Applicationcontext.xml settings are as follows: Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/ Spring-beans-2.0.xsd "> Spring Connect Database Motion connection properties for My
1. Download a driver package Ojdbc14.jar online and put it in the Oracle directory: \dbvisualizer-8.0.1\jdbc\oracle\ojdbc14.jar2. Open Dbvisualizer after opening Tools-drivermanager3. Select Oracle Thin, select User Specified on the right, and the previous Ojdbc14.jar package in the folder below will automatically match4. Select
Environment: WinXP, iReport1.2.8, Oracle 10g databaseAfter installation completes iReport1.2.8, when making database connection, the Oracle 10g database is connected by JDBC, the connection is set up as follows: The above configuration is correct, but appears when the "Test" button is clicked:ClassNotFoundError:oracle.
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.