In large-scale project development, common databases are Oracle databases. However, an Oracle client requires a large disk. After installation, two functions are basically used: TNS Configuration Service name and sqlplus. During development, toad
Syntax:
With Tempname
As (
Select ....)
Select ...
For example, we want to get 11-14 from 1-19. The general SQL statement is as follows:
Select
*
From
(
--
Simulate the generation of 20 rows of data
Select
Level
When viewing the database session in the OEM, it takes more than 10 seconds to find the SQL statement for a session
Execute SQL in pl SQL and press F5 to view the SQL plan, and find that the index is called elsewhere,
View Oracle statistics
from http://edu.chinaz.com/Get/Database/Oracle/059301006107324955.asp single record function in SQL 1. ASCII returns the decimal number corresponding to the specified character. SQL> select ASCII ('A') A, ASCII ('A'), ASCII ('0') zero, ASCII ('')
The truncate table function is the same as the delete statement without the WHERE clause: both delete all rows in the table. However, truncate table is faster than delete and uses less system and transaction log resources.The delete statement
The following mydata is the user name and database name. In this way, you do not need to create an instance or use the orcl Sid.
====================================== Script start ================== ====================
Set echo off
■ Log Switching SQL> alter system switch logfile; ■ Add a redo log file groupSQL> alter database add logfile2 group 4 ('/export/home/opt/product/10.1.0.3.0/oradata/ldfsys/redo04.log') Size 10 m; ■ Add members of the redo log file groupSQL> alter
Instance 1
Create or replace trigger update_portauser_pass after update on cas_porta_user for each rowdeclare -- local variables herebegin update security_credential C set C. column_value =: New. column_value where c. principal_id in (select P.
Execute the following statement to solve the problem.
SQL > Connect sys / 123 As Sysdba; connected. SQL > Shutdown Normalora - 01109 : The database has not been opened and has been detached. The Oracle routine has been disabled. SQL
Cluster permission
ReferenceCreate ClusterCreate, change, and delete clusters in your own solutionCreate any clusterCreate a group set in any solutionAlter any clusterChange a cluster in any solutionDrop any clusterDelete a cluster in any solution
This stored procedure is as complicated and strange as my mind...
First, we will introduce the structure of the hr_department table.
The main columns can be classified into the following items:
SelectT1.cpny _ idAsCompany_id, t1.deptid dep_id,
Oracle File System: control file (. CTL), data file (. DBF), log file (. Log)
There is also a parameter file for the three files. The parameter file is not an effective part of the database system. When the database is started, the parameter file
I. Overview Four data types are defined in oracle8: Scalar, composite, reference, and lob. The following describes their features. Ii. scalar) The valid scalar type is the same as the type used by the database columns. In addition, it has some
Sometimes we may not know the password of a user, but we need to perform some operations with this user, and we cannot modify the password of this user. At this time, we can use some tips, to complete the operation.
The procedure is as follows:
SQL *
Log On As a dba user. The specific command is sqlplus. / Nologsql > Connect sys / Change_on_install As Sysdba prompt: successful SQL > Shutdown Normal prompt: the database has been disabled and the Oracle routine of the database has been
Ado. net
Connect to SQL ServerSQL Server. NET Framework data provisionProgramSupports connection string format similar to ole db (ADO) connection string format.Using (sqlconnection connection = new sqlconnection (connectionstring )){Connection.
How Should Oracle control files be understood?
In my opinion, the control file records a state of the Oracle database. Like the Windows System Restoration function, it recordsValid, transaction, and specific status. It is also a database, which
I. Overview:
Exp and IMP tools are logical Import and Export tools provided by Oracle all the time --- original!
Ii. Basic usage
Exp user/password @ TNS [full | Owner | tables | tablespaces | transport_tablespace] file = rows =
IMP
It can be understood that using RMAN to create a duplicate database is essentially the same as using dbca to create a database. The expression is different.
To succeed, the key conditions are as follows:
1. RMAN is a pseudo-server tool: it can
--Full import and export of databases in Oracle: cmd command line mode thanks to clown _ shipping time: Source: tutorial
Importing and exporting Oracle Data imp/exp is equivalent to restoring and backing up ORACLE data. The exp command can export
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