The process is as follows:
SQL> show user;User is "sys"SQL> create user test identified by test;
User Created.
SQL> Create Table Test. t (ID INT );Create Table Test. t (id int)*Error at line 1:ORA-01950: no privileges on tablespace 'users'
Cause:
In Oracle, you can specify a default value for a table column, so that when you insert data, if the column does not appear in the insert statement, the default value is assigned to it. note that this column does not appear in the insert statement,
The following is a simulation process.1. Simulate high CPU usage in a session, as shown below:
Declarenum INT: = 0; beginloopnum: = num + 1; end loop; end ;/
2. Run the TOP command in the shell window to view CPU usage:
PID user pri Ni size
Use the Sys user to log on to the system as sysdba
View the sga_max_size and sga_target size before modification.
Show parameter sga_max_size;
Show parameter sga_target;
Modify parameters
Alter system set sga_max_size = 1600 m scope =
As far as the database itself is concerned, Oracle can be divided into two main parts:
1. Oracle instanceOracle instance refers to the memory and related processing of the database server.Program.
2. Oracle Database FilesDatabase files are
Each table in Oracle has a rowid, which is an 18-character string, for example, aaangbaabaaao/kaaa. it contains a string consisting of A-Z, A-Z, 0-9, +. yes.
Where the A-Z corresponds to 0-25, A-Z corresponds to 26-51,0-9 corresponds to 52-61, +
When you access a table, an error similar to the following occurs:ORA-01578: Oracle data block upted (file #6, block #344)ORA-01110: data file 6: 'd: \ oracle \ product \ 10.2.0 \ oradata \ orcl \ test. DBF'The reason is that the data file contains
1. create user groups and users
1) Add a user group:
Groupadd oinstall
Groupadd DBA
2) Add a user:
Useradd-G oinstall-g dba-D/home/Oracle-M Oracle
{-G indicates the user group,-G indicates the user's additional group,-D indicates the user's main
After oracle is installed in windows, some services will be created in windows, such as oracleoradb10g_home1tnslistener, which is used to listen to the Service port and oracleserviceorcl related to the instance to start the instance.
Due to the lock mechanism, when execution of a DML or ddl SQL statement is blocked, you need to find out why the SQL statement is blocked. The following describes the common diagnostic methods:
Suppose there is a table: Table T (ID int primary key,
We often hear that in Oracle, when a role is granted user permissions, the user must log on again to obtain the permissions granted. How can this problem be solved? Let's take the following steps to understand the meaning of this sentence.
1. DBA
1. Start the database:
First, an appropriate initialization file will be found in the following three files in order.
Spfile $ oracle_sid.ora
Spfile. ora
Init $ oracle_sid.ora
Path: Oracle/product/10.2.0/db_1/dbs
2. startup
James was shocked to learn that shengyang was bought by Oracle yesterday. The IT industry has had such a big problem. If you don't take the opportunity to gossip about it, it seems a bit difficult to say. The following is a brief introduction to my
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 tablespace)
The purpose of creating a
Help Command: EXP help = y
Export: Release 10.2.0.1.0-production on Thu Jul 20 10:39:50 2006 Copyright (c) 1982,200 5, Oracle. All rights reserved. You can let export prompt you for parameters by entering the expCommand followed by your
In fact, the most important thing for hackers to attack is their ideas. I think no one can say that they are the best and the latest technology!
Hichina's embarrassment-hichina Oracle injection vulnerability exposureSome time ago, after my project
I have never used the 10 Gb em tool. Today I open it and find that there are also long-standing garbled code problems. there are also n solutions circulating on the Internet. Let's take a closer look. In fact, this problem is a good solution.
If
Overview
As a large relational database, Oracle database has many characteristics compared with other relational databases. The following is a simple description, this includes the knowledge we may use in daily operation and maintenance, and we
According to the results of a recent survey conducted by the Independent Oracle user organization (ioug), the accidental interruptions to Oracle databases over the past year are mostly caused by hardware faults rather than hackers.
Ioug (the
If a database connection problem occurs, use the tnsping service name in the command line to check the cause of the error.
Common Errors include:
ORA-12535: TNS: Operation timeout
First, disable the firewall, which is the most common cause of
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