Method 1: the simplest method (database creation required)
Backup:Directly copy the admin and oradata folders in the Oracle directory and the database under the ora92 directory to other storage for backup.
Recovery:1. Create a database that is
I used Microsoft's ssma for help, but currently only tables can be used for conversion, and others need to be manually modified ,--
Oracle can query appserviceinfo @ aspdb and call tables of other databases. SQL: aspdb. DOB. appserviceinfo
Left:
Select
E. last_name, E. department_id, D. department_name
From
Employees E
Left
Join
Administrative ments d
On
(E. department_id
=
D. department_id );
Equivalent
Select
E. last_name, E. department_id, D.
From:
Http://www.gbunix.com/htmldata/2004_06/2/5/article_53_1.html
The data dictionary dict always belongs to the Oracle user SYS.1. User:Select username from dba_users;Change PasswordAlter user spgroup identified by spgtest;2.
Case: one field in an application table is the primary key. when inserting data into the table, the data is first put in the temporary table (without the primary key) and then inserted into the application table.
At this time, if duplicate data
[Application Scenario] preparations before the system goes online. Generally, the Dump File Import method is often used for data migration. Because the data is imported by one user, a permission error (which can be ignored) is reported during the
Oracle Database Synchronization The test is successful between two Oracle databases. The following is a summary:
Requirements:
There are two Oracle database servers A and B (A and B can be on the same Intranet or two independent machines on the
Oracle As a data transformation in the original relevant database, the view is mainly used to view some data in the relevant table. You can set Oracle A view is a moving window through which you can see the data you are interested in.
A
1. Create a table named Test
2. Add data to the test table
Insert into test (student, course, score)Select 'zhang san', 'China', 78 from dual UnionSelect 'zhang san', 'mat', 87 from dual UnionSelect 'zhang san', 'English ', 82 from dual
1.
Differences between cold backup and hot backup and their respective advantages
Answer: Hot Backup is applicable to databases in the archive mode. When the database is still in the working state, it is backed up. Cold backup refers to the
1. Define the stored procedure of Oracle with output cursor. The output cursor definition type is sys_refcursor.1 create or replace procedure sp_demo (
2 emp_no in varchar2,
3 o_res1 out varchar2,
4 o_res2 out varchar2,
5 o_ds1 out sys_refcursor,
6
Example:
PID IDA BA cA EB B1B B2C C1E E1E E3D D1Specify pid = A and selectA BA cA EB B1B B2C C1E E1E E3SQL statement: Select parent, child from Test start with PID = 'A'Connect by prior id = PID
OracleSQLRecursive query:1. Table StructureSQL>
In business system applications, a large amount of data is often submitted (including querying, updating, or deleting). If the data volume of the target database is large, a large number of operations need to be processed at a time, the system
Record the information to facilitate future search:Create or replace procedure sp_test
(
AA in varchar,
Bb in number default 0
) Is
V_pos varchar (50 );
V_num number;
Begin
--- String search and replacement
Select substr (parameter, 1, instr
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 procedure
End test;
Print the input time
Up to now, I have written oralce stored procedures, functions, triggers, and more, and more than SQL server stored procedures. next I will post my first Oracle stored procedure to witness the process of growth.-- Function: copy a user
-- Created by:
3.6 Add a view
In this section, you will continue to modify the helloworldcontroller class and use the view template to encapsulate simple HTML responses to the client.
You will use the razor view engine introduced by ASP. net mvc 3 to create a view
4.7 transmit data from controller to view
Although we used to access the database and discuss the model, this time we will discuss how to transmit data from the Controller to the view.
The Controller class you write is some code that processes
There are two simple examples to illustrate the efficiency of "exists" and "in ".
1) select * from T1 where exists (select * from T2 where T1.a = T2.a );
Small Data size of T1 and large data size of T2, T1
2) select * from T1 where T1.a in (select
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