Modify the encoding of the data to UTF-8
View and modify Oracle encoding format Method-view Oracle database Character set:
Select Userenv (' language ') from dual;
Query results:
Simplified Chinese_china. Al32utf8
--Modifying the Oracle Database
Turn from: http://lzkyo.iteye.com/blog/692680
indexes and corresponding tables should be located in different tablespaces (primary key (ID) using index tablespace mytable_index), and Oracle can read data on different hard disks in parallel to avoid
1, intersect operationReturn the same part of the query result both their intersectionSql> SELECT * FROM ABC2 intersect3 SELECT * from ABC2;2, minus operationReturns the portion of a row that is not the same as the second query result in the first
/* TriggersTriggers are stored procedures that are stored in a database and implicitly executed. That is, the code block that Oracle automatically executes when a particular event occurs.Triggers are made up of three parts, triggering events,
1. Use of%typeIn many cases, the PL/SQL variable can be used to store data in a database table. In this case, the variable should have the same type as the table column. For example, the first_name column of the students table is of type VARCHAR2 (20
Common functions: Substr and InStr
1.SUBSTR (string,start_position,[length]) to substring, return string
Explanation: String Meta string
Start_position starting position (starting from 0)
Length optional, number of substrings
For example:substr
Original post address: http://blog.csdn.net/nsj820/article/details/5755685
Oracle9i introduces the merge command, which enables you to perform both inserts and updates operations on a table in one SQL statement. The merge command selects rows from
ALTER TABLE UserInfo Add (msn varchar2 (20));
1, build the table
CREATE TABLE UserInfo (
ID Number (6),
Name VARCHAR2 (20),
Sex number (1),
Age Number (3),
Birthday date,
Address VARCHAR2 (50),
My present date format is, to be changed into English needs to enter the command:
ALTER session SET Nls_date_language=american;Changed to:
If you want to change English to Chinese, you can use the command: Alter session set nls_date_language= '
Ora-01033:oracle initialization or shutdown in progress is usually caused by corruption of the ORACLE database file, following are the problems and resolutions that occur:
Symptom One : sysdba can log in, but in use, the database is not open, only
Configure Time Synchronization Service
Time synchronization between nodes is very important for Oracle, which is often done by setting up NTP servers before the 11g version. A new CTSS (Cluster time Synchronization Services) service was added to
(1), download cx_oracle compilation package
If you want to use a compiled package, choose what version you can pay attention to. If your machine already has Oracle clients installed, look at the operating system's x64 or i386 architecture, see the
Reasons and methods for Oracle users being locked when logging in, they were told that test user was locked in 1, logged in with DBA role, unlocked, set specific time format to view specific time Sql> alter session Set nls_date_format= '
Open Oracle's DBCA
View the Acyx instance you just created in the Windows service
Log on using Pl/sql developer
Pop up the following prompt box
Start Service Oracleoradb11g_home1tnslistener
Try again using Pl/sql Developer login,
The Naming convention for this file defaults to: Init$oracle_sid.ora (under UNIX environment) Init%oracle_sid%.ora (under Windows environment) Places it in the following directory by default $ Oracle_home/dbs (Unix) %oracle_home%/database
when Oracle installs the DBMS from the 10G release, the server installed does not have the client installed, the client is installed on its own, and more flexible uses such as your server on Linux, you can install an oracle under your Windows
Learning Oracle, it's best to understand Oracle's framework first. This has a holistic understanding of Oracle and has a farsighted role
1. Physical structure (composed of control file, data file, redo log file, parameter file, archive file,
1. Stop database and CRS on both node$ srvctl Stop database-d mydb# Crsctl Stop CRS
2. Turn off RAC
Sql> StartupORA-29702 error occurred in Cluster Group Service operation
Relink with the RAC off.$ cd $ORACLE _home/rdbms/lib$/usr/ccs/bin/make-f
Pk: Primary key, cannot repeat, non-empty
Fk: Foreign key, reference to another table PK, you can repeat.
Union PRIMARY key: a 2-table PK is referenced as the primary key for this table.
Application Example: Build three tables, increase the
When you use GROUP by Cratetime, but one day there is no data, there will be no data one day.
So using the following SQL, you can count out every day.
Select
To_date (' 2015-06-01 ', ' yyyy-mm-dd ') +level-1 as time
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