In Oracle, you can specify a default value for a table column, so that when you insert data, if the column does not appear in the insert statement, the default value is assigned to it. note that this column does not appear in the insert statement,
The following is a simulation process.1. Simulate high CPU usage in a session, as shown below:
Declarenum INT: = 0; beginloopnum: = num + 1; end loop; end ;/
2. Run the TOP command in the shell window to view CPU usage:
PID user pri Ni size
OracleHandling of invalid listeners in the service
revised by: Huang Kai
E_mail:Hk_sz@163.com
If youControl Panel/management tools/servicesDouble-click to openOracleorahome92tnslistenerSee its"Executable
When Oracle 10g R2 is installed in cenotos 5.3 Chinese environment, the graphical interface is displayed, and Chinese characters are garbled.
After searching on the Internet, it is found that the library used for Oracle installation is not
Note: This article is original. You are welcome to reprint it. Reprinted please indicate the source: http://blog.csdn.net/techyang
Session session = hibernateutil. currentsession (); // create a sessionHibernateutil. begintransaction (); // start
1, error:
ORA-12560: TNS: protocol adapter Error
Listener is not started. Start listener: LSNRCTL start on the server where the database is located.
2, error:
ORA-01033: Oracle initialization or shutdown in progress
Oracle is not in the open
Each table in Oracle has a rowid, which is an 18-character string, for example, aaangbaabaaao/kaaa. it contains a string consisting of A-Z, A-Z, 0-9, +. yes.
Where the A-Z corresponds to 0-25, A-Z corresponds to 26-51,0-9 corresponds to 52-61, +
The following table lists the types of locks added to the table and the compatibility between the locks and other types of operations.
Table 13-3 Summary of table locks
SQL statement
Mode of table lock
Lock modes permitted?
1. Start the database:
First, an appropriate initialization file will be found in the following three files in order.
Spfile $ oracle_sid.ora
Spfile. ora
Init $ oracle_sid.ora
Path: Oracle/product/10.2.0/db_1/dbs
2. startup
I recently learned Oracle9i 9.2.0.1 again with Lei. Although I used to study every problem from the DBA's perspective, but after all, we will find that the entire Oracle system architecture is not what we can do. So this time, we have changed the
./* + All_rows */It indicates that the overhead-based optimization method is selected for the statement block, and the optimal throughput is obtained to minimize the resource consumption.For example:Select/* + all + _ rows
The import and export functions of Oracle databases are very powerful, which are summarized as follows:
1. Use the exp/IMP tool in PL/SQL to export/import Oracle Data
Importing and exporting Oracle Data imp/exp is equivalent to restoring and
Help Command: EXP help = y
Export: Release 10.2.0.1.0-production on Thu Jul 20 10:39:50 2006 Copyright (c) 1982,200 5, Oracle. All rights reserved. You can let export prompt you for parameters by entering the expCommand followed by your
Overview
As a large relational database, Oracle database has many characteristics compared with other relational databases. The following is a simple description, this includes the knowledge we may use in daily operation and maintenance, and we
If a database connection problem occurs, use the tnsping service name in the command line to check the cause of the error.
Common Errors include:
ORA-12535: TNS: Operation timeout
First, disable the firewall, which is the most common cause of
FAQs about Oracle Development
Directory
Insert and display number data of Oracle
Insert and read-out display of Oracle time data
Oracle Auto-increment Field
[1] insert and display Oracle number data
(1) Insert data of the number type
Convert the
Common Errors During Oracle usage and development
(1) scripts generated by powerdesigner cannot be run directly;
Otherwise error: ORA-00942: Table or attempt not to exist
Http://www.cnblogs.com/chinafine/articles/1847011.html
(2) ORA-00904 invalid
Requirements:
When a record is inserted into a table, the ID of a column is automatically inserted and the inserted ID is auto-increment.
We can first create a sequence, such as goods_goods_id, and then use the following SQL statement each time to
From: http://www.cnblogs.com/boulder19830907/archive/2008/01/31/1059627.html
Someone asked me today, after designing the field type to float (2) and inserting 93.5 data, why is it 90?
In order to illustrate this problem, let's look at a paragraph
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