Oracle related operation Notes 1. database recovery in cold data, scenarios, including database files of all strength, including ORA, DBF, CTL files, and other logs. 10g 1. scenario 1: If the directory structure of the recovered target database and
> Insert the obtained data from one table A into another table B?
(1) For tables A and B with the same structure [number of fields, type of corresponding fields, etc.], you can use
Insert into B SELECT * FROM;
Insert into B (field1, field2, field3)
First, according to different versions, TNS listener may be vulnerable to multiple types of buffer overflow attacks, which can be exploited without providing user IDs and passwords. For example, in oracle 9i, when a client requests an excessively
Trigger
The code block automatically executed when a specific event occurs. It is similar to a stored procedure, but users cannot directly call them.
Function:1. Allow/restrict table modifications2. automatically generate a derived column, such as
Database Synchronization is often used in the project process. Now, we paste the synchronization process of a project that was previously created for your reference!This document is completed in the following steps:1. Environment configuration
After Incomplete recovery, the database may not meet the recovery requirements. At this time, the database has been opened in the resetlogs mode. If the database is not fully backed up before Incomplete recovery, at this time, I want to restore some
The _ sort_elimination_cost_ratio parameter of Oracle CBO shows several optimization cases related to the implicit parameter _ sort_elimination_cost_ratio of Oracle optimizer (Refer ). If _ SORT_ELIMINATION_COST_RATIO is used as the keyword to query
[Oracle] dbms_metadata.get_ddl usage summary dbms_metadata.get_ddl () is used to obtain the object's DDL. Its usage is as follows. Note: In sqlplus, the following parameters must be set to better display DDL:
[sql] set line 200 set pagesize 0 set
Oracle memory: memory architecture: oracle database allocates memory and background processes whenever the database instance is started, the following information is stored in the memory area: program code and connection session information, even if
Create a user after creating a database in oracle
[SQL]/* Step 2: Log On */log on to pl/SQL/* Step 3: create a temporary tablespace */create temporary tablespace user_temp tempfile 'e: \ oracle \ product \ 10.2.0 \ oradata \ wu \ user_temp.dbf
Oralce table association query
[SQL] // table join query // 1. select s. subscriberno, c. customerid from subscribern s, customer c where s. customerkey = c. customerkey and subscriberno = 'cxm'; // 2. join // select s. subscriberno, c. customerid
Oracle uses a package to package stored procedures, function stored procedures, or functions. Most developers should have used it. If the number of stored procedures or functions is small, it would be okay, if a large number of maintenance tasks are
"The input value is not long enough in the date format" reported in Oracle for date conversion"
[sql] select (select j.jgmc from t_zzjg j where j.jgdm = t.jgdm) jgmc, t.jgdm, sum(t.jcj) jcj, sum(t.sa) sa, sum(t.la) la,
Use bare devices to install oracle10g Database on aix I. Check System Information
[root@aix222 /]# oslevel -r5300-08[root@aix222 /]# prtconf | grep -i memMemory Size: 1904 MBGood Memory Size: 1904 MB…[root@aix222 /]# lsattr -El mem0goodsize 1904
Oracle compares two tables
Comparing the Contents of Two Tables
Table A and table B. A column with the same name has different content. I have two tables named A and B. they have identical columns and have the same number of rows via select count (*
In oracle, the remainder is obtained using the mod (numer1, number2) function. In oracle, the remainder is obtained using the mod (numer1, number2) function, and the return value is the other values. For example, output 1 ~ All integer values in 13
Oralce index clustering factor
SQL code -- test preparation FOR aggregation factor: -- CREATE two orders and unordered tables, create table T_COLOCATED (id number, COL2 VARCHAR2 (100); begin for I IN 1 .. 100000 loop insert into T_COLOCATED (ID, COL2
The following shell script is used to import data from a database to HDFS using SQOOP:
# Oracle connection string, which contains the Oracle address, SID, and port CONNECTURL = jdbc: oracle: thin: @ 20.135.60.21: 1521: DWRAC2 # username used: Export
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