In the face of demand, we need to use Python to manipulate the Oracle database.This time we use cx_oracle.Oracle ClientBefore installing cx_oracle, install the Oracle client first.Cx_oracleCx_oracle is an extension module that follows the Python
TableCREATE TABLE Aa_test(AAAA NVARCHAR2 (20),BBBB number,CCCC NVARCHAR2 (20))Delete in two steps: first save to meet the requirements of theDelete from Aa_test t where (T.AAAA,T.BBBB) isn't in (Select T1.aaaa,max (T1.BBBB) from Aa_test T1 GROUP by
Experiment with the EMP table from the Scott user first.EMP table has a field, one is Empno (employee number), the other is MGR (higher manager number)Here is all the data in the table
1
select* from emp start with empno=7698
Suppose there is a student table student, the student table has a name, a score, a course number, and now I need to sort the students ' grades according to the course.SELECT * FROM Student1. Rank over () can be achieved on the student rankings,
1> Creating a user for OracleCreate user username identified by PWS;2> Authorization to the userGrant Connect,resource to username;Grant Select on table or view name to username;Note: Use Select * from table or video map name in PLSQL; Hint table or
1. Flash BackAnnotation: Delete "t_spc_room" table, but no commit can be restored back with the following command.flashback table Mw_app. T_spc_room to before drop2. Handling special Charactersannotations : When inserting special with &, Oracle
1 Linux Normal export/import1.1 Export under TerminalExp naricom/[email Protected]/sgtms owner= ' (' mw_app,mw_sys,statdba,dictdba ') ' file=/orabackup/sgtms_201408131200. DMP log=/orabackup/sgtms_201408131200.log buffer=800000001.2 End of ImportImp
Recent company projects to support the Oralce database, we migrated the project, the project using MyBatis need to manually modify the MyBatis SQL XML file, the modification process encountered a lot of problems, recorded here for easy follow-up
It's needless to say that you install centos6.0 first. Installation can be done. The only thing to note is that the checking the software requirements part of the Oracle 11G Installation Guide will require a subset of the software to be installed
oracle10g after installation, there are usually the following services:1.OracleCSServiceThe Oraclecsservice service manages the configuration of the cluster by controlling the members of the cluster nodes and notifying them when the node is joined
April 9, 2015 cold weatherTable Gw_log is designed as follows:Name Type NullableDefaultComments--------------------------------------------------ID VARCHAR2 ( -) Message ID service_id VARCHAR2 ( -) Y Service ID req_timeDATEY Request Time
12CORA-27106 error handling process
Two days ago, the customer Exadata 12c Environment reported an error due to memory allocation. The following is the processing process.
An error is reported when the node is restarted, but other nodes are started
Oracle practical tips
1. Flashback
Note: delete the "T_SPC_ROOM" table, but you can use the following command to restore the table without commit.
flashback table MW_APP.T_SPC_ROOM to before drop2. Handling special characters
NOTE: If special
A small example of grouping and summation in oracle
Cold weather in April 9, 2015Table gw_log is designed as follows:
Name Type Nullable Default Comments ------------ ----------- -------- ------- ---------- ID VARCHAR2 (50) Message id SERVICE_ID
Simple display of oracleclient bits 32bitor64bitDirectory
Directory linux platform windows PlatformLinux platform
Go to the bin directory of the client installation directory (CLIENT_HOME ).
$ Cd CLIENT_HOME/binUse the file command to verify the
Use Navicat Premium and PL \ SQL Developer in 64-bit Win7 to connect to the Oracle database memo, win7navicat
Recently, I took over a project where the server database is oracle 11g 64-bit. Because it is not a development task and you do not want to
Install Oracle 11gR2 (11.2.0.1) and basic configuration (1) on CentOS6.0, and centos6.011gr2First install CentOS6.0. Install it. The only thing to note is the Checking the Software Requirements section in the Oracle 11G Installation guide, which
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