the following example connects to the Oracle database (name) in C #, reads data from the table (tablename), and writes data to excel.
string cnstring = "provider = msdaora.1; Data Source = Name;"; cnstring = cnstring + "User ID = username;
Generally, the Oracle code we use is UTF-8.
First we use the client securitycrt set the character encoding is utf8, even if sqlplus query is correct and return the corresponding UTF-8 format value is not correctly displayed drops.
Export lang =
This form is generally used for Oracle paging.
Select * from(Select a. *, rownum RFrom(Select *From articlesOrder by pubtime DESC)) BWhere r And r> pagelowerbound;
In many cases, you do not need to sort data. Instead, you need to perform
Computing time difference is a common problem of ORACLE data types. Oracle supports date calculation. You can create expressions such as "date 1-date 2" to calculate the time difference between the two dates.
Once you find the time difference, you
1). tablespace
A table space is the logical division of a database. Each database has at least one table space (called a system table space ). To facilitate management and improve operation efficiency, you can use an additional table space to
Oracle Database Version: 10.0.2
Server hardware configuration requirements
CPU: P4 1.6 GHzRam: 1 GBHD free space: 10 GBNic
Operating System Platform requirements
Windows 2 k pro, Windows 2 k SVRWindows XP Home, Windows XP ProWindows
Add field alter table docdsp add dspcode char (200) delete a field alter table table_name drop column column_name modify the field type alter table table_name alter column column_name new_data_type rename sp_rename change the user-created
An exception occurs when the characters are about 1500 Bytes:
ORA-01461:You can only assign a value to the long value inserted into the long column.
Solution: Use the Oracle. dataaccess driver to install the Oracle client. Add references to the
OracleOptimizer Introduction
This article describes the concept, working principle, and usage of the Oracle optimizer, taking into account Oracle8i, 9i, and the latest 10G version. Understanding this article will help you perform SQL optimization
Log in with a system account with DBA permissions, such as Windows administrator and oracle users in Unix/Linux.
Log on to the console using the operating system authentication, and then modify the system or other user password:Step 1: Run
ArticleDirectory
I/O busy
High CPU load
Query Plan Analysis
Optimization Method:
Sqlplus settings:
Query plan settings
Online Performance Optimization
System performance I/O busy I/o hotspot files and SQL analysis and
First, use the operating system command to find the process ID with high CPU utilization
1. View All SQL statements currently executed by the database and the corresponding process ID
Column Machine format A16;Column program format A16;SelectP.
1. Column and column conversion with fixed columnsFor exampleStudent subject grade---------------------------Student1 language 80Student1 mathematics 70Student1 English 60Student2 language 90Student2 mathematics 80Student2 100
Oracle RAC involves many processes, and the log directory structure of each process is also very complex. If you do not know the startup sequence and relationship of each process, and the location of the corresponding process log, it is very
The connection string used to connect to the Oracle database in C:
var connectionString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
(HOST=192.168.115.33) (PORT=1521)))(CONNECT_DATA=(SERVICE_NAME= testDemo)));
User
Decompress the 10g installation image of oralce to the hard disk and add the following content to the refhost. xml file under \ stage \ prereq \ dB:Find the oraparam. ini file in the install directory and add the following
There are four main steps:1. Create a table using the utlxplan. SQL script.SQL> @? /Rdbms/admin/utlxplan. SQL2. Create a synonym so that multiple users can share a plan_table and authorize it to the public.SQL> Create public synonym plan_table for
There is no need to worry about Oracle's massive data volume.If you want to transfer a large amount of data in Oracle (more than 80 Mb) to another user and another tablespace. You can use the following method to quickly transfer data.
I. How to
Oracle SQL FunctionsOracle SQL functions are divided into single-row and multi-row functions. A single-row function is only valid for a single record. A multi-row function is valid for multiple records.Single-line functions include: characters,
Set the ref in the profile applicationContext-jdbc.xmlLocalChange to refBean
Configuration File applicationContext-jdbc.xml before modification JAVA: COMP/ENV/jdbc/datasource Local= "Datasource"/> Local= "Datasource"/>
Class = "org.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service