The integrity of the data is used to ensure that database data follows specific business rules.
In an Oracle database, you can use constraints, triggers, and application code (procedures, functions) to achieve data integrity in 3 ways.
Today we
----Query the physical file for offline
Select Name, Bytes, status from v$datafile where status = ' OFFLINE ';
----Query failed objects
SELECT owner, object_name, object_typeFrom Dba_objectsWHERE status = ' INVALID 'and owner not in (' SYS ', '
Paging Query format:
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM ) WHERE RN >= 21
The most inner query select * FROM table_name represents the original query statement without paging. RowNum = 21 control
1, the principle of lock (lock)
Locks in Oracle are often business-level issues, and locks are designed to ensure database consistency in concurrency, so there is no lock without concurrency. There are several principles for Oracle locks:
The rows
If Oracle unfortunately encounters undo corruption in operation, the best approach is full recovery, but if there is no backup, you can take an unconventional approach (taking advantage of the hidden parameters of Oracle) and if undo contains
First, specify the parameter file when the database is started.
In the process of starting a database, you must provide an accurate initialization parameter file, whether it is a text parameter file or a server parameter file. When you start a
In a stand-alone environment, you must first switch to an Oracle user to start or shut down the Oracle system, as follows
Su-oracle
Oracle databases have several startup methods:1,
Startup Nomount
Non-installation startup,
When setting the password for a database instance, be careful not to start with a number, or you will experience an ORA-00988 missing or invalid password (password missing or invalid) error.
After Oracle 10g installation is complete, you can use
The Oracle tutorial that is being looked at is: An Introduction to Oracle based object-oriented Technology Brief analysis of the Developer Network Oracle.
I. OverviewAn object is a new feature in the above version of Oracle8i, which is actually an
First, cold backup1, cold backup occurs when the database has been shut down normally, before making a cold backup, you usually need to know the name of the backup file and the path
Copy Code code as follows:
Sql>select name from
Oracle|window PHP in the Linux/unix to connect Oracle8 is very easy, but under the Windows platform is not easy, I after a long exploration to find a reliable way, do not dare to enjoy alone,
It is now published for the feast.
The author uses the
Maximum number of connections for a user
To view the maximum number of connections for this user
Select profile from dba_users where username= ' app_test ';
SELECT * from Dba_profiles where profile= ' pf_app_test ' and resource_name= '
Use the dump block format combined with bbed for viewing.
################### #实验准备步骤:
bys@ bys3>create table Test6 (AA int,bb varchar2 (10));
Table created.
bys@ Bys3>insert into TEST6 values (the "BYS");
1 row created.
bys@ Bys3>insert into
Objective: To resolve the system migration from Oracle to Sybase.
Command Overview:
C:\Documents and Settings\newuesr>isql-help
Syntax Error in '-help '.
Usage:isql [-b] [-e] [-f] [-p] [-n] [-v] [-X] [-y] [-Q]
[-A Display_charset] [-A
By comparing the partitioned table and the normal table, we simply tested the performance and maintained the index when the partitioned table existed, and finally we had to say
The use of partitioned tables may not always improve performance,
For some distributions today, there are already three dynamic performance views available to DBAs (database Administrator, DBA) and developers, respectively, V$sql, V$sqlarea, and V$sqltext.
These views can be used to collect statistical
Oracle storage of large text has been a thorny issue.
First, the storage database:
"Defining variablesJava.sql.Connection Conn; Database Connection objectsString SQL;Long ID;ResultSet rs;Statement Stmt,stmt1;java.sql.drivermanager.registerdriver
Stored procedures are used to perform specific operations when a stored procedure is established, you can specify either an input parameter (in) or an output parameter (out), you can pass the data to the execution part by using the input parameters
The steps to install the ASM database are much more repetitive than the steps to install RAC, so the installation documentation for the previous RAC has been modified to successfully install the ASM-managed database. The installed environment is the
Recently, we helped customers configure the odbc transparent gateway to access IPVs db in oracle through DB link.A simple record:(1) configuration of listener. ora and tnsnames. ora:[Wsj81 @ localhost admin] $ cat listener. ora# Listener. ora
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