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
If you have a cold backup, but one of the data files is missing, but you have all the archives, if you want to restore the data files, you can refer to the following example:
CopyCode The Code is as follows: [Oracle @ jumper eygle] $ sqlplus "/As
Article Author: kj021320
Source: evil baboons Information Security Team (www.eviloctal.com)
Note: This article first launched the I .s. t. o technical team, which was then submitted to the Forum by the original author.Author: kj021320Team: I .s.
[Q] How to query special characters, such as wildcards % and _
[Q] how to insert single quotes to database tables
[Q] how to set transaction consistency
[Q] How to Use the cursor to update data
[Q] How to customize exceptions
[Q] convert
I. There are two types of auto-incrementing self-segments for tables. One is that different tables use their respective sequence. The method is as follows:
1. Create a sequence in Oracle sequence first
Create sequence seq_idminvalue 1
1. Create a stored procedure Create or replace procedure Test (var_name_1 in type, var_name_2 out type)-- Declare a variable (variable name and variable type)Begin-- Execution body of the stored procedureEnd test;Print the input time informationE.
1. Check which users are in the database?
Select username from all_users;
2. Check which DBA users are in the database?
Select username from dba_users;
3. view the tables owned by the current user?
Select table_name from user_tables;
4.
The ORACLE tutorial is: maintenance of Oracle Database indexes.
This article only discusses the most common index in Oracle, namely the B-tree index. The database version involved in this article is Oracle8i.
1. view User indexes in the system table
The ORACLE tutorial is to analyze and solve common Oracle error codes.
When using ORACLE, we often encounter ORACLE errors. For Beginners, these errors may be a bit vague and may not know how to handle these errors at the moment, I will analyze
The ORACLE tutorial is: a deep understanding of Oracle Database startup and shutdown.
The Oracle database provides several different methods for starting and disabling databases. This article describes the differences between these methods and their
The ora 12154 error is reported when plsql is connected to the oracle database.
Today I encountered a problem that sqlplus can be used to connect to a remote database, but plsql cannot be used to connect, error "ORA-12154: TNS: Unable to parse the
Resets the oracle sequence from a specified number.
Copy codeThe Code is as follows: declare
N number (10 );
V_startnum number (10): = 10000001; -- start from the number
V_step number (10): = 1; -- step
Tsql varchar2 (200 );
V_seqname varchar2 (200):
Last week, I wrote an article on connecting the oracle client to the server, solving the troubles of installing it in my own book.
In the past, my computer and server were in the same LAN, so every time they were remote servers, they were not the
I. Operating Environment Construction
System: 64-bit Windows 7 flagship EditionPHP environment: wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24 32-bit: Http://www.wampserver.com/en/
ThinkPHP: 3.0 official version: Http://thinkphp.cn/down.html
Oracle:
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
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
The ORACLE tutorial is: PL/SQL programming experience summary Developer Network Oracle. I usually encounter some problems in PL/SQL programming. I will summarize them in the form of Q & A for you to share.
1. Can pipelines be used to improve
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