Query Undo Table Space StatusSELECT SUM / 1024x768 / 1024x768 from GROUP by tablespace_name, status;The state of the undo tablespace (status) has three values-------active, EXPIRED, unexpired, what they mean: active: The undo Tablespace area
--Range Partitioning--Build a tableCREATE TABLE Orders(ORDER_ID Number (12),Order_date date NOT NULL,Order_total Number (8,2))Partition by RANGE (order_date)(Partition P1 VALUES less than (to_date (' 2015-01-01 ', ' yyyy-mm-dd ')),Partition P2
Manually deleting an Oracle database user often occurs when the session process is still in use causing the deletion to fail. It is inconvenient to query the session and delete the session to successfully delete the database user.Applicable
Main Library Query:sql> select error from V$archive_dest where rownumDG This problem is usually a password file problem.Workaround: Re-pass the password file to the repository, or not in the main library to rebuild the password file, and then
Use Rman to flash back to the database according to the specified SCN#查看可以闪回到多久前Sql> select * from V$flashback_database_log;#查看当前的SCNSql> select Current_scn from V$database; CURRENT_SCN----------- #关闭数据库$ rman target/recovery manager:release 11.2.
Programme I: Direct Authorization Act1. Log in with happyy2165, and then authorizeGrant SELECT on HAPPYY2165. STUDENT to Scott2. Log in with Scott and use the following code to access the student tableSELECT * FROM Happyy2165.studentMode two:
Environment Description: Oracle11.2.0.3+oraclelinux+vmware 12+SECURECRT 8.0.4When creating the data file, the input method is accidentally changed into Chinese characters, although the deletion of the relevant characters and then create the data
First, when establishing the table, pay attention to the role of pctfree parametersPCTFREE: The percentage of space reserved for a block, indicating when the data block can be insert, the default is 10, indicating that when the free space of the
1. Basic SELECT statement1) View Current userShow UserUSER is "SCOTT"2) Query the table under the current userSql> select * from tab;Tname Tabtype Clusterid------------------------------ ------- ----------DEPT TABLEEMP TABLEBONUS TABLESalgrade TABLE3
operator meaning· + (PLUS) Addition | | (plus) string addition · -(minus) subtraction · * (multiply) multiplication · /(Divide) Division · MoD (modulo) returns the integer remainder of a divisionFor example, 12 5 = 2, which is because 12 is divided
SELECT * FROM Awhere ID in (select ID from B)The above query uses the in statement, in () executes only once, it detects all the ID fields in table B and caches them. After that, check that the ID of table A is equal to the ID in table B, and if it
The operation of this example is done in the console, and the client is later used.1Sql>--Set line width2Sql>Show Linesize3Linesize 804Sql> Set Linesize 1505Sql>--Set column widths6Sql>Col ename format A87Sql> Col Sal for99998 //Col is the
To create a table space : Create tablespace pdb_videos_pace datafile ' f:/oracle/app/oradata/orcl/pdb_videos_pace.dbf ' size 200M autoextend On next 5M maxsize 3000M; Create a user and assign a default tablespace : create user Jsby identified by
----Handle Deadlock processes--View locked tablesSelect B.owner,b.object_name,a.session_id,a.locked_modeFrom V$locked_object a,dba_objects bwhere b.object_id = a.object_id;--View the user who locked the tableSelect
1, jump out of the cursor loop, do not perform traversal.Method One: Goto for inch cursor Loop if condition then dbms_output.put_line (' test jump out of Loop '); Goto Breakloop ; if ; End Loop; breakloop>>First,
There is a table named TB, field segment named Name, data type nchar (20).1. Assuming that the field data is empty, you can do it directly, regardless of the field type you are changing to:ALTER TABLE TB Modify (name Nvarchar2 (20));2, if the field
1.2 Advanced Content:Two concepts: SCN and CheckpointDefinition of 1.SCN:System change member, which is a very important data structure in the database.The SCN is used to indicate the version submitted by the database at a specific time. When a
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