■ SQL statements and descriptions for creating data files Create tablespace to create a tablespace and its data file create temporary tablespace create a temporary tablespace and a temporary data file (temporary data file is a special type of
1 Overview
In Oracle, there is a special level of permission-sysdba permission,Sysdba has the highest permissions on the Oracle system, and has advanced permissions such as opening, closing, and restoring a database,The sys users frequently
In Windows, if the registry file is damaged, the operating system stability will be affected. Otherwise, the operating system cannot be started properly. For Oracle databases, control files play an important role as the registry. If the control file
1. view the EM port of the database instance
In the ORACLE_HOME \ install \ portlist. ini file.
Ii. Sid of the database instance
The SID length cannot exceed 8 characters. The instance name cannot exceed 30 characters
Iii. Common commands
Start/
Query the table space Path:
Select * From dba_data_files
Instance:
1. Create tablespace ucitdb_data
Logging
Datafile '/home/APP/Oracle/oradata/ucitdb/ucitdb_data01.dbf'
Size 32 m
Autoextend on
Next 32 m maxsize 2048 m
Extent
Run the following commands in sqlplus:
Connect system as sysdba; -- Be sure to log in as DBA; otherwise, an error will be reported belowShutdown immediate; -- this is to disable the session currently connected to the database. If a session is
How to update different data before two tables? There must be different data conditions for multiple fields in multiple data entries. The following is an example:
1. Create a table
Create TableTb1
(ID varchar2 (10 ),
XM varchar2 (10 )
■ View the server parameter file used SQL> show parameter spfile; ■ Use server parameter files to create text parameter filesSQL> Create pfile from spfile;SQL> Create pfile [= '...'] From spfile [= '...']; ■ create a server parameter file SQL>
Key factors affecting Oracle Efficiency
Original http://hi.baidu.com/odbcconnection/item/f4a56cbf1c8bea422bebe32f
1: select the most efficient table name sequence (only valid in the rule-based Optimizer) OracleThe parser processes the
Problem:
---------------------------
When Oracle listening service is startedThe oracleorahome92tnslistener service on the local computer is stopped again after it is started. Some services are stopped automatically if there is nothing to do, such
Oracle 11g Standard Edition
Correct flashback execution method:
SQL> Shutdown; SQL>Startup Mount; the database is started under Mount.
SQL> Alter Table Sy_global_nameEnable row movement;--This means that Oracle is allowed to modify rowid.
Step 1:
Windows OS 7 flagship Edition)
Create a tablespace and allocate it to a user.
1. Install the Oracle service
1. Installation File
E: \ f \ development tool \ dB \ oracle \ oraclexe.exe
2 installation path
D: \ oraclexe
3
Shutdown command Shutdown has four parameters: Normal, transactional, immediate, and abort. If no parameter is specified by default, the value is normal. Shutdown normal: do not allow new connections, wait for the session to end, wait for the
Select B. table_name primary key table name, B. column_name primary key column name, A. table_name foreign key table name, A. column_name foreign key column name From ( Select A. constraint_name, B. table_name, B. column_name, A.
1. trunc (for dates)
The date value intercepted by the trunc function for the specified element.
The syntax format is as follows:
Trunc (date [, FMT])
Where:
Date: A date value.
FMT date format, which is truncated by the specified Element
1. What is a stored procedure. A stored procedure is a section of the database server.ProgramIt has two types. A SELECT query is used to retrieve data. The retrieved data can be returned to the customer in the form of a dataset. The other is similar
The ID truncation method is generally used, and the layer-3 nested method is also used.
One paging method:Int I = 1;Int numpages = 14;String pages = request. getparameter ("page ");Int currentpage = 1;Currentpage = (pages = NULL )? (1): {INTEGER.
1. When multiple tables are combined, an error "Character Set mismatch" is returned when the nvarchar2 type is encountered"
A: Add to_char (variable or field of nvarchar) to the place where nvarchar is used)
2. When multiple tables are union, the
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