1. First enter the SQL Plus window (see previous article)2. Enter after: Enter select Username,account_status from dba_users where username= ' SYSTEM ';3. Query the system user's status and user name, here can query out the password, but the
The initialization parameters of the Oracle database are mainly derived from the two Oracle internal data dictionary tables: X$KSPPCV and X$ksppi usually we query the V$parameter view or use the show parameter command from both system tables,
(1) CREATE TABLE spaceCreate Tablespace space NameDataFile ' e:\ filename. dat 'Size 1MAutoextend on(2) Create a user--No, No.--create user username identified by password;--grant connect,resource to user name;--grant create any view to user
First create a test table and record the parsing statistics: 650) this.width=650; "Style=" border-bottom:0px; border-left:0px; border-top:0px; border-right:0px "title=" image "border=" 0 "alt=" image "src=" http://img1.51cto.com/attachment/201411/4/7
UNIONThe purpose of the directive is to have twoSQLThe result of the statement is merged together,You can view the results of the query you want.For example:SELECT Date from Store_informationUNIONSELECT Date from Internet_salesNote: Unionin use,two
Dynamic SQL returns cursors:Create or Replace procedure Proc_validityduequery (P_regioncode in number, p_pscode in number, p_o Utputcode in number, p_pollutanttype in number, P_psclasscode in Varchar2, P_attencode in Varchar2, P_checkstatus
In Oracle, sequence is the so-called serial number, each time it takes its own initiative to add it, usually in order to be ordered by serial number place.1. Create SequenceYou first have to have create sequence or create any sequence
Oracle query Chinese old appeared garbled, but not all garbled, the data access layer is used by others and can not see the code, write their own C #. OracleClient is normal again.On the internet to find a plan, did not expect it!Here are the steps
Well, always lift the cursor on the headache, the total feeling is very tall things, deterred ...What to do today involves updating data in real time, using a job stored procedure cursorThrough on-line search information, consult colleagues, also
--1, create a student information sheet stuinfo, fields including number, name, gender, age, date of entrySql>create TABLE Stuinfo (Snochar (4), sname Varchar2 (ten), sex int,age int,sdate date);Table created--2, creating a stuinfo table primary KEY
A simple example shows Oracle's "selfless" robustness
Oracle's strength lies in its ability to always help you choose the right execution plan, even if you give it wrong instructions.
Lab:
1. Create a test table:
Collect statistics:
Create a
Single-row oracle FunctionsZookeeper
Single Row Function①. Character FunctionsLOWER (x): converts each word in x to lowercase.UPPER (x): converts every word in x to uppercase.INITCAP (x): converts the initial letter of each word in x to
Whether the maximum number of connections is set in oracle or an error is returned
There are 1100 data records to be updated, and an error is reported during connection.
ORA-12518, TNS: listener cocould not hand off client connection
According to
Script sharing for viewing slow query progress in Oracle, oracle progress
The SQL statement of a large Oracle transaction often does not know where it runs. You can use the following SQL statement to view the execution progress.
Copy codeThe Code is
Oracle displays the SQL statements in which logical and physical read resources are ranked
View the SQL statements before the first 10 logical reads:
Copy codeThe Code is as follows:Set linesize 300;Set pagesize 300;Set long 50000;SELECT *FROM
MySQL show index from table command SQL script sharing in Oracle, oraclemysql
Experiment Data initialization:
Copy codeThe Code is as follows:Create table t as select * from hr. employees;Create index inx_t1 on t (employee_id, first_name desc,
[Index] basic knowledge of joint index and joint index
0. Preparation
Suppose we have the table user (id, name) Column
1. What is composite index?
We know that you can index a single column (such as id) of a table,For multiple columns (combination
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