Transferred from: http://blog.itpub.net/25322446/viewspace-767505 Note: Notes summarize several update methods and the range of methods that have been encountered at work.1. single-table updateScenario: Use standard update syntax to perform stable
Environment:Windows 2008 server,Oracle 11g R2 database
Task Requirements:There are three DB instances, one instance for use by the management subsystem, one for use by the subsystem, and one for backup.
Selected technology:Oracle Stream
To connect Oracle using MYECLIPSE encoding in a DRP project, first copy the driver Ojdbc14.jar to the corresponding directory, and then write the connection code in the corresponding package.Package Com.bjpowernode.drp.util;import java.sql.*;p ublic
The database has the following table structure:User_info (user_id number primary key, user_name VARCHAR2 (+) not NULL, User_age VARCHAR 2 (+), create_date date, create_order number)Now there are 1 million records that require each 1000 records to be
Oracle 051 for several topics (Oracle 11g)1. Usage of interval
SELECT INTERVAL ' month,interval ' 54-2 ' year to Month,interval ' 11:12:10.1234567 ' HOUR-SECOND from dual;
The query results are:
INTERVAL ' '
This section will discuss all of a sudden query for more complex applications, mainly to simplify SQL, improve performance from the side, of course. There are many more places to improve performance. Today I listened to a lecture on Oracle's
Oracle built-in objects:Sequence sequence: generates an integer sequence that can often be used to populate a primary key column.To create a sequence:CREATE SEQUENCE sequence name[Start with start value ][INCREMENT by growth value ]When used: Two
Here are the steps and methods for Oracle batch script file execution1. Create script file (xx.sql):For example, file createtableCreate table tb1 (ID varchar2 (), Name varchar2 (50)); commit;/You can create multiple, but note that you want to end
First, create, delete databaseOracle oradb11g_home-> Configuration and porting tools->database configration Assistant-> You can then create or delete the databaseIi. establishing a table spaceCreate Tablespace inspur_tablespaceLoggingDataFile '
The trace file is a text file followed by TRC, which records the various SQL operations and the time spent, and, depending on the trace file, we can understand which SQL is causing the system's performance bottlenecks and then take the appropriate
Title, these double quotes are really bad for Oracle's build tables;Workaround:(reprinted, the author's Baidu has been hung, can not put on the link, selfish one, the previous Oracle project is missing, unable to show)1. Remove the double quotation
Switchover is a master-slave library role switching, lossless conversion, usually the user manually triggered or planned to let it automatically trigger, such as hardware upgrades, software upgrades and the like. The failover is how to switch from
Snapshot Standby , this feature allows the repository to be "read and write" for content that is not easy to test in the main library of the production environment, such as simulating on-line testing tasks. When the task is completed in the read
If the time value read from Excel is a null value, do the following conversionsString YDKGSJ = String. Empty;if (dbdata. Rows[i]["agreed to start time"]. ToString () = = ""){YDKGSJ = "null,";}Else{YDKGSJ = "To_date ('" + convert.todatetime (dbdata).
Explain how to use various control statements in Oracle databases, and explain how to use oracle
The use of various control statements in the Oracle database is what we will introduce in this article, including some logical control statements, the
Oracle 11g export database does not export empty tables, oracle11g
Oracle11g may encounter such a problem. When using exp to export the entire database, this problem occurs, and empty tables in the database cannot be exported.
Select * from
Restrictions on ORACLE databases and ORACLE databases
How many tablespaces can an ORACLE database have at most )? How many Database files can a Database have and how many data files can a Database have? When encountering these problems, you can only
View the Oracle Execution Plan and the oracle execution plan1. PL/SQL explain Plan window
Advantages:
Disadvantage: limited information2. explain_plan
It is easier to optimize a sentence.3. sqlplus
Run the following command in Sqlplus:
Set
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