1. syntax for the WITH statementOracle introduced the WITH statement in 9i. The WITH statement is used to name the subquery in the query statement, which can then be referenced elsewhere in the query statement. The statement format is as follows:1
1. Log in to SQL Plus with SYS user as SYSDBA and use Dba_users view to view user information:
SELECT USERNAME, Account_status, CREATED from dba_users;--user name, account status, date of creation of the user
2. Create user, delete
1. Use the SYS user to log in to SQL Plus as SYSDBA and use view V$tablespace to view tablespace information
SELECT * from V$tablespace;
2. View View Dba_tablespaces View the properties and online status of all tablespaces
To establish the tablespace and the user's steps:UserCreate: Create user username identified by "password";Authorization: Grant create session to user name;Grant CREATE table to user name;Grant create tablespace to user name;Grant CREATE view to
The Awrdd is used to compare two awr snapshots for different periods of performance.Execute the following statement to get AWRDD:@?/rdbms/admin/awrddrpt.sql2025 23 February 07:12 12026 23 February 12027 23 February All 12028 23 February
[Email protected] oradata]$ export oracle_sid=appdb[[email protected] oradata]$ lsnrctl startLsnrctl for linux:version 11.2.0.4.0-production on 22-may-2014 11:42:15Copyright (c) 1991, Oracle. All rights reserved.Tns-01106:listener using Listener
SELECT * FROM All_tab_comments--Query All users ' tables, views, etc.SELECT * FROM User_tab_comments--Query the user's table, view, etc.SELECT * FROM All_col_comments--Query the column names and comments for all users ' tables.SELECT * FROM User_col_
Oracle Cold backup is a consistent backup, the contents of the backup are data files, redo files, temp files, control files, etc.Sqlblanklines on is the prevention script has a space, sqlplus mistakenly think is the end, reportedSp2-0734:unknown
-- Accumulate SQL statements used in work
ORACLE also has a type that can be input as a stored procedure or function.
See create.
Usage
Create or replace type name AS OBJECT
For example
Create or replace type T_OBJ AS OBJECT
Usage:
Type
An error occurred while installing Oracle10G runInstallert on AIX.
Environment:
System: AIX5300-08
Database: Oracle 10g (64bit)
After the oracle software is uninstalled on the AIX client, a daily error occurs:
Check whether the system
1. Which departments have more people than department 20.Select deptno, COUNT (*) FROM EMPGROUP BY DEPTNOHaving count (*)>(Select count (*) FROM EMPWhere deptno = 20);2. Who is SMITH's leader (non-associated subquery ).SELECT ENAMEFROM EMPWhere
Today is July 26,. the blog that has been away for N years will continue to be used today. I have been busy leaving my job recently, and I have not paid for my new job, so I am not so stable at the beginning. Learning requires a calm and secure mind.
AWRDD is used to compare two AWR snapshots for different periods of performance.
Run the following statement to obtain AWRDD:
@? /Rdbms/admin/awrddrpt. sql2025 23 February 20 14 12026 23 February 20 14 12027 23 February 20 14 12028 23 February 20 1
In ORACLE databases, there are many RMAN backup scripts. The following describes how to use shell scripts to back up data through RMAN, upload RMAN backup files through FTP, and archive log files.
Fullback. sh, which uses
ASM supports rolling upgrade. You can use the rolling upgrade method to create a patchsets for ASM or migrate to a new version to provide higher-level and lower-level high availability. Note: To use the ASM rolling migration feature, the ASM
Turn: http://blog.csdn.net/clever101/article/details/1792075
Last Saturday, I took the time to learn about Pro * C/C ++. I used the reference book "proficient in Oracle 10gPro * C/C ++ programming". In my opinion, the Pro * C/C ++ syntax is not
The database versions provided by oracle for individuals and enterprises are exactly the same, as long as they are not commercially available, we can use them for free as a good choice for learning.
Oracle is used to learn the database in Dana, so
An index is an optional structure maintained by Oracle to provide quick access to data. It is difficult to accurately determine where an index needs to be used. Using an index helps adjust the search speed. When creating an index, you must specify
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.