1. If the console is not installed on the database machine or the network service name is not configured using the console.
You can log on to the idle process on the server by running the command sqlplus sys/sys as sysdba. See step 4.
2. If the
BelowCodeIf the test passes in MySQL, MSSQL should be able to run without testing.
Copy codeThe Code is as follows: # create a table as follows:
Create temporary table TMP (A int, B INT, C INT );
Insert into TMP values (10,100, 1), (, 2), (, 2 );
If you use the order by sorting statement to specify the order by employee number, all records generated after sorting are temporary data. How does the Oracle database process the temporary data?
Generally, the Oracle database first stores the
I believe that three appropriate indexes should be created, that is, the appropriate number of indexes should be created on the appropriate tables and columns. Although this can be summarized in one sentence, the database administrator must make
First, exp unload the data to the file system to generate. DMP file, and then the data is loaded into the database by IMP when necessary. for small and medium databases, the DMP file generated by the full database exp may be less than 2 GB, but for
1. Intersect is the intersection of multiple query results;
2. query the SQL statements recorded in the table within two basic periods;
Select * From shengjibiao t where T. createtime between to_date ('2017-7-26 ', 'yyyy-mm-dd') and to_date ('2017-7-
I. Solution to garbled buttons in oracle em:
1. Modify the font of jdk.
Copy codeThe Code is as follows: [oracle @ esop db_1] $ cd $ ORACLE_HOME/jdk/jre/lib/
[Oracle @ esop lib] $ mv font. properties font. properties_bak
[Oracle @ esop lib] $ cp
There are two methods:
One is to declare the system cursor, the other is to declare the custom cursor, and then follow the same operation, the parameter type is
In out or out
(1) Declare the personal system cursor. (recommended)
Copy codeThe Code is
What should we do when defining the field name and alias with the same name as the oracle keyword?
In fact, it is very easy to add "", such as "group" to this keyword"
See the following example:
Copy codeThe Code is as follows: SQL> DROP TABLE
Many data conversion and processing operations may encounter the need to convert 0.007007040000 to 0.70%. We can use the Oracle SQL function to_char to achieve this conversion.
This function is used to convert the DATE or NUMBER data type to a
The distinct keyword can only be used to filter all records in the query field that are the same (the record set is the same). If you want to specify a field, it does not work. In addition, the distinct keyword is sorted, Which is
When deleting a user in Oracle, the following statement is prompted: ORACLE cannot delete the current connected user:
SQL codeSQL>Copy codeThe Code is as follows: select username, sid, serial # from v $ session;
Username sid serial #-------------
Union and Union ALL merge query result sets of SELECT. What are their differences?
Union re-queries the query result set and removes the same rows. Disadvantages: Low Efficiency;
Union ALL only merges the query result set and does not re-query. It
Unlike SQL Server, Oracle uses Select to return the result set in the stored procedure, but returns the result set through Out parameters. It is actually using REF CURSOR
Copy codeThe Code is as follows: -- procedure returns the record set:
---------
1. What is an execution plan)
Execution Plan: the execution process or access path of a query statement in ORACLE.
Ii. How to view the execution plan
1: Press F5 under PL/SQL to view the execution plan. Third-party tools such as toad.
Many people
I. oracleOracle servers include Oracle instace and Oracle database
An instance consists of a memory structure and a background process.
Memory structure includes shared pool and SGA (System Global Area ).
SGA includes Database buffer cache and Redo
1. control user access1. Create and modify user Creating UsersCreate/alter user new_user identified by password;Example: create user user_1 indentified by pwd_1Alter user user_1 identified by pwd_22. grant permissions to usersGrant privilege [,
1. create and manage tables1. Create Table syntax
Create table Name (column datatype [default expr] [, column...])
Default Constraints
2. Create a table using subqueryCreate table NameAsSelect * from u table
Ii. modify a table1. Add a new
1. multiline Functions, also known as Group Functions and Aggregate Functions
1. Types of Group FunctionsAvg, count, max, min, stddev, sum, varianceAvg averageSelect avg (nvl (column 1, 0) from table 1Count calculates the number of rowsAggregate
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