ArticleDirectory
Delete a user
Create a user:
Create user syntax
To create a new user (password verification user, which is the same as the following), you can use the create USER command. The following is the syntax of the create
When installing Oracle 9i, I forgot the password of the database administrator I just changed, and did not reinstall it. It was too troublesome. After trying for a long time, I finally succeeded in the modification.
1. Run it to the C root
Today, when update is used to update a record, it cannot be updated and remains unresponsive. When the row record is edited and submitted, the record is locked, to find out the specific cause.
Finally, the record is updated through the following
Database locks are resource-consuming. In particular, when a lock wait occurs, we must find the lock waiting to kill the process if possible.
You can useAlter system kill session 'sid, serial #'OrAlter system disconnect session 'sid, serial #
This is a few questions about the database recently encountered during the interview process. I feel very good, and I often encounter these questions in projects.
Question 1: There are three user tables (users), role tables (role), and user role
Recently, the Entity Framework 4.1 and LINQ frameworks were used for development. However, the primary key values in the Oracle data table use sequence generation auto-increment values, when adding a record, you must query and obtain the Sequence
Modify the Oracle 10g character set because the database character set we just created is: we8iso8859p1 cannot import data, so we need to modify the character set.
Edit
Export oracle_sid = ucit (Database Sid)
Sqlplus '/As sysdba'
Select name,
Select * From dba_free_space; -- view the remaining spaceSelect * From dba_data_files; -- view the tablespace Data File status
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Select
B.
File_
Database listening suddenly experienced a problem. After reconfiguration, restart the database. It is found that both shutdown and immediate have the same effect. After more than 10 minutes, no response has been made.
After checking the
Recently, because SuSE Linux was used for server deployment and is not familiar with it, we found that the table box field annotations of the Database become garbled after Oracle deployment, after the system character set and Oracle character set
At work, we need to install Oracle10g and 11g in suse10. I have found a lot of information, but the content is not consistent. I want to help more people and leave it to myself, poor memory. Simply record the operation process.
1. Check
analysis function is a new concept introduced in Oracle 8.1.6. It provides a simple and efficient processing method for data analysis. On the analysis function in the past, we must use self-join queries, subqueries, or
There is nothing at work. Every day is a trivial task, and there is a lot of free time. You can arrange it at will.
Analysis of the current form shows that you have too many things to learn, and you do not know what to learn, such as databases,
After a few days of Idle Work, I finally got the job assigned by my superiors and used the crystal report to make several graphical reports. It is not difficult to make a graph. It is very easy to use Crystal Reports. The key is that the query
The most basic task of a database is to store and manage data. The only database feature that an end user can see is its performance: the speed at which the database processes the results of a specified query, and return the result to the tools and
1. Create a table named test first.
Create Table Test ( Index Number (9, 0) Not Null , Name Varchar2 ( 128 ), Address Varchar2 ( 128 ), Primary Key (Index) ) Tablespace Temp ;
2. Create sequence test_seq
This problem occurs in the development environment.
There are three different query statements1:Select year_mon, sum (gasmon)FromWhere id = 'hbsrf0t6ui'And class = 11Group by year_mon2:Select year_mon, sum (wellgasmon)From BWhere id =
After modifying a stored procedure and checking whether the modified stored procedure is correct, the stored procedure is debugged, after debugging, the system finds that a record is missing from the result set. After searching, it finds that the
Show parameter Processes; -- display the processing parameters definedSelect count (*) from V $ process; -- view the number of processed items currently in use
Alter system set processes = 5000 scope = spfile; -- modify the number of system
Dynamic SQL statements in Oracle can be executed either through local dynamic SQL statements or through the dbms_ SQL package. The two cases are described as follows:
I. Local dynamic SQLLocal dynamic SQL statements are implemented using the
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