After installing oracle11g, I want to enable the built-in SQL plus for learning, and then follow the prompts to use the Sys user to connect to the database. If I lose the SQL Plus, an error is prompted several times:
Error: the account is locked
1. How to view the database Character Set
[A] database server Character Set select * From nls_database_parameters, which is derived from props $ and indicates the character set of the database.
Client Character Set environment select * From
To simplify the process, I have created a unified database check account on multiple ORACLE data, and my account can only access several specific views (the SQL statements to be queried have generated views ), the procedure is as follows:
Root>
1 The syntax of the SQL statement is verified.
SQL syntax check
2 The data dictionary is searched to verify table and column definitions.
Checklist name and field name from data dictionary
3 The data dictionary is searched to verify security
The idea of Oracle paging stored procedures is the same as that of SQL Server, but I have made some changes here because of the differences in Oracle syntax and rules, the Oracle paging Stored Procedure looks a little different. Smile!
Cursor
What is a multiline string (connection string), for example:
SQL> DESC test;
Name type nullable default comments
------------------------------------------
Country varchar2 (20) y
City varchar2 (20) y
SQL> select * from test;
country city ----
Oracle databases differ significantly from MSSQL data operations, but there is an analogy in image operations. This article
Article About how MSSQL database images are implemented in Oracle databases, what are the differences between them.
During development, a cursor containing a table that does not have fields may be declared to solve special problems. This article will introduce such problems in detail. For more information, see
Data. * is a table, and then the fields in other
I. Environment Description
Source database:
IP Address: 192.168.137.100
Sid: catalog
Username: rman
Password: rman
Target database:
IP Address: 192.168.137.101
Sid: orcl
Username: rman
Password: rman
2. Create a tnsname for the source database on
Learning oracle 10g r2 concepts in the afternoon
Leave a note here.
Oracle manages the storage space in the database data file. The unit is data block ). A data block is the smallest (logical) data unit in a database. The minimum physical storage
Note:
1. If you open it in PL/SQL or other tools, directly modify the [italic bold part] in the following code to execute
2. Make sure that the path exists, for example, [D: \ oracle \ oradata \ Oracle9i \], that is, the path of the file to be
Today a friend asked the following case, ORA-01114, ORA-27067 and OSD-04026 errors at the same time:
* ** Action name :() 09:31:00. 762* ** Module name :( JDBC Thin Client) 09:31:00. 762* ** Service name :( SYS $ USERS) 09:31:00. 762* ** Session id:
How does one return table variables in Oracle functions?
It's too late, so I won't talk about it if I have too much theoretical knowledge. Let's talk about implementation in a simple way !..
1. Create a table object type.
To return table objects in
Total combination set:Group by with rollup/cube
Grouping sets
Subqueries are executed in the following ways: Standard subqueries and associated subqueries
Standard subquery: Nested subquery
Scalar Value Query
Case with then
Use exits to query
Select
1. Basic query statement, special symbol |. Specifies the column alias AS, which uniquely identifies distinct.
1. Character connector "|" and "+"
Oracle: select column name | '123' from Table NameSQL: select column name + '000000' from table name T
2
I. Creation and use of stored procedures
1. Create a package and create a stored procedure in the program
Create or replacePACKAGE NCS_ICP_TJ/* Lfx@ncs-cyber.com.cn *//* TODO enter the package Declaration (type, Exception error, method, etc.) here )
Oracle cursors include display cursors and implicit cursors.
Explicit Cursor: The Cursor defined in the PL/SQL program for query is called a display Cursor.
Implicit Cursor: A Cursor automatically allocated by the Oracle system when UPDATE/DELETE
There are a lot of content about oracle optimization and the concept is complex, but you can summarize an outline as the direction to be considered, and then gradually refine it. The design, development, and adjustment of oracle optimization should
1. ASCII
Returns the decimal number corresponding to the specified character;
SQL> select ascii (A) A, ascii (a) a, ascii (0) zero, ascii () space from dual;
A ZERO SPACE
------------------------------------
65 97 48 32
2. CHRReturns 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