Basic Oracle knowledge
A tablespace can belong to only one database. Each database must have at least one control file (we recommend that you store three files on different disks) Each database has at least one tablespace (system
The data dictionary dict always belongs to the Oracle user SYS.
1. User:
Select username from dba_users;
Change Password
Alter user spgroup identified by spgtest;
2. tablespace:
Select * From dba_data_files;
Select * From dba_tablespaces; //
Currently, all applications that use ORACLE as the database support platform have a large amount of data, that is, the data volume of tables is generally more than one million data volume. Of course, creating partitions in Oracle is a good choice,
Http://shqkm.blog.163.com/blog/static/794804172010323102545265/
Oracle connect by usage
The SELECT statement in Oracle can use the start with... connect by prior clause to implement recursive queries. The connect by clause is used in
JDBC thin, OCI: two Java methods provided by Oracle to access the Oracle database thin is to use Java to access the database, the advantage is that you do not need to install the client OCI, that is, to use Java to call the local Oracle client and
Decode
Syntax:
Select decode () from
E.g .:
Select orderno, decode (ostatus, 'P', 'Prepare to process', 'C', 'finished ')
From order_master
This function can be used to convert rows to columns:
Select * from Score
Select u_id, stu_name,
quote:
1. How to operate a table after a partition is created.
Answer:A normal table is like a Xinhua Dictionary used by a primary school student. A partitioned table is
Abstract: In a large number of business data processing projects, you can consider using partition tables to improve the performance of the application system and facilitate data management. This article describes the use of partition tables in
1 From: http://soft.chinabyte.com/database/430/11385430.shtml
2 from: http://qxh.javaeye.com/blog/609437
1. in Oracle, table space is the basic method for data management. All user objects must be stored in the table space, that is,
Transferred from:
Http://database.51cto.com/art/200707/51422.htm
[Bring togetherBlog of Oracle: instances and databases
Instances are composed of the following: SGA, sharedpool, databasebuffercache, and redologbuffercache. A database consists
Today I read a book and wroteCodeBut it can be executed in seqplus, but cannot be executed in PLSQL. I checked it online.
declare v_deptno number (2); v_dname varchar2 (10); begin begin select deptno into v_deptno from EMP where lower (ename) =
View user connections
Disconnect a connection
View connection IP
View user connections in OracleSelect username, Sid, serial #, status from V $ session where username <> '1 ';Select Sid, SES. Serial #, SES. username, Pro. username, Pro.
Drop table releases the space occupied by the segment, while the OS space occupied by Data Files remains unchanged.
1. Create a tablespace, table, and insert 300 pieces of data
1 SQL > Create Tablespace TBS datafile ' /Opt/Oracle/oradata/nwom/
Oracle cluster is a separate installation package. After installation, Oracle clusterware on each node is automatically started. The operating environment of Oracle clusterware isTwo Disk Files (OCR, voting disk), composed of several processes and
Select * From dba_users -- View All Users
Select * From user_all_tables -- query the current user tablespace
Select * From user_source -- Query all functions and stored procedures
Select * from V $ session -- view the current user connection
The requirement is to check what the topic of the site we have set up for the user has been adjusted n times, so I found relevant information on the Internet, query with a specific Oracle statement.
Detailed content from
1. delete a tablespace Drop tablespace tablespacename [including contents [and datafiles]2. delete a user Drop user user_name Cascade3. Notes for deleting a table When deleting all data in a table, the truncate table name must be used. Because
Quick query of common Oracle functions 1. ASCII () C1 is a string that returns the ASCII code of the first letter of C1. Its Inverse Function is CHR () Select ASCII ('A') big_a, ASCII ('Z ') big_z from empbig_a big_z65 1222.chr( ) [nchar_cs] I is 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