1. Download the installation package http://cx-oracle.sourceforge.net/based on the platform.
2. Install cx_Oracle-5.0-10g.win32-py2.6.msi in Windows
3. If a DLL loading failure error is reported, download the dig command.
4,Import cx_oracle #
Oracle date types include date type and timestamp type
The date format supports the second level, the specific format can have the parameter init file: nls_date_format is set to the YYYY-MM-DD parameter to set, through the parameter settings can
I have been providing technical support for 2 months. That is to say, I haven't touched the Technical Support for 2 months.CodeNow, I am very familiar with it. Recently, I encountered a big concurrency problem in the project, and the data was
The show_space version has many versions on the network. A general version is compiled today and will be used later.
Create or replace procedure show_space (v_segment_name in varchar2, Region in varchar2 Default User, v_segment_type in varchar2
BecauseAUD $Audit-related tables such as tables are stored inSystemTherefore, to avoid affecting system performanceSystemTablespace.AUD $Move to another tablespace. You can use the following statement to move:
[Oracle @ cent4 ~] $ Sqlplus/As
In the difficult winter of data security, a series of topics sorted out before transcription.
Link: http://www.eygle.com/blog/special/oracle_recovery.html
Question: With the increasing importance of databases in enterprises, the business
Some time ago, in the company's big meeting room, I saw my colleague D reading the book "efficient Oracle design" and encouraged d to say, "Do you know? After learning this book, H colleagues of the company made a big breakthrough in Oracle
1 Definition
Audit_sys_operations audits sysdba activities. The default value is false. The related audit information is not recorded in AUD $, because it is possible that the database has not been started yet and can only be recorded in files at
1 utl_file_dir Parameter Definition
Utl_file_dir is a "static parameter" in Oracle. You can set one or more paths. It is used to specify the path when file I/O operations (utl_file package can be used) are performed in PL/SQL. Utl_file_dir is a
Parallel Database access, that is, two or more users access the same data at the same time. This is also the biggest problem for the database engine to design and implement a moderate response. It.phontol.com's database engine with excellent design
I. View and set Oracle character sets1: view the current character set parameter settings of the Database ServerSelect * from V $ nls_parameters;Or select * From nls_database_parametersOr select userenv ('language') from dual;Query
If you encounter a requirement in the project, you need to merge multiple rows into one row.
The table structure is as follows:
Name null type
--------------------------------------
N_sec_code not null char (6)
C_researcher_code not null varchar2 (20
Oracle is different from MySql in many concepts. to switch from MySQL, you need to understand some Oracle concepts.1 Database and instance databases and Instances
A database is a collection of physical files., Stored on a hard disk device, which
ORACLE:
SQL plus has the ability to automatically submit jobs without requiring you to explicitly tell it what to do. It can be achieved through set autocommit on. Off is the default value, which is recommended in almost all programs.
Before
Today, we need to collect statistics on the updates of the three website columns. The three websites use different database management systems at the backend. The initial idea is to create a small Tomcat webapp to access the three backend databases
Oracle does not automatically add primary keys. This is different from SQL Server. in Oracle, sequence and trigger must be used to increase the primary keys.
1. Create a data table
Create Table test_increase (userid number (10) primary key,/*
Try to change the access path
As mentioned above, if an SQL statement is used to trigger sorting, it usually performs a full range scan. The following SQL statement:Select * from product where item_cd like 'AB %' and category like 'C %'Order by item_
From: http://blog.csdn.net/inthirties/archive/2009/08/03/4400905.aspx
A friend on csdn asks for a code segment for help.
The code snippet is as follows:
DeclareType t_indexby is table of numberIndex by binary_integer;Type t_nesteed is table of
Author: skateTime: 2010/10/19
Insert Optimization
To increase the insert speed, you must first know what affects the slow insert and generate redo and undo during insert execution. To increase the insert speed, when fully utilizing system resources,
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