CREATE TABLE Egmas_count_data(Times date NOT NULL,COUNT number (+) is not NULL,System_name VARCHAR2 (+) NOT NULL,Operation_index VARCHAR2 (+) NOT NULL);--ADD comments to the columnsComment on column egmas_count_data. Timesis ' date ';Comment on
1. Export the database instance:operate under the cmd command:Exp database user name/password @ server ip:1521/ Example file=c:\devdb.dmp full=y2. Import the database instance:Create the related database, set up the related table space + user +
1, if the number of Oracle connections to reach the upper limit, using Plsql to connect to Oracle, there will be no connection error, typical errors are:Maximum number of processes (exceeded)2. Restart the Linux machine (otherwise not connected),
[Oracle] Why Archivelog was not removed immediatelyThe customer has set up the Archivelog deletion policy is CONFIGURE Archivelog deletion policy to applied on all STANDBY;So, he thinks that as long as the standby side commits, it should be
Specify the instance name and modify IP address of the listener in the Listener.ora file:View instance name: [localhost$] Echo $ORACLE _sidLISTENER = (description_list = ( DESCRIPTION = ( address = (PROTOCOL = IPC) (KEY = EXTPROC1521))
SQL1: --1, view the name and size of the tablespaceSELECT T.tablespace_name, round (SUM (Bytes/(1024x768)), 0) ts_sizeFrom Dba_tablespaces T, Dba_data_files DWHERE T.tablespace_name = D.tablespace_nameGROUP by T.tablespace_name;--2, view the name
--View data usage for all table spacesSELECT Upper(f.tablespace_name) "tablespace name", D.TOT_GROOTTE_MB "table space size (M)", D.TOT_GROOTTE_MB-f.total_bytes "used Space (M)", To_char (Round((D.TOT_GROOTTE_MB-F.total_bytes)/D.tot_grootte_mb* -,2)
Oracle Default database userWhen a new database is created, Oracle automatically creates 3 database users for us.1.sys User: SYS user is a super User in Oracle. All data dictionaries and views in the database are stored in the SYS mode (what is the
What is a tablespace?The Oracle database contains logical and physical structures.The physical structure of a database refers to a set of operating system files that make up a database.The logical structure of a database refers to a set of logical
It is best not to do other unrelated actions after deleting data① determining when to delete data② This statement to find the deleted data: SELECT * from table name as of timestamp to_timestamp (' delete point ', ' yyyy-mm-dd hh24:mi:ss ')③ deleted
Create or Replace package Tx_pkg_pagepackage are type tx_resultlist is REF CURSOR; Procedure Tx_prc_pagination (tx_resultlist out Tx_resultlist,insql in Varchar2,currentpage in Number,pagecount in number ); End;create or Replace package body
1, Win+r, run regedit, enter the Registry Editor.650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/00/05/wKiom1mU_ZTw-bDjAAAwxumrmls450.png-wh_500x0-wm_ 3-wmp_4-s_1093241014.png "title=" 20170817101937.png "alt="
Backup RecoveryConfigure RecoverabilityRedundancyControl file (mirror)Sql> Show Parameter Control_filesSql> select * from V$controlfile;To modify a path:$ cd $ORACLE _home/dbs$ CP Spfileorcl.ora Spfileorcl.ora.bakSql> alter system set control_files=
Grammar:SELECT ... From + table name START With + condition 1CONNECT by PRIOR + conditions 2WHERE + condition 3DescriptionThis method is used to query the data of the tree structure. For example, we have a structure like thisThen build a table
Use of Oracle KeywordsUse Insert to add data: INSERT into table name VALUES (add corresponding number); COMMIT;INSERT into P_empVALUES (' TOM2 ', ' clerk ', 7902, Sysdate,, NULL, 30);COMMIT;Try delete Delete a data: Delete table name WHERE condition;
A project requires a view to build a primary key, here is a sampleCREATE or replace VIEW sme_v_a .... (Agentid,agentname,busynum,restnum,resttime,devicenonum,devicenosum,CONSTRAINT agentstatic_pk PRIMARY KEY (agentid) RELY DISABLE
Revocation ManagementWhat is undo data:1. Transaction fallback: No transaction submitted can be rollback2. Transaction recovery: When the database crashes, the incorrect data of the disk is restored to the pre-transaction3. Read consistency: The
Deadlock:Session1:Sql> select * from T1;X----------12sql> Update T1 set x=11 where x=1;Session2:sql> Update T1 set x=22 where x=2;Session1:sql> Update T1 set x=222 where x=2; BlockingSession2:sql> Update T1 set x=111 where x=1; Dead lockERROR at
The deadlock is due to the fact that two objects request another resource with one resource,Another resource happens to be holding the two objects, causing the two objects to be unable to complete the operation, and the resources held cannot be
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