Alibabacloud.com offers a wide variety of articles about oracle create materialized view, easily find your oracle create materialized view information here online.
: (The number of logs may be slightly different)Control01.ctl example01.dbf redo02.log sysaux01.dbf undotbs01.dbfControl02.ctl Redo03.log system01.dbf users01.dbfControl03.ctl Redo01.log shttest.dbf temp01.dbfThree How to view Oracle logs:Sql>select * from V$sql (#查看最近所作的操作)Sql>select * FROMV $sqlarea (#查看最近所作的操作)All changes to the Oracle database are recorded in
Note: The following operating environments are available in centos 6.4 + Oracle 11gr2 (Oracle is installed in oracle_base =/opt/Oracle, and ORACLE_HOME =/opt/Oracle/11g)
After installing and configuring the Oracle database with oui, Or
http://blog.csdn.net/zhoufoxcn/article/details/1762351 first assume that there is a table:CREATE TABLE S_depart (Departid INT NOT NULL,Departname NVARCHAR2 (+) NOT NULL,Departorder INT Default 0,Constraint Pk_s_depart primary KEY (Departid));In Oracle, sequence is the so-called serial number, which is automatically incremented each time it is taken, and is typically used where serial numbers need to be sorted.1. C
$logfile;Sql> select * from V$logfile; (#日志文件路径)Two What the Oracle log file contains: (The number of logs may be slightly different)Control01.ctl example01.dbf redo02.log sysaux01.dbf undotbs01.dbfControl02.ctl Redo03.log system01.dbf users01.dbfControl03.ctl Redo01.log shttest.dbf temp01.dbfThree How to view Oracle logs:Sql>select * from V$sql (#查看最近所作的操作)Sql>s
Create a user in Oracle and Set permissions in oracle
(To: http://www.cnblogs.com/yangy608/archive/2011/08/22/2148893.html)
Create user TEST identified by "TEST" -- create a TEST user
Default tablespace USERS
Temporary tablespace TEMP
Profile DEFAULT;
Grant connect,
managed locally. The Local management table space is managed through bitmaps.Autoallocate indicates that the table space is automatically assigned a range, and the user cannot specify the size of the range. Only more than 9.0 of the versions have this feature.The uniform indicates the fixed size of the table space's range, which is 1m by default.You cannot set the system table space of a locally administered database to dictionary management.Oracle recommends using local management table spaces
, 22 );Insert into CLASSES_VIEW VALUES (5, 2222)ORA-01402: view with check optidn where clause violations
Insert data that meets the where condition can be successfully inserted, as shown in the following figure: DATA 0 inserted
SQL> INSERT INTO CLASSES_VIEW VALUES (0, '123 ');1 row inserted
SQL> commit;Commit complete
SQL> select * from classes_view;CID CNAME-------------------------------------------------0 00011 09012 0902
Modify
EM status
Start the Oracle instance manually, use sqlplus to create an idle instance, and then start it with startup, as shown below:
After the database instance is started, you must start the listener to allow remote users to establish a connection. Run the following command to start the listener:
Lsnrctl start
Oracle also provides a web version manager. T
macro. It can do many things behind the scenes and make the process very simple for end users or applications.2. Views can also be used to enhance security. Let's assume that I only want user BOB to see the ENAME and DEPNO columns in the EMP table. I can use the following:GRANT select ON emp TO bob;
However, the above command will show BOB all the contents of the table. I can write down the following view so that BOB can only see the columns that he
Tags: --Create a user and assign tablespaces and assign permissions--SYSDBA login [emailprotected]:~> sqlplus/as sysdba Sql*plus:release 12.1.0.2.0 Production on Mon Mar 7 18:48:59 Copyright (c) 1982,, Oracle.
All rights reserved. Connected to:oracle Database 12c Enterprise Edition Release 12.1.0.2.0-64bit Production with the partitioning, OLAP, Ad vanced Analytics and Real Application testing options s
View and modify the character set of the oracle server and client. 1. What is the oracle character set? The Oracle character set is a collection of symbols for the interpretation of the byte data. It can be divided into different sizes and have an inclusive relationship with each other.
instance.sql> startup Nomount;ORACLE instance started.Total System Global area 314572800 bytesFixed Size 1219160 bytesVariable Size 96470440 bytesDatabase buffers 213909504 bytesRedo buffers 2973696 bytessql> @createDB. sqlDatabase created.7. Execute the underlying script for the corresponding databaseThe following 5 scripts are run under the SYS schema:Create a data dictionary view@/u01/app/
Create your own oracle interpretation plan and oracle interpretation plan
1. Explain the plan
When an explain plan is used to generate an expected execution plan for a query, the output includes the following:
Each table accessed by SQL;
Method for accessing each table;
The join method used by each data source to be joined;
All operations to be completed listed
Oracle Database notes-oracleweb view usage process, and plsql installation 1. a. Enter the following when you first enter: http://127.0.0.1:1158/em/ Oracle Enterprise Manager: This is the title of the webpage. Enter the system account and password: orcl B. create a tablespace: There is no tablespace in mysql: that is t
Assume that there is such a table:
Copy codeThe Code is as follows: create table S_Depart (
DepartId INT not null,
Parameter Name NVARCHAR2 (40) not null,
DepartOrder INT default 0,
Constraint PK_S_DEPART primary key (DepartId)
);
In oracle, sequence is the so-called serial number, which is automatically increased every time it is obtained. It is generally used in places where the sequence numbers need to b
they cannot access other data in the base table. You can make data independent of your application. (This allows for the independence of the data) so that the same data appears in different views in different forms. For example, for each user to create a different view, each user sees the same data, but the column name, the view name may be different.
Database Home > Related LinksRELATED LINKS) "Area >" Alert Log Content (Alertlog content) "
View Alert logs
Each database has a alert_if $oracle_base is set, this file is stored by default in the$ORACLE the _base/diag/rdbms/Database alert files are log files that list messages in chronological order, such as:? Any non-default initialization parameters that are used at startup? All internal err
; mkdir D: \ oracle \ product \ 10.2.0 \ oradata \ Sm
You can also create a directory on the GUI of windows. Where:
D: Several subdirectories under the \ oracle \ product \ 10.2.0 \ admin \ SM directory are mainly used to store tracking information during database operation. The two most important sub-directories are the bdump and udump directories. The bdump
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.