Take oracle in Unix as an example.1. Check the SQL statement currently executed by the sessionRun the TOP command to check the CPU usage of the Oracle service process. Generally, the CPU usage of a single process should not exceed 5%. If the CPU
Today, I am discussing the index understanding in a Java group and other people.I have never understood what they are talking about for a long time.I also checked a lot of index definitions on the Internet,However, there are no specific examples
When writing the SQL statement for creating an oracle table, the statement for dropping the table is usually added before "CREATE" for SQL Execution. However, the statement for dropping the table before "CREATE" is executed for the first time, an
// Implement an automatic value-added column in Oracle
-- 1. create Table users (userid int primary key, -- User ID username varchar (20), -- User Name passwd varchar (20), email varchar (30), grade INT ); -- user level -- 2. create sequence userid_
From my own blog.
Recently I am studying Oracle and need to use the Oracle sample database. I have installed Oracle 11g R2, and there is no sample database after installation. You need to download the Oracle examples package from the Oracle
We know that the Oracle client supports setting the nls_lang parameter. The setting of the nls_lang parameter varies with the system platform. This article first introduces the composition of the nls_lang parameter, and then introduces the settings
Alter user Scott account unlock; -- Unlock Scott userSelect * from Scott. EMP where to_char (hiredate, 'yyyy-mm-dd')> '2014-1-1 '; -- date comparisonSelect * from Scott. EMP where to_char (hiredate, 'yyyy') = '000000'; -- the start time year is 1980.
Basic PL/SQL
1. PL/SQL concepts
PL/SQL (Procedural Language/SQL) is an extension of Oracle in the standard SQL language. PL/SQL not only allows embedding SQL languages, but also defines variables and constants, allows the use of conditional
Manage tablespaces and data files
Description: tablespaces are logical components of databases. Physically, the database data is stored in the data file. Logically, the database is stored in the tablespace, which is composed of one or more data
Data AdministratorEach Oracle database should have at least one Database Administrator (DBA). For a small database, one DBA is enough, but for a large database, multiple DBAs may be required to assume different management responsibilities.*
Oracle Complex Query
* Use subqueries in the from clause
. Display information of employees higher than the average salary of their own departments.
// 1. query the average salary and department number of each department, select deptno, AVG (SAL)
Oracle does not set an auto-incrementing primary key. If you want to implement the auto_increment function of databases such as MySQL, you need to create a sequence.
1. Define the primary key as the automatic growth identifier type
In MySQL, if
First install the tool and then connect
VPN:IP: 113.108.186.130User: jfwh_qujyPassword: qujy0429
VPN,
Click the gray connection VPN in the second picture. the user name and password are also available here.
Linux Server:IP:
SQL statement for time field query:
Select * From mycontent t where T. create_date
SQL statement for modifying the time field:
Update mycontent tSet T. create_date = to_date ('2017. 2012 13:10:45 ','Yyyy-mm-dd hh24: MI: ss '),T. modify_date =
The multi-level tree structure of RM uses Oracle connect by for sorting and adds layer-level sorting.
Connect
Select T. ID, T. curname, T. parent_id, T. order_value from tb_company t where status = 1 and T. ID in(Select distinct r2.company _ id from
In the transaction per second system, Oracle TimesTen memory database and BEA's WebLogic realtime are two secrets.
1. Oracle TimesTenOracle TimesTen is a memory database acquired by Oracle. No matter how the Oracle SQL statements are optimized, the
Oracle system functionsOverview:Sys_context ('userenv', 'param') function: this function can be used to query important information.For example, which database are you using?Note: 1)Host: Returns the name of the host where the database is
This is the note I made when I learned Java by myself. Some of them are too long and some are not fully described.
Some explanatory texts are very important, especially for beginners who are new to Java.
Even now, I still think these explanations
Procedure
Create or replace procedure ivan_sptest1 (
Material_no in sd_form_box.material_no % type,
Pallet_id in sd_form_box.pallet_id % type,
Box_id in sd_form_box.box_id % type,
V_ds1 out sys_refcursor,
V_ds2 out sys_refcursor
)
Is
Sql1
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