Generally, when creating an oracle user, we may only create a user name, but do not specify a logon password for the user. Then we will grant this user certain permissions.
When we log on, we will find that when we log on with sysdba, We can log
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
Oracle dynamic SQL can be written in two ways: dbms_ SQL or execute immediate. The latter is recommended. The test procedure is as follows:
1. DDL and DML
/*** DDL ***/BeginExecute immediate 'drop table temp_1 ';Execute immediate 'create table
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
1. query the number of connections to the current process of the database:Select count (*) from V $ process;2. view the number of connections in the current session of the database:Elect count (*) from V $ session;
3. view the number of concurrent
Recently, you need to perform some stored procedure tests. You can only test the stored procedure in your local database instance. The results show that an error occurred while logging on to the previously created database instance.
The error
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
Generally, if you installOracleServerSoftwareOracle ODBC source is automatically added, so you do not need to do anything.
Now I will explain how to add Oracle ODBC source through the Oracle client.
Step 1, click this link
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
I have been using MySQL and Oracle databases for so many years. This time I have to use the C/C ++ language to call the Oracle stored procedure, so I am too lazy to look at the OCI API, I went online to find someone else's encapsulated library, and
Oracle --> MySQL
To_char (sysdate, 'yyyy-mm-dd') --> date_format (sysdate (), '% Y-% m-% D ');To_date (sysdate, 'yyyy-mm-dd') --> str_to_date (sysdate (), '% Y-% m-% D ');
1. Oracle
(1) Use the to_char function to process numbers
To_char
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
In Oracle, sequence is the so-called serial number, which is automatically increased every time it is obtained. It is generally used in places where the sequence numbers need to be sorted.1. Create SequenceFirst, you must have the create sequence or
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
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
(1) select the most efficient table name sequence (only valid in the rule-based Optimizer ): The Oracle parser processes the table names in the from clause in the order from right to left. The table written in the from clause (basic table driving
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