If you accidentally overwrite the previous stored procedure, then flash back and the likelihood of a long, long flashback is smaller. The principle is very simple, the definition of stored procedures is a data dictionary, modify the data dictionary
Oracle Transaction ISOLATION LEVEL
Status caused by different transactions:
Dirty Read (Dirty reads)
A transaction reads a dirty read when another transaction has not committed a change
Many databases allow dirty reads to avoid the contention of
Use an Oracle trigger to monitor an incremental deletion of a table and record it in another table.
Code:
Copy Code code as follows:
Create or Replace Trigger Test_trigger
Before insert or update or delete on test_table
For each row
First, the system's default user
1 sys user is superuser, has the highest privilege, has the SYSDBA role, has the permission to create database, the user's default password is sys.Login Statement:sql> Conn Sys/sys as SYSDBA;
2 The system user is
Copy Code code as follows:
CREATE OR REPLACE FUNCTION fn_no_make (V_prefix VARCHAR2,
V_table_name VARCHAR2,
V_number_col VARCHAR2)
/*
* V_prefix: Code prefix two bits
* V_table_name: Table name encoded
* V_number_col: Name of the column
environment variable settings for Oracle in Window server
1. Right-click "My Computer"-> Select "Properties"-> Select "Advanced"-> Click "Environment Variables"2. Select the "Path" line, click Edit, add a semicolon ":" In the last face of the
1, Pl/sql Cannot connect Oracle (ORA 12154:tns: Unable to resolve the specified connection identifier)
Workaround: Pl/sql cannot be installed under the Program Files folder, to be installed under the Program Files folders x86
2. Pl/sql cannot
When a section is used more than once in a query, a public temporary table can be created with an Oracle with statement. Because the subquery avoids repeated parsing in the memory temp table, the execution efficiency improves a lot. Temporary tables
To view the name and size of a table space
Copy Code code as follows:
Sql>select T.tablespace_name, round (SUM (bytes/(1024*1024)), 0) ts_size
From Dba_tablespaces T, dba_data_files d where t.tablespace_name = D.tablespace_name
What should we do when we forget our password when we log on to Oracle via HTTP://LOCALHOST:1158/EM?
Run sqlplus into the input password interface
User Name Input: Connect as Sysdba
Password: This is the way to lose.
Then enter the following
After installing oracle11g, you want to open your own SQL Plus to learn, and then follow the prompts to use the SYS user to connect to the database, you can lose several times prompted an error:
Error:the account is locked
There may be several
The original statement is this:
Select SUM (sl0000) from XSTFXPS2 where
Dhao00 in (
Select dhao00 from Xstfxps1 where Trunc (ywrq00) =trunc (sysdate)
and khdm00= ' 500000003913 ');
Time used: 00:02:49.04
Execution Plan
-------------------------
1. How to view the database character set
[A] Database server character Set select * from Nls_database_parameters, which originates from props$, is the character set representing the database.
Client Character Set Environment select * from
To make things simpler, I set up a unified checking database account on multiple Oracle data, and the account has access to only a few specific views (the SQL generated view that needs to be queried), as follows:
Root>sqlplus/as SYSDBA
Entering the
There are a lot of things about Oracle optimization, and the concepts are complex, but you can summarize an outline as a direction to consider, and then gradually refine. Oracle optimization needs to consider design, development, and adjustment in
1 The syntax of the SQL statement is verified.
syntax checking for SQL
2 the data dictionary is searched to verify table and column definitions.
Check table name and field name from data dictionary
3 the data dictionary is searched to verify
The two very universal netizens more concerned about the question summary answer.
The difference between in and exist
From the perspective of SQL programming, in intuitive, exists not intuitive more than one select,
In can be used for various
Any reprint, please respect the copyright. (Author: Iihero on CSDN)
How do I create a Java stored procedure?
There are usually three ways to create a Java stored procedure.
1. Use Oracle SQL statements to create:
e.g. using create or replace and
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